@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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const VCLCredentialManifest_1 = __importDefault(require("../../../api/entities/VCLCredentialManifest"));
|
|
16
|
+
const VCLError_1 = __importDefault(require("../../../api/entities/error/VCLError"));
|
|
17
|
+
const Urls_1 = require("./Urls");
|
|
18
|
+
const HttpMethod_1 = require("../infrastructure/network/HttpMethod");
|
|
19
|
+
class CredentialManifestRepositoryImpl {
|
|
20
|
+
constructor(networkService) {
|
|
21
|
+
this.networkService = networkService;
|
|
22
|
+
}
|
|
23
|
+
getCredentialManifest(credentialManifestDescriptor) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const { endpoint } = credentialManifestDescriptor;
|
|
26
|
+
if (!endpoint) {
|
|
27
|
+
throw new VCLError_1.default('credentialManifestDescriptor.endpoint = null');
|
|
28
|
+
}
|
|
29
|
+
const credentialManifestResponse = yield this.networkService.sendRequest({
|
|
30
|
+
endpoint,
|
|
31
|
+
method: HttpMethod_1.HttpMethod.GET,
|
|
32
|
+
body: null,
|
|
33
|
+
headers: {
|
|
34
|
+
[Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return credentialManifestResponse.payload[VCLCredentialManifest_1.default.KeyIssuingRequest];
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.default = CredentialManifestRepositoryImpl;
|
|
42
|
+
//# sourceMappingURL=CredentialManifestRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialManifestRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/CredentialManifestRepositoryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wGAAgF;AAEhF,oFAA4D;AAG5D,iCAAkD;AAClD,qEAAkE;AAElE,MAAqB,gCAAgC;IAGjD,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAEzD,qBAAqB,CACvB,4BAA6D;;YAE7D,MAAM,EAAE,QAAQ,EAAE,GAAG,4BAA4B,CAAC;YAClD,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACZ,MAAM,IAAI,kBAAQ,CAAC,8CAA8C,CAAC,CAAC;YACvE,CAAC;YAED,MAAM,0BAA0B,GAC5B,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;gBAClC,QAAQ;gBACR,MAAM,EAAE,uBAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,IAAI;gBACV,OAAO,EAAE;oBACL,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;iBACvC;aACJ,CAAC,CAAC;YACP,OAAO,0BAA0B,CAAC,OAAO,CACrC,+BAAqB,CAAC,iBAAiB,CAC1C,CAAC;QACN,CAAC;KAAA;CACJ;AA3BD,mDA2BC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import VCLCredentialTypeSchema from '../../../api/entities/VCLCredentialTypeSchema';
|
|
2
|
+
import NetworkService from '../../domain/infrastructure/network/NetworkService';
|
|
3
|
+
import CredentialTypeSchemaRepository from '../../domain/repositories/CredentialTypeSchemaRepository';
|
|
4
|
+
export default class CredentialTypeSchemaRepositoryImpl implements CredentialTypeSchemaRepository {
|
|
5
|
+
private networkService;
|
|
6
|
+
constructor(networkService: NetworkService);
|
|
7
|
+
getCredentialTypeSchema(schemaName: string): Promise<VCLCredentialTypeSchema>;
|
|
8
|
+
private fetchCredentialTypeSchema;
|
|
9
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
const VCLCredentialTypeSchema_1 = __importDefault(require("../../../api/entities/VCLCredentialTypeSchema"));
|
|
49
|
+
const Urls_1 = __importStar(require("./Urls"));
|
|
50
|
+
const HttpMethod_1 = require("../infrastructure/network/HttpMethod");
|
|
51
|
+
class CredentialTypeSchemaRepositoryImpl {
|
|
52
|
+
constructor(networkService) {
|
|
53
|
+
this.networkService = networkService;
|
|
54
|
+
}
|
|
55
|
+
getCredentialTypeSchema(schemaName) {
|
|
56
|
+
return this.fetchCredentialTypeSchema(Urls_1.default.CredentialTypeSchemas + schemaName);
|
|
57
|
+
}
|
|
58
|
+
fetchCredentialTypeSchema(endpoint) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const credentialTypeSchemaResponse = yield this.networkService.sendRequest({
|
|
61
|
+
endpoint,
|
|
62
|
+
method: HttpMethod_1.HttpMethod.GET,
|
|
63
|
+
body: null,
|
|
64
|
+
useCaches: true,
|
|
65
|
+
headers: {
|
|
66
|
+
[Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
|
|
67
|
+
},
|
|
68
|
+
contentType: null,
|
|
69
|
+
});
|
|
70
|
+
return new VCLCredentialTypeSchema_1.default(credentialTypeSchemaResponse.payload);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.default = CredentialTypeSchemaRepositoryImpl;
|
|
75
|
+
//# sourceMappingURL=CredentialTypeSchemaRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialTypeSchemaRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4GAAoF;AAGpF,+CAAwD;AACxD,qEAAkE;AAElE,MAAqB,kCAAkC;IAGnD,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAEtD,uBAAuB,CACnB,UAAkB;QAElB,OAAO,IAAI,CAAC,yBAAyB,CACjC,cAAI,CAAC,qBAAqB,GAAG,UAAU,CAC1C,CAAC;IACN,CAAC;IAEa,yBAAyB,CACnC,QAAgB;;YAEhB,MAAM,4BAA4B,GAC9B,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;gBAClC,QAAQ;gBACR,MAAM,EAAE,uBAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,IAAI;gBACV,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE;oBACL,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;iBACvC;gBACD,WAAW,EAAE,IAAI;aACpB,CAAC,CAAC;YACP,OAAO,IAAI,iCAAuB,CAC9B,4BAA4B,CAAC,OAAO,CACvC,CAAC;QACN,CAAC;KAAA;CACJ;AAhCD,qDAgCC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import VCLCredentialTypes from '../../../api/entities/VCLCredentialTypes';
|
|
2
|
+
import NetworkService from '../../domain/infrastructure/network/NetworkService';
|
|
3
|
+
import CredentialTypesRepository from '../../domain/repositories/CredentialTypesRepository';
|
|
4
|
+
export default class CredentialTypesRepositoryImpl implements CredentialTypesRepository {
|
|
5
|
+
private readonly networkService;
|
|
6
|
+
constructor(networkService: NetworkService);
|
|
7
|
+
getCredentialTypes(): Promise<VCLCredentialTypes>;
|
|
8
|
+
fetchCredentialTypes(endpoint: string): Promise<VCLCredentialTypes>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
const VCLCredentialTypes_1 = __importDefault(require("../../../api/entities/VCLCredentialTypes"));
|
|
49
|
+
const Request_1 = __importDefault(require("../infrastructure/network/Request"));
|
|
50
|
+
const Urls_1 = __importStar(require("./Urls"));
|
|
51
|
+
const HttpMethod_1 = require("../infrastructure/network/HttpMethod");
|
|
52
|
+
class CredentialTypesRepositoryImpl {
|
|
53
|
+
constructor(networkService) {
|
|
54
|
+
this.networkService = networkService;
|
|
55
|
+
}
|
|
56
|
+
getCredentialTypes() {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const endpoint = Urls_1.default.CredentialTypes;
|
|
59
|
+
return this.fetchCredentialTypes(endpoint);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
fetchCredentialTypes(endpoint) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const credentialTypesResponse = yield this.networkService.sendRequest({
|
|
65
|
+
endpoint,
|
|
66
|
+
contentType: Request_1.default.ContentTypeApplicationJson,
|
|
67
|
+
method: HttpMethod_1.HttpMethod.GET,
|
|
68
|
+
headers: {
|
|
69
|
+
[Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
|
|
70
|
+
},
|
|
71
|
+
useCaches: true,
|
|
72
|
+
body: null,
|
|
73
|
+
});
|
|
74
|
+
return VCLCredentialTypes_1.default.fromPayload(credentialTypesResponse.payload);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.default = CredentialTypesRepositoryImpl;
|
|
79
|
+
//# sourceMappingURL=CredentialTypesRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialTypesRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/CredentialTypesRepositoryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kGAA0E;AAG1E,gFAAwD;AACxD,+CAAwD;AACxD,qEAAkE;AAElE,MAAqB,6BAA6B;IAG9C,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAEzD,kBAAkB;;YACpB,MAAM,QAAQ,GAAG,cAAI,CAAC,eAAe,CAAC;YACtC,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAC/C,CAAC;KAAA;IAEK,oBAAoB,CAAC,QAAgB;;YACvC,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;gBAClE,QAAQ;gBACR,WAAW,EAAE,iBAAO,CAAC,0BAA0B;gBAC/C,MAAM,EAAE,uBAAU,CAAC,GAAG;gBACtB,OAAO,EAAE;oBACL,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;iBACvC;gBACD,SAAS,EAAE,IAAI;gBACf,IAAI,EAAE,IAAI;aACb,CAAC,CAAC;YACH,OAAO,4BAAkB,CAAC,WAAW,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;QAC3E,CAAC;KAAA;CACJ;AAxBD,gDAwBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import VCLCountries from '../../../api/entities/VCLCountries';
|
|
2
|
+
import VCLCredentialTypesUIFormSchema from '../../../api/entities/VCLCredentialTypesUIFormSchema';
|
|
3
|
+
import VCLCredentialTypesUIFormSchemaDescriptor from '../../../api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
|
|
4
|
+
import NetworkService from '../../domain/infrastructure/network/NetworkService';
|
|
5
|
+
import CredentialTypesUIFormSchemaRepository from '../../domain/repositories/CredentialTypesUIFormSchemaRepository';
|
|
6
|
+
export default class CredentialTypesUIFormSchemaRepositoryImpl implements CredentialTypesUIFormSchemaRepository {
|
|
7
|
+
private readonly networkService;
|
|
8
|
+
constructor(networkService: NetworkService);
|
|
9
|
+
getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor, countries: VCLCountries): Promise<VCLCredentialTypesUIFormSchema>;
|
|
10
|
+
private parseCredentialTypesUIFormSchema;
|
|
11
|
+
private updateAddressEnums;
|
|
12
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
const VCLCredentialTypesUIFormSchema_1 = __importDefault(require("../../../api/entities/VCLCredentialTypesUIFormSchema"));
|
|
49
|
+
const Request_1 = __importDefault(require("../infrastructure/network/Request"));
|
|
50
|
+
const Urls_1 = __importStar(require("./Urls"));
|
|
51
|
+
const HttpMethod_1 = require("../infrastructure/network/HttpMethod");
|
|
52
|
+
class CredentialTypesUIFormSchemaRepositoryImpl {
|
|
53
|
+
constructor(networkService) {
|
|
54
|
+
this.networkService = networkService;
|
|
55
|
+
}
|
|
56
|
+
getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor, countries) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const credentialTypesFormSchemaResponse = yield this.networkService.sendRequest({
|
|
59
|
+
endpoint: Urls_1.default.CredentialTypesFormSchema.replace(Urls_1.Params.CredentialType, credentialTypesUIFormSchemaDescriptor.credentialType),
|
|
60
|
+
method: HttpMethod_1.HttpMethod.GET,
|
|
61
|
+
contentType: Request_1.default.ContentTypeApplicationJson,
|
|
62
|
+
headers: {
|
|
63
|
+
[Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
|
|
64
|
+
},
|
|
65
|
+
useCaches: true,
|
|
66
|
+
body: null,
|
|
67
|
+
});
|
|
68
|
+
const country = countries.countryByCode(credentialTypesUIFormSchemaDescriptor.countryCode);
|
|
69
|
+
return new VCLCredentialTypesUIFormSchema_1.default(this.parseCredentialTypesUIFormSchema(countries, credentialTypesFormSchemaResponse === null || credentialTypesFormSchemaResponse === void 0 ? void 0 : credentialTypesFormSchemaResponse.payload, country === null || country === void 0 ? void 0 : country.regions));
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
parseCredentialTypesUIFormSchema(countries, formSchemaDict, regions) {
|
|
73
|
+
let formSchemaDictCP = JSON.parse(JSON.stringify(formSchemaDict));
|
|
74
|
+
for (const key of Object.keys(formSchemaDictCP)) {
|
|
75
|
+
const valueDict = formSchemaDictCP[key];
|
|
76
|
+
if (typeof valueDict === 'object') {
|
|
77
|
+
if (key === VCLCredentialTypesUIFormSchema_1.default.KeyAddressCountry) {
|
|
78
|
+
const allCountries = countries.all;
|
|
79
|
+
if (allCountries) {
|
|
80
|
+
formSchemaDictCP = this.updateAddressEnums(allCountries, key, valueDict, formSchemaDictCP);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
else if (key === VCLCredentialTypesUIFormSchema_1.default.KeyAddressRegion) {
|
|
84
|
+
const allRegions = regions === null || regions === void 0 ? void 0 : regions.all;
|
|
85
|
+
if (allRegions) {
|
|
86
|
+
formSchemaDictCP = this.updateAddressEnums(allRegions, key, valueDict, formSchemaDictCP);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
formSchemaDictCP[key] =
|
|
91
|
+
this.parseCredentialTypesUIFormSchema(countries, valueDict, regions);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return formSchemaDictCP;
|
|
96
|
+
}
|
|
97
|
+
updateAddressEnums(places, key, valueDict, formSchemaDict) {
|
|
98
|
+
const formSchemaDictCP = JSON.parse(JSON.stringify(formSchemaDict));
|
|
99
|
+
const valueDictHasKeyUiEnum = Object.keys(valueDict).includes(VCLCredentialTypesUIFormSchema_1.default.KeyUiEnum);
|
|
100
|
+
const valueDictHasKeyUiNames = Object.keys(valueDict).includes(VCLCredentialTypesUIFormSchema_1.default.KeyUiNames);
|
|
101
|
+
if (valueDictHasKeyUiEnum || valueDictHasKeyUiNames) {
|
|
102
|
+
const uiEnumArr = [];
|
|
103
|
+
const uiNamesArr = [];
|
|
104
|
+
places.forEach((place) => {
|
|
105
|
+
if (valueDictHasKeyUiEnum) {
|
|
106
|
+
uiEnumArr.push(place.code);
|
|
107
|
+
}
|
|
108
|
+
if (valueDictHasKeyUiNames) {
|
|
109
|
+
uiNamesArr.push(place.name);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
if (valueDictHasKeyUiEnum) {
|
|
113
|
+
valueDict[VCLCredentialTypesUIFormSchema_1.default.KeyUiEnum] = uiEnumArr;
|
|
114
|
+
}
|
|
115
|
+
if (valueDictHasKeyUiNames) {
|
|
116
|
+
valueDict[VCLCredentialTypesUIFormSchema_1.default.KeyUiNames] =
|
|
117
|
+
uiNamesArr;
|
|
118
|
+
}
|
|
119
|
+
formSchemaDictCP[key] = valueDict;
|
|
120
|
+
}
|
|
121
|
+
return formSchemaDictCP;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.default = CredentialTypesUIFormSchemaRepositoryImpl;
|
|
125
|
+
//# sourceMappingURL=CredentialTypesUIFormSchemaRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialTypesUIFormSchemaRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,0HAAkG;AAMlG,gFAAwD;AACxD,+CAAgE;AAChE,qEAAkE;AAElE,MAAqB,yCAAyC;IAG1D,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAEzD,8BAA8B,CAChC,qCAA+E,EAC/E,SAAuB;;YAEvB,MAAM,iCAAiC,GACnC,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;gBAClC,QAAQ,EAAE,cAAI,CAAC,yBAAyB,CAAC,OAAO,CAC5C,aAAM,CAAC,cAAc,EACrB,qCAAqC,CAAC,cAAc,CACvD;gBACD,MAAM,EAAE,uBAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,iBAAO,CAAC,0BAA0B;gBAC/C,OAAO,EAAE;oBACL,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;iBACvC;gBACD,SAAS,EAAE,IAAI;gBACf,IAAI,EAAE,IAAI;aACb,CAAC,CAAC;YAEP,MAAM,OAAO,GAAG,SAAS,CAAC,aAAa,CACnC,qCAAqC,CAAC,WAAW,CACpD,CAAC;YAEF,OAAO,IAAI,wCAA8B,CACrC,IAAI,CAAC,gCAAgC,CACjC,SAAS,EACT,iCAAiC,aAAjC,iCAAiC,uBAAjC,iCAAiC,CAAE,OAAO,EAC1C,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACnB,CACJ,CAAC;QACN,CAAC;KAAA;IAGO,gCAAgC,CACpC,SAAuB,EACvB,cAA+B,EAC/B,OAA4B;QAE5B,IAAI,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;QAClE,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAC9C,MAAM,SAAS,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACxC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;gBAEhC,IAAI,GAAG,KAAK,wCAA8B,CAAC,iBAAiB,EAAE,CAAC;oBAC3D,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC;oBAEnC,IAAI,YAAY,EAAE,CAAC;wBACf,gBAAgB,GAAG,IAAI,CAAC,kBAAkB,CACtC,YAAY,EACZ,GAAG,EACH,SAAS,EACT,gBAAgB,CACnB,CAAC;oBACN,CAAC;gBACL,CAAC;qBAAM,IACH,GAAG,KAAK,wCAA8B,CAAC,gBAAgB,EACzD,CAAC;oBACC,MAAM,UAAU,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC;oBAEhC,IAAI,UAAU,EAAE,CAAC;wBACb,gBAAgB,GAAG,IAAI,CAAC,kBAAkB,CACtC,UAAU,EACV,GAAG,EACH,SAAS,EACT,gBAAgB,CACnB,CAAC;oBACN,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,gBAAgB,CAAC,GAAG,CAAC;wBACjB,IAAI,CAAC,gCAAgC,CACjC,SAAS,EACT,SAAS,EACT,OAAO,CACV,CAAC;gBACV,CAAC;YACL,CAAC;QACL,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAEO,kBAAkB,CACtB,MAAkB,EAClB,GAAW,EACX,SAA0B,EAC1B,cAA+B;QAE/B,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;QACpE,MAAM,qBAAqB,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CACzD,wCAA8B,CAAC,SAAS,CAC3C,CAAC;QACF,MAAM,sBAAsB,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAC1D,wCAA8B,CAAC,UAAU,CAC5C,CAAC;QAEF,IAAI,qBAAqB,IAAI,sBAAsB,EAAE,CAAC;YAClD,MAAM,SAAS,GAAU,EAAE,CAAC;YAC5B,MAAM,UAAU,GAAU,EAAE,CAAC;YAC7B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;gBACrB,IAAI,qBAAqB,EAAE,CAAC;oBACxB,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC;gBACD,IAAI,sBAAsB,EAAE,CAAC;oBACzB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAChC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,IAAI,qBAAqB,EAAE,CAAC;gBACxB,SAAS,CAAC,wCAA8B,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;YACpE,CAAC;YACD,IAAI,sBAAsB,EAAE,CAAC;gBACzB,SAAS,CAAC,wCAA8B,CAAC,UAAU,CAAC;oBAChD,UAAU,CAAC;YACnB,CAAC;YACD,gBAAgB,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;QACtC,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;CACJ;AA1HD,4DA0HC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import VCLExchange from '../../../api/entities/VCLExchange';
|
|
2
|
+
import VCLExchangeDescriptor from '../../../api/entities/VCLExchangeDescriptor';
|
|
3
|
+
import NetworkService from '../../domain/infrastructure/network/NetworkService';
|
|
4
|
+
import ExchangeProgressRepository from '../../domain/repositories/ExchangeProgressRepository';
|
|
5
|
+
export default class ExchangeProgressRepositoryImpl implements ExchangeProgressRepository {
|
|
6
|
+
private networkService;
|
|
7
|
+
constructor(networkService: NetworkService);
|
|
8
|
+
getExchangeProgress(exchangeDescriptor: VCLExchangeDescriptor): Promise<VCLExchange>;
|
|
9
|
+
private parseExchange;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const VCLExchange_1 = __importDefault(require("../../../api/entities/VCLExchange"));
|
|
16
|
+
const VCLExchangeDescriptor_1 = __importDefault(require("../../../api/entities/VCLExchangeDescriptor"));
|
|
17
|
+
const Urls_1 = require("./Urls");
|
|
18
|
+
const HttpMethod_1 = require("../infrastructure/network/HttpMethod");
|
|
19
|
+
class ExchangeProgressRepositoryImpl {
|
|
20
|
+
constructor(networkService) {
|
|
21
|
+
this.networkService = networkService;
|
|
22
|
+
}
|
|
23
|
+
getExchangeProgress(exchangeDescriptor) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const exchangeProgressResponse = yield this.networkService.sendRequest({
|
|
26
|
+
method: HttpMethod_1.HttpMethod.GET,
|
|
27
|
+
endpoint: `${exchangeDescriptor.processUri}?${VCLExchangeDescriptor_1.default.KeyExchangeId}=${encodeURIComponent(exchangeDescriptor.exchangeId)}`,
|
|
28
|
+
headers: {
|
|
29
|
+
[Urls_1.HeaderKeys.Authorization]: `${Urls_1.HeaderValues.PrefixBearer} ${exchangeDescriptor.sessionToken.value}`,
|
|
30
|
+
[Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
return this.parseExchange(exchangeProgressResponse.payload);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
parseExchange(exchangeJsonObj) {
|
|
37
|
+
return new VCLExchange_1.default(exchangeJsonObj[VCLExchange_1.default.KeyId], exchangeJsonObj[VCLExchange_1.default.KeyType], exchangeJsonObj[VCLExchange_1.default.KeyDisclosureComplete], exchangeJsonObj[VCLExchange_1.default.KeyExchangeComplete]);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = ExchangeProgressRepositoryImpl;
|
|
41
|
+
//# sourceMappingURL=ExchangeProgressRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExchangeProgressRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/ExchangeProgressRepositoryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,oFAA4D;AAC5D,wGAAgF;AAGhF,iCAAkD;AAClD,qEAAkE;AAElE,MAAqB,8BAA8B;IAG/C,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAEhD,mBAAmB,CACrB,kBAAyC;;YAEzC,MAAM,wBAAwB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;gBACnE,MAAM,EAAE,uBAAU,CAAC,GAAG;gBACtB,QAAQ,EAAE,GAAG,kBAAkB,CAAC,UAAU,IACtC,+BAAqB,CAAC,aAC1B,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE;gBACvD,OAAO,EAAE;oBACL,CAAC,iBAAU,CAAC,aAAa,CAAC,EAAE,GAAG,mBAAY,CAAC,YAAY,IAAI,kBAAkB,CAAC,YAAY,CAAC,KAAK,EAAE;oBACnG,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;iBACvC;aACJ,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAChE,CAAC;KAAA;IAEO,aAAa,CAAC,eAAgC;QAClD,OAAO,IAAI,qBAAW,CAClB,eAAe,CAAC,qBAAW,CAAC,KAAK,CAAC,EAClC,eAAe,CAAC,qBAAW,CAAC,OAAO,CAAC,EACpC,eAAe,CAAC,qBAAW,CAAC,qBAAqB,CAAC,EAClD,eAAe,CAAC,qBAAW,CAAC,mBAAmB,CAAC,CACnD,CAAC;IACN,CAAC;CACJ;AA/BD,iDA+BC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Nullish } from '../../../api/VCLTypes';
|
|
2
|
+
import VCLFinalizeOffersDescriptor from '../../../api/entities/VCLFinalizeOffersDescriptor';
|
|
3
|
+
import VCLToken from '../../../api/entities/VCLToken';
|
|
4
|
+
import NetworkService from '../../domain/infrastructure/network/NetworkService';
|
|
5
|
+
import FinalizeOffersRepository from '../../domain/repositories/FinalizeOffersRepository';
|
|
6
|
+
import VCLJwt from '../../../api/entities/VCLJwt';
|
|
7
|
+
export declare class FinalizeOffersRepositoryImpl implements FinalizeOffersRepository {
|
|
8
|
+
private networkService;
|
|
9
|
+
constructor(networkService: NetworkService);
|
|
10
|
+
finalizeOffers(finalizeOffersDescriptor: VCLFinalizeOffersDescriptor, sessionToken: VCLToken, proof?: Nullish<VCLJwt>): Promise<VCLJwt[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FinalizeOffersRepositoryImpl = void 0;
|
|
16
|
+
const VCLError_1 = __importDefault(require("../../../api/entities/error/VCLError"));
|
|
17
|
+
const Urls_1 = require("./Urls");
|
|
18
|
+
const VCLJwt_1 = __importDefault(require("../../../api/entities/VCLJwt"));
|
|
19
|
+
const HttpMethod_1 = require("../infrastructure/network/HttpMethod");
|
|
20
|
+
class FinalizeOffersRepositoryImpl {
|
|
21
|
+
constructor(networkService) {
|
|
22
|
+
this.networkService = networkService;
|
|
23
|
+
}
|
|
24
|
+
finalizeOffers(finalizeOffersDescriptor_1, sessionToken_1) {
|
|
25
|
+
return __awaiter(this, arguments, void 0, function* (finalizeOffersDescriptor, sessionToken, proof = null) {
|
|
26
|
+
const finalizedOffersResponse = yield this.networkService.sendRequest({
|
|
27
|
+
endpoint: finalizeOffersDescriptor.finalizeOffersUri,
|
|
28
|
+
body: finalizeOffersDescriptor.generateRequestBody(proof),
|
|
29
|
+
headers: {
|
|
30
|
+
[Urls_1.HeaderKeys.Authorization]: `${Urls_1.HeaderValues.PrefixBearer} ${sessionToken.value}`,
|
|
31
|
+
[Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
|
|
32
|
+
},
|
|
33
|
+
method: HttpMethod_1.HttpMethod.POST,
|
|
34
|
+
});
|
|
35
|
+
const encodedJwtCredArr = finalizedOffersResponse.payload;
|
|
36
|
+
if (encodedJwtCredArr) {
|
|
37
|
+
return encodedJwtCredArr.map((encodedJwtCred) => VCLJwt_1.default.fromEncodedJwt(encodedJwtCred));
|
|
38
|
+
}
|
|
39
|
+
if (finalizedOffersResponse.payload instanceof Error) {
|
|
40
|
+
throw VCLError_1.default.fromError(finalizedOffersResponse.payload);
|
|
41
|
+
}
|
|
42
|
+
throw new VCLError_1.default(`Failed to parse: ${finalizedOffersResponse.payload}`);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.FinalizeOffersRepositoryImpl = FinalizeOffersRepositoryImpl;
|
|
47
|
+
//# sourceMappingURL=FinalizeOffersRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FinalizeOffersRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/FinalizeOffersRepositoryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oFAA4D;AAK5D,iCAAkD;AAClD,0EAAkD;AAClD,qEAAkE;AAElE,MAAa,4BAA4B;IACrC,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAEhD,cAAc;6DAChB,wBAAqD,EACrD,YAAsB,EACtB,QAAyB,IAAI;YAE7B,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;gBAClE,QAAQ,EAAE,wBAAwB,CAAC,iBAAiB;gBACpD,IAAI,EAAE,wBAAwB,CAAC,mBAAmB,CAAC,KAAK,CAAC;gBACzD,OAAO,EAAE;oBACL,CAAC,iBAAU,CAAC,aAAa,CAAC,EAAE,GAAG,mBAAY,CAAC,YAAY,IAAI,YAAY,CAAC,KAAK,EAAE;oBAChF,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;iBACvC;gBACD,MAAM,EAAE,uBAAU,CAAC,IAAI;aAC1B,CAAC,CAAC;YAEH,MAAM,iBAAiB,GACnB,uBAAuB,CAAC,OAA4B,CAAC;YACzD,IAAI,iBAAiB,EAAE,CAAC;gBACpB,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,CAC5C,gBAAM,CAAC,cAAc,CAAC,cAAc,CAAC,CACxC,CAAC;YACN,CAAC;YACD,IAAI,uBAAuB,CAAC,OAAO,YAAY,KAAK,EAAE,CAAC;gBACnD,MAAM,kBAAQ,CAAC,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;YAC9D,CAAC;YACD,MAAM,IAAI,kBAAQ,CACd,oBAAoB,uBAAuB,CAAC,OAAO,EAAE,CACxD,CAAC;QACN,CAAC;KAAA;CACJ;AAjCD,oEAiCC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import VCLGenerateOffersDescriptor from '../../../api/entities/VCLGenerateOffersDescriptor';
|
|
2
|
+
import VCLOffers from '../../../api/entities/VCLOffers';
|
|
3
|
+
import VCLToken from '../../../api/entities/VCLToken';
|
|
4
|
+
import NetworkService from '../../domain/infrastructure/network/NetworkService';
|
|
5
|
+
import GenerateOffersRepository from '../../domain/repositories/GenerateOffersRepository';
|
|
6
|
+
export default class GenerateOffersRepositoryImpl implements GenerateOffersRepository {
|
|
7
|
+
private networkService;
|
|
8
|
+
constructor(networkService: NetworkService);
|
|
9
|
+
generateOffers(generateOffersDescriptor: VCLGenerateOffersDescriptor, sessionToken: VCLToken): Promise<VCLOffers>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const VCLError_1 = __importDefault(require("../../../api/entities/error/VCLError"));
|
|
16
|
+
const VCLOffers_1 = __importDefault(require("../../../api/entities/VCLOffers"));
|
|
17
|
+
const Urls_1 = require("./Urls");
|
|
18
|
+
const HttpMethod_1 = require("../infrastructure/network/HttpMethod");
|
|
19
|
+
class GenerateOffersRepositoryImpl {
|
|
20
|
+
constructor(networkService) {
|
|
21
|
+
this.networkService = networkService;
|
|
22
|
+
}
|
|
23
|
+
generateOffers(generateOffersDescriptor, sessionToken) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const offersResponse = yield this.networkService.sendRequest({
|
|
26
|
+
endpoint: generateOffersDescriptor.checkOffersUri,
|
|
27
|
+
headers: {
|
|
28
|
+
[Urls_1.HeaderKeys.Authorization]: `${Urls_1.HeaderValues.PrefixBearer} ${sessionToken.value}`,
|
|
29
|
+
[Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
|
|
30
|
+
},
|
|
31
|
+
body: generateOffersDescriptor.payload,
|
|
32
|
+
method: HttpMethod_1.HttpMethod.POST,
|
|
33
|
+
});
|
|
34
|
+
if (offersResponse) {
|
|
35
|
+
return VCLOffers_1.default.fromPayload(offersResponse.payload, offersResponse.code, sessionToken);
|
|
36
|
+
}
|
|
37
|
+
throw new VCLError_1.default('Offers did not returned.');
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.default = GenerateOffersRepositoryImpl;
|
|
42
|
+
//# sourceMappingURL=GenerateOffersRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenerateOffersRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/GenerateOffersRepositoryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,oFAA4D;AAE5D,gFAAwD;AAIxD,iCAAkD;AAClD,qEAAkE;AAElE,MAAqB,4BAA4B;IAG7C,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAEhD,cAAc,CAChB,wBAAqD,EACrD,YAAsB;;YAEtB,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;gBACzD,QAAQ,EAAE,wBAAwB,CAAC,cAAc;gBACjD,OAAO,EAAE;oBACL,CAAC,iBAAU,CAAC,aAAa,CAAC,EAAE,GAAG,mBAAY,CAAC,YAAY,IAAI,YAAY,CAAC,KAAK,EAAE;oBAChF,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;iBACvC;gBACD,IAAI,EAAE,wBAAwB,CAAC,OAAO;gBACtC,MAAM,EAAE,uBAAU,CAAC,IAAI;aAC1B,CAAC,CAAC;YACH,IAAI,cAAc,EAAE,CAAC;gBACjB,OAAO,mBAAS,CAAC,WAAW,CACxB,cAAc,CAAC,OAAO,EACtB,cAAc,CAAC,IAAI,EACnB,YAAY,CACf,CAAC;YACN,CAAC;YACD,MAAM,IAAI,kBAAQ,CAAC,0BAA0B,CAAC,CAAC;QACnD,CAAC;KAAA;CACJ;AA5BD,+CA4BC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 SubmissionRepositoryImpl_1 = __importDefault(require("./SubmissionRepositoryImpl"));
|
|
7
|
+
class IdentificationSubmissionRepositoryImpl extends SubmissionRepositoryImpl_1.default {
|
|
8
|
+
}
|
|
9
|
+
exports.default = IdentificationSubmissionRepositoryImpl;
|
|
10
|
+
//# sourceMappingURL=IdentificationSubmissionRepositoryImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentificationSubmissionRepositoryImpl.js","sourceRoot":"","sources":["../../../../src/impl/data/repositories/IdentificationSubmissionRepositoryImpl.ts"],"names":[],"mappings":";;;;;AAAA,0FAAkE;AAElE,MAAqB,sCAAuC,SAAQ,kCAAwB;CAAG;AAA/F,yDAA+F"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import VCLDidJwk from '../../../api/entities/VCLDidJwk';
|
|
2
|
+
import VCLPublicJwk from '../../../api/entities/VCLPublicJwk';
|
|
3
|
+
import VCLJwt from '../../../api/entities/VCLJwt';
|
|
4
|
+
import VCLJwtDescriptor from '../../../api/entities/VCLJwtDescriptor';
|
|
5
|
+
import JwtServiceRepository from '../../domain/repositories/JwtServiceRepository';
|
|
6
|
+
import VCLJwtSignService from '../../../api/jwt/VCLJwtSignService';
|
|
7
|
+
import VCLJwtVerifyService from '../../../api/jwt/VCLJwtVerifyService';
|
|
8
|
+
import { Nullish } from '../../../api/VCLTypes';
|
|
9
|
+
import VCLToken from '../../../api/entities/VCLToken';
|
|
10
|
+
export default class JwtServiceRepositoryImpl implements JwtServiceRepository {
|
|
11
|
+
private readonly jwtSignService;
|
|
12
|
+
private readonly jwtVerifyService;
|
|
13
|
+
constructor(jwtSignService: VCLJwtSignService, jwtVerifyService: VCLJwtVerifyService);
|
|
14
|
+
decode(encodedJwt: string): Promise<VCLJwt>;
|
|
15
|
+
verifyJwt(jwt: VCLJwt, publicJwk: Nullish<VCLPublicJwk>, remoteCryptoServicesToken: Nullish<VCLToken>): Promise<boolean>;
|
|
16
|
+
generateSignedJwt(jwtDescriptor: VCLJwtDescriptor, didJwk: VCLDidJwk, nonce: Nullish<string>, remoteCryptoServicesToken: Nullish<VCLToken>): Promise<VCLJwt>;
|
|
17
|
+
}
|