@velocitycareerlabs/vcl-react-native 1.0.1 → 1.1.3

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 (131) hide show
  1. package/LICENSE +177 -21
  2. package/android/LICENSE +177 -0
  3. package/android/build.gradle +2 -1
  4. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +17 -4
  5. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativePackage.kt +8 -1
  6. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/ArrayExtensions.kt +7 -0
  7. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/JSONExtensions.kt +8 -1
  8. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +8 -1
  9. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/RNCollectionExtensions.kt +8 -1
  10. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +72 -41
  11. package/ios/Extensions/StringExtensions.swift +3 -1
  12. package/ios/LICENSE +177 -0
  13. package/ios/Utils/Converter.swift +14 -0
  14. package/ios/VclReactNative.m +6 -0
  15. package/ios/VclReactNative.swift +11 -2
  16. package/lib/commonjs/api/VCLEnvironment.js +7 -0
  17. package/lib/commonjs/api/VCLEnvironment.js.map +1 -1
  18. package/lib/commonjs/api/entities/VCLCountries.js +7 -0
  19. package/lib/commonjs/api/entities/VCLCountries.js.map +1 -1
  20. package/lib/commonjs/api/entities/VCLInitializationDescriptor.js +6 -0
  21. package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +1 -0
  22. package/lib/commonjs/api/entities/VCLServiceType.js +7 -0
  23. package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -1
  24. package/lib/commonjs/index.js +6 -0
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/module/api/VCLEnvironment.js +6 -0
  27. package/lib/module/api/VCLEnvironment.js.map +1 -1
  28. package/lib/module/api/entities/VCLCountries.js +6 -0
  29. package/lib/module/api/entities/VCLCountries.js.map +1 -1
  30. package/lib/module/api/entities/VCLInitializationDescriptor.js +2 -0
  31. package/lib/module/api/entities/VCLInitializationDescriptor.js.map +1 -0
  32. package/lib/module/api/entities/VCLServiceType.js +6 -0
  33. package/lib/module/api/entities/VCLServiceType.js.map +1 -1
  34. package/lib/module/index.js +6 -0
  35. package/lib/module/index.js.map +1 -1
  36. package/lib/typescript/api/Dictionary.d.ts +6 -0
  37. package/lib/typescript/api/VCLApi.d.ts +8 -2
  38. package/lib/typescript/api/VCLEnvironment.d.ts +6 -0
  39. package/lib/typescript/api/entities/VCLCountries.d.ts +6 -0
  40. package/lib/typescript/api/entities/VCLCountry.d.ts +6 -0
  41. package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +6 -0
  42. package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +6 -0
  43. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +6 -0
  44. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByService.d.ts +6 -0
  45. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +6 -0
  46. package/lib/typescript/api/entities/VCLCredentialType.d.ts +6 -0
  47. package/lib/typescript/api/entities/VCLCredentialTypeSchema.d.ts +6 -0
  48. package/lib/typescript/api/entities/VCLCredentialTypeSchemas.d.ts +6 -0
  49. package/lib/typescript/api/entities/VCLCredentialTypes.d.ts +6 -0
  50. package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchema.d.ts +6 -0
  51. package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +6 -0
  52. package/lib/typescript/api/entities/VCLDeepLink.d.ts +6 -0
  53. package/lib/typescript/api/entities/VCLError.d.ts +6 -0
  54. package/lib/typescript/api/entities/VCLExchange.d.ts +6 -0
  55. package/lib/typescript/api/entities/VCLExchangeDescriptor.d.ts +6 -0
  56. package/lib/typescript/api/entities/VCLFilter.d.ts +6 -0
  57. package/lib/typescript/api/entities/VCLFinalizeOffersDescriptor.d.ts +6 -0
  58. package/lib/typescript/api/entities/VCLGenerateOffersDescriptor.d.ts +6 -0
  59. package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +11 -0
  60. package/lib/typescript/api/entities/VCLJWT.d.ts +6 -0
  61. package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +6 -0
  62. package/lib/typescript/api/entities/VCLOffers.d.ts +6 -0
  63. package/lib/typescript/api/entities/VCLOrganization.d.ts +6 -0
  64. package/lib/typescript/api/entities/VCLOrganizations.d.ts +6 -0
  65. package/lib/typescript/api/entities/VCLOrganizationsSearchDescriptor.d.ts +6 -0
  66. package/lib/typescript/api/entities/VCLPage.d.ts +6 -0
  67. package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +6 -0
  68. package/lib/typescript/api/entities/VCLPresentationSubmission.d.ts +6 -0
  69. package/lib/typescript/api/entities/VCLPresentationSubmissionResult.d.ts +6 -0
  70. package/lib/typescript/api/entities/VCLPublicKey.d.ts +6 -0
  71. package/lib/typescript/api/entities/VCLPushDelegate.d.ts +6 -0
  72. package/lib/typescript/api/entities/VCLRegion.d.ts +6 -0
  73. package/lib/typescript/api/entities/VCLRegions.d.ts +6 -0
  74. package/lib/typescript/api/entities/VCLService.d.ts +6 -0
  75. package/lib/typescript/api/entities/VCLServiceCredentialAgentIssuer.d.ts +6 -0
  76. package/lib/typescript/api/entities/VCLServiceType.d.ts +6 -0
  77. package/lib/typescript/api/entities/VCLSubmissionResult.d.ts +6 -0
  78. package/lib/typescript/api/entities/VCLToken.d.ts +6 -0
  79. package/lib/typescript/api/entities/VCLVerifiableCredential.d.ts +6 -0
  80. package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +6 -0
  81. package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +6 -0
  82. package/lib/typescript/index.d.ts +8 -1
  83. package/package.json +1 -1
  84. package/src/api/Dictionary.tsx +7 -0
  85. package/src/api/VCLApi.tsx +11 -1
  86. package/src/api/VCLEnvironment.tsx +7 -0
  87. package/src/api/entities/VCLCountries.tsx +7 -0
  88. package/src/api/entities/VCLCountry.tsx +7 -0
  89. package/src/api/entities/VCLCredentialManifest.tsx +7 -0
  90. package/src/api/entities/VCLCredentialManifestDescriptor.tsx +7 -0
  91. package/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.tsx +7 -0
  92. package/src/api/entities/VCLCredentialManifestDescriptorByService.tsx +7 -0
  93. package/src/api/entities/VCLCredentialManifestDescriptorRefresh.tsx +7 -0
  94. package/src/api/entities/VCLCredentialType.tsx +7 -0
  95. package/src/api/entities/VCLCredentialTypeSchema.tsx +7 -0
  96. package/src/api/entities/VCLCredentialTypeSchemas.tsx +7 -0
  97. package/src/api/entities/VCLCredentialTypes.tsx +7 -0
  98. package/src/api/entities/VCLCredentialTypesUIFormSchema.tsx +7 -0
  99. package/src/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.tsx +7 -0
  100. package/src/api/entities/VCLDeepLink.tsx +7 -0
  101. package/src/api/entities/VCLError.tsx +7 -0
  102. package/src/api/entities/VCLExchange.tsx +7 -0
  103. package/src/api/entities/VCLExchangeDescriptor.tsx +7 -0
  104. package/src/api/entities/VCLFilter.tsx +7 -0
  105. package/src/api/entities/VCLFinalizeOffersDescriptor.tsx +7 -0
  106. package/src/api/entities/VCLGenerateOffersDescriptor.tsx +7 -0
  107. package/src/api/entities/VCLInitializationDescriptor.tsx +13 -0
  108. package/src/api/entities/VCLJWT.tsx +7 -0
  109. package/src/api/entities/VCLJwtVerifiableCredentials.tsx +7 -0
  110. package/src/api/entities/VCLOffers.tsx +7 -0
  111. package/src/api/entities/VCLOrganization.tsx +7 -0
  112. package/src/api/entities/VCLOrganizations.tsx +7 -0
  113. package/src/api/entities/VCLOrganizationsSearchDescriptor.tsx +7 -0
  114. package/src/api/entities/VCLPage.tsx +7 -0
  115. package/src/api/entities/VCLPresentationRequest.tsx +7 -0
  116. package/src/api/entities/VCLPresentationSubmission.tsx +7 -0
  117. package/src/api/entities/VCLPresentationSubmissionResult.tsx +7 -0
  118. package/src/api/entities/VCLPublicKey.tsx +7 -0
  119. package/src/api/entities/VCLPushDelegate.tsx +7 -0
  120. package/src/api/entities/VCLRegion.tsx +7 -0
  121. package/src/api/entities/VCLRegions.tsx +7 -0
  122. package/src/api/entities/VCLService.tsx +7 -0
  123. package/src/api/entities/VCLServiceCredentialAgentIssuer.tsx +7 -0
  124. package/src/api/entities/VCLServiceType.tsx +7 -0
  125. package/src/api/entities/VCLSubmissionResult.tsx +7 -0
  126. package/src/api/entities/VCLToken.tsx +7 -0
  127. package/src/api/entities/VCLVerifiableCredential.tsx +7 -0
  128. package/src/api/entities/VCLVerifiedProfile.tsx +7 -0
  129. package/src/api/entities/VCLVerifiedProfileDescriptor.tsx +7 -0
  130. package/src/index.tsx +9 -0
  131. package/vcl-react-native.podspec +1 -1
@@ -1,9 +1,13 @@
1
- package io.velocitycareerlabs.reactnative.utlis
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ package io.velocitycareerlabs.reactnative.utlis
2
9
 
3
- import com.facebook.react.bridge.Arguments
4
- import com.facebook.react.bridge.ReadableArray
5
- import com.facebook.react.bridge.ReadableMap
6
- import com.facebook.react.bridge.WritableArray
10
+ import com.facebook.react.bridge.*
7
11
  import io.velocitycareerlabs.api.*
8
12
  import io.velocitycareerlabs.api.entities.*
9
13
  import io.velocitycareerlabs.reactnative.extensions.*
@@ -15,8 +19,21 @@ import java.lang.Exception
15
19
  */
16
20
  object Converter {
17
21
 
22
+ fun mapToInitializationDescriptor(
23
+ reactContext: ReactApplicationContext,
24
+ initializationDescriptorMap: ReadableMap
25
+ ) =
26
+ VCLInitializationDescriptor(
27
+ context = reactContext,
28
+ environment = mapToEnvironment(
29
+ initializationDescriptorMap.getMapOpt("environment")
30
+ ?: mapOf(Pair("value", VCLEnvironment.PROD.value)).toReadableMap()
31
+ ),
32
+ resetCache = initializationDescriptorMap.getBoolean("resetCache")
33
+ )
34
+
18
35
  fun mapToEnvironment(environmentMap: ReadableMap) =
19
- when(environmentMap.getStringOpt("value")) {
36
+ when (environmentMap.getStringOpt("value")) {
20
37
  VCLEnvironment.DEV.value -> VCLEnvironment.DEV
21
38
  VCLEnvironment.STAGING.value -> VCLEnvironment.STAGING
22
39
  VCLEnvironment.PROD.value -> VCLEnvironment.PROD
@@ -46,13 +63,13 @@ object Converter {
46
63
  }
47
64
 
48
65
  fun countryToMap(
49
- country: VCLCountry
66
+ country: VCLCountry
50
67
  ): ReadableMap {
51
68
  val countryMap = Arguments.createMap()
52
69
  countryMap.putMap("payload", country.payload.toReadableMap())
53
70
  countryMap.putString("code", country.code)
54
71
  countryMap.putString("name", country.name)
55
- country.regions?.let{ countryMap.putMap("regions", regionsToMap(it)) }
72
+ country.regions?.let { countryMap.putMap("regions", regionsToMap(it)) }
56
73
  return countryMap
57
74
  }
58
75
 
@@ -136,10 +153,10 @@ object Converter {
136
153
  fun mapToPresentationRequest(
137
154
  presentationRequestMap: ReadableMap?
138
155
  ) = VCLPresentationRequest(
139
- mapToJwt(presentationRequestMap?.getMapOpt("jwt")),
140
- mapToPublicKey(presentationRequestMap?.getMapOpt("publicKey")),
141
- mapToDeepLink(presentationRequestMap?.getMapOpt("deepLink"))
142
- )
156
+ mapToJwt(presentationRequestMap?.getMapOpt("jwt")),
157
+ mapToPublicKey(presentationRequestMap?.getMapOpt("publicKey")),
158
+ mapToDeepLink(presentationRequestMap?.getMapOpt("deepLink"))
159
+ )
143
160
 
144
161
  fun presentationRequestToMap(
145
162
  presentationRequest: VCLPresentationRequest
@@ -153,7 +170,10 @@ object Converter {
153
170
  presentationRequestMap.putMap("publicKey", jwkMap)
154
171
  presentationRequestMap.putString("iss", presentationRequest.iss)
155
172
  presentationRequestMap.putString("exchangeId", presentationRequest.exchangeId)
156
- presentationRequestMap.putString("presentationDefinitionId", presentationRequest.presentationDefinitionId)
173
+ presentationRequestMap.putString(
174
+ "presentationDefinitionId",
175
+ presentationRequest.presentationDefinitionId
176
+ )
157
177
  presentationRequestMap.putMap("deepLink", deepLinkToMap(presentationRequest.deepLink))
158
178
  return presentationRequestMap
159
179
  }
@@ -207,18 +227,18 @@ object Converter {
207
227
  fun mapToSubmissionResult(
208
228
  submissionResultMap: ReadableMap?
209
229
  ) = VCLSubmissionResult(
210
- token = mapToToken(submissionResultMap?.getMapOpt("token")),
211
- exchange = mapToExchange(submissionResultMap?.getMapOpt("exchange"))
212
- )
230
+ token = mapToToken(submissionResultMap?.getMapOpt("token")),
231
+ exchange = mapToExchange(submissionResultMap?.getMapOpt("exchange"))
232
+ )
213
233
 
214
234
  fun mapToExchange(
215
235
  exchangeMap: ReadableMap?
216
236
  ) = VCLExchange(
217
- id = exchangeMap?.getStringOpt("id") ?: "",
218
- type = exchangeMap?.getStringOpt("type") ?: "",
219
- disclosureComplete = exchangeMap?.getBooleanOpt("disclosureComplete") ?: false,
220
- exchangeComplete = exchangeMap?.getBooleanOpt("exchangeComplete") ?: false
221
- )
237
+ id = exchangeMap?.getStringOpt("id") ?: "",
238
+ type = exchangeMap?.getStringOpt("type") ?: "",
239
+ disclosureComplete = exchangeMap?.getBooleanOpt("disclosureComplete") ?: false,
240
+ exchangeComplete = exchangeMap?.getBooleanOpt("exchangeComplete") ?: false
241
+ )
222
242
 
223
243
  fun mapToExchangeDescriptor(exchangeDescriptorMap: ReadableMap) =
224
244
  VCLExchangeDescriptor(
@@ -244,11 +264,11 @@ object Converter {
244
264
  fun mapToOrganizationsSearchDescriptor(
245
265
  organizationsDescriptorMap: ReadableMap
246
266
  ) = VCLOrganizationsSearchDescriptor(
247
- filter = mapToFilter(organizationsDescriptorMap.getMapOpt("filter")),
248
- page = mapToPage(organizationsDescriptorMap.getMapOpt("page")),
249
- sort = readableArrayToList(organizationsDescriptorMap.getArrayOpt("sort")),
250
- query = organizationsDescriptorMap.getStringOpt("query") ?: ""
251
- )
267
+ filter = mapToFilter(organizationsDescriptorMap.getMapOpt("filter")),
268
+ page = mapToPage(organizationsDescriptorMap.getMapOpt("page")),
269
+ sort = readableArrayToList(organizationsDescriptorMap.getArrayOpt("sort")),
270
+ query = organizationsDescriptorMap.getStringOpt("query") ?: ""
271
+ )
252
272
 
253
273
  fun mapToFilter(
254
274
  filterMap: ReadableMap?
@@ -336,9 +356,9 @@ object Converter {
336
356
  credentialManifestDescriptorMap.getMapOpt("deepLink")?.let {
337
357
  return mapToCredentialManifestDescriptorByDeepLink(credentialManifestDescriptorMap)
338
358
  } ?: credentialManifestDescriptorMap.getMapOpt("service")?.let {
339
- credentialManifestDescriptorMap.getArrayOpt("credentialIds")?.let {
340
- return mapToCredentialManifestDescriptorRefresh(credentialManifestDescriptorMap)
341
- } ?: return mapToCredentialManifestDescriptorByService(credentialManifestDescriptorMap)
359
+ credentialManifestDescriptorMap.getArrayOpt("credentialIds")?.let {
360
+ return mapToCredentialManifestDescriptorRefresh(credentialManifestDescriptorMap)
361
+ } ?: return mapToCredentialManifestDescriptorByService(credentialManifestDescriptorMap)
342
362
  }
343
363
  return null
344
364
  }
@@ -366,7 +386,8 @@ object Converter {
366
386
  credentialManifestDescriptorByServiceMap.getMapOpt("service")
367
387
  ),
368
388
  credentialTypes =
369
- (credentialManifestDescriptorByServiceMap.getArrayOpt("credentialTypes")?.toArrayList()?.toList() as? List<String>),
389
+ (credentialManifestDescriptorByServiceMap.getArrayOpt("credentialTypes")?.toArrayList()
390
+ ?.toList() as? List<String>),
370
391
  pushDelegate = pushDelegate
371
392
  )
372
393
  }
@@ -377,8 +398,9 @@ object Converter {
377
398
  return VCLCredentialManifestDescriptorRefresh(
378
399
  service = mapToServiceCredentialAgentIssuer(
379
400
  credentialManifestDescriptorRefreshMap.getMapOpt("service")
380
- ),
381
- credentialIds = credentialManifestDescriptorRefreshMap.getArrayOpt("credentialIds")?.toArrayList()?.toList() as? List<String> ?: listOf()
401
+ ),
402
+ credentialIds = credentialManifestDescriptorRefreshMap.getArrayOpt("credentialIds")
403
+ ?.toArrayList()?.toList() as? List<String> ?: listOf()
382
404
  )
383
405
  }
384
406
 
@@ -411,7 +433,8 @@ object Converter {
411
433
  fun mapToCredentialManifest(
412
434
  credentialManifestMap: ReadableMap?
413
435
  ): VCLCredentialManifest {
414
- val jwt = VCLJWT(encodedJwt = credentialManifestMap?.getMapOpt("jwt")?.getStringOpt("encodedJwt") ?: "")
436
+ val jwt =
437
+ VCLJWT(encodedJwt = credentialManifestMap?.getMapOpt("jwt")?.getStringOpt("encodedJwt") ?: "")
415
438
  val vendorOriginContext: String? = credentialManifestMap?.getStringOpt("vendorOriginContext")
416
439
  return VCLCredentialManifest(jwt = jwt, vendorOriginContext = vendorOriginContext)
417
440
  }
@@ -419,7 +442,8 @@ object Converter {
419
442
  fun mapToGenerateOffersDescriptor(
420
443
  generateOffersDescriptorMap: ReadableMap
421
444
  ): VCLGenerateOffersDescriptor {
422
- val verifiableCredentialsReadableArr = generateOffersDescriptorMap.getArrayOpt("identificationVerifiableCredentials")
445
+ val verifiableCredentialsReadableArr =
446
+ generateOffersDescriptorMap.getArrayOpt("identificationVerifiableCredentials")
423
447
  val verifiableCredentialsList = mutableListOf<VCLVerifiableCredential>()
424
448
  verifiableCredentialsReadableArr?.let {
425
449
  for (i in 0 until it.size()) {
@@ -434,8 +458,10 @@ object Converter {
434
458
  }
435
459
  return VCLGenerateOffersDescriptor(
436
460
  mapToCredentialManifest(generateOffersDescriptorMap.getMapOpt("credentialManifest")),
437
- types = (generateOffersDescriptorMap.getArrayOpt("types")?.toArrayList()?.toList() as? List<String>),
438
- offerHashes = (generateOffersDescriptorMap.getArrayOpt("offerHashes")?.toArrayList()?.toList() as? List<String>),
461
+ types = (generateOffersDescriptorMap.getArrayOpt("types")?.toArrayList()
462
+ ?.toList() as? List<String>),
463
+ offerHashes = (generateOffersDescriptorMap.getArrayOpt("offerHashes")?.toArrayList()
464
+ ?.toList() as? List<String>),
439
465
  identificationVerifiableCredentials = verifiableCredentialsList
440
466
  )
441
467
  }
@@ -454,7 +480,10 @@ object Converter {
454
480
  credentialTypesFormSchema: VCLCredentialTypesUIFormSchema
455
481
  ): ReadableMap {
456
482
  val credentialTypesFormSchemaMap = Arguments.createMap()
457
- credentialTypesFormSchemaMap.putMap("payload", credentialTypesFormSchema.payload.toReadableMap())
483
+ credentialTypesFormSchemaMap.putMap(
484
+ "payload",
485
+ credentialTypesFormSchema.payload.toReadableMap()
486
+ )
458
487
  return credentialTypesFormSchemaMap
459
488
  }
460
489
 
@@ -467,10 +496,12 @@ object Converter {
467
496
  fun mapToFinalizedOffersDescriptor(
468
497
  finalizedOffersDescriptorMap: ReadableMap
469
498
  ) = VCLFinalizeOffersDescriptor(
470
- credentialManifest = mapToCredentialManifest(finalizedOffersDescriptorMap.getMapOpt("credentialManifest")),
471
- approvedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("approvedOfferIds")?.toArrayList()?.toList() as? List<String>) ?: listOf(),
472
- rejectedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("rejectedOfferIds")?.toArrayList()?.toList() as? List<String>) ?: listOf()
473
- )
499
+ credentialManifest = mapToCredentialManifest(finalizedOffersDescriptorMap.getMapOpt("credentialManifest")),
500
+ approvedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("approvedOfferIds")?.toArrayList()
501
+ ?.toList() as? List<String>) ?: listOf(),
502
+ rejectedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("rejectedOfferIds")?.toArrayList()
503
+ ?.toList() as? List<String>) ?: listOf()
504
+ )
474
505
 
475
506
  fun jwtVerifiableCredentialsToMap(
476
507
  jwtVerifiableCredentials: VCLJwtVerifiableCredentials
@@ -3,7 +3,9 @@
3
3
  // VclReactNative
4
4
  //
5
5
  // Created by Michael Avoyan on 13/07/2021.
6
- // Copyright © 2021 Facebook. All rights reserved.
6
+ //
7
+ // Copyright 2022 Velocity Career Labs inc.
8
+ // SPDX-License-Identifier: Apache-2.0
7
9
  //
8
10
 
9
11
  import Foundation
package/ios/LICENSE ADDED
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -4,10 +4,24 @@
4
4
  //
5
5
  // Created by Michael Avoyan on 05/07/2021.
6
6
  //
7
+ // Copyright 2022 Velocity Career Labs inc.
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ //
7
10
 
8
11
  import Foundation
9
12
  import VCL
10
13
 
14
+ func dictionaryToInitializationDescriptor(
15
+ _ initializationDescriptorDictionary: [String: Any]
16
+ ) -> VCLInitializationDescriptor {
17
+ return VCLInitializationDescriptor(
18
+ environment: dictionaryToEnvironment(
19
+ initializationDescriptorDictionary["environment"] as? [String: String] ?? ["value": VCLEnvironment.PROD.rawValue]
20
+ ),
21
+ resetCache: initializationDescriptorDictionary["resetCache"] as? Bool ?? false
22
+ )
23
+ }
24
+
11
25
  func dictionaryToEnvironment(
12
26
  _ environmentDictionary: [String: String]
13
27
  ) -> VCLEnvironment {
@@ -1,3 +1,9 @@
1
+ // Created by Michael Avoyan on 05/07/2021.
2
+ //
3
+ // Copyright 2022 Velocity Career Labs inc.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ //
6
+
1
7
  #import <React/RCTBridgeModule.h>
2
8
 
3
9
  @interface RCT_EXTERN_MODULE(VclReactNative, NSObject)
@@ -1,3 +1,9 @@
1
+ // Created by Michael Avoyan on 05/07/2021.
2
+ //
3
+ // Copyright 2022 Velocity Career Labs inc.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ //
6
+
1
7
  import VCL
2
8
 
3
9
  @objc(VclReactNative)
@@ -6,9 +12,12 @@ class VclReactNative: NSObject {
6
12
  private let vcl = VCLProvider.vclInstance()
7
13
 
8
14
  @objc(initialize:withResolver:withRejecter:)
9
- func initialize(environmentDictionary: [String: String], resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
15
+ func initialize(
16
+ initializationDescriptorDictionary: [String: Any],
17
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
18
+ ) {
10
19
  vcl.initialize(
11
- environment: dictionaryToEnvironment(environmentDictionary),
20
+ initializationDescriptor: dictionaryToInitializationDescriptor(initializationDescriptorDictionary),
12
21
  successHandler: {
13
22
  resolve("VCL initialization succeed!")
14
23
  },
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VCLEnvTypes = void 0;
7
+
8
+ /**
9
+ * Created by Michael Avoyan.
10
+ *
11
+ * Copyright 2022 Velocity Career Labs inc.
12
+ * SPDX-License-Identifier: Apache-2.0
13
+ */
7
14
  let VCLEnvTypes;
8
15
  exports.VCLEnvTypes = VCLEnvTypes;
9
16
 
@@ -1 +1 @@
1
- {"version":3,"sources":["VCLEnvironment.tsx"],"names":["VCLEnvTypes"],"mappings":";;;;;;IAIYA,W;;;WAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;GAAAA,W,2BAAAA,W","sourcesContent":["export interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"]}
1
+ {"version":3,"sources":["VCLEnvironment.tsx"],"names":["VCLEnvTypes"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;IAMYA,W;;;WAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;GAAAA,W,2BAAAA,W","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"]}
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VCLCountryCodes = void 0;
7
+
8
+ /**
9
+ * Created by Michael Avoyan.
10
+ *
11
+ * Copyright 2022 Velocity Career Labs inc.
12
+ * SPDX-License-Identifier: Apache-2.0
13
+ */
7
14
  let VCLCountryCodes;
8
15
  exports.VCLCountryCodes = VCLCountryCodes;
9
16
 
@@ -1 +1 @@
1
- {"version":3,"sources":["VCLCountries.tsx"],"names":["VCLCountryCodes"],"mappings":";;;;;;IAMYA,e;;;WAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA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,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;GAAAA,e,+BAAAA,e","sourcesContent":["import type { VCLCountry } from './VCLCountry';\n\nexport interface VCLCountries {\n all: VCLCountry[];\n}\n\nexport enum VCLCountryCodes {\n BD = 'BD',\n BE = 'BE',\n BF = 'BF',\n BG = 'BG',\n BA = 'BA',\n BB = 'BB',\n WF = 'WF',\n BL = 'BL',\n BM = 'BM',\n BN = 'BN',\n BO = 'BO',\n BH = 'BH',\n BI = 'BI',\n BJ = 'BJ',\n BT = 'BT',\n JM = 'JM',\n BV = 'BV',\n BW = 'BW',\n WS = 'WS',\n BQ = 'BQ',\n BR = 'BR',\n BS = 'BS',\n JE = 'JE',\n BY = 'BY',\n BZ = 'BZ',\n RU = 'RU',\n RW = 'RW',\n RS = 'RS',\n TL = 'TL',\n RE = 'RE',\n TM = 'TM',\n TJ = 'TJ',\n RO = 'RO',\n TK = 'TK',\n GW = 'GW',\n GU = 'GU',\n GT = 'GT',\n GS = 'GS',\n GR = 'GR',\n GQ = 'GQ',\n GP = 'GP',\n JP = 'JP',\n GY = 'GY',\n GG = 'GG',\n GF = 'GF',\n GE = 'GE',\n GD = 'GD',\n GB = 'GB',\n GA = 'GA',\n SV = 'SV',\n GN = 'GN',\n GM = 'GM',\n GL = 'GL',\n GI = 'GI',\n GH = 'GH',\n OM = 'OM',\n TN = 'TN',\n JO = 'JO',\n HR = 'HR',\n HT = 'HT',\n HU = 'HU',\n HK = 'HK',\n HN = 'HN',\n HM = 'HM',\n VE = 'VE',\n PR = 'PR',\n PS = 'PS',\n PW = 'PW',\n PT = 'PT',\n SJ = 'SJ',\n PY = 'PY',\n IQ = 'IQ',\n PA = 'PA',\n PF = 'PF',\n PG = 'PG',\n PE = 'PE',\n PK = 'PK',\n PH = 'PH',\n PN = 'PN',\n PL = 'PL',\n PM = 'PM',\n ZM = 'ZM',\n EH = 'EH',\n EE = 'EE',\n EG = 'EG',\n ZA = 'ZA',\n EC = 'EC',\n IT = 'IT',\n VN = 'VN',\n SB = 'SB',\n ET = 'ET',\n SO = 'SO',\n ZW = 'ZW',\n SA = 'SA',\n ES = 'ES',\n ER = 'ER',\n ME = 'ME',\n MD = 'MD',\n MG = 'MG',\n MF = 'MF',\n MA = 'MA',\n MC = 'MC',\n UZ = 'UZ',\n MM = 'MM',\n ML = 'ML',\n MO = 'MO',\n MN = 'MN',\n MH = 'MH',\n MK = 'MK',\n MU = 'MU',\n MT = 'MT',\n MW = 'MW',\n MV = 'MV',\n MQ = 'MQ',\n MP = 'MP',\n MS = 'MS',\n MR = 'MR',\n IM = 'IM',\n UG = 'UG',\n TZ = 'TZ',\n MY = 'NY',\n MX = 'MX',\n IL = 'IL',\n FR = 'FR',\n IO = 'IO',\n SH = 'SH',\n FI = 'FI',\n FJ = 'FJ',\n FK = 'FK',\n FM = 'FM',\n FO = 'FO',\n NI = 'NI',\n NL = 'NL',\n NO = 'NO',\n NA = 'NA',\n VU = 'VU',\n NC = 'NC',\n NE = 'NE',\n NF = 'NF',\n NG = 'NG',\n NZ = 'NZ',\n NP = 'NP',\n NR = 'NR',\n NU = 'NU',\n CK = 'CK',\n XK = 'XK',\n CI = 'CI',\n CH = 'CH',\n CO = 'CO',\n CN = 'CN',\n CM = 'CM',\n CL = 'CL',\n CC = 'CC',\n CA = 'CA',\n CG = 'CG',\n CF = 'CF',\n CD = 'CD',\n CZ = 'CZ',\n CY = 'CY',\n CX = 'CX',\n CR = 'CR',\n CW = 'CW',\n CV = 'CV',\n CU = 'CU',\n SZ = 'SZ',\n SY = 'SY',\n SX = 'SX',\n KG = 'KG',\n KE = 'KE',\n SS = 'SS',\n SR = 'SR',\n KI = 'KI',\n KH = 'KH',\n KN = 'KN',\n KM = 'KM',\n ST = 'ST',\n SK = 'SK',\n KR = 'KR',\n SI = 'SI',\n KP = 'KP',\n KW = 'KW',\n SN = 'SN',\n SM = 'SM',\n SL = 'SL',\n SC = 'SC',\n KZ = 'KZ',\n KY = 'KY',\n SG = 'SG',\n SE = 'SE',\n SD = 'SD',\n DO = 'DO',\n DM = 'DM',\n DJ = 'DJ',\n DK = 'DK',\n VG = 'VG',\n DE = 'DE',\n YE = 'YE',\n DZ = 'DZ',\n US = 'US',\n UY = 'UY',\n YT = 'YT',\n UM = 'UM',\n LB = 'LB',\n LC = 'LC',\n LA = 'LA',\n TV = 'TV',\n TW = 'TW',\n TT = 'TT',\n TR = 'TR',\n LK = 'LK',\n LI = 'LI',\n LV = 'LV',\n TO = 'TO',\n LT = 'LT',\n LU = 'LU',\n LR = 'LR',\n LS = 'LS',\n TH = 'TH',\n TF = 'TF',\n TG = 'TG',\n TD = 'TD',\n TC = 'TC',\n LY = 'LY',\n VA = 'VA',\n VC = 'VC',\n AE = 'AE',\n AD = 'AD',\n AG = 'AG',\n AF = 'AF',\n AI = 'AI',\n VI = 'VI',\n IS = 'IS',\n IR = 'IR',\n AM = 'AM',\n AL = 'AL',\n AO = 'AO',\n AQ = 'AQ',\n AS = 'AS',\n AR = 'AR',\n AU = 'AU',\n AT = 'AT',\n AW = 'AW',\n IN = 'IN',\n AX = 'AX',\n AZ = 'AZ',\n IE = 'IE',\n ID = 'ID',\n UA = 'UA',\n QA = 'QA',\n MZ = 'MZ',\n UK = 'UK',\n}\n"]}
1
+ {"version":3,"sources":["VCLCountries.tsx"],"names":["VCLCountryCodes"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;IAQYA,e;;;WAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAA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AAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;GAAAA,e,+BAAAA,e","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLCountry } from './VCLCountry';\n\nexport interface VCLCountries {\n all: VCLCountry[];\n}\n\nexport enum VCLCountryCodes {\n BD = 'BD',\n BE = 'BE',\n BF = 'BF',\n BG = 'BG',\n BA = 'BA',\n BB = 'BB',\n WF = 'WF',\n BL = 'BL',\n BM = 'BM',\n BN = 'BN',\n BO = 'BO',\n BH = 'BH',\n BI = 'BI',\n BJ = 'BJ',\n BT = 'BT',\n JM = 'JM',\n BV = 'BV',\n BW = 'BW',\n WS = 'WS',\n BQ = 'BQ',\n BR = 'BR',\n BS = 'BS',\n JE = 'JE',\n BY = 'BY',\n BZ = 'BZ',\n RU = 'RU',\n RW = 'RW',\n RS = 'RS',\n TL = 'TL',\n RE = 'RE',\n TM = 'TM',\n TJ = 'TJ',\n RO = 'RO',\n TK = 'TK',\n GW = 'GW',\n GU = 'GU',\n GT = 'GT',\n GS = 'GS',\n GR = 'GR',\n GQ = 'GQ',\n GP = 'GP',\n JP = 'JP',\n GY = 'GY',\n GG = 'GG',\n GF = 'GF',\n GE = 'GE',\n GD = 'GD',\n GB = 'GB',\n GA = 'GA',\n SV = 'SV',\n GN = 'GN',\n GM = 'GM',\n GL = 'GL',\n GI = 'GI',\n GH = 'GH',\n OM = 'OM',\n TN = 'TN',\n JO = 'JO',\n HR = 'HR',\n HT = 'HT',\n HU = 'HU',\n HK = 'HK',\n HN = 'HN',\n HM = 'HM',\n VE = 'VE',\n PR = 'PR',\n PS = 'PS',\n PW = 'PW',\n PT = 'PT',\n SJ = 'SJ',\n PY = 'PY',\n IQ = 'IQ',\n PA = 'PA',\n PF = 'PF',\n PG = 'PG',\n PE = 'PE',\n PK = 'PK',\n PH = 'PH',\n PN = 'PN',\n PL = 'PL',\n PM = 'PM',\n ZM = 'ZM',\n EH = 'EH',\n EE = 'EE',\n EG = 'EG',\n ZA = 'ZA',\n EC = 'EC',\n IT = 'IT',\n VN = 'VN',\n SB = 'SB',\n ET = 'ET',\n SO = 'SO',\n ZW = 'ZW',\n SA = 'SA',\n ES = 'ES',\n ER = 'ER',\n ME = 'ME',\n MD = 'MD',\n MG = 'MG',\n MF = 'MF',\n MA = 'MA',\n MC = 'MC',\n UZ = 'UZ',\n MM = 'MM',\n ML = 'ML',\n MO = 'MO',\n MN = 'MN',\n MH = 'MH',\n MK = 'MK',\n MU = 'MU',\n MT = 'MT',\n MW = 'MW',\n MV = 'MV',\n MQ = 'MQ',\n MP = 'MP',\n MS = 'MS',\n MR = 'MR',\n IM = 'IM',\n UG = 'UG',\n TZ = 'TZ',\n MY = 'NY',\n MX = 'MX',\n IL = 'IL',\n FR = 'FR',\n IO = 'IO',\n SH = 'SH',\n FI = 'FI',\n FJ = 'FJ',\n FK = 'FK',\n FM = 'FM',\n FO = 'FO',\n NI = 'NI',\n NL = 'NL',\n NO = 'NO',\n NA = 'NA',\n VU = 'VU',\n NC = 'NC',\n NE = 'NE',\n NF = 'NF',\n NG = 'NG',\n NZ = 'NZ',\n NP = 'NP',\n NR = 'NR',\n NU = 'NU',\n CK = 'CK',\n XK = 'XK',\n CI = 'CI',\n CH = 'CH',\n CO = 'CO',\n CN = 'CN',\n CM = 'CM',\n CL = 'CL',\n CC = 'CC',\n CA = 'CA',\n CG = 'CG',\n CF = 'CF',\n CD = 'CD',\n CZ = 'CZ',\n CY = 'CY',\n CX = 'CX',\n CR = 'CR',\n CW = 'CW',\n CV = 'CV',\n CU = 'CU',\n SZ = 'SZ',\n SY = 'SY',\n SX = 'SX',\n KG = 'KG',\n KE = 'KE',\n SS = 'SS',\n SR = 'SR',\n KI = 'KI',\n KH = 'KH',\n KN = 'KN',\n KM = 'KM',\n ST = 'ST',\n SK = 'SK',\n KR = 'KR',\n SI = 'SI',\n KP = 'KP',\n KW = 'KW',\n SN = 'SN',\n SM = 'SM',\n SL = 'SL',\n SC = 'SC',\n KZ = 'KZ',\n KY = 'KY',\n SG = 'SG',\n SE = 'SE',\n SD = 'SD',\n DO = 'DO',\n DM = 'DM',\n DJ = 'DJ',\n DK = 'DK',\n VG = 'VG',\n DE = 'DE',\n YE = 'YE',\n DZ = 'DZ',\n US = 'US',\n UY = 'UY',\n YT = 'YT',\n UM = 'UM',\n LB = 'LB',\n LC = 'LC',\n LA = 'LA',\n TV = 'TV',\n TW = 'TW',\n TT = 'TT',\n TR = 'TR',\n LK = 'LK',\n LI = 'LI',\n LV = 'LV',\n TO = 'TO',\n LT = 'LT',\n LU = 'LU',\n LR = 'LR',\n LS = 'LS',\n TH = 'TH',\n TF = 'TF',\n TG = 'TG',\n TD = 'TD',\n TC = 'TC',\n LY = 'LY',\n VA = 'VA',\n VC = 'VC',\n AE = 'AE',\n AD = 'AD',\n AG = 'AG',\n AF = 'AF',\n AI = 'AI',\n VI = 'VI',\n IS = 'IS',\n IR = 'IR',\n AM = 'AM',\n AL = 'AL',\n AO = 'AO',\n AQ = 'AQ',\n AS = 'AS',\n AR = 'AR',\n AU = 'AU',\n AT = 'AT',\n AW = 'AW',\n IN = 'IN',\n AX = 'AX',\n AZ = 'AZ',\n IE = 'IE',\n ID = 'ID',\n UA = 'UA',\n QA = 'QA',\n MZ = 'MZ',\n UK = 'UK',\n}\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=VCLInitializationDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VCLServiceType = void 0;
7
+
8
+ /**
9
+ * Created by Michael Avoyan.
10
+ *
11
+ * Copyright 2022 Velocity Career Labs inc.
12
+ * SPDX-License-Identifier: Apache-2.0
13
+ */
7
14
  let VCLServiceType;
8
15
  exports.VCLServiceType = VCLServiceType;
9
16
 
@@ -1 +1 @@
1
- {"version":3,"sources":["VCLServiceType.tsx"],"names":["VCLServiceType"],"mappings":";;;;;;IAAYA,c;;;WAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;GAAAA,c,8BAAAA,c","sourcesContent":["export enum VCLServiceType {\n Issuer = 'Issuer',\n Inspector = 'Inspector',\n CredentialAgentOperator = 'CredentialAgentOperator',\n NodeOperator = 'NodeOperator',\n TrustRoot = 'TrustRoot',\n NotaryIssuer = 'NotaryIssuer',\n IdentityIssuer = 'IdentityIssuer',\n HolderAppProvider = 'HolderAppProvider',\n}\n"]}
1
+ {"version":3,"sources":["VCLServiceType.tsx"],"names":["VCLServiceType"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;IAEYA,c;;;WAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;GAAAA,c,8BAAAA,c","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum VCLServiceType {\n Issuer = 'Issuer',\n Inspector = 'Inspector',\n CredentialAgentOperator = 'CredentialAgentOperator',\n NodeOperator = 'NodeOperator',\n TrustRoot = 'TrustRoot',\n NotaryIssuer = 'NotaryIssuer',\n IdentityIssuer = 'IdentityIssuer',\n HolderAppProvider = 'HolderAppProvider',\n}\n"]}
@@ -31,6 +31,12 @@ var _VCLCountries = require("./api/entities/VCLCountries");
31
31
 
32
32
  var _VCLServiceType = require("./api/entities/VCLServiceType");
33
33
 
34
+ /**
35
+ * Created by Michael Avoyan.
36
+ *
37
+ * Copyright 2022 Velocity Career Labs inc.
38
+ * SPDX-License-Identifier: Apache-2.0
39
+ */
34
40
  const {
35
41
  VclReactNative
36
42
  } = _reactNative.NativeModules;
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAGA;;AAGA;;AAkCA;;AAQA,MAAM;AAAEA,EAAAA;AAAF,IAAqBC,0BAA3B;eAEeD,c","sourcesContent":["import { NativeModules } from 'react-native';\nimport type { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLError } from './api/entities/VCLError';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJWT } from './api/entities/VCLJWT';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLPresentationSubmissionResult } from './api/entities/VCLPresentationSubmissionResult';\nimport type { VCLPublicKey } from './api/entities/VCLPublicKey';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\n\nconst { VclReactNative } = NativeModules;\n\nexport default VclReactNative as VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLError,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJWT,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLPresentationSubmissionResult,\n VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n};\n"]}
1
+ {"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAGA;;AAGA;;AAkCA;;AA/CA;AACA;AACA;AACA;AACA;AACA;AAmDA,MAAM;AAAEA,EAAAA;AAAF,IAAqBC,0BAA3B;eAEeD,c","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { NativeModules } from 'react-native';\nimport type { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLError } from './api/entities/VCLError';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJWT } from './api/entities/VCLJWT';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLPresentationSubmissionResult } from './api/entities/VCLPresentationSubmissionResult';\nimport type { VCLPublicKey } from './api/entities/VCLPublicKey';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\nimport type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';\n\nconst { VclReactNative } = NativeModules;\n\nexport default VclReactNative as VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLError,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJWT,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLPresentationSubmissionResult,\n VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n};\n"]}
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
1
7
  export let VCLEnvTypes;
2
8
 
3
9
  (function (VCLEnvTypes) {