@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.
Files changed (534) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +1 -0
  3. package/dist/api/VCL.d.ts +52 -0
  4. package/dist/api/VCL.js +3 -0
  5. package/dist/api/VCL.js.map +1 -0
  6. package/dist/api/VCLEnvironment.d.ts +8 -0
  7. package/dist/api/VCLEnvironment.js +27 -0
  8. package/dist/api/VCLEnvironment.js.map +1 -0
  9. package/dist/api/VCLProvider.d.ts +6 -0
  10. package/dist/api/VCLProvider.js +16 -0
  11. package/dist/api/VCLProvider.js.map +1 -0
  12. package/dist/api/VCLSignatureAlgorithm.d.ts +5 -0
  13. package/dist/api/VCLSignatureAlgorithm.js +9 -0
  14. package/dist/api/VCLSignatureAlgorithm.js.map +1 -0
  15. package/dist/api/VCLTypes.d.ts +2 -0
  16. package/dist/api/VCLTypes.js +3 -0
  17. package/dist/api/VCLTypes.js.map +1 -0
  18. package/dist/api/VCLXVnfProtocolVersion.d.ts +6 -0
  19. package/dist/api/VCLXVnfProtocolVersion.js +21 -0
  20. package/dist/api/VCLXVnfProtocolVersion.js.map +1 -0
  21. package/dist/api/entities/VCLAuthToken.d.ts +12 -0
  22. package/dist/api/entities/VCLAuthToken.js +22 -0
  23. package/dist/api/entities/VCLAuthToken.js.map +1 -0
  24. package/dist/api/entities/VCLAuthTokenDescriptor.d.ts +21 -0
  25. package/dist/api/entities/VCLAuthTokenDescriptor.js +54 -0
  26. package/dist/api/entities/VCLAuthTokenDescriptor.js.map +1 -0
  27. package/dist/api/entities/VCLCountries.d.ts +8 -0
  28. package/dist/api/entities/VCLCountries.js +20 -0
  29. package/dist/api/entities/VCLCountries.js.map +1 -0
  30. package/dist/api/entities/VCLCountry.d.ts +13 -0
  31. package/dist/api/entities/VCLCountry.js +20 -0
  32. package/dist/api/entities/VCLCountry.js.map +1 -0
  33. package/dist/api/entities/VCLCountryCodes.d.ts +253 -0
  34. package/dist/api/entities/VCLCountryCodes.js +257 -0
  35. package/dist/api/entities/VCLCountryCodes.js.map +1 -0
  36. package/dist/api/entities/VCLCredentialManifest.d.ts +35 -0
  37. package/dist/api/entities/VCLCredentialManifest.js +73 -0
  38. package/dist/api/entities/VCLCredentialManifest.js.map +1 -0
  39. package/dist/api/entities/VCLCredentialManifestDescriptor.d.ts +27 -0
  40. package/dist/api/entities/VCLCredentialManifestDescriptor.js +50 -0
  41. package/dist/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
  42. package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +10 -0
  43. package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +14 -0
  44. package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
  45. package/dist/api/entities/VCLCredentialManifestDescriptorByService.d.ts +12 -0
  46. package/dist/api/entities/VCLCredentialManifestDescriptorByService.js +18 -0
  47. package/dist/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
  48. package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +13 -0
  49. package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js +35 -0
  50. package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
  51. package/dist/api/entities/VCLCredentialType.d.ts +17 -0
  52. package/dist/api/entities/VCLCredentialType.js +21 -0
  53. package/dist/api/entities/VCLCredentialType.js.map +1 -0
  54. package/dist/api/entities/VCLCredentialTypeSchema.d.ts +5 -0
  55. package/dist/api/entities/VCLCredentialTypeSchema.js +9 -0
  56. package/dist/api/entities/VCLCredentialTypeSchema.js.map +1 -0
  57. package/dist/api/entities/VCLCredentialTypeSchemas.d.ts +6 -0
  58. package/dist/api/entities/VCLCredentialTypeSchemas.js +9 -0
  59. package/dist/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
  60. package/dist/api/entities/VCLCredentialTypes.d.ts +9 -0
  61. package/dist/api/entities/VCLCredentialTypes.js +23 -0
  62. package/dist/api/entities/VCLCredentialTypes.js.map +1 -0
  63. package/dist/api/entities/VCLCredentialTypesUIFormSchema.d.ts +9 -0
  64. package/dist/api/entities/VCLCredentialTypesUIFormSchema.js +13 -0
  65. package/dist/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
  66. package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +5 -0
  67. package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +10 -0
  68. package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
  69. package/dist/api/entities/VCLDeepLink.d.ts +17 -0
  70. package/dist/api/entities/VCLDeepLink.js +48 -0
  71. package/dist/api/entities/VCLDeepLink.js.map +1 -0
  72. package/dist/api/entities/VCLDidDocument.d.ts +14 -0
  73. package/dist/api/entities/VCLDidDocument.js +46 -0
  74. package/dist/api/entities/VCLDidDocument.js.map +1 -0
  75. package/dist/api/entities/VCLDidJwk.d.ts +24 -0
  76. package/dist/api/entities/VCLDidJwk.js +56 -0
  77. package/dist/api/entities/VCLDidJwk.js.map +1 -0
  78. package/dist/api/entities/VCLDidJwkDescriptor.d.ts +8 -0
  79. package/dist/api/entities/VCLDidJwkDescriptor.js +14 -0
  80. package/dist/api/entities/VCLDidJwkDescriptor.js.map +1 -0
  81. package/dist/api/entities/VCLExchange.d.ts +13 -0
  82. package/dist/api/entities/VCLExchange.js +30 -0
  83. package/dist/api/entities/VCLExchange.js.map +1 -0
  84. package/dist/api/entities/VCLExchangeDescriptor.d.ts +11 -0
  85. package/dist/api/entities/VCLExchangeDescriptor.js +20 -0
  86. package/dist/api/entities/VCLExchangeDescriptor.js.map +1 -0
  87. package/dist/api/entities/VCLFinalizeOffersDescriptor.d.ts +25 -0
  88. package/dist/api/entities/VCLFinalizeOffersDescriptor.js +54 -0
  89. package/dist/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
  90. package/dist/api/entities/VCLGenerateOffersDescriptor.d.ts +17 -0
  91. package/dist/api/entities/VCLGenerateOffersDescriptor.js +29 -0
  92. package/dist/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
  93. package/dist/api/entities/VCLIdentificationSubmission.d.ts +8 -0
  94. package/dist/api/entities/VCLIdentificationSubmission.js +15 -0
  95. package/dist/api/entities/VCLIdentificationSubmission.js.map +1 -0
  96. package/dist/api/entities/VCLIssuingType.d.ts +7 -0
  97. package/dist/api/entities/VCLIssuingType.js +24 -0
  98. package/dist/api/entities/VCLIssuingType.js.map +1 -0
  99. package/dist/api/entities/VCLJwt.d.ts +31 -0
  100. package/dist/api/entities/VCLJwt.js +112 -0
  101. package/dist/api/entities/VCLJwt.js.map +1 -0
  102. package/dist/api/entities/VCLJwtDescriptor.d.ts +8 -0
  103. package/dist/api/entities/VCLJwtDescriptor.js +13 -0
  104. package/dist/api/entities/VCLJwtDescriptor.js.map +1 -0
  105. package/dist/api/entities/VCLJwtVerifiableCredentials.d.ts +6 -0
  106. package/dist/api/entities/VCLJwtVerifiableCredentials.js +10 -0
  107. package/dist/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
  108. package/dist/api/entities/VCLOffer.d.ts +13 -0
  109. package/dist/api/entities/VCLOffer.js +38 -0
  110. package/dist/api/entities/VCLOffer.js.map +1 -0
  111. package/dist/api/entities/VCLOffers.d.ts +17 -0
  112. package/dist/api/entities/VCLOffers.js +36 -0
  113. package/dist/api/entities/VCLOffers.js.map +1 -0
  114. package/dist/api/entities/VCLOrganization.d.ts +12 -0
  115. package/dist/api/entities/VCLOrganization.js +42 -0
  116. package/dist/api/entities/VCLOrganization.js.map +1 -0
  117. package/dist/api/entities/VCLOrganizations.d.ts +6 -0
  118. package/dist/api/entities/VCLOrganizations.js +10 -0
  119. package/dist/api/entities/VCLOrganizations.js.map +1 -0
  120. package/dist/api/entities/VCLOrganizationsSearchDescriptor.d.ts +29 -0
  121. package/dist/api/entities/VCLOrganizationsSearchDescriptor.js +66 -0
  122. package/dist/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
  123. package/dist/api/entities/VCLPlace.d.ts +7 -0
  124. package/dist/api/entities/VCLPlace.js +11 -0
  125. package/dist/api/entities/VCLPlace.js.map +1 -0
  126. package/dist/api/entities/VCLPresentationRequest.d.ts +36 -0
  127. package/dist/api/entities/VCLPresentationRequest.js +57 -0
  128. package/dist/api/entities/VCLPresentationRequest.js.map +1 -0
  129. package/dist/api/entities/VCLPresentationRequestDescriptor.d.ts +18 -0
  130. package/dist/api/entities/VCLPresentationRequestDescriptor.js +32 -0
  131. package/dist/api/entities/VCLPresentationRequestDescriptor.js.map +1 -0
  132. package/dist/api/entities/VCLPresentationSubmission.d.ts +7 -0
  133. package/dist/api/entities/VCLPresentationSubmission.js +14 -0
  134. package/dist/api/entities/VCLPresentationSubmission.js.map +1 -0
  135. package/dist/api/entities/VCLPublicJwk.d.ts +17 -0
  136. package/dist/api/entities/VCLPublicJwk.js +27 -0
  137. package/dist/api/entities/VCLPublicJwk.js.map +1 -0
  138. package/dist/api/entities/VCLPushDelegate.d.ts +9 -0
  139. package/dist/api/entities/VCLPushDelegate.js +18 -0
  140. package/dist/api/entities/VCLPushDelegate.js.map +1 -0
  141. package/dist/api/entities/VCLRegion.d.ts +7 -0
  142. package/dist/api/entities/VCLRegion.js +15 -0
  143. package/dist/api/entities/VCLRegion.js.map +1 -0
  144. package/dist/api/entities/VCLRegions.d.ts +5 -0
  145. package/dist/api/entities/VCLRegions.js +9 -0
  146. package/dist/api/entities/VCLRegions.js.map +1 -0
  147. package/dist/api/entities/VCLService.d.ts +13 -0
  148. package/dist/api/entities/VCLService.js +17 -0
  149. package/dist/api/entities/VCLService.js.map +1 -0
  150. package/dist/api/entities/VCLServiceType.d.ts +14 -0
  151. package/dist/api/entities/VCLServiceType.js +49 -0
  152. package/dist/api/entities/VCLServiceType.js.map +1 -0
  153. package/dist/api/entities/VCLServiceTypes.d.ts +9 -0
  154. package/dist/api/entities/VCLServiceTypes.js +51 -0
  155. package/dist/api/entities/VCLServiceTypes.js.map +1 -0
  156. package/dist/api/entities/VCLSubmission.d.ts +42 -0
  157. package/dist/api/entities/VCLSubmission.js +81 -0
  158. package/dist/api/entities/VCLSubmission.js.map +1 -0
  159. package/dist/api/entities/VCLSubmissionResult.d.ts +13 -0
  160. package/dist/api/entities/VCLSubmissionResult.js +16 -0
  161. package/dist/api/entities/VCLSubmissionResult.js.map +1 -0
  162. package/dist/api/entities/VCLToken.d.ts +9 -0
  163. package/dist/api/entities/VCLToken.js +25 -0
  164. package/dist/api/entities/VCLToken.js.map +1 -0
  165. package/dist/api/entities/VCLVerifiableCredential.d.ts +7 -0
  166. package/dist/api/entities/VCLVerifiableCredential.js +13 -0
  167. package/dist/api/entities/VCLVerifiableCredential.js.map +1 -0
  168. package/dist/api/entities/VCLVerifiedProfile.d.ts +17 -0
  169. package/dist/api/entities/VCLVerifiedProfile.js +37 -0
  170. package/dist/api/entities/VCLVerifiedProfile.js.map +1 -0
  171. package/dist/api/entities/VCLVerifiedProfileDescriptor.d.ts +4 -0
  172. package/dist/api/entities/VCLVerifiedProfileDescriptor.js +9 -0
  173. package/dist/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
  174. package/dist/api/entities/error/VCLError.d.ts +20 -0
  175. package/dist/api/entities/error/VCLError.js +69 -0
  176. package/dist/api/entities/error/VCLError.js.map +1 -0
  177. package/dist/api/entities/error/VCLErrorCode.d.ts +16 -0
  178. package/dist/api/entities/error/VCLErrorCode.js +20 -0
  179. package/dist/api/entities/error/VCLErrorCode.js.map +1 -0
  180. package/dist/api/entities/error/VCLStatusCode.d.ts +6 -0
  181. package/dist/api/entities/error/VCLStatusCode.js +10 -0
  182. package/dist/api/entities/error/VCLStatusCode.js.map +1 -0
  183. package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts +9 -0
  184. package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js +12 -0
  185. package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
  186. package/dist/api/entities/initialization/VCLInitializationDescriptor.d.ts +12 -0
  187. package/dist/api/entities/initialization/VCLInitializationDescriptor.js +19 -0
  188. package/dist/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
  189. package/dist/api/entities/initialization/VCLLogService.d.ts +10 -0
  190. package/dist/api/entities/initialization/VCLLogService.js +3 -0
  191. package/dist/api/entities/initialization/VCLLogService.js.map +1 -0
  192. package/dist/api/jwt/VCLJwtSignService.d.ts +8 -0
  193. package/dist/api/jwt/VCLJwtSignService.js +3 -0
  194. package/dist/api/jwt/VCLJwtSignService.js.map +1 -0
  195. package/dist/api/jwt/VCLJwtVerifyService.d.ts +7 -0
  196. package/dist/api/jwt/VCLJwtVerifyService.js +3 -0
  197. package/dist/api/jwt/VCLJwtVerifyService.js.map +1 -0
  198. package/dist/api/keys/VCLKeyService.d.ts +5 -0
  199. package/dist/api/keys/VCLKeyService.js +3 -0
  200. package/dist/api/keys/VCLKeyService.js.map +1 -0
  201. package/dist/impl/GlobalConfig.d.ts +18 -0
  202. package/dist/impl/GlobalConfig.js +50 -0
  203. package/dist/impl/GlobalConfig.js.map +1 -0
  204. package/dist/impl/VCLImpl.d.ts +89 -0
  205. package/dist/impl/VCLImpl.js +291 -0
  206. package/dist/impl/VCLImpl.js.map +1 -0
  207. package/dist/impl/VclBlocksProvider.d.ts +36 -0
  208. package/dist/impl/VclBlocksProvider.js +98 -0
  209. package/dist/impl/VclBlocksProvider.js.map +1 -0
  210. package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.d.ts +1 -0
  211. package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js +3 -0
  212. package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js.map +1 -0
  213. package/dist/impl/data/infrastructure/network/HttpMethod.d.ts +4 -0
  214. package/dist/impl/data/infrastructure/network/HttpMethod.js +9 -0
  215. package/dist/impl/data/infrastructure/network/HttpMethod.js.map +1 -0
  216. package/dist/impl/data/infrastructure/network/NetworkServiceImpl.d.ts +8 -0
  217. package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js +65 -0
  218. package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js.map +1 -0
  219. package/dist/impl/data/infrastructure/network/Request.d.ts +16 -0
  220. package/dist/impl/data/infrastructure/network/Request.js +24 -0
  221. package/dist/impl/data/infrastructure/network/Request.js.map +1 -0
  222. package/dist/impl/data/infrastructure/network/Response.d.ts +5 -0
  223. package/dist/impl/data/infrastructure/network/Response.js +10 -0
  224. package/dist/impl/data/infrastructure/network/Response.js.map +1 -0
  225. package/dist/impl/data/models/CountriesModelImpl.d.ts +11 -0
  226. package/dist/impl/data/models/CountriesModelImpl.js +24 -0
  227. package/dist/impl/data/models/CountriesModelImpl.js.map +1 -0
  228. package/dist/impl/data/models/CredentialTypeSchemasModelImpl.d.ts +11 -0
  229. package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js +25 -0
  230. package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js.map +1 -0
  231. package/dist/impl/data/models/CredentialTypesModelImpl.d.ts +11 -0
  232. package/dist/impl/data/models/CredentialTypesModelImpl.js +24 -0
  233. package/dist/impl/data/models/CredentialTypesModelImpl.js.map +1 -0
  234. package/dist/impl/data/repositories/AuthTokenRepositoryImpl.d.ts +11 -0
  235. package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js +63 -0
  236. package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js.map +1 -0
  237. package/dist/impl/data/repositories/CountriesRepositoryImpl.d.ts +10 -0
  238. package/dist/impl/data/repositories/CountriesRepositoryImpl.js +90 -0
  239. package/dist/impl/data/repositories/CountriesRepositoryImpl.js.map +1 -0
  240. package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.d.ts +8 -0
  241. package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js +42 -0
  242. package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js.map +1 -0
  243. package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.d.ts +9 -0
  244. package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js +75 -0
  245. package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js.map +1 -0
  246. package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.d.ts +9 -0
  247. package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js +79 -0
  248. package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js.map +1 -0
  249. package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.d.ts +12 -0
  250. package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js +125 -0
  251. package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js.map +1 -0
  252. package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.d.ts +10 -0
  253. package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js +41 -0
  254. package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js.map +1 -0
  255. package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.d.ts +11 -0
  256. package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js +47 -0
  257. package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js.map +1 -0
  258. package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.d.ts +10 -0
  259. package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js +42 -0
  260. package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js.map +1 -0
  261. package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.d.ts +3 -0
  262. package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js +10 -0
  263. package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js.map +1 -0
  264. package/dist/impl/data/repositories/JwtServiceRepositoryImpl.d.ts +17 -0
  265. package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js +38 -0
  266. package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js.map +1 -0
  267. package/dist/impl/data/repositories/KeyServiceRepositoryImpl.d.ts +9 -0
  268. package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js +23 -0
  269. package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js.map +1 -0
  270. package/dist/impl/data/repositories/OrganizationsRepositoryImpl.d.ts +10 -0
  271. package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js +78 -0
  272. package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js.map +1 -0
  273. package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.d.ts +8 -0
  274. package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js +41 -0
  275. package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js.map +1 -0
  276. package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.d.ts +8 -0
  277. package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js +72 -0
  278. package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js.map +1 -0
  279. package/dist/impl/data/repositories/ResolveKidRepositoryImpl.d.ts +8 -0
  280. package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js +69 -0
  281. package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js.map +1 -0
  282. package/dist/impl/data/repositories/SubmissionRepositoryImpl.d.ts +17 -0
  283. package/dist/impl/data/repositories/SubmissionRepositoryImpl.js +54 -0
  284. package/dist/impl/data/repositories/SubmissionRepositoryImpl.js.map +1 -0
  285. package/dist/impl/data/repositories/Urls.d.ts +24 -0
  286. package/dist/impl/data/repositories/Urls.js +64 -0
  287. package/dist/impl/data/repositories/Urls.js.map +1 -0
  288. package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.d.ts +9 -0
  289. package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js +70 -0
  290. package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js.map +1 -0
  291. package/dist/impl/data/usecases/AuthTokenUseCaseImpl.d.ts +9 -0
  292. package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js +32 -0
  293. package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js.map +1 -0
  294. package/dist/impl/data/usecases/CountriesModelUseCaseImpl.d.ts +8 -0
  295. package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js +32 -0
  296. package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js.map +1 -0
  297. package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.d.ts +23 -0
  298. package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js +71 -0
  299. package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js.map +1 -0
  300. package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.d.ts +10 -0
  301. package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js +51 -0
  302. package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js.map +1 -0
  303. package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.d.ts +10 -0
  304. package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js +32 -0
  305. package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js.map +1 -0
  306. package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.d.ts +8 -0
  307. package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js +32 -0
  308. package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js.map +1 -0
  309. package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.d.ts +9 -0
  310. package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js +32 -0
  311. package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js.map +1 -0
  312. package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.d.ts +24 -0
  313. package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js +72 -0
  314. package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js.map +1 -0
  315. package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.d.ts +13 -0
  316. package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js +47 -0
  317. package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js.map +1 -0
  318. package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.d.ts +3 -0
  319. package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js +10 -0
  320. package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js.map +1 -0
  321. package/dist/impl/data/usecases/JwtServiceUseCaseImpl.d.ts +14 -0
  322. package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js +37 -0
  323. package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js.map +1 -0
  324. package/dist/impl/data/usecases/KeyServiceUseCaseImpl.d.ts +9 -0
  325. package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js +32 -0
  326. package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js.map +1 -0
  327. package/dist/impl/data/usecases/OrganizationsUseCaseImpl.d.ts +9 -0
  328. package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js +32 -0
  329. package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js.map +1 -0
  330. package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.d.ts +20 -0
  331. package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js +57 -0
  332. package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js.map +1 -0
  333. package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.d.ts +3 -0
  334. package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js +10 -0
  335. package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js.map +1 -0
  336. package/dist/impl/data/usecases/SubmissionUseCaseImpl.d.ts +13 -0
  337. package/dist/impl/data/usecases/SubmissionUseCaseImpl.js +35 -0
  338. package/dist/impl/data/usecases/SubmissionUseCaseImpl.js.map +1 -0
  339. package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.d.ts +8 -0
  340. package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js +32 -0
  341. package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js.map +1 -0
  342. package/dist/impl/data/verifiers/CredentialDidVerifierImpl.d.ts +8 -0
  343. package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js +48 -0
  344. package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js.map +1 -0
  345. package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.d.ts +6 -0
  346. package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js +20 -0
  347. package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js.map +1 -0
  348. package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.d.ts +11 -0
  349. package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js +41 -0
  350. package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js.map +1 -0
  351. package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.d.ts +8 -0
  352. package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js +43 -0
  353. package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js.map +1 -0
  354. package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.d.ts +11 -0
  355. package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js +56 -0
  356. package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js.map +1 -0
  357. package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.d.ts +11 -0
  358. package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js +56 -0
  359. package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js.map +1 -0
  360. package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.d.ts +8 -0
  361. package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js +43 -0
  362. package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js.map +1 -0
  363. package/dist/impl/data/verifiers/VerificationUtils.d.ts +4 -0
  364. package/dist/impl/data/verifiers/VerificationUtils.js +28 -0
  365. package/dist/impl/data/verifiers/VerificationUtils.js.map +1 -0
  366. package/dist/impl/data/verifiers/index.d.ts +8 -0
  367. package/dist/impl/data/verifiers/index.js +21 -0
  368. package/dist/impl/data/verifiers/index.js.map +1 -0
  369. package/dist/impl/domain/infrastructure/db/SecretStoreService.d.ts +7 -0
  370. package/dist/impl/domain/infrastructure/db/SecretStoreService.js +3 -0
  371. package/dist/impl/domain/infrastructure/db/SecretStoreService.js.map +1 -0
  372. package/dist/impl/domain/infrastructure/network/NetworkService.d.ts +6 -0
  373. package/dist/impl/domain/infrastructure/network/NetworkService.js +3 -0
  374. package/dist/impl/domain/infrastructure/network/NetworkService.js.map +1 -0
  375. package/dist/impl/domain/models/CountriesModel.d.ts +5 -0
  376. package/dist/impl/domain/models/CountriesModel.js +3 -0
  377. package/dist/impl/domain/models/CountriesModel.js.map +1 -0
  378. package/dist/impl/domain/models/CredentialTypeSchemasModel.d.ts +5 -0
  379. package/dist/impl/domain/models/CredentialTypeSchemasModel.js +3 -0
  380. package/dist/impl/domain/models/CredentialTypeSchemasModel.js.map +1 -0
  381. package/dist/impl/domain/models/CredentialTypesModel.d.ts +5 -0
  382. package/dist/impl/domain/models/CredentialTypesModel.js +3 -0
  383. package/dist/impl/domain/models/CredentialTypesModel.js.map +1 -0
  384. package/dist/impl/domain/models/IdentificationModel.d.ts +8 -0
  385. package/dist/impl/domain/models/IdentificationModel.js +3 -0
  386. package/dist/impl/domain/models/IdentificationModel.js.map +1 -0
  387. package/dist/impl/domain/models/Initializable.d.ts +4 -0
  388. package/dist/impl/domain/models/Initializable.js +3 -0
  389. package/dist/impl/domain/models/Initializable.js.map +1 -0
  390. package/dist/impl/domain/models/Model.d.ts +4 -0
  391. package/dist/impl/domain/models/Model.js +3 -0
  392. package/dist/impl/domain/models/Model.js.map +1 -0
  393. package/dist/impl/domain/repositories/AuthTokenRepository.d.ts +5 -0
  394. package/dist/impl/domain/repositories/AuthTokenRepository.js +3 -0
  395. package/dist/impl/domain/repositories/AuthTokenRepository.js.map +1 -0
  396. package/dist/impl/domain/repositories/CountriesRepository.d.ts +4 -0
  397. package/dist/impl/domain/repositories/CountriesRepository.js +3 -0
  398. package/dist/impl/domain/repositories/CountriesRepository.js.map +1 -0
  399. package/dist/impl/domain/repositories/CredentialManifestRepository.d.ts +4 -0
  400. package/dist/impl/domain/repositories/CredentialManifestRepository.js +3 -0
  401. package/dist/impl/domain/repositories/CredentialManifestRepository.js.map +1 -0
  402. package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.d.ts +4 -0
  403. package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js +3 -0
  404. package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js.map +1 -0
  405. package/dist/impl/domain/repositories/CredentialTypesRepository.d.ts +4 -0
  406. package/dist/impl/domain/repositories/CredentialTypesRepository.js +3 -0
  407. package/dist/impl/domain/repositories/CredentialTypesRepository.js.map +1 -0
  408. package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.d.ts +6 -0
  409. package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js +3 -0
  410. package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js.map +1 -0
  411. package/dist/impl/domain/repositories/ExchangeProgressRepository.d.ts +5 -0
  412. package/dist/impl/domain/repositories/ExchangeProgressRepository.js +3 -0
  413. package/dist/impl/domain/repositories/ExchangeProgressRepository.js.map +1 -0
  414. package/dist/impl/domain/repositories/FinalizeOffersRepository.d.ts +7 -0
  415. package/dist/impl/domain/repositories/FinalizeOffersRepository.js +3 -0
  416. package/dist/impl/domain/repositories/FinalizeOffersRepository.js.map +1 -0
  417. package/dist/impl/domain/repositories/GenerateOffersRepository.d.ts +6 -0
  418. package/dist/impl/domain/repositories/GenerateOffersRepository.js +3 -0
  419. package/dist/impl/domain/repositories/GenerateOffersRepository.js.map +1 -0
  420. package/dist/impl/domain/repositories/IdentificationSubmissionRepository.d.ts +3 -0
  421. package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js +3 -0
  422. package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js.map +1 -0
  423. package/dist/impl/domain/repositories/JwtServiceRepository.d.ts +11 -0
  424. package/dist/impl/domain/repositories/JwtServiceRepository.js +3 -0
  425. package/dist/impl/domain/repositories/JwtServiceRepository.js.map +1 -0
  426. package/dist/impl/domain/repositories/KeyServiceRepository.d.ts +5 -0
  427. package/dist/impl/domain/repositories/KeyServiceRepository.js +3 -0
  428. package/dist/impl/domain/repositories/KeyServiceRepository.js.map +1 -0
  429. package/dist/impl/domain/repositories/OrganizationsRepository.d.ts +5 -0
  430. package/dist/impl/domain/repositories/OrganizationsRepository.js +3 -0
  431. package/dist/impl/domain/repositories/OrganizationsRepository.js.map +1 -0
  432. package/dist/impl/domain/repositories/PresentationRequestRepository.d.ts +4 -0
  433. package/dist/impl/domain/repositories/PresentationRequestRepository.js +3 -0
  434. package/dist/impl/domain/repositories/PresentationRequestRepository.js.map +1 -0
  435. package/dist/impl/domain/repositories/ResolveDidDocumentRepository.d.ts +4 -0
  436. package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js +3 -0
  437. package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js.map +1 -0
  438. package/dist/impl/domain/repositories/ResolveKidRepository.d.ts +4 -0
  439. package/dist/impl/domain/repositories/ResolveKidRepository.js +3 -0
  440. package/dist/impl/domain/repositories/ResolveKidRepository.js.map +1 -0
  441. package/dist/impl/domain/repositories/SubmissionRepository.d.ts +8 -0
  442. package/dist/impl/domain/repositories/SubmissionRepository.js +3 -0
  443. package/dist/impl/domain/repositories/SubmissionRepository.js.map +1 -0
  444. package/dist/impl/domain/repositories/VerifiedProfileRepository.d.ts +5 -0
  445. package/dist/impl/domain/repositories/VerifiedProfileRepository.js +3 -0
  446. package/dist/impl/domain/repositories/VerifiedProfileRepository.js.map +1 -0
  447. package/dist/impl/domain/usecases/AuthTokenUseCase.d.ts +5 -0
  448. package/dist/impl/domain/usecases/AuthTokenUseCase.js +3 -0
  449. package/dist/impl/domain/usecases/AuthTokenUseCase.js.map +1 -0
  450. package/dist/impl/domain/usecases/CountriesModelUseCase.d.ts +4 -0
  451. package/dist/impl/domain/usecases/CountriesModelUseCase.js +3 -0
  452. package/dist/impl/domain/usecases/CountriesModelUseCase.js.map +1 -0
  453. package/dist/impl/domain/usecases/CredentialManifestUseCase.d.ts +6 -0
  454. package/dist/impl/domain/usecases/CredentialManifestUseCase.js +3 -0
  455. package/dist/impl/domain/usecases/CredentialManifestUseCase.js.map +1 -0
  456. package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.d.ts +4 -0
  457. package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js +3 -0
  458. package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js.map +1 -0
  459. package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.d.ts +6 -0
  460. package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js +3 -0
  461. package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js.map +1 -0
  462. package/dist/impl/domain/usecases/CredentialTypesUseCase.d.ts +4 -0
  463. package/dist/impl/domain/usecases/CredentialTypesUseCase.js +3 -0
  464. package/dist/impl/domain/usecases/CredentialTypesUseCase.js.map +1 -0
  465. package/dist/impl/domain/usecases/ExchangeProgressUseCase.d.ts +5 -0
  466. package/dist/impl/domain/usecases/ExchangeProgressUseCase.js +3 -0
  467. package/dist/impl/domain/usecases/ExchangeProgressUseCase.js.map +1 -0
  468. package/dist/impl/domain/usecases/FinalizeOffersUseCase.d.ts +6 -0
  469. package/dist/impl/domain/usecases/FinalizeOffersUseCase.js +3 -0
  470. package/dist/impl/domain/usecases/FinalizeOffersUseCase.js.map +1 -0
  471. package/dist/impl/domain/usecases/GenerateOffersUseCase.d.ts +6 -0
  472. package/dist/impl/domain/usecases/GenerateOffersUseCase.js +3 -0
  473. package/dist/impl/domain/usecases/GenerateOffersUseCase.js.map +1 -0
  474. package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.d.ts +3 -0
  475. package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js +3 -0
  476. package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js.map +1 -0
  477. package/dist/impl/domain/usecases/JwtServiceUseCase.d.ts +10 -0
  478. package/dist/impl/domain/usecases/JwtServiceUseCase.js +3 -0
  479. package/dist/impl/domain/usecases/JwtServiceUseCase.js.map +1 -0
  480. package/dist/impl/domain/usecases/KeyServiceUseCase.d.ts +5 -0
  481. package/dist/impl/domain/usecases/KeyServiceUseCase.js +3 -0
  482. package/dist/impl/domain/usecases/KeyServiceUseCase.js.map +1 -0
  483. package/dist/impl/domain/usecases/OrganizationsUseCase.d.ts +5 -0
  484. package/dist/impl/domain/usecases/OrganizationsUseCase.js +3 -0
  485. package/dist/impl/domain/usecases/OrganizationsUseCase.js.map +1 -0
  486. package/dist/impl/domain/usecases/PresentationRequestUseCase.d.ts +6 -0
  487. package/dist/impl/domain/usecases/PresentationRequestUseCase.js +3 -0
  488. package/dist/impl/domain/usecases/PresentationRequestUseCase.js.map +1 -0
  489. package/dist/impl/domain/usecases/PresentationSubmissionUseCase.d.ts +3 -0
  490. package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js +3 -0
  491. package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js.map +1 -0
  492. package/dist/impl/domain/usecases/SubmissionUseCase.d.ts +7 -0
  493. package/dist/impl/domain/usecases/SubmissionUseCase.js +3 -0
  494. package/dist/impl/domain/usecases/SubmissionUseCase.js.map +1 -0
  495. package/dist/impl/domain/usecases/VerifiedProfileUseCase.d.ts +5 -0
  496. package/dist/impl/domain/usecases/VerifiedProfileUseCase.js +3 -0
  497. package/dist/impl/domain/usecases/VerifiedProfileUseCase.js.map +1 -0
  498. package/dist/impl/domain/verifiers/CredentialDidVerifier.d.ts +6 -0
  499. package/dist/impl/domain/verifiers/CredentialDidVerifier.js +3 -0
  500. package/dist/impl/domain/verifiers/CredentialDidVerifier.js.map +1 -0
  501. package/dist/impl/domain/verifiers/CredentialIssuerVerifier.d.ts +5 -0
  502. package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js +3 -0
  503. package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js.map +1 -0
  504. package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.d.ts +6 -0
  505. package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js +3 -0
  506. package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js.map +1 -0
  507. package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.d.ts +5 -0
  508. package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js +3 -0
  509. package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js.map +1 -0
  510. package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.d.ts +5 -0
  511. package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js +3 -0
  512. package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js.map +1 -0
  513. package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.d.ts +6 -0
  514. package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js +3 -0
  515. package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js.map +1 -0
  516. package/dist/impl/utils/HelperFunctions.d.ts +8 -0
  517. package/dist/impl/utils/HelperFunctions.js +62 -0
  518. package/dist/impl/utils/HelperFunctions.js.map +1 -0
  519. package/dist/impl/utils/InitializationWatcher.d.ts +10 -0
  520. package/dist/impl/utils/InitializationWatcher.js +24 -0
  521. package/dist/impl/utils/InitializationWatcher.js.map +1 -0
  522. package/dist/impl/utils/LoadJsonldContext.d.ts +6 -0
  523. package/dist/impl/utils/LoadJsonldContext.js +68 -0
  524. package/dist/impl/utils/LoadJsonldContext.js.map +1 -0
  525. package/dist/impl/utils/ProfileServiceTypeVerifier.d.ts +12 -0
  526. package/dist/impl/utils/ProfileServiceTypeVerifier.js +57 -0
  527. package/dist/impl/utils/ProfileServiceTypeVerifier.js.map +1 -0
  528. package/dist/impl/utils/VCLLog.d.ts +9 -0
  529. package/dist/impl/utils/VCLLog.js +29 -0
  530. package/dist/impl/utils/VCLLog.js.map +1 -0
  531. package/dist/index.d.ts +64 -0
  532. package/dist/index.js +158 -0
  533. package/dist/index.js.map +1 -0
  534. 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,6 @@
1
+ import VCLOrganization from './VCLOrganization';
2
+ export default class VCLOrganizations {
3
+ readonly all: VCLOrganization[];
4
+ constructor(all: VCLOrganization[]);
5
+ static readonly KeyResult = "result";
6
+ }
@@ -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,7 @@
1
+ import { Dictionary } from '../VCLTypes';
2
+ export default class VCLPlace {
3
+ readonly payload: Dictionary<any>;
4
+ readonly code: string;
5
+ readonly name: string;
6
+ constructor(payload: Dictionary<any>, code: string, name: string);
7
+ }
@@ -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,5 @@
1
+ import VCLRegion from './VCLRegion';
2
+ export default class VCLRegions {
3
+ readonly all: VCLRegion[];
4
+ constructor(all: VCLRegion[]);
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class VCLRegions {
4
+ constructor(all) {
5
+ this.all = all;
6
+ }
7
+ }
8
+ exports.default = VCLRegions;
9
+ //# sourceMappingURL=VCLRegions.js.map
@@ -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"}