@velocitycareerlabs/server-careerwallet 1.26.0-dev-build.16471183f → 1.26.0-dev-build.156b7c4f0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velocitycareerlabs/server-careerwallet",
|
|
3
|
-
"version": "1.26.0-dev-build.
|
|
3
|
+
"version": "1.26.0-dev-build.156b7c4f0",
|
|
4
4
|
"description": "Career Wallet application",
|
|
5
5
|
"repository": "https://github.com/velocitycareerlabs/packages",
|
|
6
6
|
"engines": {
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
"@fastify/swagger-ui": "^5.0.0",
|
|
34
34
|
"@getyoti/sdk-sandbox": "1.7.0",
|
|
35
35
|
"@spencejs/spence-mongo-repos": "^0.10.2",
|
|
36
|
-
"@velocitycareerlabs/auth": "2.0.0-pre.
|
|
37
|
-
"@velocitycareerlabs/aws-clients": "2.0.0-pre.
|
|
38
|
-
"@velocitycareerlabs/common-fetchers": "2.0.0-pre.
|
|
39
|
-
"@velocitycareerlabs/common-functions": "2.0.0-pre.
|
|
40
|
-
"@velocitycareerlabs/common-schemas": "2.0.0-pre.
|
|
41
|
-
"@velocitycareerlabs/config": "2.0.0-pre.
|
|
42
|
-
"@velocitycareerlabs/country-data": "2.0.0-pre.
|
|
43
|
-
"@velocitycareerlabs/crypto": "2.0.0-pre.
|
|
44
|
-
"@velocitycareerlabs/did-doc": "2.0.0-pre.
|
|
45
|
-
"@velocitycareerlabs/fastify-plugins": "2.0.0-pre.
|
|
46
|
-
"@velocitycareerlabs/jwt": "2.0.0-pre.
|
|
47
|
-
"@velocitycareerlabs/migrations": "1.26.0-dev-build.
|
|
48
|
-
"@velocitycareerlabs/organizations-registry": "2.0.0-pre.
|
|
49
|
-
"@velocitycareerlabs/request": "2.0.0-pre.
|
|
50
|
-
"@velocitycareerlabs/server-provider": "2.0.0-pre.
|
|
51
|
-
"@velocitycareerlabs/spencer-mongo-extensions": "2.0.0-pre.
|
|
52
|
-
"@velocitycareerlabs/verifiable-credentials": "2.0.0-pre.
|
|
53
|
-
"@velocitycareerlabs/yoti-integration-plugin": "1.26.0-dev-build.
|
|
36
|
+
"@velocitycareerlabs/auth": "2.0.0-pre.1752815703",
|
|
37
|
+
"@velocitycareerlabs/aws-clients": "2.0.0-pre.1752815703",
|
|
38
|
+
"@velocitycareerlabs/common-fetchers": "2.0.0-pre.1752815703",
|
|
39
|
+
"@velocitycareerlabs/common-functions": "2.0.0-pre.1752815703",
|
|
40
|
+
"@velocitycareerlabs/common-schemas": "2.0.0-pre.1752815703",
|
|
41
|
+
"@velocitycareerlabs/config": "2.0.0-pre.1752815703",
|
|
42
|
+
"@velocitycareerlabs/country-data": "2.0.0-pre.1752815703",
|
|
43
|
+
"@velocitycareerlabs/crypto": "2.0.0-pre.1752815703",
|
|
44
|
+
"@velocitycareerlabs/did-doc": "2.0.0-pre.1752815703",
|
|
45
|
+
"@velocitycareerlabs/fastify-plugins": "2.0.0-pre.1752815703",
|
|
46
|
+
"@velocitycareerlabs/jwt": "2.0.0-pre.1752815703",
|
|
47
|
+
"@velocitycareerlabs/migrations": "1.26.0-dev-build.156b7c4f0",
|
|
48
|
+
"@velocitycareerlabs/organizations-registry": "2.0.0-pre.1752815703",
|
|
49
|
+
"@velocitycareerlabs/request": "2.0.0-pre.1752815703",
|
|
50
|
+
"@velocitycareerlabs/server-provider": "2.0.0-pre.1752815703",
|
|
51
|
+
"@velocitycareerlabs/spencer-mongo-extensions": "2.0.0-pre.1752815703",
|
|
52
|
+
"@velocitycareerlabs/verifiable-credentials": "2.0.0-pre.1752815703",
|
|
53
|
+
"@velocitycareerlabs/yoti-integration-plugin": "1.26.0-dev-build.156b7c4f0",
|
|
54
54
|
"aws-sdk": "2.1692.0",
|
|
55
55
|
"canonicalize": "^2.0.0",
|
|
56
56
|
"date-fns": "^3.0.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"@aws-sdk/client-ses": "3.821.0",
|
|
72
72
|
"@aws-sdk/client-sns": "3.821.0",
|
|
73
73
|
"@spencejs/spence-factories": "0.10.2",
|
|
74
|
-
"@velocitycareerlabs/test-regexes": "2.0.0-pre.
|
|
75
|
-
"@velocitycareerlabs/tests-helpers": "2.0.0-pre.
|
|
74
|
+
"@velocitycareerlabs/test-regexes": "2.0.0-pre.1752815703",
|
|
75
|
+
"@velocitycareerlabs/tests-helpers": "2.0.0-pre.1752815703",
|
|
76
76
|
"dotenv": "16.6.1",
|
|
77
77
|
"eslint": "8.57.1",
|
|
78
78
|
"eslint-config-airbnb-base": "14.2.1",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"nodemon": "3.1.10",
|
|
89
89
|
"prettier": "2.8.8"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "92b654c2a323d9c794c620dde1bc933e2b35ad30"
|
|
92
92
|
}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
const {
|
|
2
|
-
first,
|
|
3
|
-
flow,
|
|
4
|
-
flatMap,
|
|
5
|
-
isEmpty,
|
|
6
|
-
keyBy,
|
|
7
|
-
map,
|
|
8
|
-
uniq,
|
|
9
|
-
} = require('lodash/fp');
|
|
1
|
+
const { find, flow, flatMap, isEmpty, keyBy, map, uniq } = require('lodash/fp');
|
|
10
2
|
const {
|
|
11
3
|
getCredentialTypeDescriptor,
|
|
12
4
|
} = require('@velocitycareerlabs/common-fetchers');
|
|
@@ -68,15 +60,7 @@ const countriesController = async (fastify) => {
|
|
|
68
60
|
(persona) => ({
|
|
69
61
|
...persona,
|
|
70
62
|
vcs: map(
|
|
71
|
-
(
|
|
72
|
-
...vc,
|
|
73
|
-
output_descriptors: [
|
|
74
|
-
{
|
|
75
|
-
id: first(vc.type),
|
|
76
|
-
display: credentialTypeDescriptors[first(vc.type)]?.display,
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
}),
|
|
63
|
+
initAddOutputDescriptors(credentialTypeDescriptors),
|
|
80
64
|
persona.vcs
|
|
81
65
|
),
|
|
82
66
|
}),
|
|
@@ -88,4 +72,20 @@ const countriesController = async (fastify) => {
|
|
|
88
72
|
);
|
|
89
73
|
};
|
|
90
74
|
|
|
75
|
+
const initAddOutputDescriptors = (credentialTypeDescriptors) => (vc) => {
|
|
76
|
+
const credentialType = find(
|
|
77
|
+
(type) => type !== 'VerifiableCredential',
|
|
78
|
+
vc.type
|
|
79
|
+
);
|
|
80
|
+
return {
|
|
81
|
+
...vc,
|
|
82
|
+
output_descriptors: [
|
|
83
|
+
{
|
|
84
|
+
id: credentialType,
|
|
85
|
+
display: credentialTypeDescriptors[credentialType]?.display,
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
91
|
module.exports = countriesController;
|