Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 98bdda4

Browse files
committed
Update offerings to match all claims
1 parent fa6b826 commit 98bdda4

File tree

1 file changed

+60
-40
lines changed

1 file changed

+60
-40
lines changed

src/offeringData.ts

+60-40
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ export const offeringDataGHSToUSDC: OfferingData = {
5454
fields: [
5555
{
5656
path: [
57-
'$.vc.credentialSchema.id'
57+
'$.vc.credentialSchema.id',
58+
'$.credentialSchema.id'
5859
],
5960
filter: {
6061
type: 'string',
6162
const: 'https://vc.schemas.host/kcc.schema.json'
6263
}
6364
},
6465
{
65-
path: ['$.vc.issuer'],
66+
path: ['$.vc.issuer', '$.issuer'],
6667
filter: {
6768
type: 'string',
6869
const: issuer,
@@ -126,15 +127,16 @@ export const offeringDataNGNToKES: OfferingData = {
126127
fields: [
127128
{
128129
path: [
129-
'$.vc.credentialSchema.id'
130+
'$.vc.credentialSchema.id',
131+
'$.credentialSchema.id'
130132
],
131133
filter: {
132134
type: 'string',
133135
const: 'https://vc.schemas.host/kcc.schema.json'
134136
}
135137
},
136138
{
137-
path: ['$.vc.issuer'],
139+
path: ['$.vc.issuer', '$.issuer'],
138140
filter: {
139141
type: 'string',
140142
const: issuer,
@@ -204,15 +206,16 @@ export const offeringDataKESToUSD: OfferingData = {
204206
fields: [
205207
{
206208
path: [
207-
'$.vc.credentialSchema.id'
209+
'$.vc.credentialSchema.id',
210+
'$.credentialSchema.id'
208211
],
209212
filter: {
210213
type: 'string',
211214
const: 'https://vc.schemas.host/kcc.schema.json'
212215
}
213216
},
214217
{
215-
path: ['$.vc.issuer'],
218+
path: ['$.vc.issuer', '$.issuer'],
216219
filter: {
217220
type: 'string',
218221
const: issuer,
@@ -297,15 +300,16 @@ export const offeringDataUSDToKES: OfferingData = {
297300
fields: [
298301
{
299302
path: [
300-
'$.vc.credentialSchema.id'
303+
'$.vc.credentialSchema.id',
304+
'$.credentialSchema.id'
301305
],
302306
filter: {
303307
type: 'string',
304308
const: 'https://vc.schemas.host/kcc.schema.json'
305309
}
306310
},
307311
{
308-
path: ['$.vc.issuer'],
312+
path: ['$.vc.issuer', '$.issuer'],
309313
filter: {
310314
type: 'string',
311315
const: issuer,
@@ -375,15 +379,16 @@ export const offeringDataKESToUSD2: OfferingData = {
375379
fields: [
376380
{
377381
path: [
378-
'$.vc.credentialSchema.id'
382+
'$.vc.credentialSchema.id',
383+
'$.credentialSchema.id'
379384
],
380385
filter: {
381386
type: 'string',
382387
const: 'https://vc.schemas.host/kcc.schema.json'
383388
}
384389
},
385390
{
386-
path: ['$.vc.issuer'],
391+
path: ['$.vc.issuer', '$.issuer'],
387392
filter: {
388393
type: 'string',
389394
const: issuer,
@@ -447,15 +452,16 @@ export const offeringDataKESToUSDC: OfferingData = {
447452
fields: [
448453
{
449454
path: [
450-
'$.vc.credentialSchema.id'
455+
'$.vc.credentialSchema.id',
456+
'$.credentialSchema.id'
451457
],
452458
filter: {
453459
type: 'string',
454460
const: 'https://vc.schemas.host/kcc.schema.json'
455461
}
456462
},
457463
{
458-
path: ['$.vc.issuer'],
464+
path: ['$.vc.issuer', '$.issuer'],
459465
filter: {
460466
type: 'string',
461467
const: issuer,
@@ -519,15 +525,16 @@ export const offeringDataNGNToGHS: OfferingData = {
519525
fields: [
520526
{
521527
path: [
522-
'$.vc.credentialSchema.id'
528+
'$.vc.credentialSchema.id',
529+
'$.credentialSchema.id'
523530
],
524531
filter: {
525532
type: 'string',
526533
const: 'https://vc.schemas.host/kcc.schema.json'
527534
}
528535
},
529536
{
530-
path: ['$.vc.issuer'],
537+
path: ['$.vc.issuer', '$.issuer'],
531538
filter: {
532539
type: 'string',
533540
const: issuer,
@@ -606,15 +613,16 @@ export const offeringDataBTCToNGN: OfferingData = {
606613
fields: [
607614
{
608615
path: [
609-
'$.vc.credentialSchema.id'
616+
'$.vc.credentialSchema.id',
617+
'$.credentialSchema.id'
610618
],
611619
filter: {
612620
type: 'string',
613621
const: 'https://vc.schemas.host/kcc.schema.json'
614622
}
615623
},
616624
{
617-
path: ['$.vc.issuer'],
625+
path: ['$.vc.issuer', '$.issuer'],
618626
filter: {
619627
type: 'string',
620628
const: issuer,
@@ -705,15 +713,16 @@ export const offeringDataUSDToEUR: OfferingData = {
705713
fields: [
706714
{
707715
path: [
708-
'$.vc.credentialSchema.id'
716+
'$.vc.credentialSchema.id',
717+
'$.credentialSchema.id'
709718
],
710719
filter: {
711720
type: 'string',
712721
const: 'https://vc.schemas.host/kcc.schema.json'
713722
}
714723
},
715724
{
716-
path: ['$.vc.issuer'],
725+
path: ['$.vc.issuer', '$.issuer'],
717726
filter: {
718727
type: 'string',
719728
const: issuer,
@@ -804,15 +813,16 @@ export const offeringDataEURToUSD: OfferingData = {
804813
fields: [
805814
{
806815
path: [
807-
'$.vc.credentialSchema.id'
816+
'$.vc.credentialSchema.id',
817+
'$.credentialSchema.id'
808818
],
809819
filter: {
810820
type: 'string',
811821
const: 'https://vc.schemas.host/kcc.schema.json'
812822
}
813823
},
814824
{
815-
path: ['$.vc.issuer'],
825+
path: ['$.vc.issuer', '$.issuer'],
816826
filter: {
817827
type: 'string',
818828
const: issuer,
@@ -903,15 +913,16 @@ export const offeringDataUSDToGBP: OfferingData = {
903913
fields: [
904914
{
905915
path: [
906-
'$.vc.credentialSchema.id'
916+
'$.vc.credentialSchema.id',
917+
'$.credentialSchema.id'
907918
],
908919
filter: {
909920
type: 'string',
910921
const: 'https://vc.schemas.host/kcc.schema.json'
911922
}
912923
},
913924
{
914-
path: ['$.vc.issuer'],
925+
path: ['$.vc.issuer', '$.issuer'],
915926
filter: {
916927
type: 'string',
917928
const: issuer,
@@ -996,15 +1007,16 @@ export const offeringDataUSDToBTC: OfferingData = {
9961007
fields: [
9971008
{
9981009
path: [
999-
'$.vc.credentialSchema.id'
1010+
'$.vc.credentialSchema.id',
1011+
'$.credentialSchema.id'
10001012
],
10011013
filter: {
10021014
type: 'string',
10031015
const: 'https://vc.schemas.host/kcc.schema.json'
10041016
}
10051017
},
10061018
{
1007-
path: ['$.vc.issuer'],
1019+
path: ['$.vc.issuer', '$.issuer'],
10081020
filter: {
10091021
type: 'string',
10101022
const: issuer,
@@ -1094,15 +1106,16 @@ export const offeringDataEURToUSD2: OfferingData = {
10941106
fields: [
10951107
{
10961108
path: [
1097-
'$.vc.credentialSchema.id'
1109+
'$.vc.credentialSchema.id',
1110+
'$.credentialSchema.id'
10981111
],
10991112
filter: {
11001113
type: 'string',
11011114
const: 'https://vc.schemas.host/kcc.schema.json'
11021115
}
11031116
},
11041117
{
1105-
path: ['$.vc.issuer'],
1118+
path: ['$.vc.issuer', '$.issuer'],
11061119
filter: {
11071120
type: 'string',
11081121
const: issuer,
@@ -1187,15 +1200,16 @@ export const offeringDataEURToUSDC: OfferingData = {
11871200
fields: [
11881201
{
11891202
path: [
1190-
'$.vc.credentialSchema.id'
1203+
'$.vc.credentialSchema.id',
1204+
'$.credentialSchema.id'
11911205
],
11921206
filter: {
11931207
type: 'string',
11941208
const: 'https://vc.schemas.host/kcc.schema.json'
11951209
}
11961210
},
11971211
{
1198-
path: ['$.vc.issuer'],
1212+
path: ['$.vc.issuer', '$.issuer'],
11991213
filter: {
12001214
type: 'string',
12011215
const: issuer,
@@ -1286,15 +1300,16 @@ export const offeringDataUSDToEUR2: OfferingData = {
12861300
fields: [
12871301
{
12881302
path: [
1289-
'$.vc.credentialSchema.id'
1303+
'$.vc.credentialSchema.id',
1304+
'$.credentialSchema.id'
12901305
],
12911306
filter: {
12921307
type: 'string',
12931308
const: 'https://vc.schemas.host/kcc.schema.json'
12941309
}
12951310
},
12961311
{
1297-
path: ['$.vc.issuer'],
1312+
path: ['$.vc.issuer', '$.issuer'],
12981313
filter: {
12991314
type: 'string',
13001315
const: issuer,
@@ -1385,15 +1400,16 @@ export const offeringDataEURToGBP: OfferingData = {
13851400
fields: [
13861401
{
13871402
path: [
1388-
'$.vc.credentialSchema.id'
1403+
'$.vc.credentialSchema.id',
1404+
'$.credentialSchema.id'
13891405
],
13901406
filter: {
13911407
type: 'string',
13921408
const: 'https://vc.schemas.host/kcc.schema.json'
13931409
}
13941410
},
13951411
{
1396-
path: ['$.vc.issuer'],
1412+
path: ['$.vc.issuer', '$.issuer'],
13971413
filter: {
13981414
type: 'string',
13991415
const: issuer,
@@ -1483,15 +1499,16 @@ export const offeringDataUSDToAUD: OfferingData = {
14831499
fields: [
14841500
{
14851501
path: [
1486-
'$.vc.credentialSchema.id'
1502+
'$.vc.credentialSchema.id',
1503+
'$.credentialSchema.id'
14871504
],
14881505
filter: {
14891506
type: 'string',
14901507
const: 'https://vc.schemas.host/kcc.schema.json'
14911508
}
14921509
},
14931510
{
1494-
path: ['$.vc.issuer'],
1511+
path: ['$.vc.issuer', '$.issuer'],
14951512
filter: {
14961513
type: 'string',
14971514
const: issuer,
@@ -1582,15 +1599,16 @@ export const offeringDataUSDToGBP2: OfferingData = {
15821599
fields: [
15831600
{
15841601
path: [
1585-
'$.vc.credentialSchema.id'
1602+
'$.vc.credentialSchema.id',
1603+
'$.credentialSchema.id'
15861604
],
15871605
filter: {
15881606
type: 'string',
15891607
const: 'https://vc.schemas.host/kcc.schema.json'
15901608
}
15911609
},
15921610
{
1593-
path: ['$.vc.issuer'],
1611+
path: ['$.vc.issuer', '$.issuer'],
15941612
filter: {
15951613
type: 'string',
15961614
const: issuer,
@@ -1675,15 +1693,16 @@ export const offeringDataUSDToKES2: OfferingData = {
16751693
fields: [
16761694
{
16771695
path: [
1678-
'$.vc.credentialSchema.id'
1696+
'$.vc.credentialSchema.id',
1697+
'$.credentialSchema.id'
16791698
],
16801699
filter: {
16811700
type: 'string',
16821701
const: 'https://vc.schemas.host/kcc.schema.json'
16831702
}
16841703
},
16851704
{
1686-
path: ['$.vc.issuer'],
1705+
path: ['$.vc.issuer', '$.issuer'],
16871706
filter: {
16881707
type: 'string',
16891708
const: issuer,
@@ -1774,15 +1793,16 @@ export const offeringDataUSDToMXN: OfferingData = {
17741793
fields: [
17751794
{
17761795
path: [
1777-
'$.vc.credentialSchema.id'
1796+
'$.vc.credentialSchema.id',
1797+
'$.credentialSchema.id'
17781798
],
17791799
filter: {
17801800
type: 'string',
17811801
const: 'https://vc.schemas.host/kcc.schema.json'
17821802
}
17831803
},
17841804
{
1785-
path: ['$.vc.issuer'],
1805+
path: ['$.vc.issuer', '$.issuer'],
17861806
filter: {
17871807
type: 'string',
17881808
const: issuer,

0 commit comments

Comments
 (0)