@velocitycareerlabs/vc-renderer-sample 1.25.0-dev-build.158b56827
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/.eslintrc.js +128 -0
- package/LICENSE +248 -0
- package/README.md +46 -0
- package/package.json +62 -0
- package/public/index.html +40 -0
- package/public/vite.svg +1 -0
- package/src/App.css +5 -0
- package/src/App.tsx +396 -0
- package/src/assets/index.tsx +5 -0
- package/src/assets/logo192.png +0 -0
- package/src/assets/regular-share-blue.svg +3 -0
- package/src/assets/round-share-black.svg +4 -0
- package/src/assets/trash.svg +4 -0
- package/src/components/PDFReport/index.tsx +248 -0
- package/src/components/Sidebar/index.tsx +61 -0
- package/src/components/SummaryFooter/index.tsx +23 -0
- package/src/components/VcDetailsFooter/index.tsx +15 -0
- package/src/index.css +13 -0
- package/src/index.tsx +13 -0
- package/src/mocks/credentials.tsx +769 -0
- package/src/mocks/credentialsMapped.tsx +520 -0
- package/src/mocks/descriptors.tsx +799 -0
- package/src/mocks/index.tsx +7 -0
- package/src/mocks/issuers.tsx +69 -0
- package/src/mocks/status.tsx +8 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/setupTests.ts +5 -0
- package/tsconfig.json +25 -0
@@ -0,0 +1,799 @@
|
|
1
|
+
export const DESCRIPTORS = {
|
2
|
+
'AssessmentV1.1': {
|
3
|
+
title: {
|
4
|
+
path: ['$.authority.name', '$.credentialSubject.authority.name'],
|
5
|
+
schema: {},
|
6
|
+
fallback: '-',
|
7
|
+
},
|
8
|
+
subtitle: {
|
9
|
+
path: ['$.name', '$.credentialSubject.name'],
|
10
|
+
schema: {},
|
11
|
+
fallback: '-',
|
12
|
+
},
|
13
|
+
summary_detail: {
|
14
|
+
path: ['$.assessmentDate', '$.credentialSubject.assessmentDate'],
|
15
|
+
schema: {},
|
16
|
+
fallback: '-',
|
17
|
+
},
|
18
|
+
description: {
|
19
|
+
fallback: '-',
|
20
|
+
text: 'Assessment',
|
21
|
+
},
|
22
|
+
logo: {
|
23
|
+
path: ['$.authority.image', '$.credentialSubject.authority.image'],
|
24
|
+
schema: {
|
25
|
+
format: 'uri',
|
26
|
+
},
|
27
|
+
fallback: '-',
|
28
|
+
},
|
29
|
+
properties: [
|
30
|
+
{
|
31
|
+
label: 'Assessment description',
|
32
|
+
path: ['$.description', '$.credentialSubject.description'],
|
33
|
+
schema: {},
|
34
|
+
fallback: '-',
|
35
|
+
},
|
36
|
+
{
|
37
|
+
label: 'What was assessed',
|
38
|
+
path: ['$.assesses', '$.credentialSubject.assesses'],
|
39
|
+
schema: {},
|
40
|
+
fallback: '-',
|
41
|
+
},
|
42
|
+
{
|
43
|
+
label: 'Score',
|
44
|
+
path: ['$.score.scoreValue', '$.credentialSubject.score.scoreValue'],
|
45
|
+
schema: {},
|
46
|
+
fallback: '-',
|
47
|
+
},
|
48
|
+
{
|
49
|
+
label: 'Result',
|
50
|
+
path: ['$.score.result', '$.credentialSubject.score.result'],
|
51
|
+
schema: {},
|
52
|
+
fallback: '-',
|
53
|
+
},
|
54
|
+
{
|
55
|
+
label: 'Pass or fail',
|
56
|
+
path: ['$.score.passFail', '$.credentialSubject.score.passFail'],
|
57
|
+
schema: {},
|
58
|
+
fallback: '-',
|
59
|
+
},
|
60
|
+
{
|
61
|
+
label: 'Score Description',
|
62
|
+
path: [
|
63
|
+
'$.score.scoreDescription',
|
64
|
+
'$.credentialSubject.score.scoreDescription',
|
65
|
+
],
|
66
|
+
schema: {},
|
67
|
+
fallback: '-',
|
68
|
+
},
|
69
|
+
{
|
70
|
+
label: 'Score method',
|
71
|
+
path: [
|
72
|
+
'$.score.scoreMethod.scoreMethodType',
|
73
|
+
'$.credentialSubject.score.scoreMethod.scoreMethodType',
|
74
|
+
],
|
75
|
+
schema: {},
|
76
|
+
fallback: '-',
|
77
|
+
},
|
78
|
+
{
|
79
|
+
label: 'Score method details',
|
80
|
+
path: [
|
81
|
+
'$.score.scoreMethod.scoreMethodDescription',
|
82
|
+
'$.credentialSubject.score.scoreMethod.scoreMethodDescription',
|
83
|
+
],
|
84
|
+
schema: {},
|
85
|
+
fallback: '-',
|
86
|
+
},
|
87
|
+
{
|
88
|
+
label: 'Passing score',
|
89
|
+
path: [
|
90
|
+
'$.score.scoreMethod.passingScore',
|
91
|
+
'$.credentialSubject.score.scoreMethod.passingScore',
|
92
|
+
],
|
93
|
+
schema: {},
|
94
|
+
fallback: '-',
|
95
|
+
},
|
96
|
+
{
|
97
|
+
label: 'Assessment level',
|
98
|
+
path: ['$.assessmentLevel', '$.credentialSubject.assessmentLevel'],
|
99
|
+
schema: {},
|
100
|
+
fallback: '-',
|
101
|
+
},
|
102
|
+
{
|
103
|
+
label: 'Assessment method',
|
104
|
+
path: ['$.assessmentMethod', '$.credentialSubject.assessmentMethod'],
|
105
|
+
schema: {},
|
106
|
+
fallback: '-',
|
107
|
+
},
|
108
|
+
{
|
109
|
+
label: 'Dimension',
|
110
|
+
path: [
|
111
|
+
'$.assessmentDimensions[*].name',
|
112
|
+
'$.credentialSubject.assessmentDimensions[*].name',
|
113
|
+
],
|
114
|
+
schema: {},
|
115
|
+
fallback: '-',
|
116
|
+
},
|
117
|
+
{
|
118
|
+
label: 'Description',
|
119
|
+
path: [
|
120
|
+
'$.assessmentDimensions[*].description',
|
121
|
+
'$.credentialSubject.assessmentDimensions[*].description',
|
122
|
+
],
|
123
|
+
schema: {},
|
124
|
+
fallback: '-',
|
125
|
+
},
|
126
|
+
{
|
127
|
+
label: 'What was assessed',
|
128
|
+
path: [
|
129
|
+
'$.assessmentDimensions[*].assesses',
|
130
|
+
'$.credentialSubject.assessmentDimensions[*].assesses',
|
131
|
+
],
|
132
|
+
schema: {},
|
133
|
+
fallback: '-',
|
134
|
+
},
|
135
|
+
{
|
136
|
+
label: 'Score',
|
137
|
+
path: [
|
138
|
+
'$.assessmentDimensions[*].score.scoreValue',
|
139
|
+
'$.credentialSubject.assessmentDimensions[*].score.scoreValue',
|
140
|
+
],
|
141
|
+
schema: {},
|
142
|
+
fallback: '-',
|
143
|
+
},
|
144
|
+
{
|
145
|
+
label: 'Result',
|
146
|
+
path: [
|
147
|
+
'$.assessmentDimensions[*].score.result',
|
148
|
+
'$.credentialSubject.assessmentDimensions[*].score.result',
|
149
|
+
],
|
150
|
+
schema: {},
|
151
|
+
fallback: '-',
|
152
|
+
},
|
153
|
+
{
|
154
|
+
label: 'Pass or fail',
|
155
|
+
path: [
|
156
|
+
'$.assessmentDimensions[*].score.passFail',
|
157
|
+
'$.credentialSubject.assessmentDimensions[*].score.passFail',
|
158
|
+
],
|
159
|
+
schema: {},
|
160
|
+
fallback: '-',
|
161
|
+
},
|
162
|
+
{
|
163
|
+
label: 'Score method',
|
164
|
+
path: [
|
165
|
+
'$.assessmentDimensions[*].score.scoreMethod.scoreMethodType',
|
166
|
+
'$.credentialSubject.assessmentDimensions[*].score.scoreMethod.scoreMethodType',
|
167
|
+
],
|
168
|
+
schema: {},
|
169
|
+
fallback: '-',
|
170
|
+
},
|
171
|
+
{
|
172
|
+
label: 'Score method details',
|
173
|
+
path: [
|
174
|
+
'$.assessmentDimensions[*].score.scoreMethod.scoreMethodDescription',
|
175
|
+
'$.credentialSubject.assessmentDimensions[*].score.scoreMethod.scoreMethodDescription',
|
176
|
+
],
|
177
|
+
schema: {},
|
178
|
+
fallback: '-',
|
179
|
+
},
|
180
|
+
{
|
181
|
+
label: 'Passing score',
|
182
|
+
path: [
|
183
|
+
'$.assessmentDimensions[*].score.scoreMethod.passingScore',
|
184
|
+
'$.credentialSubject.assessmentDimensions[*].score.scoreMethod.passingScore',
|
185
|
+
],
|
186
|
+
schema: {},
|
187
|
+
fallback: '-',
|
188
|
+
},
|
189
|
+
{
|
190
|
+
label: 'First name',
|
191
|
+
path: [
|
192
|
+
'$.recipient.givenName',
|
193
|
+
'$.credentialSubject.recipient.givenName',
|
194
|
+
],
|
195
|
+
schema: {},
|
196
|
+
fallback: '-',
|
197
|
+
},
|
198
|
+
{
|
199
|
+
label: 'Middle name',
|
200
|
+
path: [
|
201
|
+
'$.recipient.middleName',
|
202
|
+
'$.credentialSubject.recipient.middleName',
|
203
|
+
],
|
204
|
+
schema: {},
|
205
|
+
fallback: '-',
|
206
|
+
},
|
207
|
+
{
|
208
|
+
label: 'Last name',
|
209
|
+
path: [
|
210
|
+
'$.recipient.familyName',
|
211
|
+
'$.credentialSubject.recipient.familyName',
|
212
|
+
],
|
213
|
+
schema: {},
|
214
|
+
fallback: '-',
|
215
|
+
},
|
216
|
+
{
|
217
|
+
label: 'Name prefix',
|
218
|
+
path: [
|
219
|
+
'$.recipient.namePrefix',
|
220
|
+
'$.credentialSubject.recipient.namePrefix',
|
221
|
+
],
|
222
|
+
schema: {},
|
223
|
+
fallback: '-',
|
224
|
+
},
|
225
|
+
{
|
226
|
+
label: 'Name suffix',
|
227
|
+
path: [
|
228
|
+
'$.recipient.nameSuffix',
|
229
|
+
'$.credentialSubject.recipient.nameSuffix',
|
230
|
+
],
|
231
|
+
schema: {},
|
232
|
+
fallback: '-',
|
233
|
+
},
|
234
|
+
{
|
235
|
+
label: 'Learn more about the credential',
|
236
|
+
path: [
|
237
|
+
'$.alignment[0].targetUrl',
|
238
|
+
'$.credentialSubject.alignment[0].targetUrl',
|
239
|
+
],
|
240
|
+
schema: {
|
241
|
+
format: 'uri',
|
242
|
+
},
|
243
|
+
fallback: '-',
|
244
|
+
},
|
245
|
+
],
|
246
|
+
},
|
247
|
+
'EmailV1.0': {
|
248
|
+
title: {
|
249
|
+
fallback: '-',
|
250
|
+
text: 'Email',
|
251
|
+
},
|
252
|
+
subtitle: {
|
253
|
+
path: ['$.email', '$.credentialSubject.email'],
|
254
|
+
schema: {
|
255
|
+
format: 'email',
|
256
|
+
},
|
257
|
+
fallback: '-',
|
258
|
+
},
|
259
|
+
description: {
|
260
|
+
fallback: '-',
|
261
|
+
text: 'Email',
|
262
|
+
},
|
263
|
+
},
|
264
|
+
OpenBadgeCredential: {
|
265
|
+
title: {
|
266
|
+
path: ['$.source.name', '$.credentialSubject.source.name'],
|
267
|
+
schema: { type: 'string' },
|
268
|
+
fallback: 'Badge',
|
269
|
+
},
|
270
|
+
subtitle: { text: 'Open Badge' },
|
271
|
+
summary_detail: {
|
272
|
+
path: ['$.achievement.name', '$.credentialSubject.achievement.name'],
|
273
|
+
schema: { type: 'string' },
|
274
|
+
fallback: '-',
|
275
|
+
},
|
276
|
+
description: { text: 'Open Badge' },
|
277
|
+
logo: {
|
278
|
+
path: [
|
279
|
+
'$.achievement.image.id',
|
280
|
+
'$.credentialSubject.achievement.image.id',
|
281
|
+
],
|
282
|
+
schema: { type: 'string', format: 'uri' },
|
283
|
+
},
|
284
|
+
properties: [
|
285
|
+
{
|
286
|
+
label: '',
|
287
|
+
path: [
|
288
|
+
'$.achievement.image.id',
|
289
|
+
'$.credentialSubject.achievement.image.id',
|
290
|
+
'$.image.id',
|
291
|
+
'$.credentialSubject.image.id',
|
292
|
+
],
|
293
|
+
schema: { type: 'string' },
|
294
|
+
},
|
295
|
+
{
|
296
|
+
label: 'Name or identifier',
|
297
|
+
path: [
|
298
|
+
'$.identifier.identityHash',
|
299
|
+
'$.credentialSubject.identifier.identityHash',
|
300
|
+
],
|
301
|
+
schema: { type: 'string' },
|
302
|
+
},
|
303
|
+
{
|
304
|
+
label: 'Achievement type',
|
305
|
+
path: [
|
306
|
+
'$.achievement.achievementType',
|
307
|
+
'$.credentialSubject.achievement.achievementType',
|
308
|
+
'$.achievement.type',
|
309
|
+
'$.credentialSubject.achievement.type',
|
310
|
+
],
|
311
|
+
schema: { type: 'string' },
|
312
|
+
},
|
313
|
+
{
|
314
|
+
label: 'Description',
|
315
|
+
path: [
|
316
|
+
'$.achievement.description',
|
317
|
+
'$.credentialSubject.achievement.description',
|
318
|
+
],
|
319
|
+
schema: { type: 'string' },
|
320
|
+
},
|
321
|
+
{
|
322
|
+
label: 'Start',
|
323
|
+
path: ['$.activityStartDate', '$.credentialSubject.activityStartDate'],
|
324
|
+
schema: { type: 'string', format: 'date-time' },
|
325
|
+
},
|
326
|
+
{
|
327
|
+
label: 'End',
|
328
|
+
path: ['$.activityEndDate', '$.credentialSubject.activityEndDate'],
|
329
|
+
schema: { type: 'string', format: 'date-time' },
|
330
|
+
},
|
331
|
+
{
|
332
|
+
label: 'License number',
|
333
|
+
path: ['$.licenseNumber', '$.credentialSubject.licenseNumber'],
|
334
|
+
schema: { type: 'string' },
|
335
|
+
},
|
336
|
+
{
|
337
|
+
label: 'Role',
|
338
|
+
path: ['$.role', '$.credentialSubject.role'],
|
339
|
+
schema: { type: 'string' },
|
340
|
+
},
|
341
|
+
{
|
342
|
+
label: 'Term',
|
343
|
+
path: ['$.term', '$.credentialSubject.term'],
|
344
|
+
schema: { type: 'string' },
|
345
|
+
},
|
346
|
+
{
|
347
|
+
label: 'Status',
|
348
|
+
path: ['$.result[0].status', '$.credentialSubject.result[0].status'],
|
349
|
+
schema: { type: 'string' },
|
350
|
+
},
|
351
|
+
{
|
352
|
+
label: 'Credits available',
|
353
|
+
path: [
|
354
|
+
'$.achievement.creditsAvailable',
|
355
|
+
'$.credentialSubject.achievement.creditsAvailable',
|
356
|
+
],
|
357
|
+
schema: { type: 'number' },
|
358
|
+
},
|
359
|
+
{
|
360
|
+
label: 'Credits earned',
|
361
|
+
path: ['$.creditsEarned', '$.credentialSubject.creditsEarned'],
|
362
|
+
schema: { type: 'number' },
|
363
|
+
},
|
364
|
+
{
|
365
|
+
label: 'Result',
|
366
|
+
path: ['$.result[0].value', '$.credentialSubject.result[0].value'],
|
367
|
+
schema: { type: 'string' },
|
368
|
+
},
|
369
|
+
{
|
370
|
+
label: 'Achieved level',
|
371
|
+
path: [
|
372
|
+
'$.result[0].achievedLevel',
|
373
|
+
'$.credentialSubject.result[0].achievedLevel',
|
374
|
+
],
|
375
|
+
schema: { type: 'string' },
|
376
|
+
},
|
377
|
+
{
|
378
|
+
label: 'Result description',
|
379
|
+
path: [
|
380
|
+
'$.result[0].resultDescription',
|
381
|
+
'$.credentialSubject.result[0].resultDescription',
|
382
|
+
'$.achievement.resultDescription',
|
383
|
+
'$.credentialSubject.achievement.resultDescription',
|
384
|
+
],
|
385
|
+
schema: { type: 'string' },
|
386
|
+
},
|
387
|
+
{
|
388
|
+
label: 'Field',
|
389
|
+
path: [
|
390
|
+
'$.achievement.fieldOfStudy',
|
391
|
+
'$.credentialSubject.achievement.fieldOfStudy',
|
392
|
+
],
|
393
|
+
schema: { type: 'string' },
|
394
|
+
},
|
395
|
+
{
|
396
|
+
label: 'Code',
|
397
|
+
path: [
|
398
|
+
'$.achievement.humanCode',
|
399
|
+
'$.credentialSubject.achievement.humanCode',
|
400
|
+
],
|
401
|
+
schema: { type: 'string' },
|
402
|
+
},
|
403
|
+
{
|
404
|
+
label: 'Specialization',
|
405
|
+
path: [
|
406
|
+
'$.achievement.specialization',
|
407
|
+
'$.credentialSubject.achievement.specialization',
|
408
|
+
],
|
409
|
+
schema: { type: 'string' },
|
410
|
+
},
|
411
|
+
{
|
412
|
+
label: 'Version',
|
413
|
+
path: [
|
414
|
+
'$.achievement.version',
|
415
|
+
'$.credentialSubject.achievement.version',
|
416
|
+
],
|
417
|
+
schema: { type: 'string' },
|
418
|
+
},
|
419
|
+
{
|
420
|
+
label: 'Achievement criteria',
|
421
|
+
path: [
|
422
|
+
'$.achievement.criteria.narrative',
|
423
|
+
'$.credentialSubject.achievement.criteria.narrative',
|
424
|
+
],
|
425
|
+
schema: { type: 'string' },
|
426
|
+
},
|
427
|
+
{
|
428
|
+
label: 'Learn more',
|
429
|
+
path: [
|
430
|
+
'$.achievement.alignment[0].targetUrl',
|
431
|
+
'$.credentialSubject.achievement.alignment[0].targetUrl',
|
432
|
+
],
|
433
|
+
schema: { type: 'string', format: 'uri' },
|
434
|
+
},
|
435
|
+
],
|
436
|
+
},
|
437
|
+
'EmploymentPastV1.1': {
|
438
|
+
title: {
|
439
|
+
path: ['$.legalEmployer.name', '$.credentialSubject.legalEmployer.name'],
|
440
|
+
schema: {},
|
441
|
+
fallback: '-',
|
442
|
+
},
|
443
|
+
subtitle: {
|
444
|
+
path: ['$.role', '$.credentialSubject.role'],
|
445
|
+
schema: {},
|
446
|
+
fallback: '-',
|
447
|
+
},
|
448
|
+
summary_detail: {
|
449
|
+
path: ['$.place.name', '$.credentialSubject.place.name'],
|
450
|
+
schema: {},
|
451
|
+
fallback: 'place.addressLocality',
|
452
|
+
},
|
453
|
+
description: {
|
454
|
+
fallback: '-',
|
455
|
+
text: 'Past employment position',
|
456
|
+
},
|
457
|
+
logo: {
|
458
|
+
path: [
|
459
|
+
'$.legalEmployer.image',
|
460
|
+
'$.credentialSubject.legalEmployer.image',
|
461
|
+
],
|
462
|
+
schema: {
|
463
|
+
format: 'uri',
|
464
|
+
},
|
465
|
+
fallback: '-',
|
466
|
+
},
|
467
|
+
properties: [
|
468
|
+
{
|
469
|
+
label: 'Role',
|
470
|
+
path: ['$.role', '$.credentialSubject.role'],
|
471
|
+
schema: {},
|
472
|
+
fallback: '-',
|
473
|
+
},
|
474
|
+
{
|
475
|
+
label: 'Role description',
|
476
|
+
path: ['$.description', '$.credentialSubject.description'],
|
477
|
+
schema: {},
|
478
|
+
fallback: '-',
|
479
|
+
},
|
480
|
+
{
|
481
|
+
label: 'Start date',
|
482
|
+
path: ['$.startDate', '$.credentialSubject.startDate'],
|
483
|
+
schema: {
|
484
|
+
format: 'date',
|
485
|
+
},
|
486
|
+
fallback: '-',
|
487
|
+
},
|
488
|
+
{
|
489
|
+
label: 'End date',
|
490
|
+
path: ['$.endDate', '$.credentialSubject.endDate'],
|
491
|
+
schema: {
|
492
|
+
format: 'date',
|
493
|
+
},
|
494
|
+
fallback: '-',
|
495
|
+
},
|
496
|
+
{
|
497
|
+
label: 'Place of work',
|
498
|
+
path: ['$.place.name', '$.credentialSubject.place.name'],
|
499
|
+
schema: {},
|
500
|
+
fallback: '-',
|
501
|
+
},
|
502
|
+
{
|
503
|
+
label: 'City of work',
|
504
|
+
path: [
|
505
|
+
'$.place.addressLocality',
|
506
|
+
'$.credentialSubject.place.addressLocality',
|
507
|
+
],
|
508
|
+
schema: {},
|
509
|
+
fallback: '-',
|
510
|
+
},
|
511
|
+
{
|
512
|
+
label: 'State or region of work',
|
513
|
+
path: [
|
514
|
+
'$.place.addressRegion',
|
515
|
+
'$.credentialSubject.place.addressRegion',
|
516
|
+
],
|
517
|
+
schema: {},
|
518
|
+
fallback: '-',
|
519
|
+
},
|
520
|
+
{
|
521
|
+
label: 'Country of work',
|
522
|
+
path: [
|
523
|
+
'$.place.addressCountry',
|
524
|
+
'$.credentialSubject.place.addressCountry',
|
525
|
+
],
|
526
|
+
schema: {},
|
527
|
+
fallback: '-',
|
528
|
+
},
|
529
|
+
{
|
530
|
+
label: 'Employment type',
|
531
|
+
path: ['$.employmentType[*]', '$.credentialSubject.employmentType[*]'],
|
532
|
+
schema: {},
|
533
|
+
fallback: '-',
|
534
|
+
},
|
535
|
+
{
|
536
|
+
label: 'First name',
|
537
|
+
path: [
|
538
|
+
'$.recipient.givenName',
|
539
|
+
'$.credentialSubject.recipient.givenName',
|
540
|
+
],
|
541
|
+
schema: {},
|
542
|
+
fallback: '-',
|
543
|
+
},
|
544
|
+
{
|
545
|
+
label: 'Middle name',
|
546
|
+
path: [
|
547
|
+
'$.recipient.middleName',
|
548
|
+
'$.credentialSubject.recipient.middleName',
|
549
|
+
],
|
550
|
+
schema: {},
|
551
|
+
fallback: '-',
|
552
|
+
},
|
553
|
+
{
|
554
|
+
label: 'Last name',
|
555
|
+
path: [
|
556
|
+
'$.recipient.familyName',
|
557
|
+
'$.credentialSubject.recipient.familyName',
|
558
|
+
],
|
559
|
+
schema: {},
|
560
|
+
fallback: '-',
|
561
|
+
},
|
562
|
+
{
|
563
|
+
label: 'Name prefix',
|
564
|
+
path: [
|
565
|
+
'$.recipient.namePrefix',
|
566
|
+
'$.credentialSubject.recipient.namePrefix',
|
567
|
+
],
|
568
|
+
schema: {},
|
569
|
+
fallback: '-',
|
570
|
+
},
|
571
|
+
{
|
572
|
+
label: 'Name suffix',
|
573
|
+
path: [
|
574
|
+
'$.recipient.nameSuffix',
|
575
|
+
'$.credentialSubject.recipient.nameSuffix',
|
576
|
+
],
|
577
|
+
schema: {},
|
578
|
+
fallback: '-',
|
579
|
+
},
|
580
|
+
{
|
581
|
+
label: 'Learn more about the credential',
|
582
|
+
path: [
|
583
|
+
'$.alignment[0].targetUrl',
|
584
|
+
'$.credentialSubject.alignment[0].targetUrl',
|
585
|
+
],
|
586
|
+
schema: {
|
587
|
+
format: 'uri',
|
588
|
+
},
|
589
|
+
fallback: '-',
|
590
|
+
},
|
591
|
+
],
|
592
|
+
},
|
593
|
+
'DriversLicenseV1.0': {
|
594
|
+
title: {
|
595
|
+
path: ['$.name', '$.credentialSubject.name'],
|
596
|
+
schema: {},
|
597
|
+
fallback: "Driver's License",
|
598
|
+
},
|
599
|
+
subtitle: {
|
600
|
+
path: ['$.authority.name', '$.credentialSubject.authority.name'],
|
601
|
+
schema: {},
|
602
|
+
fallback: '-',
|
603
|
+
},
|
604
|
+
summary_detail: {
|
605
|
+
path: ['$.identifier', '$.credentialSubject.identifier'],
|
606
|
+
schema: {},
|
607
|
+
fallback: '-',
|
608
|
+
},
|
609
|
+
description: {
|
610
|
+
fallback: '-',
|
611
|
+
text: "Driver's license",
|
612
|
+
},
|
613
|
+
logo: {
|
614
|
+
path: ['$.authority.image', '$.credentialSubject.authority.image'],
|
615
|
+
schema: {
|
616
|
+
format: 'uri',
|
617
|
+
},
|
618
|
+
fallback: '-',
|
619
|
+
},
|
620
|
+
properties: [
|
621
|
+
{
|
622
|
+
label: 'License number',
|
623
|
+
path: ['$.identifier', '$.credentialSubject.identifier'],
|
624
|
+
schema: {},
|
625
|
+
fallback: '-',
|
626
|
+
},
|
627
|
+
{
|
628
|
+
label: 'Country of issuing authority',
|
629
|
+
path: [
|
630
|
+
'$.authority.place.addressCountry',
|
631
|
+
'$.credentialSubject.authority.place.addressCountry',
|
632
|
+
],
|
633
|
+
schema: {},
|
634
|
+
fallback: '-',
|
635
|
+
},
|
636
|
+
{
|
637
|
+
label: 'Region or state of issuing authority',
|
638
|
+
path: [
|
639
|
+
'$.authority.place.addressRegion',
|
640
|
+
'$.credentialSubject.authority.place.addressRegion',
|
641
|
+
],
|
642
|
+
schema: {},
|
643
|
+
fallback: '-',
|
644
|
+
},
|
645
|
+
{
|
646
|
+
label: 'Date issued',
|
647
|
+
path: [
|
648
|
+
'$.validity.firstValidFrom',
|
649
|
+
'$.credentialSubject.validity.firstValidFrom',
|
650
|
+
],
|
651
|
+
schema: {
|
652
|
+
format: 'date',
|
653
|
+
},
|
654
|
+
fallback: '-',
|
655
|
+
},
|
656
|
+
{
|
657
|
+
label: 'Date renewed',
|
658
|
+
path: [
|
659
|
+
'$.validity.validFrom',
|
660
|
+
'$.credentialSubject.validity.validFrom',
|
661
|
+
],
|
662
|
+
schema: {
|
663
|
+
format: 'date',
|
664
|
+
},
|
665
|
+
fallback: '-',
|
666
|
+
},
|
667
|
+
{
|
668
|
+
label: 'Valid until',
|
669
|
+
path: [
|
670
|
+
'$.validity.validUntil',
|
671
|
+
'$.credentialSubject.validity.validUntil',
|
672
|
+
],
|
673
|
+
schema: {
|
674
|
+
format: 'date',
|
675
|
+
},
|
676
|
+
fallback: '-',
|
677
|
+
},
|
678
|
+
{
|
679
|
+
label: 'First name',
|
680
|
+
path: ['$.person.givenName', '$.credentialSubject.person.givenName'],
|
681
|
+
schema: {},
|
682
|
+
fallback: '-',
|
683
|
+
},
|
684
|
+
{
|
685
|
+
label: 'Middle name',
|
686
|
+
path: [
|
687
|
+
'$.person.additionalName',
|
688
|
+
'$.credentialSubject.person.additionalName',
|
689
|
+
],
|
690
|
+
schema: {},
|
691
|
+
fallback: '-',
|
692
|
+
},
|
693
|
+
{
|
694
|
+
label: 'Last name',
|
695
|
+
path: ['$.person.familyName', '$.credentialSubject.person.familyName'],
|
696
|
+
schema: {},
|
697
|
+
fallback: '-',
|
698
|
+
},
|
699
|
+
{
|
700
|
+
label: 'Name prefix',
|
701
|
+
path: ['$.person.namePrefix', '$.credentialSubject.person.namePrefix'],
|
702
|
+
schema: {},
|
703
|
+
fallback: '-',
|
704
|
+
},
|
705
|
+
{
|
706
|
+
label: 'Name suffix',
|
707
|
+
path: ['$.person.nameSuffix', '$.credentialSubject.person.nameSuffix'],
|
708
|
+
schema: {},
|
709
|
+
fallback: '-',
|
710
|
+
},
|
711
|
+
{
|
712
|
+
label: 'Date of birth',
|
713
|
+
path: ['$.person.birthDate', '$.credentialSubject.person.birthDate'],
|
714
|
+
schema: {
|
715
|
+
format: 'date',
|
716
|
+
},
|
717
|
+
fallback: '-',
|
718
|
+
},
|
719
|
+
{
|
720
|
+
label: 'Country of birth',
|
721
|
+
path: [
|
722
|
+
'$.person.birthPlace.addressCountry',
|
723
|
+
'$.credentialSubject.person.birthPlace.addressCountry',
|
724
|
+
],
|
725
|
+
schema: {},
|
726
|
+
fallback: '-',
|
727
|
+
},
|
728
|
+
{
|
729
|
+
label: 'Region or state of birth',
|
730
|
+
path: [
|
731
|
+
'$.person.birthPlace.addressRegion',
|
732
|
+
'$.credentialSubject.person.birthPlace.addressRegion',
|
733
|
+
],
|
734
|
+
schema: {},
|
735
|
+
fallback: '-',
|
736
|
+
},
|
737
|
+
{
|
738
|
+
label: 'Place of birth',
|
739
|
+
path: [
|
740
|
+
'$.person.birthPlace.addressLocality',
|
741
|
+
'$.credentialSubject.person.birthPlace.addressLocality',
|
742
|
+
],
|
743
|
+
schema: {},
|
744
|
+
fallback: '-',
|
745
|
+
},
|
746
|
+
{
|
747
|
+
label: 'Gender',
|
748
|
+
path: ['$.person.gender', '$.credentialSubject.person.gender'],
|
749
|
+
schema: {},
|
750
|
+
fallback: '-',
|
751
|
+
},
|
752
|
+
{
|
753
|
+
label: 'Street address',
|
754
|
+
path: ['$.streetAddress', '$.credentialSubject.streetAddress'],
|
755
|
+
schema: {},
|
756
|
+
fallback: '-',
|
757
|
+
},
|
758
|
+
{
|
759
|
+
label: 'Address locality',
|
760
|
+
path: ['$.addressLocality', '$.credentialSubject.addressLocality'],
|
761
|
+
schema: {},
|
762
|
+
fallback: '-',
|
763
|
+
},
|
764
|
+
{
|
765
|
+
label: 'Region or state',
|
766
|
+
path: ['$.addressRegion', '$.credentialSubject.addressRegion'],
|
767
|
+
schema: {},
|
768
|
+
fallback: '-',
|
769
|
+
},
|
770
|
+
{
|
771
|
+
label: 'Postal code',
|
772
|
+
path: ['$.postCode', '$.credentialSubject.postCode'],
|
773
|
+
schema: {},
|
774
|
+
fallback: '-',
|
775
|
+
},
|
776
|
+
{
|
777
|
+
label: 'Country',
|
778
|
+
path: ['$.addressCountry', '$.credentialSubject.addressCountry'],
|
779
|
+
schema: {},
|
780
|
+
fallback: '-',
|
781
|
+
},
|
782
|
+
],
|
783
|
+
},
|
784
|
+
'PhoneV1.0': {
|
785
|
+
title: {
|
786
|
+
fallback: '-',
|
787
|
+
text: 'Phone number',
|
788
|
+
},
|
789
|
+
subtitle: {
|
790
|
+
path: ['$.phone', '$.credentialSubject.phone'],
|
791
|
+
schema: {},
|
792
|
+
fallback: '-',
|
793
|
+
},
|
794
|
+
description: {
|
795
|
+
fallback: '-',
|
796
|
+
text: 'Phone',
|
797
|
+
},
|
798
|
+
},
|
799
|
+
};
|