@nmshd/content 2.5.1 → 2.6.0
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/attributes/AttributeValueTypes.d.ts +13 -13
- package/dist/attributes/AttributeValueTypes.js +4 -0
- package/dist/attributes/AttributeValueTypes.js.map +1 -1
- package/dist/attributes/types/index.d.ts +1 -0
- package/dist/attributes/types/index.js +1 -0
- package/dist/attributes/types/index.js.map +1 -1
- package/dist/attributes/types/statement/AbstractIdentityDescriptor.d.ts +15 -0
- package/dist/attributes/types/statement/AbstractIdentityDescriptor.js +46 -0
- package/dist/attributes/types/statement/AbstractIdentityDescriptor.js.map +1 -0
- package/dist/attributes/types/statement/AbstractStatement.d.ts +34 -0
- package/dist/attributes/types/statement/AbstractStatement.js +87 -0
- package/dist/attributes/types/statement/AbstractStatement.js.map +1 -0
- package/dist/attributes/types/statement/DigitalIdentityDescriptor.d.ts +18 -0
- package/dist/attributes/types/statement/DigitalIdentityDescriptor.js +56 -0
- package/dist/attributes/types/statement/DigitalIdentityDescriptor.js.map +1 -0
- package/dist/attributes/types/statement/Statement.d.ts +10 -0
- package/dist/attributes/types/statement/Statement.js +24 -0
- package/dist/attributes/types/statement/Statement.js.map +1 -0
- package/dist/attributes/types/statement/StatementAuthorityType.d.ts +25 -0
- package/dist/attributes/types/statement/StatementAuthorityType.js +60 -0
- package/dist/attributes/types/statement/StatementAuthorityType.js.map +1 -0
- package/dist/attributes/types/statement/StatementEvidence.d.ts +29 -0
- package/dist/attributes/types/statement/StatementEvidence.js +61 -0
- package/dist/attributes/types/statement/StatementEvidence.js.map +1 -0
- package/dist/attributes/types/statement/StatementIssuerConditions.d.ts +33 -0
- package/dist/attributes/types/statement/StatementIssuerConditions.js +90 -0
- package/dist/attributes/types/statement/StatementIssuerConditions.js.map +1 -0
- package/dist/attributes/types/statement/StatementObject.d.ts +18 -0
- package/dist/attributes/types/statement/StatementObject.js +56 -0
- package/dist/attributes/types/statement/StatementObject.js.map +1 -0
- package/dist/attributes/types/statement/StatementPredicate.d.ts +25 -0
- package/dist/attributes/types/statement/StatementPredicate.js +68 -0
- package/dist/attributes/types/statement/StatementPredicate.js.map +1 -0
- package/dist/attributes/types/statement/StatementSubject.d.ts +18 -0
- package/dist/attributes/types/statement/StatementSubject.js +56 -0
- package/dist/attributes/types/statement/StatementSubject.js.map +1 -0
- package/dist/attributes/types/statement/index.d.ts +10 -0
- package/dist/attributes/types/statement/index.js +27 -0
- package/dist/attributes/types/statement/index.js.map +1 -0
- package/dist/buildInformation.js +4 -4
- package/dist/requests/items/freeText/FreeTextAcceptResponseItem.d.ts +3 -3
- package/dist/requests/items/freeText/FreeTextAcceptResponseItem.js +1 -1
- package/dist/requests/items/freeText/FreeTextRequestItem.d.ts +3 -3
- package/dist/requests/items/freeText/FreeTextRequestItem.js +1 -1
- package/lib-web/nmshd.content.js +741 -6
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Affiliation, AffiliationJSON, AffiliationOrganization, AffiliationOrganizationJSON, AffiliationRole, AffiliationRoleJSON, AffiliationUnit, AffiliationUnitJSON, BirthCity, BirthCityJSON, BirthCountry, BirthCountryJSON, BirthDate, BirthDateJSON, BirthDay, BirthDayJSON, BirthMonth, BirthMonthJSON, BirthName, BirthNameJSON, BirthPlace, BirthPlaceJSON, BirthState, BirthStateJSON, BirthYear, BirthYearJSON, Citizenship, CitizenshipJSON, City, CityJSON, CommunicationLanguage, CommunicationLanguageJSON, Consent, ConsentJSON, Country, CountryJSON, DeliveryBoxAddress, DeliveryBoxAddressJSON, DisplayName, DisplayNameJSON, EMailAddress, EMailAddressJSON, FaxNumber, FaxNumberJSON, GivenName, GivenNameJSON, HonorificPrefix, HonorificPrefixJSON, HonorificSuffix, HonorificSuffixJSON, HouseNumber, HouseNumberJSON, IAffiliation, IAffiliationOrganization, IAffiliationRole, IAffiliationUnit, IBirthCity, IBirthCountry, IBirthDate, IBirthDay, IBirthMonth, IBirthName, IBirthPlace, IBirthState, IBirthYear, ICitizenship, ICity, ICommunicationLanguage, IConsent, ICountry, IDeliveryBoxAddress, IDisplayName, IEMailAddress, IFaxNumber, IGivenName, IHonorificPrefix, IHonorificSuffix, IHouseNumber, IIdentityFileReference, IJobTitle, IMiddleName, INationality, IPersonName, IPhoneNumber, IPostOfficeBoxAddress, IProprietaryBoolean, IProprietaryCountry, IProprietaryEMailAddress, IProprietaryFileReference, IProprietaryFloat, IProprietaryHEXColor, IProprietaryInteger, IProprietaryJSON, IProprietaryLanguage, IProprietaryPhoneNumber, IProprietaryString, IProprietaryURL, IProprietaryXML, IPseudonym, ISex, IState, IStreet, IStreetAddress, ISurname, IWebsite, IZipCode,
|
|
1
|
+
import { Affiliation, AffiliationJSON, AffiliationOrganization, AffiliationOrganizationJSON, AffiliationRole, AffiliationRoleJSON, AffiliationUnit, AffiliationUnitJSON, BirthCity, BirthCityJSON, BirthCountry, BirthCountryJSON, BirthDate, BirthDateJSON, BirthDay, BirthDayJSON, BirthMonth, BirthMonthJSON, BirthName, BirthNameJSON, BirthPlace, BirthPlaceJSON, BirthState, BirthStateJSON, BirthYear, BirthYearJSON, Citizenship, CitizenshipJSON, City, CityJSON, CommunicationLanguage, CommunicationLanguageJSON, Consent, ConsentJSON, Country, CountryJSON, DeliveryBoxAddress, DeliveryBoxAddressJSON, DisplayName, DisplayNameJSON, EMailAddress, EMailAddressJSON, FaxNumber, FaxNumberJSON, GivenName, GivenNameJSON, HonorificPrefix, HonorificPrefixJSON, HonorificSuffix, HonorificSuffixJSON, HouseNumber, HouseNumberJSON, IAffiliation, IAffiliationOrganization, IAffiliationRole, IAffiliationUnit, IBirthCity, IBirthCountry, IBirthDate, IBirthDay, IBirthMonth, IBirthName, IBirthPlace, IBirthState, IBirthYear, ICitizenship, ICity, ICommunicationLanguage, IConsent, ICountry, IDeliveryBoxAddress, IdentityFileReference, IdentityFileReferenceJSON, IDisplayName, IEMailAddress, IFaxNumber, IGivenName, IHonorificPrefix, IHonorificSuffix, IHouseNumber, IIdentityFileReference, IJobTitle, IMiddleName, INationality, IPersonName, IPhoneNumber, IPostOfficeBoxAddress, IProprietaryBoolean, IProprietaryCountry, IProprietaryEMailAddress, IProprietaryFileReference, IProprietaryFloat, IProprietaryHEXColor, IProprietaryInteger, IProprietaryJSON, IProprietaryLanguage, IProprietaryPhoneNumber, IProprietaryString, IProprietaryURL, IProprietaryXML, IPseudonym, ISchematizedXML, ISex, IState, IStatement, IStreet, IStreetAddress, ISurname, IWebsite, IZipCode, JobTitle, JobTitleJSON, MiddleName, MiddleNameJSON, Nationality, NationalityJSON, PersonName, PersonNameJSON, PhoneNumber, PhoneNumberJSON, PostOfficeBoxAddress, PostOfficeBoxAddressJSON, ProprietaryBoolean, ProprietaryBooleanJSON, ProprietaryCountry, ProprietaryCountryJSON, ProprietaryEMailAddress, ProprietaryEMailAddressJSON, ProprietaryFileReference, ProprietaryFileReferenceJSON, ProprietaryFloat, ProprietaryFloatJSON, ProprietaryHEXColor, ProprietaryHEXColorJSON, ProprietaryInteger, ProprietaryIntegerJSON, ProprietaryJSON, ProprietaryJSONJSON, ProprietaryLanguage, ProprietaryLanguageJSON, ProprietaryPhoneNumber, ProprietaryPhoneNumberJSON, ProprietaryString, ProprietaryStringJSON, ProprietaryURL, ProprietaryURLJSON, ProprietaryXML, ProprietaryXMLJSON, Pseudonym, PseudonymJSON, SchematizedXML, SchematizedXMLJSON, Sex, SexJSON, State, StateJSON, Statement, StatementJSON, Street, StreetAddress, StreetAddressJSON, StreetJSON, Surname, SurnameJSON, Website, WebsiteJSON, ZipCode, ZipCodeJSON } from "./types";
|
|
2
2
|
export declare module AttributeValues {
|
|
3
3
|
module Identity {
|
|
4
4
|
module Editable {
|
|
5
|
-
type Json = AffiliationJSON | BirthDateJSON | BirthNameJSON | BirthPlaceJSON | CitizenshipJSON | CommunicationLanguageJSON | DeliveryBoxAddressJSON | DisplayNameJSON | EMailAddressJSON | FaxNumberJSON | IdentityFileReferenceJSON |
|
|
6
|
-
type Interface = IAffiliation | IBirthDate | IBirthName | IBirthPlace | ICitizenship | ICommunicationLanguage | IDeliveryBoxAddress | IDisplayName | IEMailAddress | IFaxNumber | IIdentityFileReference |
|
|
7
|
-
type Class = Affiliation | BirthDate | BirthName | BirthPlace | Citizenship | CommunicationLanguage | DeliveryBoxAddress | DisplayName | EMailAddress | FaxNumber | IdentityFileReference |
|
|
5
|
+
type Json = AffiliationJSON | BirthDateJSON | BirthNameJSON | BirthPlaceJSON | CitizenshipJSON | CommunicationLanguageJSON | DeliveryBoxAddressJSON | DisplayNameJSON | EMailAddressJSON | FaxNumberJSON | IdentityFileReferenceJSON | JobTitleJSON | NationalityJSON | PersonNameJSON | PhoneNumberJSON | PostOfficeBoxAddressJSON | PseudonymJSON | SexJSON | StreetAddressJSON | WebsiteJSON;
|
|
6
|
+
type Interface = IAffiliation | IBirthDate | IBirthName | IBirthPlace | ICitizenship | ICommunicationLanguage | IDeliveryBoxAddress | IDisplayName | IEMailAddress | IFaxNumber | IIdentityFileReference | IJobTitle | INationality | IPersonName | IPhoneNumber | IPostOfficeBoxAddress | IPseudonym | ISex | IStreetAddress | IWebsite;
|
|
7
|
+
type Class = Affiliation | BirthDate | BirthName | BirthPlace | Citizenship | CommunicationLanguage | DeliveryBoxAddress | DisplayName | EMailAddress | FaxNumber | IdentityFileReference | JobTitle | Nationality | PersonName | PhoneNumber | PostOfficeBoxAddress | Pseudonym | Sex | StreetAddress | Website;
|
|
8
8
|
const CLASSES: (typeof CommunicationLanguage | typeof EMailAddress | typeof FaxNumber | typeof PhoneNumber | typeof Website | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDate | typeof BirthPlace | typeof DisplayName | typeof IdentityFileReference | typeof SchematizedXML | typeof BirthName | typeof PersonName | typeof Pseudonym | typeof Citizenship | typeof JobTitle | typeof Nationality | typeof Sex)[];
|
|
9
9
|
const TYPE_NAMES: readonly ["Affiliation", "BirthDate", "BirthName", "BirthPlace", "Citizenship", "CommunicationLanguage", "DeliveryBoxAddress", "DisplayName", "EMailAddress", "FaxNumber", "IdentityFileReference", "SchematizedXML", "JobTitle", "Nationality", "PersonName", "PhoneNumber", "PostOfficeBoxAddress", "Pseudonym", "Sex", "StreetAddress", "Website"];
|
|
10
10
|
const TYPE_NAMES_STRINGIFIED: string;
|
|
11
11
|
type TypeName = (typeof TYPE_NAMES)[number];
|
|
12
12
|
}
|
|
13
13
|
module Uneditable {
|
|
14
|
-
type Json = AffiliationOrganizationJSON | AffiliationRoleJSON | AffiliationUnitJSON | BirthCityJSON | BirthCountryJSON | BirthDayJSON | BirthMonthJSON | BirthStateJSON | BirthYearJSON | CityJSON | CountryJSON | GivenNameJSON | HonorificPrefixJSON | HonorificSuffixJSON | HouseNumberJSON | MiddleNameJSON | StateJSON | StreetJSON | SurnameJSON | ZipCodeJSON;
|
|
15
|
-
type Interface = IAffiliationOrganization | IAffiliationRole | IAffiliationUnit | IBirthCity | IBirthCountry | IBirthDay | IBirthMonth | IBirthState | IBirthYear | ICity | ICountry | IGivenName | IHonorificPrefix | IHonorificSuffix | IHouseNumber | IMiddleName | IState | IStreet | ISurname | IZipCode;
|
|
16
|
-
type Class = AffiliationOrganization | AffiliationRole | AffiliationUnit | BirthCity | BirthCountry | BirthDay | BirthMonth | BirthState | BirthYear | City | Country | GivenName | HonorificPrefix | HonorificSuffix | HouseNumber | MiddleName | State | Street | Surname | ZipCode;
|
|
17
|
-
const CLASSES: (typeof City | typeof BirthDay | typeof BirthMonth | typeof BirthYear)[];
|
|
18
|
-
const TYPE_NAMES: readonly ["AffiliationOrganization", "AffiliationRole", "AffiliationUnit", "BirthCity", "BirthCountry", "BirthDay", "BirthMonth", "BirthState", "BirthYear", "City", "Country", "GivenName", "HonorificPrefix", "HonorificSuffix", "HouseNumber", "MiddleName", "State", "Street", "Surname", "ZipCode"];
|
|
14
|
+
type Json = AffiliationOrganizationJSON | AffiliationRoleJSON | AffiliationUnitJSON | BirthCityJSON | BirthCountryJSON | BirthDayJSON | BirthMonthJSON | BirthStateJSON | BirthYearJSON | CityJSON | CountryJSON | GivenNameJSON | HonorificPrefixJSON | HonorificSuffixJSON | HouseNumberJSON | MiddleNameJSON | SchematizedXMLJSON | StateJSON | StatementJSON | StreetJSON | SurnameJSON | ZipCodeJSON;
|
|
15
|
+
type Interface = IAffiliationOrganization | IAffiliationRole | IAffiliationUnit | IBirthCity | IBirthCountry | IBirthDay | IBirthMonth | IBirthState | IBirthYear | ICity | ICountry | IGivenName | IHonorificPrefix | IHonorificSuffix | IHouseNumber | IMiddleName | ISchematizedXML | IState | IStatement | IStreet | ISurname | IZipCode;
|
|
16
|
+
type Class = AffiliationOrganization | AffiliationRole | AffiliationUnit | BirthCity | BirthCountry | BirthDay | BirthMonth | BirthState | BirthYear | City | Country | GivenName | HonorificPrefix | HonorificSuffix | HouseNumber | MiddleName | SchematizedXML | State | Statement | Street | Surname | ZipCode;
|
|
17
|
+
const CLASSES: (typeof City | typeof BirthDay | typeof BirthMonth | typeof BirthYear | typeof Statement)[];
|
|
18
|
+
const TYPE_NAMES: readonly ["AffiliationOrganization", "AffiliationRole", "AffiliationUnit", "BirthCity", "BirthCountry", "BirthDay", "BirthMonth", "BirthState", "BirthYear", "City", "Country", "GivenName", "HonorificPrefix", "HonorificSuffix", "HouseNumber", "MiddleName", "SchematizedXML", "State", "Statement", "Street", "Surname", "ZipCode"];
|
|
19
19
|
const TYPE_NAMES_STRINGIFIED: string;
|
|
20
20
|
type TypeName = (typeof TYPE_NAMES)[number];
|
|
21
21
|
}
|
|
22
22
|
type Json = Editable.Json | Uneditable.Json;
|
|
23
23
|
type Interface = Editable.Interface | Uneditable.Interface;
|
|
24
24
|
type Class = Editable.Class | Uneditable.Class;
|
|
25
|
-
const CLASSES: (typeof City | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDay | typeof BirthMonth | typeof BirthYear | typeof BirthDate | typeof BirthPlace | typeof PersonName)[];
|
|
25
|
+
const CLASSES: (typeof City | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDay | typeof BirthMonth | typeof BirthYear | typeof BirthDate | typeof BirthPlace | typeof PersonName | typeof Statement)[];
|
|
26
26
|
type TypeName = Editable.TypeName | Uneditable.TypeName;
|
|
27
|
-
const TYPE_NAMES: ("City" | "Country" | "StreetAddress" | "DeliveryBoxAddress" | "PostOfficeBoxAddress" | "CommunicationLanguage" | "EMailAddress" | "FaxNumber" | "PhoneNumber" | "Website" | "State" | "ZipCode" | "HouseNumber" | "Street" | "AffiliationOrganization" | "AffiliationRole" | "AffiliationUnit" | "Affiliation" | "BirthCity" | "BirthCountry" | "BirthDay" | "BirthMonth" | "BirthYear" | "BirthDate" | "BirthState" | "BirthPlace" | "DisplayName" | "IdentityFileReference" | "SchematizedXML" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex")[];
|
|
27
|
+
const TYPE_NAMES: ("City" | "Country" | "StreetAddress" | "DeliveryBoxAddress" | "PostOfficeBoxAddress" | "CommunicationLanguage" | "EMailAddress" | "FaxNumber" | "PhoneNumber" | "Website" | "State" | "ZipCode" | "HouseNumber" | "Street" | "AffiliationOrganization" | "AffiliationRole" | "AffiliationUnit" | "Affiliation" | "BirthCity" | "BirthCountry" | "BirthDay" | "BirthMonth" | "BirthYear" | "BirthDate" | "BirthState" | "BirthPlace" | "DisplayName" | "IdentityFileReference" | "SchematizedXML" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex" | "Statement")[];
|
|
28
28
|
const TYPE_NAMES_STRINGIFIED: string;
|
|
29
29
|
}
|
|
30
30
|
module Relationship {
|
|
@@ -39,8 +39,8 @@ export declare module AttributeValues {
|
|
|
39
39
|
type Json = Identity.Json | Relationship.Json;
|
|
40
40
|
type Interface = Identity.Interface | Relationship.Interface;
|
|
41
41
|
type Class = Identity.Class | Relationship.Class;
|
|
42
|
-
const CLASSES: (typeof City | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDay | typeof BirthMonth | typeof BirthYear | typeof BirthDate | typeof BirthPlace | typeof PersonName | typeof ProprietaryBoolean | typeof ProprietaryFloat | typeof ProprietaryInteger | typeof ProprietaryJSON | typeof Consent)[];
|
|
42
|
+
const CLASSES: (typeof City | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDay | typeof BirthMonth | typeof BirthYear | typeof BirthDate | typeof BirthPlace | typeof PersonName | typeof ProprietaryBoolean | typeof ProprietaryFloat | typeof ProprietaryInteger | typeof ProprietaryJSON | typeof Consent | typeof Statement)[];
|
|
43
43
|
type TypeName = Identity.TypeName | Relationship.TypeName;
|
|
44
|
-
const TYPE_NAMES: ("City" | "Country" | "StreetAddress" | "DeliveryBoxAddress" | "PostOfficeBoxAddress" | "CommunicationLanguage" | "EMailAddress" | "FaxNumber" | "PhoneNumber" | "Website" | "State" | "ZipCode" | "HouseNumber" | "Street" | "AffiliationOrganization" | "AffiliationRole" | "AffiliationUnit" | "Affiliation" | "BirthCity" | "BirthCountry" | "BirthDay" | "BirthMonth" | "BirthYear" | "BirthDate" | "BirthState" | "BirthPlace" | "DisplayName" | "IdentityFileReference" | "SchematizedXML" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex" | "ProprietaryBoolean" | "ProprietaryCountry" | "ProprietaryEMailAddress" | "ProprietaryFileReference" | "ProprietaryFloat" | "ProprietaryHEXColor" | "ProprietaryInteger" | "ProprietaryJSON" | "ProprietaryLanguage" | "ProprietaryPhoneNumber" | "ProprietaryString" | "ProprietaryURL" | "ProprietaryXML" | "Consent")[];
|
|
44
|
+
const TYPE_NAMES: ("City" | "Country" | "StreetAddress" | "DeliveryBoxAddress" | "PostOfficeBoxAddress" | "CommunicationLanguage" | "EMailAddress" | "FaxNumber" | "PhoneNumber" | "Website" | "State" | "ZipCode" | "HouseNumber" | "Street" | "AffiliationOrganization" | "AffiliationRole" | "AffiliationUnit" | "Affiliation" | "BirthCity" | "BirthCountry" | "BirthDay" | "BirthMonth" | "BirthYear" | "BirthDate" | "BirthState" | "BirthPlace" | "DisplayName" | "IdentityFileReference" | "SchematizedXML" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex" | "ProprietaryBoolean" | "ProprietaryCountry" | "ProprietaryEMailAddress" | "ProprietaryFileReference" | "ProprietaryFloat" | "ProprietaryHEXColor" | "ProprietaryInteger" | "ProprietaryJSON" | "ProprietaryLanguage" | "ProprietaryPhoneNumber" | "ProprietaryString" | "ProprietaryURL" | "ProprietaryXML" | "Consent" | "Statement")[];
|
|
45
45
|
const TYPE_NAMES_STRINGIFIED: string;
|
|
46
46
|
}
|
|
@@ -76,7 +76,9 @@ var AttributeValues;
|
|
|
76
76
|
types_1.HonorificSuffix,
|
|
77
77
|
types_1.HouseNumber,
|
|
78
78
|
types_1.MiddleName,
|
|
79
|
+
types_1.SchematizedXML,
|
|
79
80
|
types_1.State,
|
|
81
|
+
types_1.Statement,
|
|
80
82
|
types_1.Street,
|
|
81
83
|
types_1.Surname,
|
|
82
84
|
types_1.ZipCode
|
|
@@ -98,7 +100,9 @@ var AttributeValues;
|
|
|
98
100
|
"HonorificSuffix",
|
|
99
101
|
"HouseNumber",
|
|
100
102
|
"MiddleName",
|
|
103
|
+
"SchematizedXML",
|
|
101
104
|
"State",
|
|
105
|
+
"Statement",
|
|
102
106
|
"Street",
|
|
103
107
|
"Surname",
|
|
104
108
|
"ZipCode"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeValueTypes.js","sourceRoot":"","sources":["../../src/attributes/AttributeValueTypes.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"AttributeValueTypes.js","sourceRoot":"","sources":["../../src/attributes/AttributeValueTypes.ts"],"names":[],"mappings":";;;AAAA,mCAyKgB;AAEhB,+JAA+J;AAE/J,IAAc,eAAe,CA+V5B;AA/VD,WAAc,eAAe;IACzB,IAAc,QAAQ,CA8PrB;IA9PD,WAAc,QAAQ;QAClB,IAAc,QAAQ,CAqHrB;QArHD,WAAc,QAAQ;YAmEL,gBAAO,GAAG;gBACnB,mBAAW;gBACX,iBAAS;gBACT,iBAAS;gBACT,kBAAU;gBACV,mBAAW;gBACX,6BAAqB;gBACrB,0BAAkB;gBAClB,mBAAW;gBACX,oBAAY;gBACZ,iBAAS;gBACT,6BAAqB;gBACrB,sBAAc;gBACd,gBAAQ;gBACR,mBAAW;gBACX,kBAAU;gBACV,mBAAW;gBACX,4BAAoB;gBACpB,iBAAS;gBACT,WAAG;gBACH,qBAAa;gBACb,eAAO;aACV,CAAA;YAEY,mBAAU,GAAG;gBACtB,aAAa;gBACb,WAAW;gBACX,WAAW;gBACX,YAAY;gBACZ,aAAa;gBACb,uBAAuB;gBACvB,oBAAoB;gBACpB,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,uBAAuB;gBACvB,gBAAgB;gBAChB,UAAU;gBACV,aAAa;gBACb,YAAY;gBACZ,aAAa;gBACb,sBAAsB;gBACtB,WAAW;gBACX,KAAK;gBACL,eAAe;gBACf,SAAS;aACH,CAAA;YAEG,+BAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,SAAA,UAAU,CAAC,CAAA;QAEpE,CAAC,EArHa,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAqHrB;QAED,IAAc,UAAU,CA6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B,gCAAwB;YACxB,wBAAgB;YAChB,2BAAmB;YACnB,0BAAkB;YAClB,2BAAmB;YACnB,8BAAsB;YACtB,yBAAiB;YACjB,sBAAc;YACd,uBAAe;YACf,sBAAc;YACd,eAAO;SACV,CAAA;QAEY,uBAAU,GAAG;YACtB,oBAAoB;YACpB,oBAAoB;YACpB,yBAAyB;YACzB,0BAA0B;YAC1B,kBAAkB;YAClB,qBAAqB;YACrB,oBAAoB;YACpB,qBAAqB;YACrB,wBAAwB;YACxB,mBAAmB;YACnB,gBAAgB;YAChB,iBAAiB;YACjB,gBAAgB;YAChB,SAAS;SACH,CAAA;QAEG,mCAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,aAAA,UAAU,CAAC,CAAA;IAEpE,CAAC,EArFa,YAAY,GAAZ,4BAAY,KAAZ,4BAAY,QAqFzB;IAKY,uBAAO,GAAG,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAExD,0BAAU,GAAG,CAAC,GAAG,QAAQ,CAAC,UAAU,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;IACjE,sCAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAA,UAAU,CAAC,CAAA;AACpE,CAAC,EA/Va,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA+V5B"}
|
|
@@ -29,5 +29,6 @@ __exportStar(require("./name"), exports);
|
|
|
29
29
|
__exportStar(require("./person"), exports);
|
|
30
30
|
__exportStar(require("./proprietary"), exports);
|
|
31
31
|
__exportStar(require("./relationship"), exports);
|
|
32
|
+
__exportStar(require("./statement"), exports);
|
|
32
33
|
__exportStar(require("./strings"), exports);
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/attributes/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,kDAA+B;AAC/B,oDAAiC;AACjC,mDAAgC;AAChC,4CAAyB;AACzB,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,0CAAuB;AACvB,6CAA0B;AAC1B,iDAA8B;AAC9B,yCAAsB;AACtB,2CAAwB;AACxB,gDAA6B;AAC7B,iDAA8B;AAC9B,4CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/attributes/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,kDAA+B;AAC/B,oDAAiC;AACjC,mDAAgC;AAChC,4CAAyB;AACzB,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,0CAAuB;AACvB,6CAA0B;AAC1B,iDAA8B;AAC9B,yCAAsB;AACtB,2CAAwB;AACxB,gDAA6B;AAC7B,iDAA8B;AAC9B,8CAA2B;AAC3B,4CAAyB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AbstractComplexValue, AbstractComplexValueJSON, IAbstractComplexValue } from "../../../attributes/AbstractComplexValue";
|
|
2
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
3
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute } from "../../IdentityAttribute";
|
|
4
|
+
export interface AbstractIdentityDescriptorJSON extends AbstractComplexValueJSON {
|
|
5
|
+
attributes?: IdentityAttributeJSON[];
|
|
6
|
+
}
|
|
7
|
+
export interface IAbstractIdentityDescriptor extends IAbstractComplexValue {
|
|
8
|
+
attributes?: IIdentityAttribute[];
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class AbstractIdentityDescriptor extends AbstractComplexValue implements IAbstractIdentityDescriptor {
|
|
11
|
+
static readonly propertyNames: any;
|
|
12
|
+
attributes?: IdentityAttribute[];
|
|
13
|
+
static get valueHints(): ValueHints;
|
|
14
|
+
static get renderHints(): RenderHints;
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AbstractIdentityDescriptor = void 0;
|
|
16
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
17
|
+
const easy_tsnameof_1 = __importDefault(require("easy-tsnameof"));
|
|
18
|
+
const AbstractComplexValue_1 = require("../../../attributes/AbstractComplexValue");
|
|
19
|
+
const hints_1 = require("../../../attributes/hints");
|
|
20
|
+
class AbstractIdentityDescriptor extends AbstractComplexValue_1.AbstractComplexValue {
|
|
21
|
+
static get valueHints() {
|
|
22
|
+
return hints_1.ValueHints.from({
|
|
23
|
+
propertyHints: {
|
|
24
|
+
[this.propertyNames.attributes.$path]: hints_1.ValueHints.from({})
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static get renderHints() {
|
|
29
|
+
return super.renderHints.copyWith({
|
|
30
|
+
propertyHints: {
|
|
31
|
+
[this.propertyNames.attributes.$path]: hints_1.RenderHints.from({
|
|
32
|
+
editType: hints_1.RenderHintsEditType.Complex,
|
|
33
|
+
technicalType: hints_1.RenderHintsTechnicalType.Object
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
AbstractIdentityDescriptor.propertyNames = (0, easy_tsnameof_1.default)();
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, ts_serval_1.serialize)(),
|
|
42
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], AbstractIdentityDescriptor.prototype, "attributes", void 0);
|
|
45
|
+
exports.AbstractIdentityDescriptor = AbstractIdentityDescriptor;
|
|
46
|
+
//# sourceMappingURL=AbstractIdentityDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractIdentityDescriptor.js","sourceRoot":"","sources":["../../../../src/attributes/types/statement/AbstractIdentityDescriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAwD;AACxD,kEAAkC;AAClC,mFAIiD;AACjD,qDAAkH;AAWlH,MAAsB,0BAA2B,SAAQ,2CAAoB;IAOlE,MAAM,KAAK,UAAU;QACxB,OAAO,kBAAU,CAAC,IAAI,CAAC;YACnB,aAAa,EAAE;gBACX,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,kBAAU,CAAC,IAAI,CAAC,EAAE,CAAC;aAC7D;SACJ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,aAAa,EAAE;gBACX,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,mBAAW,CAAC,IAAI,CAAC;oBACpD,QAAQ,EAAE,2BAAmB,CAAC,OAAO;oBACrC,aAAa,EAAE,gCAAwB,CAAC,MAAM;iBACjD,CAAC;aACL;SACJ,CAAC,CAAA;IACN,CAAC;;AAvBsB,wCAAa,GAAQ,IAAA,uBAAM,GAAqC,CAAA;AAEvF;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACU;AAL3C,gEAyBC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { AbstractComplexValue, AbstractComplexValueJSON, IAbstractComplexValue } from "../../AbstractComplexValue";
|
|
3
|
+
import { RenderHints, ValueHints } from "../../hints";
|
|
4
|
+
import { DigitalIdentityDescriptor, DigitalIdentityDescriptorJSON, IDigitalIdentityDescriptor } from "./DigitalIdentityDescriptor";
|
|
5
|
+
import { IStatementIssuerConditions, StatementIssuerConditions, StatementIssuerConditionsJSON } from "./StatementIssuerConditions";
|
|
6
|
+
import { IStatementObject, StatementObject, StatementObjectJSON } from "./StatementObject";
|
|
7
|
+
import { IStatementPredicate, StatementPredicate, StatementPredicateJSON } from "./StatementPredicate";
|
|
8
|
+
import { IStatementSubject, StatementSubject, StatementSubjectJSON } from "./StatementSubject";
|
|
9
|
+
export interface AbstractStatementJSON extends AbstractComplexValueJSON {
|
|
10
|
+
subject: StatementSubjectJSON;
|
|
11
|
+
predicate: StatementPredicateJSON;
|
|
12
|
+
object: StatementObjectJSON;
|
|
13
|
+
issuer: DigitalIdentityDescriptorJSON;
|
|
14
|
+
issuerConditions: StatementIssuerConditionsJSON;
|
|
15
|
+
}
|
|
16
|
+
export interface IAbstractStatement extends IAbstractComplexValue {
|
|
17
|
+
subject: IStatementSubject;
|
|
18
|
+
predicate: IStatementPredicate;
|
|
19
|
+
object: IStatementObject;
|
|
20
|
+
issuer: IDigitalIdentityDescriptor;
|
|
21
|
+
issuerConditions: IStatementIssuerConditions;
|
|
22
|
+
}
|
|
23
|
+
export declare abstract class AbstractStatement extends AbstractComplexValue implements IAbstractStatement {
|
|
24
|
+
static readonly propertyNames: any;
|
|
25
|
+
subject: StatementSubject;
|
|
26
|
+
predicate: StatementPredicate;
|
|
27
|
+
object: StatementObject;
|
|
28
|
+
issuer: DigitalIdentityDescriptor;
|
|
29
|
+
issuerConditions: StatementIssuerConditions;
|
|
30
|
+
static postFrom<T extends Serializable>(value: T): T;
|
|
31
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): AbstractStatementJSON;
|
|
32
|
+
static get valueHints(): ValueHints;
|
|
33
|
+
static get renderHints(): RenderHints;
|
|
34
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AbstractStatement = void 0;
|
|
16
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
17
|
+
const easy_tsnameof_1 = __importDefault(require("easy-tsnameof"));
|
|
18
|
+
const AbstractComplexValue_1 = require("../../AbstractComplexValue");
|
|
19
|
+
const hints_1 = require("../../hints");
|
|
20
|
+
const DigitalIdentityDescriptor_1 = require("./DigitalIdentityDescriptor");
|
|
21
|
+
const StatementIssuerConditions_1 = require("./StatementIssuerConditions");
|
|
22
|
+
const StatementObject_1 = require("./StatementObject");
|
|
23
|
+
const StatementPredicate_1 = require("./StatementPredicate");
|
|
24
|
+
const StatementSubject_1 = require("./StatementSubject");
|
|
25
|
+
class AbstractStatement extends AbstractComplexValue_1.AbstractComplexValue {
|
|
26
|
+
static postFrom(value) {
|
|
27
|
+
if (!(value instanceof AbstractStatement))
|
|
28
|
+
throw new Error("this should never happen");
|
|
29
|
+
if (value.predicate.value === StatementPredicate_1.Predicates.HasAttribute && (value.object.attributes?.length ?? 0) < 1) {
|
|
30
|
+
throw new ts_serval_1.ValidationError(this.constructor.name, `${(0, easy_tsnameof_1.default)((x) => x.object)}.${(0, easy_tsnameof_1.default)((x) => x.attributes)}`, `If the predicate of the Statement is '${StatementPredicate_1.Predicates.HasAttribute}' you have to define attributes in '${(0, easy_tsnameof_1.default)((x) => x.object)}.${(0, easy_tsnameof_1.default)((x) => x.attributes)}'.`);
|
|
31
|
+
}
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
toJSON(verbose, serializeAsString) {
|
|
35
|
+
return super.toJSON(verbose, serializeAsString);
|
|
36
|
+
}
|
|
37
|
+
static get valueHints() {
|
|
38
|
+
return hints_1.ValueHints.from({
|
|
39
|
+
propertyHints: {
|
|
40
|
+
[this.propertyNames.subject.$path]: StatementSubject_1.StatementSubject.valueHints,
|
|
41
|
+
[this.propertyNames.predicate.$path]: StatementPredicate_1.StatementPredicate.valueHints,
|
|
42
|
+
[this.propertyNames.object.$path]: StatementObject_1.StatementObject.valueHints,
|
|
43
|
+
[this.propertyNames.issuer.$path]: DigitalIdentityDescriptor_1.DigitalIdentityDescriptor.valueHints,
|
|
44
|
+
[this.propertyNames.issuerConditions.$path]: StatementIssuerConditions_1.StatementIssuerConditions.valueHints
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
static get renderHints() {
|
|
49
|
+
return super.renderHints.copyWith({
|
|
50
|
+
propertyHints: {
|
|
51
|
+
[this.propertyNames.subject.$path]: StatementSubject_1.StatementSubject.renderHints,
|
|
52
|
+
[this.propertyNames.predicate.$path]: StatementPredicate_1.StatementPredicate.renderHints,
|
|
53
|
+
[this.propertyNames.object.$path]: StatementObject_1.StatementObject.renderHints,
|
|
54
|
+
[this.propertyNames.issuer.$path]: DigitalIdentityDescriptor_1.DigitalIdentityDescriptor.renderHints,
|
|
55
|
+
[this.propertyNames.issuerConditions.$path]: StatementIssuerConditions_1.StatementIssuerConditions.renderHints
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
AbstractStatement.propertyNames = (0, easy_tsnameof_1.default)();
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, ts_serval_1.serialize)(),
|
|
63
|
+
(0, ts_serval_1.validate)(),
|
|
64
|
+
__metadata("design:type", StatementSubject_1.StatementSubject)
|
|
65
|
+
], AbstractStatement.prototype, "subject", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, ts_serval_1.serialize)(),
|
|
68
|
+
(0, ts_serval_1.validate)(),
|
|
69
|
+
__metadata("design:type", StatementPredicate_1.StatementPredicate)
|
|
70
|
+
], AbstractStatement.prototype, "predicate", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, ts_serval_1.serialize)(),
|
|
73
|
+
(0, ts_serval_1.validate)(),
|
|
74
|
+
__metadata("design:type", StatementObject_1.StatementObject)
|
|
75
|
+
], AbstractStatement.prototype, "object", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, ts_serval_1.serialize)(),
|
|
78
|
+
(0, ts_serval_1.validate)(),
|
|
79
|
+
__metadata("design:type", DigitalIdentityDescriptor_1.DigitalIdentityDescriptor)
|
|
80
|
+
], AbstractStatement.prototype, "issuer", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, ts_serval_1.serialize)(),
|
|
83
|
+
(0, ts_serval_1.validate)(),
|
|
84
|
+
__metadata("design:type", StatementIssuerConditions_1.StatementIssuerConditions)
|
|
85
|
+
], AbstractStatement.prototype, "issuerConditions", void 0);
|
|
86
|
+
exports.AbstractStatement = AbstractStatement;
|
|
87
|
+
//# sourceMappingURL=AbstractStatement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractStatement.js","sourceRoot":"","sources":["../../../../src/attributes/types/statement/AbstractStatement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAuF;AACvF,kEAAkC;AAClC,qEAAkH;AAClH,uCAAqD;AACrD,2EAIoC;AACpC,2EAIoC;AACpC,uDAA0F;AAC1F,6DAAkH;AAClH,yDAA8F;AAkB9F,MAAsB,iBAAkB,SAAQ,2CAAoB;IAuBzD,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC5D,IAAI,CAAC,CAAC,KAAK,YAAY,iBAAiB,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAEtF,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,KAAK,+BAAU,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE;YACjG,MAAM,IAAI,2BAAe,CACrB,IAAI,CAAC,WAAW,CAAC,IAAI,EACrB,GAAG,IAAA,uBAAM,EAAoB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAA,uBAAM,EAAkB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,EAC/F,yCACI,+BAAU,CAAC,YACf,uCAAuC,IAAA,uBAAM,EACzC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAClB,IAAI,IAAA,uBAAM,EAAkB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CACxD,CAA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AAE,qDAAyB,CAAC,WAAW;aACrF;SACJ,CAAC,CAAA;IACN,CAAC;;AArEsB,+BAAa,GAAQ,IAAA,uBAAM,GAA4B,CAAA;AAE9E;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,mCAAgB;kDAAA;AAEhC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,uCAAkB;oDAAA;AAEpC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACI,iCAAe;iDAAA;AAE9B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACI,qDAAyB;iDAAA;AAExC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACc,qDAAyB;2DAAA;AArBtD,8CAuEC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CoreAddress, ICoreAddress } from "@nmshd/transport";
|
|
2
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
3
|
+
import { AbstractIdentityDescriptor, AbstractIdentityDescriptorJSON, IAbstractIdentityDescriptor } from "./AbstractIdentityDescriptor";
|
|
4
|
+
export interface DigitalIdentityDescriptorJSON extends AbstractIdentityDescriptorJSON {
|
|
5
|
+
"@type": "DigitalIdentityDescriptor";
|
|
6
|
+
address: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IDigitalIdentityDescriptor extends IAbstractIdentityDescriptor {
|
|
9
|
+
address: ICoreAddress;
|
|
10
|
+
}
|
|
11
|
+
export declare class DigitalIdentityDescriptor extends AbstractIdentityDescriptor implements IDigitalIdentityDescriptor {
|
|
12
|
+
static readonly propertyNames: any;
|
|
13
|
+
address: CoreAddress;
|
|
14
|
+
static from(value: IDigitalIdentityDescriptor | Omit<DigitalIdentityDescriptorJSON, "@type"> | string): DigitalIdentityDescriptor;
|
|
15
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): DigitalIdentityDescriptorJSON;
|
|
16
|
+
static get valueHints(): ValueHints;
|
|
17
|
+
static get renderHints(): RenderHints;
|
|
18
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DigitalIdentityDescriptor = void 0;
|
|
16
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
17
|
+
const transport_1 = require("@nmshd/transport");
|
|
18
|
+
const easy_tsnameof_1 = __importDefault(require("easy-tsnameof"));
|
|
19
|
+
const hints_1 = require("../../../attributes/hints");
|
|
20
|
+
const AbstractIdentityDescriptor_1 = require("./AbstractIdentityDescriptor");
|
|
21
|
+
let DigitalIdentityDescriptor = class DigitalIdentityDescriptor extends AbstractIdentityDescriptor_1.AbstractIdentityDescriptor {
|
|
22
|
+
static from(value) {
|
|
23
|
+
return this.fromAny(value);
|
|
24
|
+
}
|
|
25
|
+
toJSON(verbose, serializeAsString) {
|
|
26
|
+
return super.toJSON(verbose, serializeAsString);
|
|
27
|
+
}
|
|
28
|
+
static get valueHints() {
|
|
29
|
+
return super.valueHints.copyWith({
|
|
30
|
+
propertyHints: {
|
|
31
|
+
[this.propertyNames.address.$path]: hints_1.ValueHints.from({})
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
static get renderHints() {
|
|
36
|
+
return super.renderHints.copyWith({
|
|
37
|
+
propertyHints: {
|
|
38
|
+
[this.propertyNames.address.$path]: hints_1.RenderHints.from({
|
|
39
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
40
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
DigitalIdentityDescriptor.propertyNames = (0, easy_tsnameof_1.default)();
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, ts_serval_1.serialize)({ type: transport_1.CoreAddress }),
|
|
49
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
50
|
+
__metadata("design:type", transport_1.CoreAddress)
|
|
51
|
+
], DigitalIdentityDescriptor.prototype, "address", void 0);
|
|
52
|
+
DigitalIdentityDescriptor = __decorate([
|
|
53
|
+
(0, ts_serval_1.type)("DigitalIdentityDescriptor")
|
|
54
|
+
], DigitalIdentityDescriptor);
|
|
55
|
+
exports.DigitalIdentityDescriptor = DigitalIdentityDescriptor;
|
|
56
|
+
//# sourceMappingURL=DigitalIdentityDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DigitalIdentityDescriptor.js","sourceRoot":"","sources":["../../../../src/attributes/types/statement/DigitalIdentityDescriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA4D;AAC5D,kEAAkC;AAClC,qDAAkH;AAElH,6EAIqC;AAY9B,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,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
+
import { AbstractStatement, AbstractStatementJSON, IAbstractStatement } from "./AbstractStatement";
|
|
2
|
+
export interface StatementJSON extends AbstractStatementJSON {
|
|
3
|
+
"@type": "Statement";
|
|
4
|
+
}
|
|
5
|
+
export interface IStatement extends IAbstractStatement {
|
|
6
|
+
}
|
|
7
|
+
export declare class Statement extends AbstractStatement implements IStatement {
|
|
8
|
+
static from(value: IStatement | Omit<StatementJSON, "@type"> | string): Statement;
|
|
9
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): StatementJSON;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Statement = void 0;
|
|
10
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
11
|
+
const AbstractStatement_1 = require("./AbstractStatement");
|
|
12
|
+
let Statement = class Statement extends AbstractStatement_1.AbstractStatement {
|
|
13
|
+
static from(value) {
|
|
14
|
+
return this.fromAny(value);
|
|
15
|
+
}
|
|
16
|
+
toJSON(verbose, serializeAsString) {
|
|
17
|
+
return super.toJSON(verbose, serializeAsString);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
Statement = __decorate([
|
|
21
|
+
(0, ts_serval_1.type)("Statement")
|
|
22
|
+
], Statement);
|
|
23
|
+
exports.Statement = Statement;
|
|
24
|
+
//# sourceMappingURL=Statement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Statement.js","sourceRoot":"","sources":["../../../../src/attributes/types/statement/Statement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AACzC,2DAAkG;AAS3F,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,qCAAiB;IACrC,MAAM,CAAC,IAAI,CAAC,KAAyD;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAAC,OAA6B,EAAE,iBAAuC;QACzF,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAkB,CAAA;IACpE,CAAC;CACJ,CAAA;AARY,SAAS;IADrB,IAAA,gBAAI,EAAC,WAAW,CAAC;GACL,SAAS,CAQrB;AARY,8BAAS"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../hints";
|
|
2
|
+
import { AbstractString, AbstractStringJSON, IAbstractString } from "../AbstractString";
|
|
3
|
+
/**
|
|
4
|
+
* Supported Authority
|
|
5
|
+
*/
|
|
6
|
+
export declare enum Authority {
|
|
7
|
+
OwnAuthority = "ownAuthority",
|
|
8
|
+
TrustedAuthority = "trustedAuthority",
|
|
9
|
+
PublicAuthority = "publicAuthority",
|
|
10
|
+
RelayedOwnAuthority = "relayedOwnAuthority",
|
|
11
|
+
RelayedTrustedAuthority = "relayedTrustedAuthority",
|
|
12
|
+
RelayedPublicAuthority = "relayedPublicAuthority"
|
|
13
|
+
}
|
|
14
|
+
export interface StatementAuthorityTypeJSON extends AbstractStringJSON {
|
|
15
|
+
"@type": "StatementAuthorityType";
|
|
16
|
+
}
|
|
17
|
+
export interface IStatementAuthorityType extends IAbstractString {
|
|
18
|
+
}
|
|
19
|
+
export declare class StatementAuthorityType extends AbstractString {
|
|
20
|
+
value: Authority;
|
|
21
|
+
static get valueHints(): ValueHints;
|
|
22
|
+
static get renderHints(): RenderHints;
|
|
23
|
+
static from(value: IStatementAuthorityType | Omit<StatementAuthorityTypeJSON, "@type"> | string): StatementAuthorityType;
|
|
24
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): StatementAuthorityTypeJSON;
|
|
25
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatementAuthorityType = exports.Authority = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../hints");
|
|
15
|
+
const AbstractString_1 = require("../AbstractString");
|
|
16
|
+
/**
|
|
17
|
+
* Supported Authority
|
|
18
|
+
*/
|
|
19
|
+
var Authority;
|
|
20
|
+
(function (Authority) {
|
|
21
|
+
Authority["OwnAuthority"] = "ownAuthority";
|
|
22
|
+
Authority["TrustedAuthority"] = "trustedAuthority";
|
|
23
|
+
Authority["PublicAuthority"] = "publicAuthority";
|
|
24
|
+
Authority["RelayedOwnAuthority"] = "relayedOwnAuthority";
|
|
25
|
+
Authority["RelayedTrustedAuthority"] = "relayedTrustedAuthority";
|
|
26
|
+
Authority["RelayedPublicAuthority"] = "relayedPublicAuthority";
|
|
27
|
+
})(Authority = exports.Authority || (exports.Authority = {}));
|
|
28
|
+
let StatementAuthorityType = class StatementAuthorityType extends AbstractString_1.AbstractString {
|
|
29
|
+
static get valueHints() {
|
|
30
|
+
return super.valueHints.copyWith({
|
|
31
|
+
values: Object.values(Authority).map((value) => hints_1.ValueHintsValue.from({
|
|
32
|
+
key: value,
|
|
33
|
+
displayName: `i18n://attributes.values.StatementAuthority.${value}`
|
|
34
|
+
}))
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
static get renderHints() {
|
|
38
|
+
return super.renderHints.copyWith({
|
|
39
|
+
editType: hints_1.RenderHintsEditType.ButtonLike
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
static from(value) {
|
|
43
|
+
return this.fromAny(value);
|
|
44
|
+
}
|
|
45
|
+
toJSON(verbose, serializeAsString) {
|
|
46
|
+
return super.toJSON(verbose, serializeAsString);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, ts_serval_1.serialize)(),
|
|
51
|
+
(0, ts_serval_1.validate)({
|
|
52
|
+
customValidator: (v) => !Object.values(Authority).includes(v) ? `must be one of: ${Object.values(Authority)}` : undefined
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], StatementAuthorityType.prototype, "value", void 0);
|
|
56
|
+
StatementAuthorityType = __decorate([
|
|
57
|
+
(0, ts_serval_1.type)("StatementAuthorityType")
|
|
58
|
+
], StatementAuthorityType);
|
|
59
|
+
exports.StatementAuthorityType = StatementAuthorityType;
|
|
60
|
+
//# sourceMappingURL=StatementAuthorityType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatementAuthorityType.js","sourceRoot":"","sources":["../../../../src/attributes/types/statement/StatementAuthorityType.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,u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CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;KACxG,CAAC;;qDAC8B;AANvB,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CAqClC;AArCY,wDAAsB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../hints";
|
|
2
|
+
import { AbstractString, AbstractStringJSON, IAbstractString } from "../AbstractString";
|
|
3
|
+
/**
|
|
4
|
+
* Supported Evidence
|
|
5
|
+
*/
|
|
6
|
+
export declare enum Evidence {
|
|
7
|
+
OwnFact = "ownFact",
|
|
8
|
+
DigitalPublicIDCard = "digitalPublicIDCard",
|
|
9
|
+
DigitalPublicDocument = "digitalPublicDocument",
|
|
10
|
+
DigitalDocument = "digitalDocument",
|
|
11
|
+
SightCheckOfPublicIDCard = "sightCheckOfPublicIDCard",
|
|
12
|
+
SightCheckOfPublicDocument = "sightCheckOfPublicDocument",
|
|
13
|
+
SightCheckOfDocument = "sightCheckOfDocument",
|
|
14
|
+
MediaOfPublicIDCard = "mediaOfPublicIDCard",
|
|
15
|
+
MediaOfPublicDocument = "mediaOfPublicDocument",
|
|
16
|
+
MediaOfDocument = "mediaOfDocument"
|
|
17
|
+
}
|
|
18
|
+
export interface StatementEvidenceJSON extends AbstractStringJSON {
|
|
19
|
+
"@type": "StatementEvidence";
|
|
20
|
+
}
|
|
21
|
+
export interface IStatementEvidence extends IAbstractString {
|
|
22
|
+
}
|
|
23
|
+
export declare class StatementEvidence extends AbstractString {
|
|
24
|
+
value: Evidence;
|
|
25
|
+
static get valueHints(): ValueHints;
|
|
26
|
+
static get renderHints(): RenderHints;
|
|
27
|
+
static from(value: IStatementEvidence | Omit<StatementEvidenceJSON, "@type"> | string): StatementEvidence;
|
|
28
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): StatementEvidenceJSON;
|
|
29
|
+
}
|