@velocitycareerlabs/vcl-react-native 1.4.0 → 1.5.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.
- package/android/build.gradle +2 -2
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradle.properties +3 -3
- package/lib/commonjs/api/VCLApi.js +137 -0
- package/lib/commonjs/api/VCLApi.js.map +1 -1
- package/lib/commonjs/api/entities/VCLError.js +40 -0
- package/lib/commonjs/api/entities/VCLError.js.map +1 -0
- package/lib/commonjs/api/entities/VCLJwt.js +2 -0
- package/lib/commonjs/api/entities/{VCLJWT.js.map → VCLJwt.js.map} +0 -0
- package/lib/commonjs/index.js +10 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/api/VCLApi.js +132 -1
- package/lib/module/api/VCLApi.js.map +1 -1
- package/lib/module/api/entities/VCLError.js +28 -0
- package/lib/module/api/entities/VCLError.js.map +1 -0
- package/lib/module/api/entities/VCLJwt.js +2 -0
- package/lib/module/api/entities/{VCLJWT.js.map → VCLJwt.js.map} +0 -0
- package/lib/module/index.js +4 -6
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/Dictionary.d.ts +1 -1
- package/lib/typescript/api/VCLApi.d.ts +21 -21
- package/lib/typescript/api/entities/VCLCountry.d.ts +1 -1
- package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +2 -2
- package/lib/typescript/api/entities/VCLCredentialType.d.ts +1 -1
- package/lib/typescript/api/entities/VCLCredentialTypeSchema.d.ts +1 -1
- package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchema.d.ts +1 -1
- package/lib/typescript/api/entities/VCLError.d.ts +12 -0
- package/lib/typescript/api/entities/{VCLJWT.d.ts → VCLJwt.d.ts} +1 -1
- package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +2 -2
- package/lib/typescript/api/entities/VCLOffers.d.ts +1 -1
- package/lib/typescript/api/entities/VCLOrganization.d.ts +1 -1
- package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +2 -2
- package/lib/typescript/api/entities/VCLRegion.d.ts +1 -1
- package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +1 -1
- package/lib/typescript/index.d.ts +7 -6
- package/package.json +6 -6
- package/src/api/VCLApi.ts +170 -46
- package/src/api/entities/VCLCountry.ts +1 -1
- package/src/api/entities/VCLCredentialManifest.ts +2 -2
- package/src/api/entities/VCLCredentialType.ts +1 -1
- package/src/api/entities/VCLCredentialTypeSchema.ts +1 -1
- package/src/api/entities/VCLCredentialTypesUIFormSchema.ts +1 -1
- package/src/api/entities/VCLError.ts +24 -0
- package/src/api/entities/{VCLJWT.ts → VCLJwt.ts} +1 -1
- package/src/api/entities/VCLJwtVerifiableCredentials.ts +2 -2
- package/src/api/entities/VCLOffers.ts +1 -1
- package/src/api/entities/VCLOrganization.ts +1 -1
- package/src/api/entities/VCLPresentationRequest.ts +2 -2
- package/src/api/entities/VCLRegion.ts +1 -1
- package/src/api/entities/VCLVerifiedProfile.ts +1 -1
- package/src/index.tsx +10 -8
- package/vcl-react-native.podspec +1 -1
- package/lib/commonjs/api/entities/VCLJWT.js +0 -2
- package/lib/module/api/entities/VCLJWT.js +0 -2
package/android/build.gradle
CHANGED
|
@@ -9,7 +9,7 @@ buildscript {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
dependencies {
|
|
12
|
-
classpath 'com.android.tools.build:gradle:7.
|
|
12
|
+
classpath 'com.android.tools.build:gradle:7.4.0'
|
|
13
13
|
// noinspection DifferentKotlinGradleVersion
|
|
14
14
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
15
15
|
}
|
|
@@ -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.
|
|
134
|
+
implementation "io.velocitycareerlabs:vcl:1.5.0"
|
|
135
135
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
|
|
4
3
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
4
|
zipStorePath=wrapper/dists
|
|
5
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
VclReactNative_kotlinVersion=1.
|
|
2
|
-
VclReactNative_compileSdkVersion=
|
|
1
|
+
VclReactNative_kotlinVersion=1.7.21
|
|
2
|
+
VclReactNative_compileSdkVersion=33
|
|
3
3
|
VclReactNative_buildToolsVersion=30.0.3
|
|
4
|
-
VclReactNative_targetSdkVersion=
|
|
4
|
+
VclReactNative_targetSdkVersion=33
|
|
@@ -3,4 +3,141 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.VclApi = void 0;
|
|
7
|
+
|
|
8
|
+
var _VCLError = require("./entities/VCLError");
|
|
9
|
+
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Created by Michael Avoyan.
|
|
14
|
+
*
|
|
15
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
16
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
*/
|
|
18
|
+
const {
|
|
19
|
+
VclReactNative
|
|
20
|
+
} = _reactNative.NativeModules;
|
|
21
|
+
const VclApi = {
|
|
22
|
+
initialize: async initializationDescriptor => {
|
|
23
|
+
try {
|
|
24
|
+
return await VclReactNative.initialize(initializationDescriptor);
|
|
25
|
+
} catch (e) {
|
|
26
|
+
throw (0, _VCLError.toVclError)(e);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
getCountries: async () => {
|
|
30
|
+
try {
|
|
31
|
+
return await VclReactNative.getCountries();
|
|
32
|
+
} catch (e) {
|
|
33
|
+
throw (0, _VCLError.toVclError)(e);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
getCredentialTypes: async () => {
|
|
37
|
+
try {
|
|
38
|
+
return await VclReactNative.getCredentialTypes();
|
|
39
|
+
} catch (e) {
|
|
40
|
+
throw (0, _VCLError.toVclError)(e);
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
getCredentialTypeSchemas: async () => {
|
|
44
|
+
try {
|
|
45
|
+
return await VclReactNative.getCredentialTypeSchemas();
|
|
46
|
+
} catch (e) {
|
|
47
|
+
throw (0, _VCLError.toVclError)(e);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
getPresentationRequest: async presentationRequestDescriptor => {
|
|
51
|
+
try {
|
|
52
|
+
return await VclReactNative.getPresentationRequest(presentationRequestDescriptor);
|
|
53
|
+
} catch (e) {
|
|
54
|
+
throw (0, _VCLError.toVclError)(e);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
submitPresentation: async presentationSubmission => {
|
|
58
|
+
try {
|
|
59
|
+
return await VclReactNative.submitPresentation(presentationSubmission);
|
|
60
|
+
} catch (e) {
|
|
61
|
+
throw (0, _VCLError.toVclError)(e);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
getExchangeProgress: async exchangeDescriptor => {
|
|
65
|
+
try {
|
|
66
|
+
return await VclReactNative.getExchangeProgress(exchangeDescriptor);
|
|
67
|
+
} catch (e) {
|
|
68
|
+
throw (0, _VCLError.toVclError)(e);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
searchForOrganizations: async organizationsSearchDescriptor => {
|
|
72
|
+
try {
|
|
73
|
+
return await VclReactNative.searchForOrganizations(organizationsSearchDescriptor);
|
|
74
|
+
} catch (e) {
|
|
75
|
+
throw (0, _VCLError.toVclError)(e);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
getCredentialManifest: async credentialManifestDescriptor => {
|
|
79
|
+
try {
|
|
80
|
+
return await VclReactNative.getCredentialManifest(credentialManifestDescriptor);
|
|
81
|
+
} catch (e) {
|
|
82
|
+
throw (0, _VCLError.toVclError)(e);
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
generateOffers: async generateOffersDescriptor => {
|
|
86
|
+
try {
|
|
87
|
+
return await VclReactNative.generateOffers(generateOffersDescriptor);
|
|
88
|
+
} catch (e) {
|
|
89
|
+
throw (0, _VCLError.toVclError)(e);
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
checkForOffers: async (generateOffersDescriptor, token) => {
|
|
93
|
+
try {
|
|
94
|
+
return await VclReactNative.checkForOffers(generateOffersDescriptor, token);
|
|
95
|
+
} catch (e) {
|
|
96
|
+
throw (0, _VCLError.toVclError)(e);
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
finalizeOffers: async (finalizeOffersDescriptor, token) => {
|
|
100
|
+
try {
|
|
101
|
+
return await VclReactNative.finalizeOffers(finalizeOffersDescriptor, token);
|
|
102
|
+
} catch (e) {
|
|
103
|
+
throw (0, _VCLError.toVclError)(e);
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
getCredentialTypesUIFormSchema: async credentialTypesUIFormSchemaDescriptor => {
|
|
107
|
+
try {
|
|
108
|
+
return await VclReactNative.getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor);
|
|
109
|
+
} catch (e) {
|
|
110
|
+
throw (0, _VCLError.toVclError)(e);
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
getVerifiedProfile: async verifiedProfileDescriptor => {
|
|
114
|
+
try {
|
|
115
|
+
return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);
|
|
116
|
+
} catch (e) {
|
|
117
|
+
throw (0, _VCLError.toVclError)(e);
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
verifyJwt: async (jwt, jwkPublic) => {
|
|
121
|
+
try {
|
|
122
|
+
return await VclReactNative.verifyJwt(jwt, jwkPublic);
|
|
123
|
+
} catch (e) {
|
|
124
|
+
throw (0, _VCLError.toVclError)(e);
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
generateSignedJwt: async jwtDescriptor => {
|
|
128
|
+
try {
|
|
129
|
+
return await VclReactNative.generateSignedJwt(jwtDescriptor);
|
|
130
|
+
} catch (e) {
|
|
131
|
+
throw (0, _VCLError.toVclError)(e);
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
generateDidJwk: async () => {
|
|
135
|
+
try {
|
|
136
|
+
return await VclReactNative.generateDidJwk();
|
|
137
|
+
} catch (e) {
|
|
138
|
+
throw (0, _VCLError.toVclError)(e);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
exports.VclApi = VclApi;
|
|
6
143
|
//# sourceMappingURL=VCLApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
1
|
+
{"version":3,"sources":["VCLApi.ts"],"names":["VclReactNative","NativeModules","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","token","finalizeOffers","finalizeOffersDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","generateSignedJwt","jwtDescriptor","generateDidJwk"],"mappings":";;;;;;;AAiCA;;AAGA;;AApCA;AACA;AACA;AACA;AACA;AACA;AAgCA,MAAM;AAAEA,EAAAA;AAAF,IAAqBC,0BAA3B;AAEO,MAAMC,MAAM,GAAG;AACpBC,EAAAA,UAAU,EAAE,MACVC,wBADU,IAEQ;AACl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AACF,aAAO,MAAM1B,cAAc,CAACyB,8BAAf,CACXC,qCADW,CAAb;AAGD,KAJD,CAIE,OAAOrB,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GA3ImB;AA6IpBsB,EAAAA,kBAAkB,EAAE,MAClBC,yBADkB,IAEc;AAChC,QAAI;AACF,aAAO,MAAM5B,cAAc,CAAC2B,kBAAf,CAAkCC,yBAAlC,CAAb;AACD,KAFD,CAEE,OAAOvB,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GArJmB;AAuJpBwB,EAAAA,SAAS,EAAE,OAAOC,GAAP,EAAoBC,SAApB,KAAkE;AAC3E,QAAI;AACF,aAAO,MAAM/B,cAAc,CAAC6B,SAAf,CAAyBC,GAAzB,EAA8BC,SAA9B,CAAb;AACD,KAFD,CAEE,OAAO1B,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GA7JmB;AA+JpB2B,EAAAA,iBAAiB,EAAE,MACjBC,aADiB,IAEG;AACpB,QAAI;AACF,aAAO,MAAMjC,cAAc,CAACgC,iBAAf,CAAiCC,aAAjC,CAAb;AACD,KAFD,CAEE,OAAO5B,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GAvKmB;AAyKpB6B,EAAAA,cAAc,EAAE,YAAgC;AAC9C,QAAI;AACF,aAAO,MAAMlC,cAAc,CAACkC,cAAf,EAAb;AACD,KAFD,CAEE,OAAO7B,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF;AA/KmB,CAAf","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 { VCLCredentialManifest } from './entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLExchange } from './entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';\nimport type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';\nimport type { VCLJwt } from './entities/VCLJwt';\nimport type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './entities/VCLOffers';\nimport type { VCLOrganizations } from './entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPresentationRequest } from './entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';\nimport type { VCLJwkPublic } from './entities/VCLJwkPublic';\nimport type { VCLToken } from './entities/VCLToken';\nimport type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';\nimport type { VCLCountries } from './entities/VCLCountries';\nimport type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';\nimport type { VCLSubmissionResult } from './entities/VCLSubmissionResult';\nimport type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';\nimport type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './entities/VCLDidJwk';\nimport { toVclError } from './entities/VCLError';\nimport type { VCLCredentialTypes } from './entities/VCLCredentialTypes';\n\nimport { NativeModules } from 'react-native';\nconst { VclReactNative } = NativeModules;\n\nexport const VclApi = {\n initialize: async (\n initializationDescriptor: VCLInitializationDescriptor\n ): Promise<void> => {\n try {\n return await VclReactNative.initialize(initializationDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCountries: async (): Promise<VCLCountries> => {\n try {\n return await VclReactNative.getCountries();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypes: async (): Promise<VCLCredentialTypes> => {\n try {\n return await VclReactNative.getCredentialTypes();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {\n try {\n return await VclReactNative.getCredentialTypeSchemas();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getPresentationRequest: async (\n presentationRequestDescriptor: VCLPresentationRequestDescriptor\n ): Promise<VCLPresentationRequest> => {\n try {\n return await VclReactNative.getPresentationRequest(\n presentationRequestDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n submitPresentation: async (\n presentationSubmission: VCLPresentationSubmission\n ): Promise<VCLSubmissionResult> => {\n try {\n return await VclReactNative.submitPresentation(presentationSubmission);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getExchangeProgress: async (\n exchangeDescriptor: VCLExchangeDescriptor\n ): Promise<VCLExchange> => {\n try {\n return await VclReactNative.getExchangeProgress(exchangeDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n searchForOrganizations: async (\n organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor\n ): Promise<VCLOrganizations> => {\n try {\n return await VclReactNative.searchForOrganizations(\n organizationsSearchDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialManifest: async (\n credentialManifestDescriptor: VCLCredentialManifestDescriptor\n ): Promise<VCLCredentialManifest> => {\n try {\n return await VclReactNative.getCredentialManifest(\n credentialManifestDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n generateOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.generateOffers(generateOffersDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n checkForOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n token: VCLToken\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.checkForOffers(\n generateOffersDescriptor,\n token\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n finalizeOffers: async (\n finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,\n token: VCLToken\n ): Promise<VCLJwtVerifiableCredentials> => {\n try {\n return await VclReactNative.finalizeOffers(\n finalizeOffersDescriptor,\n token\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypesUIFormSchema: async (\n credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor\n ): Promise<VCLCredentialTypesUIFormSchema> => {\n try {\n return await VclReactNative.getCredentialTypesUIFormSchema(\n credentialTypesUIFormSchemaDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getVerifiedProfile: async (\n verifiedProfileDescriptor: VCLVerifiedProfileDescriptor\n ): Promise<VCLVerifiedProfile> => {\n try {\n return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n verifyJwt: async (jwt: VCLJwt, jwkPublic: VCLJwkPublic): Promise<boolean> => {\n try {\n return await VclReactNative.verifyJwt(jwt, jwkPublic);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n generateSignedJwt: async (\n jwtDescriptor: VCLJwtDescriptor\n ): Promise<VCLJwt> => {\n try {\n return await VclReactNative.generateSignedJwt(jwtDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n generateDidJwk: async (): Promise<VCLDidJwk> => {\n try {\n return await VclReactNative.generateDidJwk();\n } catch (e) {\n throw toVclError(e);\n }\n },\n};\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.toVclError = exports.VCLError = void 0;
|
|
7
|
+
|
|
8
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Created by Michael Avoyan.
|
|
12
|
+
*
|
|
13
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
14
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
15
|
+
*/
|
|
16
|
+
class VCLError extends Error {
|
|
17
|
+
constructor(error) {
|
|
18
|
+
super(error);
|
|
19
|
+
|
|
20
|
+
_defineProperty(this, "description", void 0);
|
|
21
|
+
|
|
22
|
+
_defineProperty(this, "code", void 0);
|
|
23
|
+
|
|
24
|
+
try {
|
|
25
|
+
const errorJson = JSON.parse(error.message);
|
|
26
|
+
this.description = errorJson.description;
|
|
27
|
+
this.code = parseInt(errorJson.code, 10);
|
|
28
|
+
} catch (e) {}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.VCLError = VCLError;
|
|
34
|
+
|
|
35
|
+
const toVclError = error => {
|
|
36
|
+
return new VCLError(error);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.toVclError = toVclError;
|
|
40
|
+
//# sourceMappingURL=VCLError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["VCLError.ts"],"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","description","code","parseInt","e","toVclError"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAMA,QAAN,SAAuBC,KAAvB,CAA6B;AAIlCC,EAAAA,WAAW,CAACC,KAAD,EAAa;AACtB,UAAMA,KAAN;;AADsB;;AAAA;;AAEtB,QAAI;AACF,YAAMC,SAAS,GAAGC,IAAI,CAACC,KAAL,CAAWH,KAAK,CAACI,OAAjB,CAAlB;AACA,WAAKC,WAAL,GAAmBJ,SAAS,CAACI,WAA7B;AACA,WAAKC,IAAL,GAAYC,QAAQ,CAACN,SAAS,CAACK,IAAX,EAAiB,EAAjB,CAApB;AACD,KAJD,CAIE,OAAOE,CAAP,EAAU,CAAE;AACf;;AAXiC;;;;AAc7B,MAAMC,UAAU,GAAIT,KAAD,IAAgB;AACxC,SAAO,IAAIH,QAAJ,CAAaG,KAAb,CAAP;AACD,CAFM","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport class VCLError extends Error {\n description?: string;\n code?: number;\n\n constructor(error: any) {\n super(error);\n try {\n const errorJson = JSON.parse(error.message);\n this.description = errorJson.description;\n this.code = parseInt(errorJson.code, 10);\n } catch (e) {}\n }\n}\n\nexport const toVclError = (error: any) => {\n return new VCLError(error);\n};\n"]}
|
|
File without changes
|
package/lib/commonjs/index.js
CHANGED
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "VCLEnvTypes", {
|
|
|
15
15
|
return _VCLEnvironment.VCLEnvTypes;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "VCLErrorCode", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _VCLErrorCode.VCLErrorCode;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
18
24
|
Object.defineProperty(exports, "VCLServiceType", {
|
|
19
25
|
enumerable: true,
|
|
20
26
|
get: function () {
|
|
@@ -23,7 +29,7 @@ Object.defineProperty(exports, "VCLServiceType", {
|
|
|
23
29
|
});
|
|
24
30
|
exports.default = void 0;
|
|
25
31
|
|
|
26
|
-
var
|
|
32
|
+
var _VCLApi = require("./api/VCLApi");
|
|
27
33
|
|
|
28
34
|
var _VCLEnvironment = require("./api/VCLEnvironment");
|
|
29
35
|
|
|
@@ -31,15 +37,14 @@ var _VCLCountries = require("./api/entities/VCLCountries");
|
|
|
31
37
|
|
|
32
38
|
var _VCLServiceType = require("./api/entities/VCLServiceType");
|
|
33
39
|
|
|
40
|
+
var _VCLErrorCode = require("./api/entities/VCLErrorCode");
|
|
41
|
+
|
|
34
42
|
/**
|
|
35
43
|
* Created by Michael Avoyan.
|
|
36
44
|
*
|
|
37
45
|
* Copyright 2022 Velocity Career Labs inc.
|
|
38
46
|
* SPDX-License-Identifier: Apache-2.0
|
|
39
47
|
*/
|
|
40
|
-
|
|
41
|
-
VclReactNative
|
|
42
|
-
} = _reactNative.NativeModules;
|
|
43
|
-
var _default = VclReactNative;
|
|
48
|
+
var _default = _VCLApi.VclApi;
|
|
44
49
|
exports.default = _default;
|
|
45
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["VclApi"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAEA;;AAGA;;AAiCA;;AAWA;;AAxDA;AACA;AACA;AACA;AACA;AACA;eAsDeA,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 { 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 { VCLCredentialTypes } from './api/entities/VCLCredentialTypes';\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 { VCLJwkPublic } from './api/entities/VCLJwkPublic';\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';\nimport type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './api/entities/VCLDidJwk';\nimport { VCLErrorCode } from './api/entities/VCLErrorCode';\nimport type { VCLError, toVclError } from './api/entities/VCLError';\n\nexport default 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 VCLCredentialTypes,\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 VCLJwkPublic,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n VCLJwtDescriptor,\n VCLDidJwk,\n VCLErrorCode,\n VCLError,\n toVclError,\n};\n"]}
|
package/lib/module/api/VCLApi.js
CHANGED
|
@@ -1,2 +1,133 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
import { toVclError } from './entities/VCLError';
|
|
8
|
+
import { NativeModules } from 'react-native';
|
|
9
|
+
const {
|
|
10
|
+
VclReactNative
|
|
11
|
+
} = NativeModules;
|
|
12
|
+
export const VclApi = {
|
|
13
|
+
initialize: async initializationDescriptor => {
|
|
14
|
+
try {
|
|
15
|
+
return await VclReactNative.initialize(initializationDescriptor);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw toVclError(e);
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
getCountries: async () => {
|
|
21
|
+
try {
|
|
22
|
+
return await VclReactNative.getCountries();
|
|
23
|
+
} catch (e) {
|
|
24
|
+
throw toVclError(e);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
getCredentialTypes: async () => {
|
|
28
|
+
try {
|
|
29
|
+
return await VclReactNative.getCredentialTypes();
|
|
30
|
+
} catch (e) {
|
|
31
|
+
throw toVclError(e);
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
getCredentialTypeSchemas: async () => {
|
|
35
|
+
try {
|
|
36
|
+
return await VclReactNative.getCredentialTypeSchemas();
|
|
37
|
+
} catch (e) {
|
|
38
|
+
throw toVclError(e);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
getPresentationRequest: async presentationRequestDescriptor => {
|
|
42
|
+
try {
|
|
43
|
+
return await VclReactNative.getPresentationRequest(presentationRequestDescriptor);
|
|
44
|
+
} catch (e) {
|
|
45
|
+
throw toVclError(e);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
submitPresentation: async presentationSubmission => {
|
|
49
|
+
try {
|
|
50
|
+
return await VclReactNative.submitPresentation(presentationSubmission);
|
|
51
|
+
} catch (e) {
|
|
52
|
+
throw toVclError(e);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
getExchangeProgress: async exchangeDescriptor => {
|
|
56
|
+
try {
|
|
57
|
+
return await VclReactNative.getExchangeProgress(exchangeDescriptor);
|
|
58
|
+
} catch (e) {
|
|
59
|
+
throw toVclError(e);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
searchForOrganizations: async organizationsSearchDescriptor => {
|
|
63
|
+
try {
|
|
64
|
+
return await VclReactNative.searchForOrganizations(organizationsSearchDescriptor);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw toVclError(e);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
getCredentialManifest: async credentialManifestDescriptor => {
|
|
70
|
+
try {
|
|
71
|
+
return await VclReactNative.getCredentialManifest(credentialManifestDescriptor);
|
|
72
|
+
} catch (e) {
|
|
73
|
+
throw toVclError(e);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
generateOffers: async generateOffersDescriptor => {
|
|
77
|
+
try {
|
|
78
|
+
return await VclReactNative.generateOffers(generateOffersDescriptor);
|
|
79
|
+
} catch (e) {
|
|
80
|
+
throw toVclError(e);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
checkForOffers: async (generateOffersDescriptor, token) => {
|
|
84
|
+
try {
|
|
85
|
+
return await VclReactNative.checkForOffers(generateOffersDescriptor, token);
|
|
86
|
+
} catch (e) {
|
|
87
|
+
throw toVclError(e);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
finalizeOffers: async (finalizeOffersDescriptor, token) => {
|
|
91
|
+
try {
|
|
92
|
+
return await VclReactNative.finalizeOffers(finalizeOffersDescriptor, token);
|
|
93
|
+
} catch (e) {
|
|
94
|
+
throw toVclError(e);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
getCredentialTypesUIFormSchema: async credentialTypesUIFormSchemaDescriptor => {
|
|
98
|
+
try {
|
|
99
|
+
return await VclReactNative.getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor);
|
|
100
|
+
} catch (e) {
|
|
101
|
+
throw toVclError(e);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
getVerifiedProfile: async verifiedProfileDescriptor => {
|
|
105
|
+
try {
|
|
106
|
+
return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);
|
|
107
|
+
} catch (e) {
|
|
108
|
+
throw toVclError(e);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
verifyJwt: async (jwt, jwkPublic) => {
|
|
112
|
+
try {
|
|
113
|
+
return await VclReactNative.verifyJwt(jwt, jwkPublic);
|
|
114
|
+
} catch (e) {
|
|
115
|
+
throw toVclError(e);
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
generateSignedJwt: async jwtDescriptor => {
|
|
119
|
+
try {
|
|
120
|
+
return await VclReactNative.generateSignedJwt(jwtDescriptor);
|
|
121
|
+
} catch (e) {
|
|
122
|
+
throw toVclError(e);
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
generateDidJwk: async () => {
|
|
126
|
+
try {
|
|
127
|
+
return await VclReactNative.generateDidJwk();
|
|
128
|
+
} catch (e) {
|
|
129
|
+
throw toVclError(e);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
2
133
|
//# sourceMappingURL=VCLApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
1
|
+
{"version":3,"sources":["VCLApi.ts"],"names":["toVclError","NativeModules","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","token","finalizeOffers","finalizeOffersDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","generateSignedJwt","jwtDescriptor","generateDidJwk"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AA4BA,SAASA,UAAT,QAA2B,qBAA3B;AAGA,SAASC,aAAT,QAA8B,cAA9B;AACA,MAAM;AAAEC,EAAAA;AAAF,IAAqBD,aAA3B;AAEA,OAAO,MAAME,MAAM,GAAG;AACpBC,EAAAA,UAAU,EAAE,MACVC,wBADU,IAEQ;AAClB,QAAI;AACF,aAAO,MAAMH,cAAc,CAACE,UAAf,CAA0BC,wBAA1B,CAAb;AACD,KAFD,CAEE,OAAOC,CAAP,EAAU;AACV,YAAMN,UAAU,CAACM,CAAD,CAAhB;AACD;AACF,GATmB;AAWpBC,EAAAA,YAAY,EAAE,YAAmC;AAC/C,QAAI;AACF,aAAO,MAAML,cAAc,CAACK,YAAf,EAAb;AACD,KAFD,CAEE,OAAOD,CAAP,EAAU;AACV,YAAMN,UAAU,CAACM,CAAD,CAAhB;AACD;AACF,GAjBmB;AAmBpBE,EAAAA,kBAAkB,EAAE,YAAyC;AAC3D,QAAI;AACF,aAAO,MAAMN,cAAc,CAACM,kBAAf,EAAb;AACD,KAFD,CAEE,OAAOF,CAAP,EAAU;AACV,YAAMN,UAAU,CAACM,CAAD,CAAhB;AACD;AACF,GAzBmB;AA2BpBG,EAAAA,wBAAwB,EAAE,YAA+C;AACvE,QAAI;AACF,aAAO,MAAMP,cAAc,CAACO,wBAAf,EAAb;AACD,KAFD,CAEE,OAAOH,CAAP,EAAU;AACV,YAAMN,UAAU,CAACM,CAAD,CAAhB;AACD;AACF,GAjCmB;AAmCpBI,EAAAA,sBAAsB,EAAE,MACtBC,6BADsB,IAEc;AACpC,QAAI;AAC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,CAAC+B,iBAAf,CAAiCC,aAAjC,CAAb;AACD,KAFD,CAEE,OAAO5B,CAAP,EAAU;AACV,YAAMN,UAAU,CAACM,CAAD,CAAhB;AACD;AACF,GAvKmB;AAyKpB6B,EAAAA,cAAc,EAAE,YAAgC;AAC9C,QAAI;AACF,aAAO,MAAMjC,cAAc,CAACiC,cAAf,EAAb;AACD,KAFD,CAEE,OAAO7B,CAAP,EAAU;AACV,YAAMN,UAAU,CAACM,CAAD,CAAhB;AACD;AACF;AA/KmB,CAAf","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 { VCLCredentialManifest } from './entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLExchange } from './entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';\nimport type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';\nimport type { VCLJwt } from './entities/VCLJwt';\nimport type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './entities/VCLOffers';\nimport type { VCLOrganizations } from './entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPresentationRequest } from './entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';\nimport type { VCLJwkPublic } from './entities/VCLJwkPublic';\nimport type { VCLToken } from './entities/VCLToken';\nimport type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';\nimport type { VCLCountries } from './entities/VCLCountries';\nimport type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';\nimport type { VCLSubmissionResult } from './entities/VCLSubmissionResult';\nimport type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';\nimport type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './entities/VCLDidJwk';\nimport { toVclError } from './entities/VCLError';\nimport type { VCLCredentialTypes } from './entities/VCLCredentialTypes';\n\nimport { NativeModules } from 'react-native';\nconst { VclReactNative } = NativeModules;\n\nexport const VclApi = {\n initialize: async (\n initializationDescriptor: VCLInitializationDescriptor\n ): Promise<void> => {\n try {\n return await VclReactNative.initialize(initializationDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCountries: async (): Promise<VCLCountries> => {\n try {\n return await VclReactNative.getCountries();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypes: async (): Promise<VCLCredentialTypes> => {\n try {\n return await VclReactNative.getCredentialTypes();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {\n try {\n return await VclReactNative.getCredentialTypeSchemas();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getPresentationRequest: async (\n presentationRequestDescriptor: VCLPresentationRequestDescriptor\n ): Promise<VCLPresentationRequest> => {\n try {\n return await VclReactNative.getPresentationRequest(\n presentationRequestDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n submitPresentation: async (\n presentationSubmission: VCLPresentationSubmission\n ): Promise<VCLSubmissionResult> => {\n try {\n return await VclReactNative.submitPresentation(presentationSubmission);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getExchangeProgress: async (\n exchangeDescriptor: VCLExchangeDescriptor\n ): Promise<VCLExchange> => {\n try {\n return await VclReactNative.getExchangeProgress(exchangeDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n searchForOrganizations: async (\n organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor\n ): Promise<VCLOrganizations> => {\n try {\n return await VclReactNative.searchForOrganizations(\n organizationsSearchDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialManifest: async (\n credentialManifestDescriptor: VCLCredentialManifestDescriptor\n ): Promise<VCLCredentialManifest> => {\n try {\n return await VclReactNative.getCredentialManifest(\n credentialManifestDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n generateOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.generateOffers(generateOffersDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n checkForOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n token: VCLToken\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.checkForOffers(\n generateOffersDescriptor,\n token\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n finalizeOffers: async (\n finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,\n token: VCLToken\n ): Promise<VCLJwtVerifiableCredentials> => {\n try {\n return await VclReactNative.finalizeOffers(\n finalizeOffersDescriptor,\n token\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypesUIFormSchema: async (\n credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor\n ): Promise<VCLCredentialTypesUIFormSchema> => {\n try {\n return await VclReactNative.getCredentialTypesUIFormSchema(\n credentialTypesUIFormSchemaDescriptor\n );\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getVerifiedProfile: async (\n verifiedProfileDescriptor: VCLVerifiedProfileDescriptor\n ): Promise<VCLVerifiedProfile> => {\n try {\n return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n verifyJwt: async (jwt: VCLJwt, jwkPublic: VCLJwkPublic): Promise<boolean> => {\n try {\n return await VclReactNative.verifyJwt(jwt, jwkPublic);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n generateSignedJwt: async (\n jwtDescriptor: VCLJwtDescriptor\n ): Promise<VCLJwt> => {\n try {\n return await VclReactNative.generateSignedJwt(jwtDescriptor);\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n generateDidJwk: async (): Promise<VCLDidJwk> => {\n try {\n return await VclReactNative.generateDidJwk();\n } catch (e) {\n throw toVclError(e);\n }\n },\n};\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Created by Michael Avoyan.
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
7
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
export class VCLError extends Error {
|
|
10
|
+
constructor(error) {
|
|
11
|
+
super(error);
|
|
12
|
+
|
|
13
|
+
_defineProperty(this, "description", void 0);
|
|
14
|
+
|
|
15
|
+
_defineProperty(this, "code", void 0);
|
|
16
|
+
|
|
17
|
+
try {
|
|
18
|
+
const errorJson = JSON.parse(error.message);
|
|
19
|
+
this.description = errorJson.description;
|
|
20
|
+
this.code = parseInt(errorJson.code, 10);
|
|
21
|
+
} catch (e) {}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
export const toVclError = error => {
|
|
26
|
+
return new VCLError(error);
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=VCLError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["VCLError.ts"],"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","description","code","parseInt","e","toVclError"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAO,MAAMA,QAAN,SAAuBC,KAAvB,CAA6B;AAIlCC,EAAAA,WAAW,CAACC,KAAD,EAAa;AACtB,UAAMA,KAAN;;AADsB;;AAAA;;AAEtB,QAAI;AACF,YAAMC,SAAS,GAAGC,IAAI,CAACC,KAAL,CAAWH,KAAK,CAACI,OAAjB,CAAlB;AACA,WAAKC,WAAL,GAAmBJ,SAAS,CAACI,WAA7B;AACA,WAAKC,IAAL,GAAYC,QAAQ,CAACN,SAAS,CAACK,IAAX,EAAiB,EAAjB,CAApB;AACD,KAJD,CAIE,OAAOE,CAAP,EAAU,CAAE;AACf;;AAXiC;AAcpC,OAAO,MAAMC,UAAU,GAAIT,KAAD,IAAgB;AACxC,SAAO,IAAIH,QAAJ,CAAaG,KAAb,CAAP;AACD,CAFM","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport class VCLError extends Error {\n description?: string;\n code?: number;\n\n constructor(error: any) {\n super(error);\n try {\n const errorJson = JSON.parse(error.message);\n this.description = errorJson.description;\n this.code = parseInt(errorJson.code, 10);\n } catch (e) {}\n }\n}\n\nexport const toVclError = (error: any) => {\n return new VCLError(error);\n};\n"]}
|
|
File without changes
|
package/lib/module/index.js
CHANGED
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
* Copyright 2022 Velocity Career Labs inc.
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { VclApi } from './api/VCLApi';
|
|
8
8
|
import { VCLEnvTypes } from './api/VCLEnvironment';
|
|
9
9
|
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
10
10
|
import { VCLServiceType } from './api/entities/VCLServiceType';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export default VclReactNative;
|
|
15
|
-
export { VCLEnvTypes, VCLCountryCodes, VCLServiceType };
|
|
11
|
+
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
12
|
+
export default VclApi;
|
|
13
|
+
export { VCLEnvTypes, VCLCountryCodes, VCLServiceType, VCLErrorCode };
|
|
16
14
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["VclApi","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VCLErrorCode"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,MAAT,QAAuB,cAAvB;AAEA,SAASC,WAAT,QAA4B,sBAA5B;AAGA,SAASC,eAAT,QAAgC,6BAAhC;AAiCA,SAASC,cAAT,QAA+B,+BAA/B;AAWA,SAASC,YAAT,QAA6B,6BAA7B;AAGA,eAAeJ,MAAf;AACA,SAGEC,WAHF,EAMEC,eANF,EAuCEC,cAvCF,EAiDEC,YAjDF","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { 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 { VCLCredentialTypes } from './api/entities/VCLCredentialTypes';\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 { VCLJwkPublic } from './api/entities/VCLJwkPublic';\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';\nimport type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './api/entities/VCLDidJwk';\nimport { VCLErrorCode } from './api/entities/VCLErrorCode';\nimport type { VCLError, toVclError } from './api/entities/VCLError';\n\nexport default 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 VCLCredentialTypes,\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 VCLJwkPublic,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n VCLJwtDescriptor,\n VCLDidJwk,\n VCLErrorCode,\n VCLError,\n toVclError,\n};\n"]}
|