@velocitycareerlabs/vcl-react-native 1.2.3 → 1.3.0

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 (42) hide show
  1. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
  4. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  9. package/android/build.gradle +1 -1
  10. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +14 -13
  11. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/VCLErrorExtensions.kt +18 -0
  12. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +5 -1
  13. package/ios/Extensions/DictionaryExtensions.swift +19 -0
  14. package/ios/Extensions/VCLErrorExtensions.swift +21 -0
  15. package/ios/Utils/Converter.swift +5 -1
  16. package/ios/VclReactNative.swift +13 -13
  17. package/lib/commonjs/api/entities/VCLServiceType.js +3 -2
  18. package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -1
  19. package/lib/commonjs/api/entities/VCLServiceTypes.js +6 -0
  20. package/lib/commonjs/api/entities/{VCLError.js.map → VCLServiceTypes.js.map} +0 -0
  21. package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js +4 -0
  22. package/lib/commonjs/index.js.map +1 -1
  23. package/lib/module/api/entities/VCLServiceType.js +3 -2
  24. package/lib/module/api/entities/VCLServiceType.js.map +1 -1
  25. package/lib/module/api/entities/VCLServiceTypes.js +2 -0
  26. package/lib/module/api/entities/{VCLError.js.map → VCLServiceTypes.js.map} +0 -0
  27. package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js +1 -1
  28. package/lib/module/index.js.map +1 -1
  29. package/lib/typescript/api/entities/VCLServiceType.d.ts +4 -3
  30. package/lib/typescript/api/entities/{VCLError.d.ts → VCLServiceTypes.d.ts} +3 -3
  31. package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +2 -0
  32. package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +2 -0
  33. package/lib/typescript/index.d.ts +1 -2
  34. package/package.json +1 -1
  35. package/src/api/entities/VCLServiceType.ts +3 -2
  36. package/src/api/entities/{VCLError.ts → VCLServiceTypes.ts} +4 -3
  37. package/src/api/entities/VCLVerifiedProfile.ts +2 -0
  38. package/src/api/entities/VCLVerifiedProfileDescriptor.ts +3 -0
  39. package/src/index.tsx +0 -2
  40. package/vcl-react-native.podspec +1 -1
  41. package/lib/commonjs/api/entities/VCLError.js +0 -2
  42. package/lib/module/api/entities/VCLError.js +0 -2
@@ -1,2 +1,2 @@
1
- #Tue Dec 06 09:54:56 IST 2022
1
+ #Mon Dec 19 18:12:27 IST 2022
2
2
  gradle.version=7.4.2
@@ -131,5 +131,5 @@ dependencies {
131
131
 
132
132
  // VCL:
133
133
  implementation "com.nimbusds:nimbus-jose-jwt:9.25.6"
134
- implementation "io.velocitycareerlabs:vcl:1.2.3"
134
+ implementation "io.velocitycareerlabs:vcl:1.3.0"
135
135
  }
@@ -35,6 +35,7 @@ import io.velocitycareerlabs.reactnative.utlis.Converter.mapToVerifiedProfileDes
35
35
  import io.velocitycareerlabs.reactnative.utlis.Converter.verifiedProfileToMap
36
36
  import io.velocitycareerlabs.api.VCLProvider
37
37
  import io.velocitycareerlabs.api.entities.VCLError
38
+ import io.velocitycareerlabs.reactnative.extensions.toThrowable
38
39
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToInitializationDescriptor
39
40
  import org.json.JSONObject
40
41
  import java.lang.Exception
@@ -69,7 +70,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
69
70
  promise.resolve("VCL initialization succeed!")
70
71
  },
71
72
  errorHandler = {
72
- promise.reject(it)
73
+ promise.reject(it.toThrowable())
73
74
  })
74
75
  } catch (ex: Exception) {
75
76
  promise.reject(VCLError(ex.message))
@@ -118,7 +119,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
118
119
  promise.resolve(presentationRequestToMap(it))
119
120
  },
120
121
  {
121
- promise.reject(it)
122
+ promise.reject(it.toThrowable())
122
123
  })
123
124
  } catch (ex: Exception) {
124
125
  promise.reject(VCLError(ex.message))
@@ -137,7 +138,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
137
138
  promise.resolve(presentationSubmissionResultToMap(it))
138
139
  },
139
140
  {
140
- promise.reject(it)
141
+ promise.reject(it.toThrowable())
141
142
  })
142
143
  } catch (ex: Exception) {
143
144
  promise.reject(VCLError(ex.message))
@@ -155,7 +156,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
155
156
  promise.resolve(exchangeToMap(it))
156
157
  },
157
158
  {
158
- promise.reject(it)
159
+ promise.reject(it.toThrowable())
159
160
  })
160
161
  } catch (ex: Exception) {
161
162
  promise.reject(VCLError(ex.message))
@@ -174,7 +175,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
174
175
  promise.resolve(organizationsToMap(it))
175
176
  },
176
177
  {
177
- promise.reject(it)
178
+ promise.reject(it.toThrowable())
178
179
  })
179
180
  } catch (ex: Exception) {
180
181
  promise.reject(VCLError(ex.message))
@@ -193,7 +194,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
193
194
  promise.resolve(credentialManifestToMap(it))
194
195
  },
195
196
  {
196
- promise.reject(it)
197
+ promise.reject(it.toThrowable())
197
198
  })
198
199
  } ?: promise.reject(VCLError("Unexpected Credential Credential Manifest Descriptor: $credentialManifestDescriptorMap"))
199
200
  } catch (ex: Exception) {
@@ -213,7 +214,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
213
214
  promise.resolve(generatedOffersToMap(it))
214
215
  },
215
216
  {
216
- promise.reject(it)
217
+ promise.reject(it.toThrowable())
217
218
  })
218
219
  } catch (ex: Exception) {
219
220
  promise.reject(VCLError(ex.message))
@@ -234,7 +235,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
234
235
  promise.resolve(generatedOffersToMap(it))
235
236
  },
236
237
  {
237
- promise.reject(it)
238
+ promise.reject(it.toThrowable())
238
239
  })
239
240
  } catch (ex: Exception) {
240
241
  promise.reject(VCLError(ex.message))
@@ -255,7 +256,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
255
256
  promise.resolve(jwtVerifiableCredentialsToMap(it))
256
257
  },
257
258
  {
258
- promise.reject(it)
259
+ promise.reject(it.toThrowable())
259
260
  })
260
261
  } catch (ex: Exception) {
261
262
  promise.reject(VCLError(ex.message))
@@ -274,7 +275,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
274
275
  promise.resolve(credentialTypesFormSchemaToMap(it))
275
276
  },
276
277
  {
277
- promise.reject(it)
278
+ promise.reject(it.toThrowable())
278
279
  }
279
280
  )
280
281
  } catch (ex: Exception) {
@@ -293,7 +294,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
293
294
  promise.resolve(verifiedProfileToMap(it))
294
295
  },
295
296
  {
296
- promise.reject(it)
297
+ promise.reject(it.toThrowable())
297
298
  })
298
299
  } catch (ex: Exception) {
299
300
  promise.reject(VCLError(ex.message))
@@ -312,7 +313,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
312
313
  promise.resolve(it)
313
314
  },
314
315
  {
315
- promise.reject(it)
316
+ promise.reject(it.toThrowable())
316
317
  })
317
318
  } catch (ex: Exception) {
318
319
  promise.reject(VCLError(ex.message))
@@ -334,7 +335,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
334
335
  promise.resolve(Converter.jwtToMap(it))
335
336
  },
336
337
  {
337
- promise.reject(it)
338
+ promise.reject(it.toThrowable())
338
339
  })
339
340
  } catch (e: Exception) {
340
341
  promise.reject(VCLError(e.message))
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Created by Michael Avoyan on 20/12/2022.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ package io.velocitycareerlabs.reactnative.extensions
9
+
10
+ import io.velocitycareerlabs.api.entities.VCLError
11
+ import org.json.JSONObject
12
+
13
+ fun VCLError.toThrowable(): Throwable {
14
+ val msg = JSONObject()
15
+ msg.putOpt("description", this.description)
16
+ msg.putOpt("code", this.code)
17
+ return Throwable(msg.toString())
18
+ }
@@ -548,7 +548,11 @@ object Converter {
548
548
  )
549
549
 
550
550
  fun mapToVerifiedProfileDescriptor(verifiedProfileDescriptor: ReadableMap) =
551
- VCLVerifiedProfileDescriptor(did = verifiedProfileDescriptor.getStringOpt("did") ?: "")
551
+ VCLVerifiedProfileDescriptor(
552
+ did = verifiedProfileDescriptor.getStringOpt("did") ?: "",
553
+ serviceType = VCLServiceType.fromString(
554
+ verifiedProfileDescriptor.getStringOpt("serviceType") ?: ""
555
+ ))
552
556
 
553
557
  fun verifiedProfileToMap(
554
558
  verifiedProfile: VCLVerifiedProfile
@@ -0,0 +1,19 @@
1
+ //
2
+ // DictionaryExtensions.swift
3
+ // vcl-react-native
4
+ //
5
+ // Created by Michael Avoyan on 20/12/2022.
6
+ //
7
+
8
+ import Foundation
9
+
10
+ extension Dictionary {
11
+ func toJsonString() -> String? {
12
+ do {
13
+ let jsonData = try JSONSerialization.data(withJSONObject: self, options: [])
14
+ return String(data: jsonData, encoding: .utf8)
15
+ } catch {
16
+ return nil
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,21 @@
1
+ //
2
+ // VCLErrorExtensions.swift
3
+ // vcl-react-native
4
+ //
5
+ // Created by Michael Avoyan on 20/12/2022.
6
+ //
7
+
8
+ import Foundation
9
+ import VCL
10
+
11
+ extension VCLError {
12
+ func toJsonDictionary() -> [String: String] {
13
+ var msg = [String: String]()
14
+ msg["description"] = self.description
15
+ msg["code"] = "\(self.code ?? 0)"
16
+ return msg
17
+ }
18
+ func toJsonString() -> String {
19
+ return self.toJsonDictionary().toJsonString() ?? ""
20
+ }
21
+ }
@@ -528,7 +528,11 @@ func readableMapToCredentialTypesUIFormSchemaDescriptor(
528
528
  func dictionaryToVerifiedProfileDescriptor(
529
529
  _ verifiedProfileDescriptor: [String: Any]
530
530
  ) -> VCLVerifiedProfileDescriptor {
531
- return VCLVerifiedProfileDescriptor(did: (verifiedProfileDescriptor["did"] as? String) ?? "")
531
+ return VCLVerifiedProfileDescriptor(
532
+ did: (verifiedProfileDescriptor["did"] as? String) ?? "",
533
+ serviceType: VCLServiceType.fromString(
534
+ value: verifiedProfileDescriptor["serviceType"] as? String ?? ""
535
+ ))
532
536
  }
533
537
 
534
538
  func verifiedProfileToDictionary(
@@ -22,7 +22,7 @@ class VclReactNative: NSObject {
22
22
  resolve("VCL initialization succeed!")
23
23
  },
24
24
  errorHandler: {
25
- reject(nil, $0.description, $0)
25
+ reject(nil, "\($0.toJsonString())", $0)
26
26
  })
27
27
  }
28
28
 
@@ -73,7 +73,7 @@ class VclReactNative: NSObject {
73
73
  resolve(presentationRequestToDictionary($0))
74
74
  },
75
75
  errorHandler: {
76
- reject(nil, $0.description, $0)
76
+ reject(nil, "\($0.toJsonString())", $0)
77
77
  }
78
78
  )
79
79
  }
@@ -89,7 +89,7 @@ class VclReactNative: NSObject {
89
89
  resolve(presentationSubmissionResultToDictionary($0))
90
90
  },
91
91
  errorHandler: {
92
- reject(nil, $0.description, $0)
92
+ reject(nil, "\($0.toJsonString())", $0)
93
93
  })
94
94
  }
95
95
 
@@ -104,7 +104,7 @@ class VclReactNative: NSObject {
104
104
  resolve(exchangeToDictionary($0))
105
105
  },
106
106
  errorHandler: {
107
- reject(nil, $0.description, $0)
107
+ reject(nil, "\($0.toJsonString())", $0)
108
108
  })
109
109
  }
110
110
 
@@ -119,7 +119,7 @@ class VclReactNative: NSObject {
119
119
  resolve(organizationsToDictionary($0))
120
120
  },
121
121
  errorHandler: {
122
- reject(nil, $0.description, $0)
122
+ reject(nil, "\($0.toJsonString())", $0)
123
123
  })
124
124
  }
125
125
 
@@ -135,7 +135,7 @@ class VclReactNative: NSObject {
135
135
  resolve(credentialManifestToDictionary($0))
136
136
  },
137
137
  errorHandler: {
138
- reject(nil, $0.description, $0)
138
+ reject(nil, "\($0.toJsonString())", $0)
139
139
  })
140
140
  } else {
141
141
  reject(nil, "Unexpected Credential Credential Manifest Descriptor: \(credentialManifestDescriptorDictionary)", nil)
@@ -153,7 +153,7 @@ class VclReactNative: NSObject {
153
153
  resolve(generatedOffersToDictionary($0))
154
154
  },
155
155
  errorHandler: {
156
- reject(nil, $0.description, $0)
156
+ reject(nil, "\($0.toJsonString())", $0)
157
157
  })
158
158
  }
159
159
 
@@ -170,7 +170,7 @@ class VclReactNative: NSObject {
170
170
  resolve(generatedOffersToDictionary($0))
171
171
  },
172
172
  errorHandler: {
173
- reject(nil, $0.description, $0)
173
+ reject(nil, "\($0.toJsonString())", $0)
174
174
  })
175
175
  }
176
176
 
@@ -187,7 +187,7 @@ class VclReactNative: NSObject {
187
187
  resolve(jwtVerifiableCredentialsToDictionary($0))
188
188
  },
189
189
  errorHandler: {
190
- reject(nil, $0.description, $0)
190
+ reject(nil, "\($0.toJsonString())", $0)
191
191
  })
192
192
  }
193
193
 
@@ -202,7 +202,7 @@ class VclReactNative: NSObject {
202
202
  resolve(credentialTypesFormSchemaToDictionary($0))
203
203
  },
204
204
  errorHandler: {
205
- reject(nil, $0.description, $0)
205
+ reject(nil, "\($0.toJsonString())", $0)
206
206
  }
207
207
  )
208
208
  }
@@ -218,7 +218,7 @@ class VclReactNative: NSObject {
218
218
  resolve(verifiedProfileToDictionary($0))
219
219
  },
220
220
  errorHandler: {
221
- reject(nil, $0.description, $0)
221
+ reject(nil, "\($0.toJsonString())", $0)
222
222
  })
223
223
  }
224
224
 
@@ -235,7 +235,7 @@ class VclReactNative: NSObject {
235
235
  resolve($0)
236
236
  },
237
237
  errorHandler: {
238
- reject(nil, $0.description, $0)
238
+ reject(nil, "\($0.toJsonString())", $0)
239
239
  })
240
240
  }
241
241
 
@@ -254,7 +254,7 @@ class VclReactNative: NSObject {
254
254
  resolve(jwtToReadableMap($0))
255
255
  },
256
256
  errorHandler: {
257
- reject(nil, $0.description, $0)
257
+ reject(nil, "\($0.toJsonString())", $0)
258
258
  })
259
259
  }
260
260
  }
@@ -17,11 +17,12 @@ exports.VCLServiceType = VCLServiceType;
17
17
  (function (VCLServiceType) {
18
18
  VCLServiceType["Issuer"] = "Issuer";
19
19
  VCLServiceType["Inspector"] = "Inspector";
20
- VCLServiceType["CredentialAgentOperator"] = "CredentialAgentOperator";
21
- VCLServiceType["NodeOperator"] = "NodeOperator";
22
20
  VCLServiceType["TrustRoot"] = "TrustRoot";
21
+ VCLServiceType["NodeOperator"] = "NodeOperator";
23
22
  VCLServiceType["NotaryIssuer"] = "NotaryIssuer";
24
23
  VCLServiceType["IdentityIssuer"] = "IdentityIssuer";
25
24
  VCLServiceType["HolderAppProvider"] = "HolderAppProvider";
25
+ VCLServiceType["CredentialAgentOperator"] = "CredentialAgentOperator";
26
+ VCLServiceType["Undefined"] = "Undefined";
26
27
  })(VCLServiceType || (exports.VCLServiceType = VCLServiceType = {}));
27
28
  //# sourceMappingURL=VCLServiceType.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["VCLServiceType.ts"],"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"]}
1
+ {"version":3,"sources":["VCLServiceType.ts"],"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;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 TrustRoot = 'TrustRoot',\n NodeOperator = 'NodeOperator',\n NotaryIssuer = 'NotaryIssuer',\n IdentityIssuer = 'IdentityIssuer',\n HolderAppProvider = 'HolderAppProvider',\n CredentialAgentOperator = 'CredentialAgentOperator',\n Undefined = 'Undefined',\n}\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=VCLServiceTypes.js.map
@@ -1,2 +1,6 @@
1
1
  "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
2
6
  //# sourceMappingURL=VCLVerifiedProfileDescriptor.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAGA;;AAGA;;AAiCA;;AA9CA;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 { 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';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\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 VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n};\n"]}
1
+ {"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAGA;;AAGA;;AAgCA;;AA7CA;AACA;AACA;AACA;AACA;AACA;AAkDA,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 { 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 { 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';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\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 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 VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n};\n"]}
@@ -9,11 +9,12 @@ export let VCLServiceType;
9
9
  (function (VCLServiceType) {
10
10
  VCLServiceType["Issuer"] = "Issuer";
11
11
  VCLServiceType["Inspector"] = "Inspector";
12
- VCLServiceType["CredentialAgentOperator"] = "CredentialAgentOperator";
13
- VCLServiceType["NodeOperator"] = "NodeOperator";
14
12
  VCLServiceType["TrustRoot"] = "TrustRoot";
13
+ VCLServiceType["NodeOperator"] = "NodeOperator";
15
14
  VCLServiceType["NotaryIssuer"] = "NotaryIssuer";
16
15
  VCLServiceType["IdentityIssuer"] = "IdentityIssuer";
17
16
  VCLServiceType["HolderAppProvider"] = "HolderAppProvider";
17
+ VCLServiceType["CredentialAgentOperator"] = "CredentialAgentOperator";
18
+ VCLServiceType["Undefined"] = "Undefined";
18
19
  })(VCLServiceType || (VCLServiceType = {}));
19
20
  //# sourceMappingURL=VCLServiceType.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["VCLServiceType.ts"],"names":["VCLServiceType"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,cAAZ;;WAAYA,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,KAAAA,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"]}
1
+ {"version":3,"sources":["VCLServiceType.ts"],"names":["VCLServiceType"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,cAAZ;;WAAYA,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;AAAAA,EAAAA,c;GAAAA,c,KAAAA,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 TrustRoot = 'TrustRoot',\n NodeOperator = 'NodeOperator',\n NotaryIssuer = 'NotaryIssuer',\n IdentityIssuer = 'IdentityIssuer',\n HolderAppProvider = 'HolderAppProvider',\n CredentialAgentOperator = 'CredentialAgentOperator',\n Undefined = 'Undefined',\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=VCLServiceTypes.js.map
@@ -1,2 +1,2 @@
1
-
1
+ export {};
2
2
  //# sourceMappingURL=VCLVerifiedProfileDescriptor.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["NativeModules","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VclReactNative"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAT,QAA8B,cAA9B;AAGA,SAASC,WAAT,QAA4B,sBAA5B;AAGA,SAASC,eAAT,QAAgC,6BAAhC;AAiCA,SAASC,cAAT,QAA+B,+BAA/B;AAUA,MAAM;AAAEC,EAAAA;AAAF,IAAqBJ,aAA3B;AAEA,eAAeI,cAAf;AACA,SAGEH,WAHF,EAMEC,eANF,EAuCEC,cAvCF","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 { 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';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\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 VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n};\n"]}
1
+ {"version":3,"sources":["index.tsx"],"names":["NativeModules","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VclReactNative"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAT,QAA8B,cAA9B;AAGA,SAASC,WAAT,QAA4B,sBAA5B;AAGA,SAASC,eAAT,QAAgC,6BAAhC;AAgCA,SAASC,cAAT,QAA+B,+BAA/B;AAUA,MAAM;AAAEC,EAAAA;AAAF,IAAqBJ,aAA3B;AAEA,eAAeI,cAAf;AACA,SAGEH,WAHF,EAMEC,eANF,EAsCEC,cAtCF","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 { 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 { 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';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\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 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 VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n};\n"]}
@@ -7,10 +7,11 @@
7
7
  export declare enum VCLServiceType {
8
8
  Issuer = "Issuer",
9
9
  Inspector = "Inspector",
10
- CredentialAgentOperator = "CredentialAgentOperator",
11
- NodeOperator = "NodeOperator",
12
10
  TrustRoot = "TrustRoot",
11
+ NodeOperator = "NodeOperator",
13
12
  NotaryIssuer = "NotaryIssuer",
14
13
  IdentityIssuer = "IdentityIssuer",
15
- HolderAppProvider = "HolderAppProvider"
14
+ HolderAppProvider = "HolderAppProvider",
15
+ CredentialAgentOperator = "CredentialAgentOperator",
16
+ Undefined = "Undefined"
16
17
  }
@@ -4,7 +4,7 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- export interface VCLError {
8
- description: string;
9
- code: number;
7
+ import type { VCLServiceType } from './VCLServiceType';
8
+ export interface VCLServiceTypes {
9
+ payload: VCLServiceType[];
10
10
  }
@@ -4,6 +4,7 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
+ import type { VCLServiceTypes } from './VCLServiceTypes';
7
8
  import type { Dictionary } from '../Dictionary';
8
9
  export interface VCLVerifiedProfile {
9
10
  payload: Dictionary<string>;
@@ -11,4 +12,5 @@ export interface VCLVerifiedProfile {
11
12
  name: string;
12
13
  logo: string;
13
14
  id: string;
15
+ serviceTypes: VCLServiceTypes;
14
16
  }
@@ -4,6 +4,8 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
+ import type { VCLServiceType } from './VCLServiceType';
7
8
  export interface VCLVerifiedProfileDescriptor {
8
9
  did: string;
10
+ serviceType: VCLServiceType;
9
11
  }
@@ -23,7 +23,6 @@ import type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeS
23
23
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
24
24
  import type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';
25
25
  import type { VCLDeepLink } from './api/entities/VCLDeepLink';
26
- import type { VCLError } from './api/entities/VCLError';
27
26
  import type { VCLExchange } from './api/entities/VCLExchange';
28
27
  import type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';
29
28
  import type { VCLFilter } from './api/entities/VCLFilter';
@@ -53,4 +52,4 @@ import type { VCLInitializationDescriptor } from './api/entities/VCLInitializati
53
52
  import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
54
53
  declare const _default: VclApi;
55
54
  export default _default;
56
- export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLError, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJWT, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, VCLPresentationRequestDescriptor, };
55
+ export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJWT, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, VCLPresentationRequestDescriptor, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -8,10 +8,11 @@
8
8
  export enum VCLServiceType {
9
9
  Issuer = 'Issuer',
10
10
  Inspector = 'Inspector',
11
- CredentialAgentOperator = 'CredentialAgentOperator',
12
- NodeOperator = 'NodeOperator',
13
11
  TrustRoot = 'TrustRoot',
12
+ NodeOperator = 'NodeOperator',
14
13
  NotaryIssuer = 'NotaryIssuer',
15
14
  IdentityIssuer = 'IdentityIssuer',
16
15
  HolderAppProvider = 'HolderAppProvider',
16
+ CredentialAgentOperator = 'CredentialAgentOperator',
17
+ Undefined = 'Undefined',
17
18
  }
@@ -5,7 +5,8 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- export interface VCLError {
9
- description: string;
10
- code: number;
8
+ import type { VCLServiceType } from './VCLServiceType';
9
+
10
+ export interface VCLServiceTypes {
11
+ payload: VCLServiceType[];
11
12
  }
@@ -5,6 +5,7 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
+ import type { VCLServiceTypes } from './VCLServiceTypes';
8
9
  import type { Dictionary } from '../Dictionary';
9
10
 
10
11
  export interface VCLVerifiedProfile {
@@ -13,4 +14,5 @@ export interface VCLVerifiedProfile {
13
14
  name: string;
14
15
  logo: string;
15
16
  id: string;
17
+ serviceTypes: VCLServiceTypes;
16
18
  }
@@ -5,6 +5,9 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
+ import type { VCLServiceType } from './VCLServiceType';
9
+
8
10
  export interface VCLVerifiedProfileDescriptor {
9
11
  did: string;
12
+ serviceType: VCLServiceType;
10
13
  }
package/src/index.tsx CHANGED
@@ -25,7 +25,6 @@ import type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeS
25
25
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
26
26
  import type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';
27
27
  import type { VCLDeepLink } from './api/entities/VCLDeepLink';
28
- import type { VCLError } from './api/entities/VCLError';
29
28
  import type { VCLExchange } from './api/entities/VCLExchange';
30
29
  import type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';
31
30
  import type { VCLFilter } from './api/entities/VCLFilter';
@@ -77,7 +76,6 @@ export {
77
76
  VCLCredentialTypesUIFormSchemaDescriptor,
78
77
  VCLCredentialManifestDescriptorRefresh,
79
78
  VCLDeepLink,
80
- VCLError,
81
79
  VCLExchange,
82
80
  VCLExchangeDescriptor,
83
81
  VCLFilter,
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
  s.swift_version = "5.0"
19
19
 
20
20
  s.dependency "React"
21
- s.dependency "VCL", "1.2.3"
21
+ s.dependency "VCL", "1.3.0"
22
22
  end
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=VCLError.js.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=VCLError.js.map