@verii/vnf-nodejs-wallet-sdk 1.0.0-pre.1752076816
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 -0
- package/README.md +1 -0
- package/dist/api/VCL.d.ts +52 -0
- package/dist/api/VCL.js +3 -0
- package/dist/api/VCL.js.map +1 -0
- package/dist/api/VCLEnvironment.d.ts +8 -0
- package/dist/api/VCLEnvironment.js +27 -0
- package/dist/api/VCLEnvironment.js.map +1 -0
- package/dist/api/VCLProvider.d.ts +6 -0
- package/dist/api/VCLProvider.js +16 -0
- package/dist/api/VCLProvider.js.map +1 -0
- package/dist/api/VCLSignatureAlgorithm.d.ts +5 -0
- package/dist/api/VCLSignatureAlgorithm.js +9 -0
- package/dist/api/VCLSignatureAlgorithm.js.map +1 -0
- package/dist/api/VCLTypes.d.ts +2 -0
- package/dist/api/VCLTypes.js +3 -0
- package/dist/api/VCLTypes.js.map +1 -0
- package/dist/api/VCLXVnfProtocolVersion.d.ts +6 -0
- package/dist/api/VCLXVnfProtocolVersion.js +21 -0
- package/dist/api/VCLXVnfProtocolVersion.js.map +1 -0
- package/dist/api/entities/VCLAuthToken.d.ts +12 -0
- package/dist/api/entities/VCLAuthToken.js +22 -0
- package/dist/api/entities/VCLAuthToken.js.map +1 -0
- package/dist/api/entities/VCLAuthTokenDescriptor.d.ts +21 -0
- package/dist/api/entities/VCLAuthTokenDescriptor.js +54 -0
- package/dist/api/entities/VCLAuthTokenDescriptor.js.map +1 -0
- package/dist/api/entities/VCLCountries.d.ts +8 -0
- package/dist/api/entities/VCLCountries.js +20 -0
- package/dist/api/entities/VCLCountries.js.map +1 -0
- package/dist/api/entities/VCLCountry.d.ts +13 -0
- package/dist/api/entities/VCLCountry.js +20 -0
- package/dist/api/entities/VCLCountry.js.map +1 -0
- package/dist/api/entities/VCLCountryCodes.d.ts +253 -0
- package/dist/api/entities/VCLCountryCodes.js +257 -0
- package/dist/api/entities/VCLCountryCodes.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifest.d.ts +35 -0
- package/dist/api/entities/VCLCredentialManifest.js +73 -0
- package/dist/api/entities/VCLCredentialManifest.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptor.d.ts +27 -0
- package/dist/api/entities/VCLCredentialManifestDescriptor.js +50 -0
- package/dist/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +10 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +14 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByService.d.ts +12 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByService.js +18 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +13 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js +35 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
- package/dist/api/entities/VCLCredentialType.d.ts +17 -0
- package/dist/api/entities/VCLCredentialType.js +21 -0
- package/dist/api/entities/VCLCredentialType.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypeSchema.d.ts +5 -0
- package/dist/api/entities/VCLCredentialTypeSchema.js +9 -0
- package/dist/api/entities/VCLCredentialTypeSchema.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypeSchemas.d.ts +6 -0
- package/dist/api/entities/VCLCredentialTypeSchemas.js +9 -0
- package/dist/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypes.d.ts +9 -0
- package/dist/api/entities/VCLCredentialTypes.js +23 -0
- package/dist/api/entities/VCLCredentialTypes.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchema.d.ts +9 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchema.js +13 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +5 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +10 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
- package/dist/api/entities/VCLDeepLink.d.ts +17 -0
- package/dist/api/entities/VCLDeepLink.js +48 -0
- package/dist/api/entities/VCLDeepLink.js.map +1 -0
- package/dist/api/entities/VCLDidDocument.d.ts +14 -0
- package/dist/api/entities/VCLDidDocument.js +46 -0
- package/dist/api/entities/VCLDidDocument.js.map +1 -0
- package/dist/api/entities/VCLDidJwk.d.ts +24 -0
- package/dist/api/entities/VCLDidJwk.js +56 -0
- package/dist/api/entities/VCLDidJwk.js.map +1 -0
- package/dist/api/entities/VCLDidJwkDescriptor.d.ts +8 -0
- package/dist/api/entities/VCLDidJwkDescriptor.js +14 -0
- package/dist/api/entities/VCLDidJwkDescriptor.js.map +1 -0
- package/dist/api/entities/VCLExchange.d.ts +13 -0
- package/dist/api/entities/VCLExchange.js +30 -0
- package/dist/api/entities/VCLExchange.js.map +1 -0
- package/dist/api/entities/VCLExchangeDescriptor.d.ts +11 -0
- package/dist/api/entities/VCLExchangeDescriptor.js +20 -0
- package/dist/api/entities/VCLExchangeDescriptor.js.map +1 -0
- package/dist/api/entities/VCLFinalizeOffersDescriptor.d.ts +25 -0
- package/dist/api/entities/VCLFinalizeOffersDescriptor.js +54 -0
- package/dist/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
- package/dist/api/entities/VCLGenerateOffersDescriptor.d.ts +17 -0
- package/dist/api/entities/VCLGenerateOffersDescriptor.js +29 -0
- package/dist/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
- package/dist/api/entities/VCLIdentificationSubmission.d.ts +8 -0
- package/dist/api/entities/VCLIdentificationSubmission.js +15 -0
- package/dist/api/entities/VCLIdentificationSubmission.js.map +1 -0
- package/dist/api/entities/VCLIssuingType.d.ts +7 -0
- package/dist/api/entities/VCLIssuingType.js +24 -0
- package/dist/api/entities/VCLIssuingType.js.map +1 -0
- package/dist/api/entities/VCLJwt.d.ts +31 -0
- package/dist/api/entities/VCLJwt.js +112 -0
- package/dist/api/entities/VCLJwt.js.map +1 -0
- package/dist/api/entities/VCLJwtDescriptor.d.ts +8 -0
- package/dist/api/entities/VCLJwtDescriptor.js +13 -0
- package/dist/api/entities/VCLJwtDescriptor.js.map +1 -0
- package/dist/api/entities/VCLJwtVerifiableCredentials.d.ts +6 -0
- package/dist/api/entities/VCLJwtVerifiableCredentials.js +10 -0
- package/dist/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
- package/dist/api/entities/VCLOffer.d.ts +13 -0
- package/dist/api/entities/VCLOffer.js +38 -0
- package/dist/api/entities/VCLOffer.js.map +1 -0
- package/dist/api/entities/VCLOffers.d.ts +17 -0
- package/dist/api/entities/VCLOffers.js +36 -0
- package/dist/api/entities/VCLOffers.js.map +1 -0
- package/dist/api/entities/VCLOrganization.d.ts +12 -0
- package/dist/api/entities/VCLOrganization.js +42 -0
- package/dist/api/entities/VCLOrganization.js.map +1 -0
- package/dist/api/entities/VCLOrganizations.d.ts +6 -0
- package/dist/api/entities/VCLOrganizations.js +10 -0
- package/dist/api/entities/VCLOrganizations.js.map +1 -0
- package/dist/api/entities/VCLOrganizationsSearchDescriptor.d.ts +29 -0
- package/dist/api/entities/VCLOrganizationsSearchDescriptor.js +66 -0
- package/dist/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
- package/dist/api/entities/VCLPlace.d.ts +7 -0
- package/dist/api/entities/VCLPlace.js +11 -0
- package/dist/api/entities/VCLPlace.js.map +1 -0
- package/dist/api/entities/VCLPresentationRequest.d.ts +36 -0
- package/dist/api/entities/VCLPresentationRequest.js +57 -0
- package/dist/api/entities/VCLPresentationRequest.js.map +1 -0
- package/dist/api/entities/VCLPresentationRequestDescriptor.d.ts +18 -0
- package/dist/api/entities/VCLPresentationRequestDescriptor.js +32 -0
- package/dist/api/entities/VCLPresentationRequestDescriptor.js.map +1 -0
- package/dist/api/entities/VCLPresentationSubmission.d.ts +7 -0
- package/dist/api/entities/VCLPresentationSubmission.js +14 -0
- package/dist/api/entities/VCLPresentationSubmission.js.map +1 -0
- package/dist/api/entities/VCLPublicJwk.d.ts +17 -0
- package/dist/api/entities/VCLPublicJwk.js +27 -0
- package/dist/api/entities/VCLPublicJwk.js.map +1 -0
- package/dist/api/entities/VCLPushDelegate.d.ts +9 -0
- package/dist/api/entities/VCLPushDelegate.js +18 -0
- package/dist/api/entities/VCLPushDelegate.js.map +1 -0
- package/dist/api/entities/VCLRegion.d.ts +7 -0
- package/dist/api/entities/VCLRegion.js +15 -0
- package/dist/api/entities/VCLRegion.js.map +1 -0
- package/dist/api/entities/VCLRegions.d.ts +5 -0
- package/dist/api/entities/VCLRegions.js +9 -0
- package/dist/api/entities/VCLRegions.js.map +1 -0
- package/dist/api/entities/VCLService.d.ts +13 -0
- package/dist/api/entities/VCLService.js +17 -0
- package/dist/api/entities/VCLService.js.map +1 -0
- package/dist/api/entities/VCLServiceType.d.ts +14 -0
- package/dist/api/entities/VCLServiceType.js +49 -0
- package/dist/api/entities/VCLServiceType.js.map +1 -0
- package/dist/api/entities/VCLServiceTypes.d.ts +9 -0
- package/dist/api/entities/VCLServiceTypes.js +51 -0
- package/dist/api/entities/VCLServiceTypes.js.map +1 -0
- package/dist/api/entities/VCLSubmission.d.ts +42 -0
- package/dist/api/entities/VCLSubmission.js +81 -0
- package/dist/api/entities/VCLSubmission.js.map +1 -0
- package/dist/api/entities/VCLSubmissionResult.d.ts +13 -0
- package/dist/api/entities/VCLSubmissionResult.js +16 -0
- package/dist/api/entities/VCLSubmissionResult.js.map +1 -0
- package/dist/api/entities/VCLToken.d.ts +9 -0
- package/dist/api/entities/VCLToken.js +25 -0
- package/dist/api/entities/VCLToken.js.map +1 -0
- package/dist/api/entities/VCLVerifiableCredential.d.ts +7 -0
- package/dist/api/entities/VCLVerifiableCredential.js +13 -0
- package/dist/api/entities/VCLVerifiableCredential.js.map +1 -0
- package/dist/api/entities/VCLVerifiedProfile.d.ts +17 -0
- package/dist/api/entities/VCLVerifiedProfile.js +37 -0
- package/dist/api/entities/VCLVerifiedProfile.js.map +1 -0
- package/dist/api/entities/VCLVerifiedProfileDescriptor.d.ts +4 -0
- package/dist/api/entities/VCLVerifiedProfileDescriptor.js +9 -0
- package/dist/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
- package/dist/api/entities/error/VCLError.d.ts +20 -0
- package/dist/api/entities/error/VCLError.js +69 -0
- package/dist/api/entities/error/VCLError.js.map +1 -0
- package/dist/api/entities/error/VCLErrorCode.d.ts +16 -0
- package/dist/api/entities/error/VCLErrorCode.js +20 -0
- package/dist/api/entities/error/VCLErrorCode.js.map +1 -0
- package/dist/api/entities/error/VCLStatusCode.d.ts +6 -0
- package/dist/api/entities/error/VCLStatusCode.js +10 -0
- package/dist/api/entities/error/VCLStatusCode.js.map +1 -0
- package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts +9 -0
- package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js +12 -0
- package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
- package/dist/api/entities/initialization/VCLInitializationDescriptor.d.ts +12 -0
- package/dist/api/entities/initialization/VCLInitializationDescriptor.js +19 -0
- package/dist/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
- package/dist/api/entities/initialization/VCLLogService.d.ts +10 -0
- package/dist/api/entities/initialization/VCLLogService.js +3 -0
- package/dist/api/entities/initialization/VCLLogService.js.map +1 -0
- package/dist/api/jwt/VCLJwtSignService.d.ts +8 -0
- package/dist/api/jwt/VCLJwtSignService.js +3 -0
- package/dist/api/jwt/VCLJwtSignService.js.map +1 -0
- package/dist/api/jwt/VCLJwtVerifyService.d.ts +7 -0
- package/dist/api/jwt/VCLJwtVerifyService.js +3 -0
- package/dist/api/jwt/VCLJwtVerifyService.js.map +1 -0
- package/dist/api/keys/VCLKeyService.d.ts +5 -0
- package/dist/api/keys/VCLKeyService.js +3 -0
- package/dist/api/keys/VCLKeyService.js.map +1 -0
- package/dist/impl/GlobalConfig.d.ts +18 -0
- package/dist/impl/GlobalConfig.js +50 -0
- package/dist/impl/GlobalConfig.js.map +1 -0
- package/dist/impl/VCLImpl.d.ts +89 -0
- package/dist/impl/VCLImpl.js +291 -0
- package/dist/impl/VCLImpl.js.map +1 -0
- package/dist/impl/VclBlocksProvider.d.ts +36 -0
- package/dist/impl/VclBlocksProvider.js +98 -0
- package/dist/impl/VclBlocksProvider.js.map +1 -0
- package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.d.ts +1 -0
- package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js +3 -0
- package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js.map +1 -0
- package/dist/impl/data/infrastructure/network/HttpMethod.d.ts +4 -0
- package/dist/impl/data/infrastructure/network/HttpMethod.js +9 -0
- package/dist/impl/data/infrastructure/network/HttpMethod.js.map +1 -0
- package/dist/impl/data/infrastructure/network/NetworkServiceImpl.d.ts +8 -0
- package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js +65 -0
- package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js.map +1 -0
- package/dist/impl/data/infrastructure/network/Request.d.ts +16 -0
- package/dist/impl/data/infrastructure/network/Request.js +24 -0
- package/dist/impl/data/infrastructure/network/Request.js.map +1 -0
- package/dist/impl/data/infrastructure/network/Response.d.ts +5 -0
- package/dist/impl/data/infrastructure/network/Response.js +10 -0
- package/dist/impl/data/infrastructure/network/Response.js.map +1 -0
- package/dist/impl/data/models/CountriesModelImpl.d.ts +11 -0
- package/dist/impl/data/models/CountriesModelImpl.js +24 -0
- package/dist/impl/data/models/CountriesModelImpl.js.map +1 -0
- package/dist/impl/data/models/CredentialTypeSchemasModelImpl.d.ts +11 -0
- package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js +25 -0
- package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js.map +1 -0
- package/dist/impl/data/models/CredentialTypesModelImpl.d.ts +11 -0
- package/dist/impl/data/models/CredentialTypesModelImpl.js +24 -0
- package/dist/impl/data/models/CredentialTypesModelImpl.js.map +1 -0
- package/dist/impl/data/repositories/AuthTokenRepositoryImpl.d.ts +11 -0
- package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js +63 -0
- package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CountriesRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/CountriesRepositoryImpl.js +90 -0
- package/dist/impl/data/repositories/CountriesRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js +42 -0
- package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js +75 -0
- package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js +79 -0
- package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.d.ts +12 -0
- package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js +125 -0
- package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js +41 -0
- package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.d.ts +11 -0
- package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js +47 -0
- package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js +42 -0
- package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.d.ts +3 -0
- package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js +10 -0
- package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/JwtServiceRepositoryImpl.d.ts +17 -0
- package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js +38 -0
- package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/KeyServiceRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js +23 -0
- package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/OrganizationsRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js +78 -0
- package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js +41 -0
- package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js +72 -0
- package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/ResolveKidRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js +69 -0
- package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/SubmissionRepositoryImpl.d.ts +17 -0
- package/dist/impl/data/repositories/SubmissionRepositoryImpl.js +54 -0
- package/dist/impl/data/repositories/SubmissionRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/Urls.d.ts +24 -0
- package/dist/impl/data/repositories/Urls.js +64 -0
- package/dist/impl/data/repositories/Urls.js.map +1 -0
- package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js +70 -0
- package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js.map +1 -0
- package/dist/impl/data/usecases/AuthTokenUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CountriesModelUseCaseImpl.d.ts +8 -0
- package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.d.ts +23 -0
- package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js +71 -0
- package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.d.ts +10 -0
- package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js +51 -0
- package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.d.ts +10 -0
- package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.d.ts +8 -0
- package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.d.ts +24 -0
- package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js +72 -0
- package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.d.ts +13 -0
- package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js +47 -0
- package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.d.ts +3 -0
- package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js +10 -0
- package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/JwtServiceUseCaseImpl.d.ts +14 -0
- package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js +37 -0
- package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/KeyServiceUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/OrganizationsUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.d.ts +20 -0
- package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js +57 -0
- package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.d.ts +3 -0
- package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js +10 -0
- package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/SubmissionUseCaseImpl.d.ts +13 -0
- package/dist/impl/data/usecases/SubmissionUseCaseImpl.js +35 -0
- package/dist/impl/data/usecases/SubmissionUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.d.ts +8 -0
- package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialDidVerifierImpl.d.ts +8 -0
- package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js +48 -0
- package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.d.ts +6 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js +20 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.d.ts +11 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js +41 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.d.ts +8 -0
- package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js +43 -0
- package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.d.ts +11 -0
- package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js +56 -0
- package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.d.ts +11 -0
- package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js +56 -0
- package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.d.ts +8 -0
- package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js +43 -0
- package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/VerificationUtils.d.ts +4 -0
- package/dist/impl/data/verifiers/VerificationUtils.js +28 -0
- package/dist/impl/data/verifiers/VerificationUtils.js.map +1 -0
- package/dist/impl/data/verifiers/index.d.ts +8 -0
- package/dist/impl/data/verifiers/index.js +21 -0
- package/dist/impl/data/verifiers/index.js.map +1 -0
- package/dist/impl/domain/infrastructure/db/SecretStoreService.d.ts +7 -0
- package/dist/impl/domain/infrastructure/db/SecretStoreService.js +3 -0
- package/dist/impl/domain/infrastructure/db/SecretStoreService.js.map +1 -0
- package/dist/impl/domain/infrastructure/network/NetworkService.d.ts +6 -0
- package/dist/impl/domain/infrastructure/network/NetworkService.js +3 -0
- package/dist/impl/domain/infrastructure/network/NetworkService.js.map +1 -0
- package/dist/impl/domain/models/CountriesModel.d.ts +5 -0
- package/dist/impl/domain/models/CountriesModel.js +3 -0
- package/dist/impl/domain/models/CountriesModel.js.map +1 -0
- package/dist/impl/domain/models/CredentialTypeSchemasModel.d.ts +5 -0
- package/dist/impl/domain/models/CredentialTypeSchemasModel.js +3 -0
- package/dist/impl/domain/models/CredentialTypeSchemasModel.js.map +1 -0
- package/dist/impl/domain/models/CredentialTypesModel.d.ts +5 -0
- package/dist/impl/domain/models/CredentialTypesModel.js +3 -0
- package/dist/impl/domain/models/CredentialTypesModel.js.map +1 -0
- package/dist/impl/domain/models/IdentificationModel.d.ts +8 -0
- package/dist/impl/domain/models/IdentificationModel.js +3 -0
- package/dist/impl/domain/models/IdentificationModel.js.map +1 -0
- package/dist/impl/domain/models/Initializable.d.ts +4 -0
- package/dist/impl/domain/models/Initializable.js +3 -0
- package/dist/impl/domain/models/Initializable.js.map +1 -0
- package/dist/impl/domain/models/Model.d.ts +4 -0
- package/dist/impl/domain/models/Model.js +3 -0
- package/dist/impl/domain/models/Model.js.map +1 -0
- package/dist/impl/domain/repositories/AuthTokenRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/AuthTokenRepository.js +3 -0
- package/dist/impl/domain/repositories/AuthTokenRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CountriesRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CountriesRepository.js +3 -0
- package/dist/impl/domain/repositories/CountriesRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialManifestRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CredentialManifestRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialManifestRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialTypesRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CredentialTypesRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialTypesRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.d.ts +6 -0
- package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js.map +1 -0
- package/dist/impl/domain/repositories/ExchangeProgressRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/ExchangeProgressRepository.js +3 -0
- package/dist/impl/domain/repositories/ExchangeProgressRepository.js.map +1 -0
- package/dist/impl/domain/repositories/FinalizeOffersRepository.d.ts +7 -0
- package/dist/impl/domain/repositories/FinalizeOffersRepository.js +3 -0
- package/dist/impl/domain/repositories/FinalizeOffersRepository.js.map +1 -0
- package/dist/impl/domain/repositories/GenerateOffersRepository.d.ts +6 -0
- package/dist/impl/domain/repositories/GenerateOffersRepository.js +3 -0
- package/dist/impl/domain/repositories/GenerateOffersRepository.js.map +1 -0
- package/dist/impl/domain/repositories/IdentificationSubmissionRepository.d.ts +3 -0
- package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js +3 -0
- package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js.map +1 -0
- package/dist/impl/domain/repositories/JwtServiceRepository.d.ts +11 -0
- package/dist/impl/domain/repositories/JwtServiceRepository.js +3 -0
- package/dist/impl/domain/repositories/JwtServiceRepository.js.map +1 -0
- package/dist/impl/domain/repositories/KeyServiceRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/KeyServiceRepository.js +3 -0
- package/dist/impl/domain/repositories/KeyServiceRepository.js.map +1 -0
- package/dist/impl/domain/repositories/OrganizationsRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/OrganizationsRepository.js +3 -0
- package/dist/impl/domain/repositories/OrganizationsRepository.js.map +1 -0
- package/dist/impl/domain/repositories/PresentationRequestRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/PresentationRequestRepository.js +3 -0
- package/dist/impl/domain/repositories/PresentationRequestRepository.js.map +1 -0
- package/dist/impl/domain/repositories/ResolveDidDocumentRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js +3 -0
- package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js.map +1 -0
- package/dist/impl/domain/repositories/ResolveKidRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/ResolveKidRepository.js +3 -0
- package/dist/impl/domain/repositories/ResolveKidRepository.js.map +1 -0
- package/dist/impl/domain/repositories/SubmissionRepository.d.ts +8 -0
- package/dist/impl/domain/repositories/SubmissionRepository.js +3 -0
- package/dist/impl/domain/repositories/SubmissionRepository.js.map +1 -0
- package/dist/impl/domain/repositories/VerifiedProfileRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/VerifiedProfileRepository.js +3 -0
- package/dist/impl/domain/repositories/VerifiedProfileRepository.js.map +1 -0
- package/dist/impl/domain/usecases/AuthTokenUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/AuthTokenUseCase.js +3 -0
- package/dist/impl/domain/usecases/AuthTokenUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CountriesModelUseCase.d.ts +4 -0
- package/dist/impl/domain/usecases/CountriesModelUseCase.js +3 -0
- package/dist/impl/domain/usecases/CountriesModelUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialManifestUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/CredentialManifestUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialManifestUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.d.ts +4 -0
- package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialTypesUseCase.d.ts +4 -0
- package/dist/impl/domain/usecases/CredentialTypesUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialTypesUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/ExchangeProgressUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/ExchangeProgressUseCase.js +3 -0
- package/dist/impl/domain/usecases/ExchangeProgressUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/FinalizeOffersUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/FinalizeOffersUseCase.js +3 -0
- package/dist/impl/domain/usecases/FinalizeOffersUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/GenerateOffersUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/GenerateOffersUseCase.js +3 -0
- package/dist/impl/domain/usecases/GenerateOffersUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.d.ts +3 -0
- package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js +3 -0
- package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/JwtServiceUseCase.d.ts +10 -0
- package/dist/impl/domain/usecases/JwtServiceUseCase.js +3 -0
- package/dist/impl/domain/usecases/JwtServiceUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/KeyServiceUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/KeyServiceUseCase.js +3 -0
- package/dist/impl/domain/usecases/KeyServiceUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/OrganizationsUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/OrganizationsUseCase.js +3 -0
- package/dist/impl/domain/usecases/OrganizationsUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/PresentationRequestUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/PresentationRequestUseCase.js +3 -0
- package/dist/impl/domain/usecases/PresentationRequestUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/PresentationSubmissionUseCase.d.ts +3 -0
- package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js +3 -0
- package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/SubmissionUseCase.d.ts +7 -0
- package/dist/impl/domain/usecases/SubmissionUseCase.js +3 -0
- package/dist/impl/domain/usecases/SubmissionUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/VerifiedProfileUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/VerifiedProfileUseCase.js +3 -0
- package/dist/impl/domain/usecases/VerifiedProfileUseCase.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialDidVerifier.d.ts +6 -0
- package/dist/impl/domain/verifiers/CredentialDidVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialDidVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialIssuerVerifier.d.ts +5 -0
- package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.d.ts +6 -0
- package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.d.ts +5 -0
- package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.d.ts +5 -0
- package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.d.ts +6 -0
- package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/utils/HelperFunctions.d.ts +8 -0
- package/dist/impl/utils/HelperFunctions.js +62 -0
- package/dist/impl/utils/HelperFunctions.js.map +1 -0
- package/dist/impl/utils/InitializationWatcher.d.ts +10 -0
- package/dist/impl/utils/InitializationWatcher.js +24 -0
- package/dist/impl/utils/InitializationWatcher.js.map +1 -0
- package/dist/impl/utils/LoadJsonldContext.d.ts +6 -0
- package/dist/impl/utils/LoadJsonldContext.js +68 -0
- package/dist/impl/utils/LoadJsonldContext.js.map +1 -0
- package/dist/impl/utils/ProfileServiceTypeVerifier.d.ts +12 -0
- package/dist/impl/utils/ProfileServiceTypeVerifier.js +57 -0
- package/dist/impl/utils/ProfileServiceTypeVerifier.js.map +1 -0
- package/dist/impl/utils/VCLLog.d.ts +9 -0
- package/dist/impl/utils/VCLLog.js +29 -0
- package/dist/impl/utils/VCLLog.js.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +158 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const VCLService_1 = __importDefault(require("./VCLService"));
|
|
7
|
+
const VCLLog_1 = __importDefault(require("../../impl/utils/VCLLog"));
|
|
8
|
+
class VCLOrganization {
|
|
9
|
+
get serviceCredentialAgentIssuers() {
|
|
10
|
+
return this.parseServiceCredentialAgentIssuers();
|
|
11
|
+
}
|
|
12
|
+
constructor(payload) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
this.payload = payload;
|
|
15
|
+
this.did =
|
|
16
|
+
(_b = (_a = this.payload[VCLOrganization.KeyAlsoKnownAs]) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : this.payload[VCLOrganization.KeyId];
|
|
17
|
+
}
|
|
18
|
+
parseServiceCredentialAgentIssuers() {
|
|
19
|
+
var _a;
|
|
20
|
+
const result = [];
|
|
21
|
+
try {
|
|
22
|
+
const serviceJsonArr = ((_a = this.payload[VCLOrganization.KeyService]) !== null && _a !== void 0 ? _a : []);
|
|
23
|
+
if (serviceJsonArr) {
|
|
24
|
+
for (const i in serviceJsonArr) {
|
|
25
|
+
const it = serviceJsonArr[i];
|
|
26
|
+
if (it) {
|
|
27
|
+
result.push(new VCLService_1.default(it));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
VCLLog_1.default.error(error, 'Error while parsing service credential agent issuers');
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
VCLOrganization.KeyService = 'service';
|
|
39
|
+
VCLOrganization.KeyAlsoKnownAs = 'knownAs';
|
|
40
|
+
VCLOrganization.KeyId = 'id';
|
|
41
|
+
exports.default = VCLOrganization;
|
|
42
|
+
//# sourceMappingURL=VCLOrganization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLOrganization.js","sourceRoot":"","sources":["../../../src/api/entities/VCLOrganization.ts"],"names":[],"mappings":";;;;;AACA,8DAAsC;AACtC,qEAA6C;AAE7C,MAAqB,eAAe;IAGhC,IAAI,6BAA6B;QAC7B,OAAO,IAAI,CAAC,kCAAkC,EAAE,CAAC;IACrD,CAAC;IAED,YAA4B,OAAwB;;QAAxB,YAAO,GAAP,OAAO,CAAiB;QAChD,IAAI,CAAC,GAAG;YACJ,MAAA,MAAA,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC,0CAAG,CAAC,CAAC,mCACjD,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAEO,kCAAkC;;QACtC,MAAM,MAAM,GAAiB,EAAE,CAAC;QAEhC,IAAI,CAAC;YACD,MAAM,cAAc,GAAG,CAAC,MAAA,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,mCAC5D,EAAE,CAAsB,CAAC;YAC7B,IAAI,cAAc,EAAE,CAAC;gBAEjB,KAAK,MAAM,CAAC,IAAI,cAAc,EAAE,CAAC;oBAC7B,MAAM,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;oBAE7B,IAAI,EAAE,EAAE,CAAC;wBACL,MAAM,CAAC,IAAI,CAAC,IAAI,oBAAU,CAAC,EAAE,CAAC,CAAC,CAAC;oBACpC,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,gBAAM,CAAC,KAAK,CACR,KAAK,EACL,sDAAsD,CACzD,CAAC;QACN,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;;AAEe,0BAAU,GAAG,SAAS,CAAC;AAEvB,8BAAc,GAAG,SAAS,CAAC;AAE3B,qBAAK,GAAG,IAAI,CAAC;kBA3CZ,eAAe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLOrganizations {
|
|
4
|
+
constructor(all) {
|
|
5
|
+
this.all = all;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
VCLOrganizations.KeyResult = 'result';
|
|
9
|
+
exports.default = VCLOrganizations;
|
|
10
|
+
//# sourceMappingURL=VCLOrganizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLOrganizations.js","sourceRoot":"","sources":["../../../src/api/entities/VCLOrganizations.ts"],"names":[],"mappings":";;AASA,MAAqB,gBAAgB;IACjC,YAA4B,GAAsB;QAAtB,QAAG,GAAH,GAAG,CAAmB;IAAG,CAAC;;AAEtC,0BAAS,GAAG,QAAQ,CAAC;kBAHpB,gBAAgB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLServiceTypes from './VCLServiceTypes';
|
|
3
|
+
export declare class VCLOrganizationsSearchDescriptor {
|
|
4
|
+
readonly filter: Nullish<VCLFilter>;
|
|
5
|
+
readonly page: Nullish<VCLPage>;
|
|
6
|
+
readonly sort: Nullish<string[][]>;
|
|
7
|
+
readonly query: Nullish<string>;
|
|
8
|
+
constructor(filter?: Nullish<VCLFilter>, page?: Nullish<VCLPage>, sort?: Nullish<string[][]>, query?: Nullish<string>);
|
|
9
|
+
readonly queryParams: Nullish<string>;
|
|
10
|
+
private generateQueryParams;
|
|
11
|
+
static readonly KeyQueryQ = "q";
|
|
12
|
+
static readonly KeySort = "sort";
|
|
13
|
+
static readonly KeyFilterDid = "filter.did";
|
|
14
|
+
static readonly KeyFilterServiceTypes = "filter.serviceTypes";
|
|
15
|
+
static readonly KeyFilterCredentialTypes = "filter.credentialTypes";
|
|
16
|
+
static readonly KeyPageSkip = "page.skip";
|
|
17
|
+
static readonly KeyPageSize = "page.size";
|
|
18
|
+
}
|
|
19
|
+
export declare class VCLFilter {
|
|
20
|
+
readonly did: Nullish<string>;
|
|
21
|
+
readonly serviceTypes: Nullish<VCLServiceTypes>;
|
|
22
|
+
readonly credentialTypes: Nullish<string[]>;
|
|
23
|
+
constructor(did?: Nullish<string>, serviceTypes?: Nullish<VCLServiceTypes>, credentialTypes?: Nullish<string[]>);
|
|
24
|
+
}
|
|
25
|
+
export declare class VCLPage {
|
|
26
|
+
readonly size: Nullish<string>;
|
|
27
|
+
readonly skip: Nullish<string>;
|
|
28
|
+
constructor(size?: Nullish<string>, skip?: Nullish<string>);
|
|
29
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VCLPage = exports.VCLFilter = exports.VCLOrganizationsSearchDescriptor = void 0;
|
|
4
|
+
class VCLOrganizationsSearchDescriptor {
|
|
5
|
+
constructor(filter = null, page = null, sort = null, query = null) {
|
|
6
|
+
this.filter = filter;
|
|
7
|
+
this.page = page;
|
|
8
|
+
this.sort = sort;
|
|
9
|
+
this.query = query;
|
|
10
|
+
this.queryParams = this.generateQueryParams();
|
|
11
|
+
}
|
|
12
|
+
generateQueryParams() {
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14
|
+
const pFilterDid = ((_a = this.filter) === null || _a === void 0 ? void 0 : _a.did) &&
|
|
15
|
+
`${VCLOrganizationsSearchDescriptor.KeyFilterDid}=${this.filter.did}`;
|
|
16
|
+
const pFilterServiceTypes = ((_c = (_b = this.filter) === null || _b === void 0 ? void 0 : _b.serviceTypes) === null || _c === void 0 ? void 0 : _c.all) &&
|
|
17
|
+
`${VCLOrganizationsSearchDescriptor.KeyFilterServiceTypes}=${this.filter.serviceTypes.all
|
|
18
|
+
.map((i) => encodeURIComponent(i))
|
|
19
|
+
.join(',')}`;
|
|
20
|
+
const pFilterCredentialTypes = ((_d = this.filter) === null || _d === void 0 ? void 0 : _d.credentialTypes) &&
|
|
21
|
+
`${VCLOrganizationsSearchDescriptor.KeyFilterCredentialTypes}=${this.filter.credentialTypes
|
|
22
|
+
.map((credentialType) => encodeURIComponent(credentialType))
|
|
23
|
+
.join(',')}`;
|
|
24
|
+
const pSort = (_f = (_e = this.sort) === null || _e === void 0 ? void 0 : _e.map((list, index) => `${VCLOrganizationsSearchDescriptor.KeySort}[${index}]=${list.join(',')}`)) === null || _f === void 0 ? void 0 : _f.join('&');
|
|
25
|
+
const pPageSkip = ((_g = this.page) === null || _g === void 0 ? void 0 : _g.skip) &&
|
|
26
|
+
`${VCLOrganizationsSearchDescriptor.KeyPageSkip}=${encodeURIComponent(this.page.skip)}`;
|
|
27
|
+
const pPageSize = ((_h = this.page) === null || _h === void 0 ? void 0 : _h.size) &&
|
|
28
|
+
`${VCLOrganizationsSearchDescriptor.KeyPageSize}=${encodeURIComponent(this.page.size)}`;
|
|
29
|
+
const pQuery = this.query &&
|
|
30
|
+
`${VCLOrganizationsSearchDescriptor.KeyQueryQ}=${encodeURIComponent(this.query)}`;
|
|
31
|
+
const qParams = [
|
|
32
|
+
pFilterDid,
|
|
33
|
+
pFilterServiceTypes,
|
|
34
|
+
pFilterCredentialTypes,
|
|
35
|
+
pSort,
|
|
36
|
+
pPageSkip,
|
|
37
|
+
pPageSize,
|
|
38
|
+
pQuery,
|
|
39
|
+
].filter((qParam) => !!qParam);
|
|
40
|
+
return qParams.length === 0 ? null : qParams.join('&');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.VCLOrganizationsSearchDescriptor = VCLOrganizationsSearchDescriptor;
|
|
44
|
+
VCLOrganizationsSearchDescriptor.KeyQueryQ = 'q';
|
|
45
|
+
VCLOrganizationsSearchDescriptor.KeySort = 'sort';
|
|
46
|
+
VCLOrganizationsSearchDescriptor.KeyFilterDid = 'filter.did';
|
|
47
|
+
VCLOrganizationsSearchDescriptor.KeyFilterServiceTypes = 'filter.serviceTypes';
|
|
48
|
+
VCLOrganizationsSearchDescriptor.KeyFilterCredentialTypes = 'filter.credentialTypes';
|
|
49
|
+
VCLOrganizationsSearchDescriptor.KeyPageSkip = 'page.skip';
|
|
50
|
+
VCLOrganizationsSearchDescriptor.KeyPageSize = 'page.size';
|
|
51
|
+
class VCLFilter {
|
|
52
|
+
constructor(did = null, serviceTypes = null, credentialTypes = null) {
|
|
53
|
+
this.did = did;
|
|
54
|
+
this.serviceTypes = serviceTypes;
|
|
55
|
+
this.credentialTypes = credentialTypes;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.VCLFilter = VCLFilter;
|
|
59
|
+
class VCLPage {
|
|
60
|
+
constructor(size = null, skip = null) {
|
|
61
|
+
this.size = size;
|
|
62
|
+
this.skip = skip;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.VCLPage = VCLPage;
|
|
66
|
+
//# sourceMappingURL=VCLOrganizationsSearchDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLOrganizationsSearchDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLOrganizationsSearchDescriptor.ts"],"names":[],"mappings":";;;AAIA,MAAa,gCAAgC;IACzC,YACoB,SAA6B,IAAI,EACjC,OAAyB,IAAI,EAI7B,OAA4B,IAAI,EAMhC,QAAyB,IAAI;QAX7B,WAAM,GAAN,MAAM,CAA2B;QACjC,SAAI,GAAJ,IAAI,CAAyB;QAI7B,SAAI,GAAJ,IAAI,CAA4B;QAMhC,UAAK,GAAL,KAAK,CAAwB;QAGjC,gBAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAFtD,CAAC;IAKI,mBAAmB;;QACvB,MAAM,UAAU,GACZ,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,GAAG;YAChB,GAAG,gCAAgC,CAAC,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAE1E,MAAM,mBAAmB,GACrB,CAAA,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,YAAY,0CAAE,GAAG;YAC9B,GACI,gCAAgC,CAAC,qBACrC,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG;iBAC3B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;iBACjC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,MAAM,sBAAsB,GACxB,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,eAAe;YAC5B,GACI,gCAAgC,CAAC,wBACrC,IAAI,IAAI,CAAC,MAAM,CAAC,eAAe;iBAC1B,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;iBAC3D,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,MAAA,MAAA,IAAI,CAAC,IAAI,0CACjB,GAAG,CACD,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACZ,GACI,gCAAgC,CAAC,OACrC,IAAI,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CACrC,0CACC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,MAAM,SAAS,GACX,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,IAAI;YACf,GACI,gCAAgC,CAAC,WACrC,IAAI,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,MAAM,SAAS,GACX,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,IAAI;YACf,GACI,gCAAgC,CAAC,WACrC,IAAI,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAE7C,MAAM,MAAM,GACR,IAAI,CAAC,KAAK;YACV,GAAG,gCAAgC,CAAC,SAAS,IAAI,kBAAkB,CAC/D,IAAI,CAAC,KAAK,CACb,EAAE,CAAC;QAER,MAAM,OAAO,GAAG;YACZ,UAAU;YACV,mBAAmB;YACnB,sBAAsB;YACtB,KAAK;YACL,SAAS;YACT,SAAS;YACT,MAAM;SACT,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QAC/B,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3D,CAAC;;AAzEL,4EAwFC;AAbmB,0CAAS,GAAG,GAAG,AAAN,CAAO;AAEhB,wCAAO,GAAG,MAAM,AAAT,CAAU;AAEjB,6CAAY,GAAG,YAAY,AAAf,CAAgB;AAE5B,sDAAqB,GAAG,qBAAqB,AAAxB,CAAyB;AAE9C,yDAAwB,GAAG,wBAAwB,AAA3B,CAA4B;AAEpD,4CAAW,GAAG,WAAW,AAAd,CAAe;AAE1B,4CAAW,GAAG,WAAW,AAAd,CAAe;AAG9C,MAAa,SAAS;IAClB,YAIoB,MAAuB,IAAI,EAI3B,eAAyC,IAAI,EAI7C,kBAAqC,IAAI;QARzC,QAAG,GAAH,GAAG,CAAwB;QAI3B,iBAAY,GAAZ,YAAY,CAAiC;QAI7C,oBAAe,GAAf,eAAe,CAA0B;IAC1D,CAAC;CACP;AAfD,8BAeC;AAED,MAAa,OAAO;IAChB,YAIoB,OAAwB,IAAI,EAI5B,OAAwB,IAAI;QAJ5B,SAAI,GAAJ,IAAI,CAAwB;QAI5B,SAAI,GAAJ,IAAI,CAAwB;IAC7C,CAAC;CACP;AAXD,0BAWC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLPlace {
|
|
4
|
+
constructor(payload, code, name) {
|
|
5
|
+
this.payload = payload;
|
|
6
|
+
this.code = code;
|
|
7
|
+
this.name = name;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = VCLPlace;
|
|
11
|
+
//# sourceMappingURL=VCLPlace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLPlace.js","sourceRoot":"","sources":["../../../src/api/entities/VCLPlace.ts"],"names":[],"mappings":";;AAEA,MAAqB,QAAQ;IACzB,YACoB,OAAwB,EACxB,IAAY,EACZ,IAAY;QAFZ,YAAO,GAAP,OAAO,CAAiB;QACxB,SAAI,GAAJ,IAAI,CAAQ;QACZ,SAAI,GAAJ,IAAI,CAAQ;IAC7B,CAAC;CACP;AAND,2BAMC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLDeepLink from './VCLDeepLink';
|
|
3
|
+
import VCLJwt from './VCLJwt';
|
|
4
|
+
import VCLPushDelegate from './VCLPushDelegate';
|
|
5
|
+
import VCLVerifiedProfile from './VCLVerifiedProfile';
|
|
6
|
+
import VCLDidJwk from './VCLDidJwk';
|
|
7
|
+
import VCLToken from './VCLToken';
|
|
8
|
+
export default class VCLPresentationRequest {
|
|
9
|
+
readonly jwt: VCLJwt;
|
|
10
|
+
readonly verifiedProfile: VCLVerifiedProfile;
|
|
11
|
+
readonly deepLink: VCLDeepLink;
|
|
12
|
+
readonly pushDelegate: Nullish<VCLPushDelegate>;
|
|
13
|
+
readonly didJwk: VCLDidJwk;
|
|
14
|
+
readonly remoteCryptoServicesToken: Nullish<VCLToken>;
|
|
15
|
+
readonly feed: boolean;
|
|
16
|
+
readonly vendorOriginContext: Nullish<string>;
|
|
17
|
+
constructor(jwt: VCLJwt, verifiedProfile: VCLVerifiedProfile, deepLink: VCLDeepLink, pushDelegate: Nullish<VCLPushDelegate>, didJwk: VCLDidJwk, remoteCryptoServicesToken?: Nullish<VCLToken>);
|
|
18
|
+
get iss(): any;
|
|
19
|
+
get exchangeId(): any;
|
|
20
|
+
get presentationDefinitionId(): any;
|
|
21
|
+
getVendorOriginContext(): Nullish<string>;
|
|
22
|
+
get progressUri(): any;
|
|
23
|
+
get submitPresentationUri(): any;
|
|
24
|
+
get authTokenUri(): any;
|
|
25
|
+
getFeed(): boolean;
|
|
26
|
+
static readonly KeyId = "id";
|
|
27
|
+
static readonly KeyIss = "iss";
|
|
28
|
+
static readonly KeyExchangeId = "exchange_id";
|
|
29
|
+
static readonly KeyPresentationRequest = "presentation_request";
|
|
30
|
+
static readonly KeyPresentationDefinition = "presentation_definition";
|
|
31
|
+
static readonly KeyMetadata = "metadata";
|
|
32
|
+
static readonly KeyProgressUri = "progress_uri";
|
|
33
|
+
static readonly KeySubmitPresentationUri = "submit_presentation_uri";
|
|
34
|
+
static readonly KeyFeed = "feed";
|
|
35
|
+
static readonly KeyAuthTokenUri = "auth_token_uri";
|
|
36
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLPresentationRequest {
|
|
4
|
+
constructor(jwt, verifiedProfile, deepLink, pushDelegate = null, didJwk, remoteCryptoServicesToken = null) {
|
|
5
|
+
this.jwt = jwt;
|
|
6
|
+
this.verifiedProfile = verifiedProfile;
|
|
7
|
+
this.deepLink = deepLink;
|
|
8
|
+
this.pushDelegate = pushDelegate;
|
|
9
|
+
this.didJwk = didJwk;
|
|
10
|
+
this.remoteCryptoServicesToken = remoteCryptoServicesToken;
|
|
11
|
+
this.feed = this.getFeed();
|
|
12
|
+
this.vendorOriginContext = this.getVendorOriginContext();
|
|
13
|
+
}
|
|
14
|
+
get iss() {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
return ((_b = (_a = this.jwt.payload[VCLPresentationRequest.KeyIss]) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '');
|
|
17
|
+
}
|
|
18
|
+
get exchangeId() {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
return ((_b = (_a = this.jwt.payload[VCLPresentationRequest.KeyExchangeId]) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '');
|
|
21
|
+
}
|
|
22
|
+
get presentationDefinitionId() {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
return ((_b = ((_a = this.jwt.payload[VCLPresentationRequest.KeyPresentationDefinition]) !== null && _a !== void 0 ? _a : {})[VCLPresentationRequest.KeyId]) !== null && _b !== void 0 ? _b : '');
|
|
25
|
+
}
|
|
26
|
+
getVendorOriginContext() {
|
|
27
|
+
return this.deepLink.vendorOriginContext;
|
|
28
|
+
}
|
|
29
|
+
get progressUri() {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
return ((_b = (_a = this.jwt.payload[VCLPresentationRequest.KeyMetadata]) === null || _a === void 0 ? void 0 : _a[VCLPresentationRequest.KeyProgressUri]) !== null && _b !== void 0 ? _b : '');
|
|
32
|
+
}
|
|
33
|
+
get submitPresentationUri() {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
return ((_b = (_a = this.jwt.payload[VCLPresentationRequest.KeyMetadata]) === null || _a === void 0 ? void 0 : _a[VCLPresentationRequest.KeySubmitPresentationUri]) !== null && _b !== void 0 ? _b : '');
|
|
36
|
+
}
|
|
37
|
+
get authTokenUri() {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return ((_b = (_a = this.jwt.payload[VCLPresentationRequest.KeyMetadata]) === null || _a === void 0 ? void 0 : _a[VCLPresentationRequest.KeyAuthTokenUri]) !== null && _b !== void 0 ? _b : '');
|
|
40
|
+
}
|
|
41
|
+
getFeed() {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
return ((_b = (_a = this.jwt.payload[VCLPresentationRequest.KeyMetadata]) === null || _a === void 0 ? void 0 : _a[VCLPresentationRequest.KeyFeed]) !== null && _b !== void 0 ? _b : false);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
VCLPresentationRequest.KeyId = 'id';
|
|
47
|
+
VCLPresentationRequest.KeyIss = 'iss';
|
|
48
|
+
VCLPresentationRequest.KeyExchangeId = 'exchange_id';
|
|
49
|
+
VCLPresentationRequest.KeyPresentationRequest = 'presentation_request';
|
|
50
|
+
VCLPresentationRequest.KeyPresentationDefinition = 'presentation_definition';
|
|
51
|
+
VCLPresentationRequest.KeyMetadata = 'metadata';
|
|
52
|
+
VCLPresentationRequest.KeyProgressUri = 'progress_uri';
|
|
53
|
+
VCLPresentationRequest.KeySubmitPresentationUri = 'submit_presentation_uri';
|
|
54
|
+
VCLPresentationRequest.KeyFeed = 'feed';
|
|
55
|
+
VCLPresentationRequest.KeyAuthTokenUri = 'auth_token_uri';
|
|
56
|
+
exports.default = VCLPresentationRequest;
|
|
57
|
+
//# sourceMappingURL=VCLPresentationRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLPresentationRequest.js","sourceRoot":"","sources":["../../../src/api/entities/VCLPresentationRequest.ts"],"names":[],"mappings":";;AAQA,MAAqB,sBAAsB;IAKvC,YACoB,GAAW,EACX,eAAmC,EACnC,QAAqB,EACrB,eAAyC,IAAI,EAC7C,MAAiB,EACjB,4BAA+C,IAAI;QALnD,QAAG,GAAH,GAAG,CAAQ;QACX,oBAAe,GAAf,eAAe,CAAoB;QACnC,aAAQ,GAAR,QAAQ,CAAa;QACrB,iBAAY,GAAZ,YAAY,CAAiC;QAC7C,WAAM,GAAN,MAAM,CAAW;QACjB,8BAAyB,GAAzB,yBAAyB,CAA0B;QAEnE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;IAC7D,CAAC;IAED,IAAI,GAAG;;QACH,OAAO,CACH,MAAA,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,CAAC,0CAAE,QAAQ,EAAE,mCAAI,EAAE,CACpE,CAAC;IACN,CAAC;IAED,IAAI,UAAU;;QACV,OAAO,CACH,MAAA,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CACZ,sBAAsB,CAAC,aAAa,CACvC,0CAAE,QAAQ,EAAE,mCAAI,EAAE,CACtB,CAAC;IACN,CAAC;IAED,IAAI,wBAAwB;;QACxB,OAAO,CACH,MAAA,CAAC,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CACb,sBAAsB,CAAC,yBAAyB,CACnD,mCAAI,EAAE,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,mCAAI,EAAE,CAC/C,CAAC;IACN,CAAC;IAED,sBAAsB;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC7C,CAAC;IAED,IAAI,WAAW;;QACX,OAAO,CACH,MAAA,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,0CAChD,sBAAsB,CAAC,cAAc,CACxC,mCAAI,EAAE,CACV,CAAC;IACN,CAAC;IAED,IAAI,qBAAqB;;QACrB,OAAO,CACH,MAAA,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,0CAChD,sBAAsB,CAAC,wBAAwB,CAClD,mCAAI,EAAE,CACV,CAAC;IACN,CAAC;IAED,IAAI,YAAY;;QACZ,OAAO,CACH,MAAA,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,0CAChD,sBAAsB,CAAC,eAAe,CACzC,mCAAI,EAAE,CACV,CAAC;IAEN,CAAC;IAED,OAAO;;QACH,OAAO,CACH,MAAA,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,0CAChD,sBAAsB,CAAC,OAAO,CACjC,mCAAI,KAAK,CACb,CAAC;IACN,CAAC;;AAEe,4BAAK,GAAG,IAAI,CAAC;AAEb,6BAAM,GAAG,KAAK,CAAC;AAEf,oCAAa,GAAG,aAAa,CAAC;AAE9B,6CAAsB,GAAG,sBAAsB,CAAC;AAEhD,gDAAyB,GAAG,yBAAyB,CAAC;AAEtD,kCAAW,GAAG,UAAU,CAAC;AAEzB,qCAAc,GAAG,cAAc,CAAC;AAEhC,+CAAwB,GAAG,yBAAyB,CAAC;AAErD,8BAAO,GAAG,MAAM,CAAC;AAEjB,sCAAe,GAAG,gBAAgB,CAAC;kBA9FlC,sBAAsB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLDeepLink from './VCLDeepLink';
|
|
3
|
+
import VCLPushDelegate from './VCLPushDelegate';
|
|
4
|
+
import VCLToken from './VCLToken';
|
|
5
|
+
import VCLDidJwk from './VCLDidJwk';
|
|
6
|
+
export default class VCLPresentationRequestDescriptor {
|
|
7
|
+
readonly deepLink: VCLDeepLink;
|
|
8
|
+
readonly pushDelegate: Nullish<VCLPushDelegate>;
|
|
9
|
+
readonly didJwk: VCLDidJwk;
|
|
10
|
+
readonly remoteCryptoServicesToken: Nullish<VCLToken>;
|
|
11
|
+
readonly did: Nullish<string>;
|
|
12
|
+
constructor(deepLink: VCLDeepLink, pushDelegate: Nullish<VCLPushDelegate>, didJwk: VCLDidJwk, remoteCryptoServicesToken?: Nullish<VCLToken>);
|
|
13
|
+
get endpoint(): Nullish<string>;
|
|
14
|
+
generateQueryParams(): string | null;
|
|
15
|
+
static readonly KeyId = "id";
|
|
16
|
+
static readonly KeyPushDelegatePushUrl = "push_delegate.push_url";
|
|
17
|
+
static readonly KeyPushDelegatePushToken = "push_delegate.push_token";
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const HelperFunctions_1 = require("../../impl/utils/HelperFunctions");
|
|
4
|
+
class VCLPresentationRequestDescriptor {
|
|
5
|
+
constructor(deepLink, pushDelegate = null, didJwk, remoteCryptoServicesToken = null) {
|
|
6
|
+
this.deepLink = deepLink;
|
|
7
|
+
this.pushDelegate = pushDelegate;
|
|
8
|
+
this.didJwk = didJwk;
|
|
9
|
+
this.remoteCryptoServicesToken = remoteCryptoServicesToken;
|
|
10
|
+
this.did = this.deepLink.did;
|
|
11
|
+
}
|
|
12
|
+
get endpoint() {
|
|
13
|
+
const queryParams = this.generateQueryParams();
|
|
14
|
+
if (queryParams) {
|
|
15
|
+
return (0, HelperFunctions_1.appendQueryParamsToString)(this.deepLink.requestUri, queryParams);
|
|
16
|
+
}
|
|
17
|
+
return this.deepLink.requestUri;
|
|
18
|
+
}
|
|
19
|
+
generateQueryParams() {
|
|
20
|
+
let pPushDelegate;
|
|
21
|
+
if (this.pushDelegate) {
|
|
22
|
+
pPushDelegate = `${VCLPresentationRequestDescriptor.KeyPushDelegatePushUrl}=${encodeURIComponent(this.pushDelegate.pushUrl)}&${VCLPresentationRequestDescriptor.KeyPushDelegatePushToken}=${this.pushDelegate.pushToken}`;
|
|
23
|
+
}
|
|
24
|
+
const qParams = [pPushDelegate].filter((it) => it && it.length);
|
|
25
|
+
return qParams.length ? qParams.join('&') : null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
VCLPresentationRequestDescriptor.KeyId = 'id';
|
|
29
|
+
VCLPresentationRequestDescriptor.KeyPushDelegatePushUrl = 'push_delegate.push_url';
|
|
30
|
+
VCLPresentationRequestDescriptor.KeyPushDelegatePushToken = 'push_delegate.push_token';
|
|
31
|
+
exports.default = VCLPresentationRequestDescriptor;
|
|
32
|
+
//# sourceMappingURL=VCLPresentationRequestDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLPresentationRequestDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLPresentationRequestDescriptor.ts"],"names":[],"mappings":";;AAKA,sEAA6E;AAE7E,MAAqB,gCAAgC;IAGjD,YACoB,QAAqB,EACrB,eAAyC,IAAI,EAC7C,MAAiB,EACjB,4BAA+C,IAAI;QAHnD,aAAQ,GAAR,QAAQ,CAAa;QACrB,iBAAY,GAAZ,YAAY,CAAiC;QAC7C,WAAM,GAAN,MAAM,CAAW;QACjB,8BAAyB,GAAzB,yBAAyB,CAA0B;QAEnE,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;IACjC,CAAC;IAED,IAAI,QAAQ;QACR,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC/C,IAAI,WAAW,EAAE,CAAC;YACd,OAAO,IAAA,2CAAyB,EAC5B,IAAI,CAAC,QAAQ,CAAC,UAAU,EACxB,WAAW,CACd,CAAC;QACN,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;IACpC,CAAC;IAED,mBAAmB;QACf,IAAI,aAA8B,CAAC;QACnC,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,aAAa,GAAG,GACZ,gCAAgC,CAAC,sBACrC,IAAI,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAC7C,gCAAgC,CAAC,wBACrC,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;QACtC,CAAC;QAED,MAAM,OAAO,GAAG,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;QAChE,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,CAAC;;AAEe,sCAAK,GAAG,IAAI,CAAC;AAEb,uDAAsB,GAAG,wBAAwB,CAAC;AAElD,yDAAwB,GAAG,0BAA0B,CAAC;kBAzCrD,gCAAgC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import VCLPresentationRequest from './VCLPresentationRequest';
|
|
2
|
+
import VCLSubmission from './VCLSubmission';
|
|
3
|
+
import VCLVerifiableCredential from './VCLVerifiableCredential';
|
|
4
|
+
export default class VCLPresentationSubmission extends VCLSubmission {
|
|
5
|
+
readonly progressUri: string;
|
|
6
|
+
constructor(presentationRequest: VCLPresentationRequest, verifiableCredentials: VCLVerifiableCredential[]);
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const VCLSubmission_1 = __importDefault(require("./VCLSubmission"));
|
|
7
|
+
class VCLPresentationSubmission extends VCLSubmission_1.default {
|
|
8
|
+
constructor(presentationRequest, verifiableCredentials) {
|
|
9
|
+
super(presentationRequest.submitPresentationUri, presentationRequest.exchangeId, presentationRequest.presentationDefinitionId, verifiableCredentials, presentationRequest.pushDelegate, presentationRequest.vendorOriginContext, presentationRequest.didJwk, presentationRequest.remoteCryptoServicesToken);
|
|
10
|
+
this.progressUri = presentationRequest.progressUri;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = VCLPresentationSubmission;
|
|
14
|
+
//# sourceMappingURL=VCLPresentationSubmission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLPresentationSubmission.js","sourceRoot":"","sources":["../../../src/api/entities/VCLPresentationSubmission.ts"],"names":[],"mappings":";;;;;AACA,oEAA4C;AAG5C,MAAqB,yBAA0B,SAAQ,uBAAa;IAGhE,YACI,mBAA2C,EAC3C,qBAAgD;QAEhD,KAAK,CACD,mBAAmB,CAAC,qBAAqB,EACzC,mBAAmB,CAAC,UAAU,EAC9B,mBAAmB,CAAC,wBAAwB,EAC5C,qBAAqB,EACrB,mBAAmB,CAAC,YAAY,EAChC,mBAAmB,CAAC,mBAAmB,EACvC,mBAAmB,CAAC,MAAM,EAC1B,mBAAmB,CAAC,yBAAyB,CAChD,CAAC;QACF,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC;IACvD,CAAC;CACJ;AAnBD,4CAmBC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
declare enum Format {
|
|
3
|
+
jwk = "jwk",
|
|
4
|
+
hex = "hex",
|
|
5
|
+
pem = "pem",
|
|
6
|
+
base58 = "base58"
|
|
7
|
+
}
|
|
8
|
+
export default class VCLPublicJwk {
|
|
9
|
+
valueStr: string;
|
|
10
|
+
valueJson: Dictionary<any>;
|
|
11
|
+
private constructor();
|
|
12
|
+
static readonly Format: typeof Format;
|
|
13
|
+
get curve(): string;
|
|
14
|
+
static fromString(valueStr: string): VCLPublicJwk;
|
|
15
|
+
static fromJSON(valueJson: Dictionary<any>): VCLPublicJwk;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var Format;
|
|
4
|
+
(function (Format) {
|
|
5
|
+
Format["jwk"] = "jwk";
|
|
6
|
+
Format["hex"] = "hex";
|
|
7
|
+
Format["pem"] = "pem";
|
|
8
|
+
Format["base58"] = "base58";
|
|
9
|
+
})(Format || (Format = {}));
|
|
10
|
+
class VCLPublicJwk {
|
|
11
|
+
constructor(valueStr, valueJson) {
|
|
12
|
+
this.valueStr = valueStr;
|
|
13
|
+
this.valueJson = valueJson;
|
|
14
|
+
}
|
|
15
|
+
get curve() {
|
|
16
|
+
return this.valueJson.crv;
|
|
17
|
+
}
|
|
18
|
+
static fromString(valueStr) {
|
|
19
|
+
return new VCLPublicJwk(valueStr, JSON.parse(valueStr));
|
|
20
|
+
}
|
|
21
|
+
static fromJSON(valueJson) {
|
|
22
|
+
return new VCLPublicJwk(JSON.stringify(valueJson), valueJson);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
VCLPublicJwk.Format = Format;
|
|
26
|
+
exports.default = VCLPublicJwk;
|
|
27
|
+
//# sourceMappingURL=VCLPublicJwk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLPublicJwk.js","sourceRoot":"","sources":["../../../src/api/entities/VCLPublicJwk.ts"],"names":[],"mappings":";;AAGA,IAAK,MAKJ;AALD,WAAK,MAAM;IACP,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,2BAAiB,CAAA;AACrB,CAAC,EALI,MAAM,KAAN,MAAM,QAKV;AAED,MAAqB,YAAY;IAC7B,YACW,QAAgB,EAChB,SAA0B;QAD1B,aAAQ,GAAR,QAAQ,CAAQ;QAChB,cAAS,GAAT,SAAS,CAAiB;IAClC,CAAC;IAIJ,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,QAAgB;QACrC,OAAO,IAAI,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,SAA0B;QAC7C,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;;AAZe,mBAAM,GAAG,MAAM,CAAC;kBANf,YAAY"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
export default class VCLPushDelegate {
|
|
3
|
+
readonly pushUrl: string;
|
|
4
|
+
readonly pushToken: string;
|
|
5
|
+
constructor(pushUrl: string, pushToken: string);
|
|
6
|
+
static readonly KeyPushUrl = "pushUrl";
|
|
7
|
+
static readonly KeyPushToken = "pushToken";
|
|
8
|
+
toJsonObject(): Dictionary<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLPushDelegate {
|
|
4
|
+
constructor(pushUrl, pushToken) {
|
|
5
|
+
this.pushUrl = pushUrl;
|
|
6
|
+
this.pushToken = pushToken;
|
|
7
|
+
}
|
|
8
|
+
toJsonObject() {
|
|
9
|
+
return {
|
|
10
|
+
[VCLPushDelegate.KeyPushUrl]: this.pushUrl,
|
|
11
|
+
[VCLPushDelegate.KeyPushToken]: this.pushToken,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
VCLPushDelegate.KeyPushUrl = 'pushUrl';
|
|
16
|
+
VCLPushDelegate.KeyPushToken = 'pushToken';
|
|
17
|
+
exports.default = VCLPushDelegate;
|
|
18
|
+
//# sourceMappingURL=VCLPushDelegate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLPushDelegate.js","sourceRoot":"","sources":["../../../src/api/entities/VCLPushDelegate.ts"],"names":[],"mappings":";;AAEA,MAAqB,eAAe;IAChC,YACoB,OAAe,EACf,SAAiB;QADjB,YAAO,GAAP,OAAO,CAAQ;QACf,cAAS,GAAT,SAAS,CAAQ;IAClC,CAAC;IAMJ,YAAY;QACR,OAAO;YACH,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO;YAC1C,CAAC,eAAe,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,SAAS;SACjD,CAAC;IACN,CAAC;;AATe,0BAAU,GAAG,SAAS,CAAC;AAEvB,4BAAY,GAAG,WAAW,CAAC;kBAR1B,eAAe"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
import VCLPlace from './VCLPlace';
|
|
3
|
+
export default class VCLRegion extends VCLPlace {
|
|
4
|
+
constructor(payload: Dictionary<any>, code: string, name: string);
|
|
5
|
+
static readonly KeyCode = "code";
|
|
6
|
+
static readonly KeyName = "name";
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const VCLPlace_1 = __importDefault(require("./VCLPlace"));
|
|
7
|
+
class VCLRegion extends VCLPlace_1.default {
|
|
8
|
+
constructor(payload, code, name) {
|
|
9
|
+
super(payload, code, name);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
VCLRegion.KeyCode = 'code';
|
|
13
|
+
VCLRegion.KeyName = 'name';
|
|
14
|
+
exports.default = VCLRegion;
|
|
15
|
+
//# sourceMappingURL=VCLRegion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLRegion.js","sourceRoot":"","sources":["../../../src/api/entities/VCLRegion.ts"],"names":[],"mappings":";;;;;AACA,0DAAkC;AAElC,MAAqB,SAAU,SAAQ,kBAAQ;IAC3C,YAAY,OAAwB,EAAE,IAAY,EAAE,IAAY;QAC5D,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;;AAEe,iBAAO,GAAG,MAAM,CAAC;AAEjB,iBAAO,GAAG,MAAM,CAAC;kBAPhB,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLRegions.js","sourceRoot":"","sources":["../../../src/api/entities/VCLRegions.ts"],"names":[],"mappings":";;AAEA,MAAqB,UAAU;IAC3B,YAA4B,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;IAAG,CAAC;CACnD;AAFD,6BAEC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
export default class VCLService {
|
|
3
|
+
payload: Dictionary<any>;
|
|
4
|
+
id: string;
|
|
5
|
+
type: string;
|
|
6
|
+
serviceEndpoint: string;
|
|
7
|
+
credentialTypes: string;
|
|
8
|
+
constructor(payload: Dictionary<any>);
|
|
9
|
+
static readonly KeyId = "id";
|
|
10
|
+
static readonly KeyType = "type";
|
|
11
|
+
static readonly KeyCredentialTypes = "credentialTypes";
|
|
12
|
+
static readonly KeyServiceEndpoint = "serviceEndpoint";
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLService {
|
|
4
|
+
constructor(payload) {
|
|
5
|
+
this.payload = payload;
|
|
6
|
+
this.id = payload[VCLService.KeyId];
|
|
7
|
+
this.type = payload[VCLService.KeyType];
|
|
8
|
+
this.serviceEndpoint = payload[VCLService.KeyServiceEndpoint];
|
|
9
|
+
this.credentialTypes = payload[VCLService.KeyCredentialTypes];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
VCLService.KeyId = 'id';
|
|
13
|
+
VCLService.KeyType = 'type';
|
|
14
|
+
VCLService.KeyCredentialTypes = 'credentialTypes';
|
|
15
|
+
VCLService.KeyServiceEndpoint = 'serviceEndpoint';
|
|
16
|
+
exports.default = VCLService;
|
|
17
|
+
//# sourceMappingURL=VCLService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLService.js","sourceRoot":"","sources":["../../../src/api/entities/VCLService.ts"],"names":[],"mappings":";;AAEA,MAAqB,UAAU;IAS3B,YAAmB,OAAwB;QAAxB,YAAO,GAAP,OAAO,CAAiB;QACvC,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;QAC9D,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAClE,CAAC;;AAEe,gBAAK,GAAG,IAAI,CAAC;AAEb,kBAAO,GAAG,MAAM,CAAC;AAEjB,6BAAkB,GAAG,iBAAiB,CAAC;AAEvC,6BAAkB,GAAG,iBAAiB,CAAC;kBAtBtC,UAAU"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare enum VCLServiceType {
|
|
2
|
+
Inspector = "Inspector",
|
|
3
|
+
Issuer = "Issuer",
|
|
4
|
+
NotaryIssuer = "NotaryIssuer",
|
|
5
|
+
CareerIssuer = "CareerIssuer",
|
|
6
|
+
IdentityIssuer = "IdentityIssuer",
|
|
7
|
+
IdDocumentIssuer = "IdDocumentIssuer",
|
|
8
|
+
NotaryIdDocumentIssuer = "NotaryIdDocumentIssuer",
|
|
9
|
+
ContactIssuer = "ContactIssuer",
|
|
10
|
+
NotaryContactIssuer = "NotaryContactIssuer",
|
|
11
|
+
Undefined = "Undefined"
|
|
12
|
+
}
|
|
13
|
+
export default VCLServiceType;
|
|
14
|
+
export declare const serviceTypeFromString: (value: string) => VCLServiceType;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceTypeFromString = void 0;
|
|
4
|
+
var VCLServiceType;
|
|
5
|
+
(function (VCLServiceType) {
|
|
6
|
+
VCLServiceType["Inspector"] = "Inspector";
|
|
7
|
+
VCLServiceType["Issuer"] = "Issuer";
|
|
8
|
+
VCLServiceType["NotaryIssuer"] = "NotaryIssuer";
|
|
9
|
+
VCLServiceType["CareerIssuer"] = "CareerIssuer";
|
|
10
|
+
VCLServiceType["IdentityIssuer"] = "IdentityIssuer";
|
|
11
|
+
VCLServiceType["IdDocumentIssuer"] = "IdDocumentIssuer";
|
|
12
|
+
VCLServiceType["NotaryIdDocumentIssuer"] = "NotaryIdDocumentIssuer";
|
|
13
|
+
VCLServiceType["ContactIssuer"] = "ContactIssuer";
|
|
14
|
+
VCLServiceType["NotaryContactIssuer"] = "NotaryContactIssuer";
|
|
15
|
+
VCLServiceType["Undefined"] = "Undefined";
|
|
16
|
+
})(VCLServiceType || (VCLServiceType = {}));
|
|
17
|
+
exports.default = VCLServiceType;
|
|
18
|
+
const serviceTypeFromString = (value) => {
|
|
19
|
+
if (value.includes(VCLServiceType.Inspector.toString())) {
|
|
20
|
+
return VCLServiceType.Inspector;
|
|
21
|
+
}
|
|
22
|
+
if (value.includes(VCLServiceType.NotaryIssuer.toString())) {
|
|
23
|
+
return VCLServiceType.NotaryIssuer;
|
|
24
|
+
}
|
|
25
|
+
if (value.includes(VCLServiceType.IdentityIssuer.toString())) {
|
|
26
|
+
return VCLServiceType.IdentityIssuer;
|
|
27
|
+
}
|
|
28
|
+
if (value.includes(VCLServiceType.CareerIssuer.toString())) {
|
|
29
|
+
return VCLServiceType.CareerIssuer;
|
|
30
|
+
}
|
|
31
|
+
if (value.includes(VCLServiceType.NotaryIdDocumentIssuer.toString())) {
|
|
32
|
+
return VCLServiceType.NotaryIdDocumentIssuer;
|
|
33
|
+
}
|
|
34
|
+
if (value.includes(VCLServiceType.IdDocumentIssuer.toString())) {
|
|
35
|
+
return VCLServiceType.IdDocumentIssuer;
|
|
36
|
+
}
|
|
37
|
+
if (value.includes(VCLServiceType.NotaryContactIssuer.toString())) {
|
|
38
|
+
return VCLServiceType.NotaryContactIssuer;
|
|
39
|
+
}
|
|
40
|
+
if (value.includes(VCLServiceType.ContactIssuer.toString())) {
|
|
41
|
+
return VCLServiceType.ContactIssuer;
|
|
42
|
+
}
|
|
43
|
+
if (value.includes(VCLServiceType.Issuer.toString())) {
|
|
44
|
+
return VCLServiceType.Issuer;
|
|
45
|
+
}
|
|
46
|
+
return VCLServiceType.Undefined;
|
|
47
|
+
};
|
|
48
|
+
exports.serviceTypeFromString = serviceTypeFromString;
|
|
49
|
+
//# sourceMappingURL=VCLServiceType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLServiceType.js","sourceRoot":"","sources":["../../../src/api/entities/VCLServiceType.ts"],"names":[],"mappings":";;;AACA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACf,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAE7B,mDAAiC,CAAA;IACjC,uDAAqC,CAAA;IACrC,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,6DAA2C,CAAA;IAC3C,yCAAuB,CAAA;AAC3B,CAAC,EAZI,cAAc,KAAd,cAAc,QAYlB;AACD,kBAAe,cAAc,CAAC;AAGvB,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAkB,EAAE;IACnE,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QACtD,OAAO,cAAc,CAAC,SAAS,CAAC;IACpC,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QACzD,OAAO,cAAc,CAAC,YAAY,CAAC;IACvC,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QAC3D,OAAO,cAAc,CAAC,cAAc,CAAC;IACzC,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QACzD,OAAO,cAAc,CAAC,YAAY,CAAC;IACvC,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,sBAAsB,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QACnE,OAAO,cAAc,CAAC,sBAAsB,CAAC;IACjD,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QAC7D,OAAO,cAAc,CAAC,gBAAgB,CAAC;IAC3C,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QAChE,OAAO,cAAc,CAAC,mBAAmB,CAAC;IAC9C,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QAC1D,OAAO,cAAc,CAAC,aAAa,CAAC;IACxC,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;QACnD,OAAO,cAAc,CAAC,MAAM,CAAC;IACjC,CAAC;IACD,OAAO,cAAc,CAAC,SAAS,CAAC;AACpC,CAAC,CAAC;AA7BW,QAAA,qBAAqB,yBA6BhC"}
|