@cooperation/vc-storage 1.0.27 → 1.0.28
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/dist/models/ResumeVC.js
CHANGED
@@ -121,6 +121,38 @@ export class ResumeVC {
|
|
121
121
|
credentialLink: proj.credentialLink || null,
|
122
122
|
verifiedCredentials: proj.verifiedCredentials || [],
|
123
123
|
})),
|
124
|
+
professionalAffiliations: formData.professionalAffiliations.items.map((aff) => ({
|
125
|
+
id: aff.id ? `urn:uuid:${aff.id}` : `urn:uuid:${uuidv4()}`,
|
126
|
+
name: aff.name || '',
|
127
|
+
organization: aff.organization || '',
|
128
|
+
startDate: aff.startDate || '',
|
129
|
+
endDate: aff.endDate || '',
|
130
|
+
activeAffiliation: aff.activeAffiliation || false,
|
131
|
+
duration: aff.duration || '',
|
132
|
+
verificationStatus: aff.verificationStatus || 'unverified',
|
133
|
+
credentialLink: aff.credentialLink || '',
|
134
|
+
selectedCredentials: aff.selectedCredentials || [],
|
135
|
+
})),
|
136
|
+
volunteerWork: formData.volunteerWork.items.map((vol) => ({
|
137
|
+
id: vol.id ? `urn:uuid:${vol.id}` : `urn:uuid:${uuidv4()}`,
|
138
|
+
role: vol.role || '',
|
139
|
+
organization: vol.organization || '',
|
140
|
+
location: vol.location || '',
|
141
|
+
startDate: vol.startDate || '',
|
142
|
+
endDate: vol.endDate || '',
|
143
|
+
currentlyVolunteering: vol.currentlyVolunteering || false,
|
144
|
+
description: vol.description || '',
|
145
|
+
duration: vol.duration || '',
|
146
|
+
verificationStatus: vol.verificationStatus || 'unverified',
|
147
|
+
credentialLink: vol.credentialLink || '',
|
148
|
+
selectedCredentials: vol.selectedCredentials || [],
|
149
|
+
})),
|
150
|
+
hobbiesAndInterests: formData.hobbiesAndInterests || [],
|
151
|
+
languages: formData.languages.items.map((lang) => ({
|
152
|
+
id: lang.id ? `urn:uuid:${lang.id}` : `urn:uuid:${uuidv4()}`,
|
153
|
+
name: lang.name || '',
|
154
|
+
proficiency: lang.proficiency || '',
|
155
|
+
})),
|
124
156
|
},
|
125
157
|
};
|
126
158
|
console.log('🚀 ~ ResumeVC ~ generateUnsignedCredential ~ unsignedResumeVC:', JSON.stringify(unsignedResumeVC));
|
@@ -73,10 +73,12 @@ export declare const inlineResumeContext: {
|
|
73
73
|
};
|
74
74
|
organization: string;
|
75
75
|
role: string;
|
76
|
+
activeAffiliation: string;
|
76
77
|
volunteerWork: {
|
77
78
|
'@id': string;
|
78
79
|
'@container': string;
|
79
80
|
};
|
81
|
+
currentlyVolunteering: string;
|
80
82
|
hobbiesAndInterests: {
|
81
83
|
'@id': string;
|
82
84
|
'@container': string;
|
package/dist/utils/context.js
CHANGED
@@ -83,11 +83,13 @@ export const inlineResumeContext = {
|
|
83
83
|
},
|
84
84
|
organization: 'https://schema.org/memberOf',
|
85
85
|
role: 'https://schema.org/jobTitle',
|
86
|
+
activeAffiliation: 'https://schema.org/Boolean',
|
86
87
|
// Volunteer Work
|
87
88
|
volunteerWork: {
|
88
89
|
'@id': 'https://schema.org/VolunteerRole',
|
89
90
|
'@container': '@list',
|
90
91
|
},
|
92
|
+
currentlyVolunteering: 'https://schema.org/Boolean',
|
91
93
|
// Hobbies and Interests
|
92
94
|
hobbiesAndInterests: {
|
93
95
|
'@id': 'https://schema.org/knowsAbout',
|
@@ -114,7 +116,7 @@ export const inlineResumeContext = {
|
|
114
116
|
// Issuance Information
|
115
117
|
issuanceDate: 'https://schema.org/issuanceDate',
|
116
118
|
credentialSubject: 'https://schema.org/credentialSubject',
|
117
|
-
person: 'https://schema.org/Person',
|
119
|
+
person: 'https://schema.org/Person',
|
118
120
|
Resume: 'https://schema.hropenstandards.org/4.4#Resume',
|
119
121
|
},
|
120
122
|
};
|