gdc-common-utils-ts 1.4.10 → 1.4.11
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.
|
@@ -71,12 +71,16 @@ export declare enum ClaimsPersonSchemaorg {
|
|
|
71
71
|
gender = "org.schema.Person.gender",
|
|
72
72
|
givenName = "org.schema.Person.givenName",
|
|
73
73
|
hasOccupation = "org.schema.Person.hasOccupation",
|
|
74
|
+
/** Credential material (public key metadata) bound to the person identity in VC payloads */
|
|
75
|
+
hasCredentialMaterial = "org.schema.Person.hasCredential.material",
|
|
76
|
+
hasCredentialMaterialKid = "org.schema.Person.hasCredential.material.kid",
|
|
74
77
|
identifier = "org.schema.Person.identifier",// the URN (composed by the provider)
|
|
75
78
|
identifierType = "org.schema.Person.identifier.additionalType",// retrieved from a form
|
|
76
79
|
identifierValue = "org.schema.Person.identifier.value",// retrieved from a form
|
|
77
80
|
/** ICAO transliteration of official given name (including middlenames), family name and addtional surname */
|
|
78
81
|
name = "org.schema.Person.name",
|
|
79
82
|
memberOf = "org.schema.Person.memberOf",// for employees
|
|
83
|
+
memberOfTaxId = "org.schema.Person.memberOf.taxID",
|
|
80
84
|
telephone = "org.schema.Person.telephone",
|
|
81
85
|
worksFor = "org.schema.Person.worksFor"
|
|
82
86
|
}
|
|
@@ -76,12 +76,16 @@ export var ClaimsPersonSchemaorg;
|
|
|
76
76
|
ClaimsPersonSchemaorg["gender"] = "org.schema.Person.gender";
|
|
77
77
|
ClaimsPersonSchemaorg["givenName"] = "org.schema.Person.givenName";
|
|
78
78
|
ClaimsPersonSchemaorg["hasOccupation"] = "org.schema.Person.hasOccupation";
|
|
79
|
+
/** Credential material (public key metadata) bound to the person identity in VC payloads */
|
|
80
|
+
ClaimsPersonSchemaorg["hasCredentialMaterial"] = "org.schema.Person.hasCredential.material";
|
|
81
|
+
ClaimsPersonSchemaorg["hasCredentialMaterialKid"] = "org.schema.Person.hasCredential.material.kid";
|
|
79
82
|
ClaimsPersonSchemaorg["identifier"] = "org.schema.Person.identifier";
|
|
80
83
|
ClaimsPersonSchemaorg["identifierType"] = "org.schema.Person.identifier.additionalType";
|
|
81
84
|
ClaimsPersonSchemaorg["identifierValue"] = "org.schema.Person.identifier.value";
|
|
82
85
|
/** ICAO transliteration of official given name (including middlenames), family name and addtional surname */
|
|
83
86
|
ClaimsPersonSchemaorg["name"] = "org.schema.Person.name";
|
|
84
87
|
ClaimsPersonSchemaorg["memberOf"] = "org.schema.Person.memberOf";
|
|
88
|
+
ClaimsPersonSchemaorg["memberOfTaxId"] = "org.schema.Person.memberOf.taxID";
|
|
85
89
|
ClaimsPersonSchemaorg["telephone"] = "org.schema.Person.telephone";
|
|
86
90
|
ClaimsPersonSchemaorg["worksFor"] = "org.schema.Person.worksFor";
|
|
87
91
|
/*
|
|
@@ -7,14 +7,6 @@ function getHeaderValue(headers, name) {
|
|
|
7
7
|
return value == null ? undefined : value;
|
|
8
8
|
}
|
|
9
9
|
async function parseBody(response) {
|
|
10
|
-
if (typeof response.json === 'function') {
|
|
11
|
-
try {
|
|
12
|
-
return await response.json();
|
|
13
|
-
}
|
|
14
|
-
catch {
|
|
15
|
-
// Continue to text fallback.
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
10
|
if (typeof response.text === 'function') {
|
|
19
11
|
const raw = await response.text();
|
|
20
12
|
if (!raw)
|