@velocitycareerlabs/vcl-react-native 1.1.11 → 1.2.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 (28) hide show
  1. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  4. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  5. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  7. package/android/build.gradle +1 -1
  8. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +6 -3
  9. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +18 -8
  10. package/ios/Utils/Converter.swift +36 -18
  11. package/ios/VclReactNative.m +1 -1
  12. package/ios/VclReactNative.swift +2 -2
  13. package/lib/commonjs/api/entities/VCLPresentationRequestDescriptor.js +6 -0
  14. package/lib/commonjs/api/entities/VCLPresentationRequestDescriptor.js.map +1 -0
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/module/api/entities/VCLPresentationRequestDescriptor.js +2 -0
  17. package/lib/module/api/entities/VCLPresentationRequestDescriptor.js.map +1 -0
  18. package/lib/module/index.js.map +1 -1
  19. package/lib/typescript/api/VCLApi.d.ts +2 -2
  20. package/lib/typescript/api/entities/VCLPresentationRequestDescriptor.d.ts +12 -0
  21. package/lib/typescript/api/entities/VCLPushDelegate.d.ts +7 -1
  22. package/lib/typescript/index.d.ts +2 -1
  23. package/package.json +1 -1
  24. package/src/api/VCLApi.ts +2 -2
  25. package/src/api/entities/VCLPresentationRequestDescriptor.ts +14 -0
  26. package/src/api/entities/VCLPushDelegate.ts +7 -1
  27. package/src/index.tsx +2 -0
  28. package/vcl-react-native.podspec +1 -1
@@ -1,2 +1,2 @@
1
- #Wed Nov 30 12:24:44 IST 2022
1
+ #Tue Dec 06 09:54:56 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.1.11"
134
+ implementation "io.velocitycareerlabs:vcl:1.2.3"
135
135
  }
@@ -23,7 +23,7 @@ import io.velocitycareerlabs.reactnative.utlis.Converter.mapToPresentationSubmis
23
23
  import io.velocitycareerlabs.reactnative.utlis.Converter.presentationRequestToMap
24
24
  import io.velocitycareerlabs.reactnative.utlis.Converter.presentationSubmissionResultToMap
25
25
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToCredentialTypesUIFormSchemaDescriptor
26
- import io.velocitycareerlabs.reactnative.utlis.Converter.mapToDeepLink
26
+ import io.velocitycareerlabs.reactnative.utlis.Converter.mapTopPresentationRequestDescriptor
27
27
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToExchangeDescriptor
28
28
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToFinalizedOffersDescriptor
29
29
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToGenerateOffersDescriptor
@@ -107,10 +107,13 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
107
107
  }
108
108
 
109
109
  @ReactMethod
110
- fun getPresentationRequest(deepLinkReadableMap: ReadableMap, promise: Promise) {
110
+ fun getPresentationRequest(
111
+ presentationRequestDescriptorReadableMap: ReadableMap,
112
+ promise: Promise
113
+ ) {
111
114
  try {
112
115
  vcl.getPresentationRequest(
113
- mapToDeepLink(deepLinkReadableMap),
116
+ mapTopPresentationRequestDescriptor(presentationRequestDescriptorReadableMap),
114
117
  {
115
118
  promise.resolve(presentationRequestToMap(it))
116
119
  },
@@ -132,6 +132,12 @@ object Converter {
132
132
  return credentialTypesArray
133
133
  }
134
134
 
135
+ fun mapTopPresentationRequestDescriptor(presentationRequestDescriptorLinkMap: ReadableMap) =
136
+ VCLPresentationRequestDescriptor(
137
+ deepLink = mapToDeepLink(presentationRequestDescriptorLinkMap.getMapOpt("deepLink")),
138
+ pushDelegate = mapToPushDelegate(presentationRequestDescriptorLinkMap.getMapOpt("pushDelegate"))
139
+ )
140
+
135
141
  fun mapToDeepLink(deepLinkMap: ReadableMap?) =
136
142
  VCLDeepLink(deepLinkMap?.getStringOpt("value") ?: "")
137
143
 
@@ -359,6 +365,16 @@ object Converter {
359
365
  return organizationsMap
360
366
  }
361
367
 
368
+ fun mapToPushDelegate(pushDelegateMap: ReadableMap?): VCLPushDelegate? {
369
+ val pushUrl = pushDelegateMap?.getStringOpt(VCLPushDelegate.KeyPushUrl)
370
+ val pushToken = pushDelegateMap?.getStringOpt(VCLPushDelegate.KeyPushToken)
371
+ return if (pushUrl != null && pushToken != null)
372
+ VCLPushDelegate(
373
+ pushUrl = pushUrl,
374
+ pushToken = pushToken
375
+ ) else null
376
+ }
377
+
362
378
  fun mapToCredentialManifestDescriptor(
363
379
  credentialManifestDescriptorMap: ReadableMap
364
380
  ): VCLCredentialManifestDescriptor? {
@@ -376,20 +392,14 @@ object Converter {
376
392
  credentialManifestDescriptorByDeepLinkMap: ReadableMap
377
393
  ): VCLCredentialManifestDescriptorByDeepLink {
378
394
  return VCLCredentialManifestDescriptorByDeepLink(
379
- mapToDeepLink(
380
- credentialManifestDescriptorByDeepLinkMap.getMapOpt("deepLink")
381
- )
395
+ mapToDeepLink(credentialManifestDescriptorByDeepLinkMap.getMapOpt("deepLink"))
382
396
  )
383
397
  }
384
398
 
385
399
  fun mapToCredentialManifestDescriptorByService(
386
400
  credentialManifestDescriptorByServiceMap: ReadableMap
387
401
  ): VCLCredentialManifestDescriptorByService {
388
- val pushDelegateMap = credentialManifestDescriptorByServiceMap.getMapOpt("pushDelegate")
389
- val pushDelegate = VCLPushDelegate(
390
- pushUrl = pushDelegateMap?.getStringOpt("pushUrl") ?: "",
391
- pushToken = pushDelegateMap?.getStringOpt("pushToken") ?: ""
392
- )
402
+ val pushDelegate = mapToPushDelegate(credentialManifestDescriptorByServiceMap.getMapOpt("pushDelegate"))
393
403
  return VCLCredentialManifestDescriptorByService(
394
404
  service = mapToServiceCredentialAgentIssuer(
395
405
  credentialManifestDescriptorByServiceMap.getMapOpt("service")
@@ -19,7 +19,7 @@ func dictionaryToInitializationDescriptor(
19
19
  initializationDescriptorDictionary["environment"] as? [String: String] ?? ["value": VCLEnvironment.PROD.rawValue]
20
20
  ),
21
21
  cacheSequence: initializationDescriptorDictionary["cacheSequence"] as? Int ?? 0
22
- )
22
+ )
23
23
  }
24
24
 
25
25
  func dictionaryToEnvironment(
@@ -113,19 +113,28 @@ func credentialTypesToDictionary(
113
113
  }
114
114
 
115
115
  private func parseCredentialTypesArray(_ credentialTypesArr: [VCLCredentialType]) -> [[String: Any?]] {
116
- var credentialTypesArray = [[String: Any?]]()
117
- credentialTypesArr.forEach {
118
- var credentialType = [String: Any?]()
119
- credentialType["payload"] = $0.payload
120
- credentialType["id"] = $0.id
121
- credentialType["schema"] = $0.schema
122
- credentialType["createdAt"] = $0.createdAt
123
- credentialType["schemaName"] = $0.schemaName
124
- credentialType["credentialType"] = $0.credentialType
125
- credentialType["recommended"] = $0.recommended
126
- credentialTypesArray.append(credentialType)
127
- }
128
- return credentialTypesArray
116
+ var credentialTypesArray = [[String: Any?]]()
117
+ credentialTypesArr.forEach {
118
+ var credentialType = [String: Any?]()
119
+ credentialType["payload"] = $0.payload
120
+ credentialType["id"] = $0.id
121
+ credentialType["schema"] = $0.schema
122
+ credentialType["createdAt"] = $0.createdAt
123
+ credentialType["schemaName"] = $0.schemaName
124
+ credentialType["credentialType"] = $0.credentialType
125
+ credentialType["recommended"] = $0.recommended
126
+ credentialTypesArray.append(credentialType)
127
+ }
128
+ return credentialTypesArray
129
+ }
130
+
131
+ func dictionaryTopPresentationRequestDescriptor(
132
+ _ presentationRequestDescriptorLinkDictionary: [String: Any]
133
+ ) -> VCLPresentationRequestDescriptor {
134
+ return VCLPresentationRequestDescriptor(
135
+ deepLink: dictionaryToDeepLink(presentationRequestDescriptorLinkDictionary["deepLink"] as? [String: Any]),
136
+ pushDelegate: dictionaryToPushDelegate(presentationRequestDescriptorLinkDictionary["pushDelegate"] as? [String: Any])
137
+ )
129
138
  }
130
139
 
131
140
  func dictionaryToDeepLink(_ deepLinkDictionary: [String: Any]?) -> VCLDeepLink {
@@ -340,6 +349,18 @@ func organizationsToDictionary(
340
349
  return organizationsMap
341
350
  }
342
351
 
352
+ func dictionaryToPushDelegate(_ pushDelegateMap: [String: Any]?) -> VCLPushDelegate? {
353
+ let pushUrl = pushDelegateMap?["pushUrl"] as? String
354
+ let pushToken = pushDelegateMap?["pushToken"] as? String
355
+ if (pushUrl != nil && pushToken != nil) {
356
+ return VCLPushDelegate(
357
+ pushUrl: pushUrl!,
358
+ pushToken: pushToken!
359
+ )
360
+ }
361
+ else { return nil }
362
+ }
363
+
343
364
  func dictionaryToCredentialManifestDescriptor(
344
365
  _ credentialManifestDescriptorDictionary: [String: Any]
345
366
  ) -> VCLCredentialManifestDescriptor? {
@@ -369,10 +390,7 @@ func dictionaryToCredentialManifestDescriptorByService(
369
390
  _ credentialManifestDescriptorByServiceDictionary: [String: Any]
370
391
  ) -> VCLCredentialManifestDescriptorByService {
371
392
  let pushDelegateDictionary = credentialManifestDescriptorByServiceDictionary["pushDelegate"] as? [String: Any]
372
- let pushDelegate = VCLPushDelegate(
373
- pushUrl: pushDelegateDictionary?["pushUrl"] as? String ?? "",
374
- pushToken: pushDelegateDictionary?["pushToken"] as? String ?? ""
375
- )
393
+ let pushDelegate = dictionaryToPushDelegate(pushDelegateDictionary)
376
394
  return VCLCredentialManifestDescriptorByService(
377
395
  service: dictionaryToServiceCredentialAgentIssuer(
378
396
  credentialManifestDescriptorByServiceDictionary["service"] as? [String : Any]
@@ -21,7 +21,7 @@ RCT_EXTERN_METHOD(getCredentialTypeSchemas:(RCTPromiseResolveBlock)resolve
21
21
  RCT_EXTERN_METHOD(getCredentialTypes:(RCTPromiseResolveBlock)resolve
22
22
  withRejecter:(RCTPromiseRejectBlock)reject)
23
23
 
24
- RCT_EXTERN_METHOD(getPresentationRequest:(NSDictionary*)deepLink
24
+ RCT_EXTERN_METHOD(getPresentationRequest:(NSDictionary*)presentationRequestDescriptorDictionary
25
25
  withResolver:(RCTPromiseResolveBlock)resolve
26
26
  withRejecter:(RCTPromiseRejectBlock)reject)
27
27
 
@@ -64,11 +64,11 @@ class VclReactNative: NSObject {
64
64
 
65
65
  @objc(getPresentationRequest:withResolver:withRejecter:)
66
66
  func getPresentationRequest(
67
- deepLinkDictionary: [String: String],
67
+ presentationRequestDescriptorDictionary: [String: Any],
68
68
  resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
69
69
  ) {
70
70
  vcl.getPresentationRequest(
71
- deepLink: dictionaryToDeepLink(deepLinkDictionary),
71
+ presentationRequestDescriptor: dictionaryTopPresentationRequestDescriptor(presentationRequestDescriptorDictionary),
72
72
  successHandler: {
73
73
  resolve(presentationRequestToDictionary($0))
74
74
  },
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=VCLPresentationRequestDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAGA;;AAGA;;AAiCA;;AA9CA;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 { 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';\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};\n"]}
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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=VCLPresentationRequestDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -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;AASA,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';\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};\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;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"]}
@@ -10,7 +10,6 @@ import type { VCLCredentialType } from './entities/VCLCredentialType';
10
10
  import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';
11
11
  import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
12
12
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
13
- import type { VCLDeepLink } from './entities/VCLDeepLink';
14
13
  import type { VCLExchange } from './entities/VCLExchange';
15
14
  import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
16
15
  import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
@@ -30,12 +29,13 @@ import type { VCLCountries } from './entities/VCLCountries';
30
29
  import type { Dictionary } from './Dictionary';
31
30
  import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
32
31
  import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
32
+ import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
33
33
  export declare type VclApi = {
34
34
  initialize(initializationDescriptor: VCLInitializationDescriptor): Promise<void>;
35
35
  getCountries(): Promise<VCLCountries>;
36
36
  getCredentialTypeSchemas(): Promise<VCLCredentialTypeSchemas>;
37
37
  getCredentialTypes(): Promise<Array<VCLCredentialType>>;
38
- getPresentationRequest(deepLink: VCLDeepLink): Promise<VCLPresentationRequest>;
38
+ getPresentationRequest(presentationRequestDescriptor: VCLPresentationRequestDescriptor): Promise<VCLPresentationRequest>;
39
39
  submitPresentation(presentationSubmission: VCLPresentationSubmission): Promise<VCLSubmissionResult>;
40
40
  getExchangeProgress(exchangeDescriptor: VCLExchangeDescriptor): Promise<VCLExchange>;
41
41
  searchForOrganizations(organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor): Promise<VCLOrganizations>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import type { VCLDeepLink } from './VCLDeepLink';
8
+ import type { VCLPushDelegate } from './VCLPushDelegate';
9
+ export interface VCLPresentationRequestDescriptor {
10
+ deepLink: VCLDeepLink;
11
+ pushDelegate?: VCLPushDelegate;
12
+ }
@@ -5,6 +5,12 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
  export interface VCLPushDelegate {
8
- pushToken: string;
8
+ /**
9
+ * the url of the endpoint that will send pushes to the device
10
+ */
9
11
  pushUrl: string;
12
+ /**
13
+ * the token to use for identifying the group of devices this device belongs to
14
+ */
15
+ pushToken: string;
10
16
  }
@@ -50,6 +50,7 @@ import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
50
50
  import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
51
51
  import type { Dictionary } from './api/Dictionary';
52
52
  import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
53
+ import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
53
54
  declare const _default: VclApi;
54
55
  export default _default;
55
- 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, };
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, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "1.1.11",
3
+ "version": "1.2.3",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/src/api/VCLApi.ts CHANGED
@@ -11,7 +11,6 @@ import type { VCLCredentialType } from './entities/VCLCredentialType';
11
11
  import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';
12
12
  import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
13
13
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
14
- import type { VCLDeepLink } from './entities/VCLDeepLink';
15
14
  import type { VCLExchange } from './entities/VCLExchange';
16
15
  import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
17
16
  import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
@@ -31,6 +30,7 @@ import type { VCLCountries } from './entities/VCLCountries';
31
30
  import type { Dictionary } from './Dictionary';
32
31
  import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
33
32
  import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
33
+ import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
34
34
 
35
35
  export type VclApi = {
36
36
  initialize(
@@ -42,7 +42,7 @@ export type VclApi = {
42
42
  getCredentialTypes(): Promise<Array<VCLCredentialType>>;
43
43
 
44
44
  getPresentationRequest(
45
- deepLink: VCLDeepLink
45
+ presentationRequestDescriptor: VCLPresentationRequestDescriptor
46
46
  ): Promise<VCLPresentationRequest>;
47
47
 
48
48
  submitPresentation(
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ import type { VCLDeepLink } from './VCLDeepLink';
9
+ import type { VCLPushDelegate } from './VCLPushDelegate';
10
+
11
+ export interface VCLPresentationRequestDescriptor {
12
+ deepLink: VCLDeepLink;
13
+ pushDelegate?: VCLPushDelegate;
14
+ }
@@ -6,6 +6,12 @@
6
6
  */
7
7
 
8
8
  export interface VCLPushDelegate {
9
- pushToken: string;
9
+ /**
10
+ * the url of the endpoint that will send pushes to the device
11
+ */
10
12
  pushUrl: string;
13
+ /**
14
+ * the token to use for identifying the group of devices this device belongs to
15
+ */
16
+ pushToken: string;
11
17
  }
package/src/index.tsx CHANGED
@@ -52,6 +52,7 @@ import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
52
52
  import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
53
53
  import type { Dictionary } from './api/Dictionary';
54
54
  import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
55
+ import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
55
56
 
56
57
  const { VclReactNative } = NativeModules;
57
58
 
@@ -102,4 +103,5 @@ export {
102
103
  VCLVerifiedProfile,
103
104
  VCLVerifiedProfileDescriptor,
104
105
  VCLInitializationDescriptor,
106
+ VCLPresentationRequestDescriptor,
105
107
  };
@@ -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.1.11"
21
+ s.dependency "VCL", "1.2.3"
22
22
  end