@nmshd/content 2.0.0-beta.8 → 2.0.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/AbstractAttribute.js.map +1 -1
- package/dist/attributes/AbstractAttributeQuery.d.ts +0 -3
- package/dist/attributes/AbstractAttributeQuery.js +0 -7
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -1
- package/dist/attributes/AbstractAttributeValue.d.ts +1 -2
- package/dist/attributes/AbstractAttributeValue.js +0 -3
- package/dist/attributes/AbstractAttributeValue.js.map +1 -1
- package/dist/attributes/AttributeValueTypes.d.ts +46 -0
- package/dist/attributes/AttributeValueTypes.js +146 -0
- package/dist/attributes/AttributeValueTypes.js.map +1 -0
- package/dist/attributes/IdentityAttribute.d.ts +7 -6
- package/dist/attributes/IdentityAttribute.js +4 -4
- package/dist/attributes/IdentityAttribute.js.map +1 -1
- package/dist/attributes/IdentityAttributeQuery.d.ts +7 -2
- package/dist/attributes/IdentityAttributeQuery.js +12 -2
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -1
- package/dist/attributes/RelationshipAttribute.d.ts +8 -36
- package/dist/attributes/RelationshipAttribute.js +8 -38
- package/dist/attributes/RelationshipAttribute.js.map +1 -1
- package/dist/attributes/RelationshipAttributeConfidentiality.d.ts +30 -0
- package/dist/attributes/RelationshipAttributeConfidentiality.js +35 -0
- package/dist/attributes/RelationshipAttributeConfidentiality.js.map +1 -0
- package/dist/attributes/RelationshipAttributeQuery.d.ts +35 -6
- package/dist/attributes/RelationshipAttributeQuery.js +59 -10
- package/dist/attributes/RelationshipAttributeQuery.js.map +1 -1
- package/dist/attributes/ThirdPartyRelationshipAttributeQuery.d.ts +20 -0
- package/dist/{forms/FormItem.js → attributes/ThirdPartyRelationshipAttributeQuery.js} +21 -31
- package/dist/attributes/ThirdPartyRelationshipAttributeQuery.js.map +1 -0
- package/dist/attributes/constants/AttributeValueTypeQueryMapping.d.ts +1 -0
- package/dist/attributes/constants/AttributeValueTypeQueryMapping.js +7 -0
- package/dist/attributes/constants/AttributeValueTypeQueryMapping.js.map +1 -0
- package/dist/attributes/constants/index.d.ts +1 -0
- package/dist/attributes/constants/index.js +1 -0
- package/dist/attributes/constants/index.js.map +1 -1
- package/dist/attributes/hints/RenderHints.d.ts +3 -2
- package/dist/attributes/hints/RenderHints.js.map +1 -1
- package/dist/attributes/hints/ValueHints.d.ts +3 -2
- package/dist/attributes/hints/ValueHints.js.map +1 -1
- package/dist/attributes/hints/ValueHintsValue.d.ts +1 -1
- package/dist/attributes/hints/ValueHintsValue.js.map +1 -1
- package/dist/attributes/hints/index.d.ts +0 -1
- package/dist/attributes/hints/index.js +0 -1
- package/dist/attributes/hints/index.js.map +1 -1
- package/dist/attributes/index.d.ts +3 -1
- package/dist/attributes/index.js +3 -1
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/types/AbstractBoolean.d.ts +1 -2
- package/dist/attributes/types/AbstractBoolean.js.map +1 -1
- package/dist/attributes/types/AbstractFloat.d.ts +1 -2
- package/dist/attributes/types/AbstractFloat.js.map +1 -1
- package/dist/attributes/types/AbstractInteger.d.ts +1 -3
- package/dist/attributes/types/AbstractInteger.js +0 -3
- package/dist/attributes/types/AbstractInteger.js.map +1 -1
- package/dist/attributes/types/AbstractString.d.ts +1 -2
- package/dist/attributes/types/AbstractString.js +2 -2
- package/dist/attributes/types/AbstractString.js.map +1 -1
- package/dist/attributes/types/address/AbstractAddress.js.map +1 -1
- package/dist/attributes/types/address/City.d.ts +8 -2
- package/dist/attributes/types/address/City.js +3 -0
- package/dist/attributes/types/address/City.js.map +1 -1
- package/dist/attributes/types/address/Country.d.ts +9 -2
- package/dist/attributes/types/address/Country.js +5 -2
- package/dist/attributes/types/address/Country.js.map +1 -1
- package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +40 -39
- package/dist/attributes/types/address/DeliveryBoxAddress.js +6 -3
- package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -1
- package/dist/attributes/types/address/HouseNumber.d.ts +9 -2
- package/dist/attributes/types/address/HouseNumber.js +6 -0
- package/dist/attributes/types/address/HouseNumber.js.map +1 -1
- package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +30 -29
- package/dist/attributes/types/address/PostOfficeBoxAddress.js +3 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -1
- package/dist/attributes/types/address/State.d.ts +8 -2
- package/dist/attributes/types/address/State.js +3 -0
- package/dist/attributes/types/address/State.js.map +1 -1
- package/dist/attributes/types/address/Street.d.ts +9 -2
- package/dist/attributes/types/address/Street.js +6 -0
- package/dist/attributes/types/address/Street.js.map +1 -1
- package/dist/attributes/types/address/StreetAddress.d.ts +49 -48
- package/dist/attributes/types/address/StreetAddress.js +3 -0
- package/dist/attributes/types/address/StreetAddress.js.map +1 -1
- package/dist/attributes/types/address/ZipCode.d.ts +9 -2
- package/dist/attributes/types/address/ZipCode.js +6 -0
- package/dist/attributes/types/address/ZipCode.js.map +1 -1
- package/dist/attributes/types/{name/LegalNameDE.d.ts → affiliation/Affiliation.d.ts} +43 -612
- package/dist/attributes/types/affiliation/Affiliation.js +80 -0
- package/dist/attributes/types/affiliation/Affiliation.js.map +1 -0
- package/dist/attributes/types/affiliation/AffiliationOrganization.d.ts +10 -0
- package/dist/attributes/types/affiliation/AffiliationOrganization.js +24 -0
- package/dist/attributes/types/affiliation/AffiliationOrganization.js.map +1 -0
- package/dist/attributes/types/affiliation/AffiliationRole.d.ts +10 -0
- package/dist/attributes/types/affiliation/AffiliationRole.js +24 -0
- package/dist/attributes/types/affiliation/AffiliationRole.js.map +1 -0
- package/dist/attributes/types/affiliation/AffiliationUnit.d.ts +10 -0
- package/dist/attributes/types/affiliation/AffiliationUnit.js +24 -0
- package/dist/attributes/types/affiliation/AffiliationUnit.js.map +1 -0
- package/dist/attributes/types/affiliation/index.d.ts +4 -0
- package/dist/{forms → attributes/types/affiliation}/index.js +4 -8
- package/dist/attributes/types/affiliation/index.js.map +1 -0
- package/dist/attributes/types/birth/BirthCity.d.ts +9 -2
- package/dist/attributes/types/birth/BirthCity.js +8 -2
- package/dist/attributes/types/birth/BirthCity.js.map +1 -1
- package/dist/attributes/types/birth/BirthCountry.d.ts +9 -2
- package/dist/attributes/types/birth/BirthCountry.js +8 -2
- package/dist/attributes/types/birth/BirthCountry.js.map +1 -1
- package/dist/attributes/types/birth/BirthDate.d.ts +40 -39
- package/dist/attributes/types/birth/BirthDate.js +3 -0
- package/dist/attributes/types/birth/BirthDate.js.map +1 -1
- package/dist/attributes/types/birth/BirthDay.d.ts +9 -2
- package/dist/attributes/types/birth/BirthDay.js +8 -2
- package/dist/attributes/types/birth/BirthDay.js.map +1 -1
- package/dist/attributes/types/birth/BirthMonth.d.ts +9 -2
- package/dist/attributes/types/birth/BirthMonth.js +6 -0
- package/dist/attributes/types/birth/BirthMonth.js.map +1 -1
- package/dist/attributes/types/birth/BirthPlace.d.ts +40 -39
- package/dist/attributes/types/birth/BirthPlace.js +3 -0
- package/dist/attributes/types/birth/BirthPlace.js.map +1 -1
- package/dist/attributes/types/birth/BirthState.d.ts +9 -2
- package/dist/attributes/types/birth/BirthState.js +8 -2
- package/dist/attributes/types/birth/BirthState.js.map +1 -1
- package/dist/attributes/types/birth/BirthYear.d.ts +9 -2
- package/dist/attributes/types/birth/BirthYear.js +8 -2
- package/dist/attributes/types/birth/BirthYear.js.map +1 -1
- package/dist/attributes/types/communication/CommunicationLanguage.d.ts +9 -1
- package/dist/attributes/types/communication/CommunicationLanguage.js +6 -0
- package/dist/attributes/types/communication/CommunicationLanguage.js.map +1 -1
- package/dist/attributes/types/communication/EMailAddress.d.ts +9 -1
- package/dist/attributes/types/communication/EMailAddress.js +6 -0
- package/dist/attributes/types/communication/EMailAddress.js.map +1 -1
- package/dist/attributes/types/communication/FaxNumber.d.ts +11 -0
- package/dist/attributes/types/communication/{Fax.js → FaxNumber.js} +14 -8
- package/dist/attributes/types/communication/FaxNumber.js.map +1 -0
- package/dist/attributes/types/communication/PhoneNumber.d.ts +11 -0
- package/dist/attributes/types/communication/{Phone.js → PhoneNumber.js} +14 -8
- package/dist/attributes/types/communication/PhoneNumber.js.map +1 -0
- package/dist/attributes/types/communication/Website.d.ts +9 -1
- package/dist/attributes/types/communication/Website.js +6 -0
- package/dist/attributes/types/communication/Website.js.map +1 -1
- package/dist/attributes/types/communication/index.d.ts +2 -2
- package/dist/attributes/types/communication/index.js +2 -2
- package/dist/attributes/types/communication/index.js.map +1 -1
- package/dist/attributes/types/dates/AbstractDateString.js.map +1 -1
- package/dist/attributes/types/dates/AbstractDay.d.ts +8 -2
- package/dist/attributes/types/dates/AbstractDay.js.map +1 -1
- package/dist/attributes/types/dates/AbstractMonth.d.ts +8 -2
- package/dist/attributes/types/dates/AbstractMonth.js.map +1 -1
- package/dist/attributes/types/dates/AbstractYear.d.ts +7 -1
- package/dist/attributes/types/dates/AbstractYear.js.map +1 -1
- package/dist/attributes/types/identity/DisplayName.d.ts +10 -0
- package/dist/attributes/types/{name → identity}/DisplayName.js +6 -0
- package/dist/attributes/types/identity/DisplayName.js.map +1 -0
- package/dist/attributes/types/identity/FileReference.d.ts +11 -0
- package/dist/attributes/types/{files → identity}/FileReference.js +6 -0
- package/dist/attributes/types/identity/FileReference.js.map +1 -0
- package/dist/attributes/types/{files → identity}/index.d.ts +1 -0
- package/dist/attributes/types/{files → identity}/index.js +1 -0
- package/dist/attributes/types/identity/index.js.map +1 -0
- package/dist/attributes/types/index.d.ts +3 -3
- package/dist/attributes/types/index.js +3 -3
- package/dist/attributes/types/index.js.map +1 -1
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.js.map +1 -1
- package/dist/attributes/types/measurements/AbstractMeasurement.js.map +1 -1
- package/dist/attributes/types/name/BirthName.d.ts +9 -2
- package/dist/attributes/types/name/BirthName.js +6 -0
- package/dist/attributes/types/name/BirthName.js.map +1 -1
- package/dist/attributes/types/name/GivenName.d.ts +9 -2
- package/dist/attributes/types/name/GivenName.js +6 -0
- package/dist/attributes/types/name/GivenName.js.map +1 -1
- package/dist/attributes/types/name/HonorificPrefix.d.ts +9 -2
- package/dist/attributes/types/name/HonorificPrefix.js +6 -0
- package/dist/attributes/types/name/HonorificPrefix.js.map +1 -1
- package/dist/attributes/types/name/HonorificSuffix.d.ts +9 -2
- package/dist/attributes/types/name/HonorificSuffix.js +6 -0
- package/dist/attributes/types/name/HonorificSuffix.js.map +1 -1
- package/dist/attributes/types/name/MiddleName.d.ts +10 -0
- package/dist/attributes/types/name/MiddleName.js +24 -0
- package/dist/attributes/types/name/MiddleName.js.map +1 -0
- package/dist/attributes/types/name/{Salutation.d.ts → PersonName.d.ts} +68 -73
- package/dist/attributes/types/name/{Salutation.js → PersonName.js} +35 -23
- package/dist/attributes/types/name/PersonName.js.map +1 -0
- package/dist/attributes/types/name/Pseudonym.d.ts +9 -2
- package/dist/attributes/types/name/Pseudonym.js +6 -0
- package/dist/attributes/types/name/Pseudonym.js.map +1 -1
- package/dist/attributes/types/name/Surname.d.ts +9 -2
- package/dist/attributes/types/name/Surname.js +6 -0
- package/dist/attributes/types/name/Surname.js.map +1 -1
- package/dist/attributes/types/name/index.d.ts +2 -4
- package/dist/attributes/types/name/index.js +2 -4
- package/dist/attributes/types/name/index.js.map +1 -1
- package/dist/attributes/types/person/Citizenship.d.ts +10 -2
- package/dist/attributes/types/person/Citizenship.js +8 -2
- package/dist/attributes/types/person/Citizenship.js.map +1 -1
- package/dist/attributes/types/person/JobTitle.d.ts +10 -0
- package/dist/attributes/types/person/JobTitle.js +24 -0
- package/dist/attributes/types/person/JobTitle.js.map +1 -0
- package/dist/attributes/types/person/Nationality.d.ts +10 -2
- package/dist/attributes/types/person/Nationality.js +8 -2
- package/dist/attributes/types/person/Nationality.js.map +1 -1
- package/dist/attributes/types/person/Sex.d.ts +10 -3
- package/dist/attributes/types/person/Sex.js +8 -2
- package/dist/attributes/types/person/Sex.js.map +1 -1
- package/dist/attributes/types/person/index.d.ts +1 -2
- package/dist/attributes/types/person/index.js +1 -2
- package/dist/attributes/types/person/index.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryBoolean.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryCountry.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryCountry.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryCountry.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryFileReference.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryFloat.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryFloat.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryFloat.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryInteger.d.ts +5 -4
- package/dist/attributes/types/proprietary/ProprietaryInteger.js +3 -0
- package/dist/attributes/types/proprietary/ProprietaryInteger.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryLanguage.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryLanguage.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryLanguage.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryString.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryString.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryString.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryURL.d.ts +5 -2
- package/dist/attributes/types/proprietary/ProprietaryURL.js +6 -0
- package/dist/attributes/types/proprietary/ProprietaryURL.js.map +1 -1
- package/dist/attributes/types/proprietary/index.d.ts +0 -1
- package/dist/attributes/types/proprietary/index.js +0 -1
- package/dist/attributes/types/proprietary/index.js.map +1 -1
- package/dist/attributes/types/relationship/Consent.d.ts +18 -0
- package/dist/attributes/types/relationship/Consent.js +73 -0
- package/dist/attributes/types/relationship/Consent.js.map +1 -0
- package/dist/attributes/types/relationship/index.d.ts +1 -0
- package/dist/attributes/types/relationship/index.js +18 -0
- package/dist/attributes/types/relationship/index.js.map +1 -0
- package/dist/attributes/types/strings/AbstractCountry.js.map +1 -1
- package/dist/attributes/types/strings/AbstractEMailAddress.js +2 -2
- package/dist/attributes/types/strings/AbstractEMailAddress.js.map +1 -1
- package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -1
- package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -1
- package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -1
- package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -1
- package/dist/attributes/types/strings/AbstractURL.js.map +1 -1
- package/dist/attributes/types/strings/index.d.ts +0 -1
- package/dist/attributes/types/strings/index.js +0 -1
- package/dist/attributes/types/strings/index.js.map +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/messages/Mail.d.ts +3 -2
- package/dist/messages/Mail.js +2 -8
- package/dist/messages/Mail.js.map +1 -1
- package/dist/relationships/RelationshipCreationChangeRequestContent.d.ts +15 -0
- package/dist/relationships/{RelationshipCreationChangeRequestBody.js → RelationshipCreationChangeRequestContent.js} +11 -13
- package/dist/relationships/RelationshipCreationChangeRequestContent.js.map +1 -0
- package/dist/relationships/RelationshipTemplateContent.d.ts +24 -0
- package/dist/relationships/{RelationshipTemplateBody.js → RelationshipTemplateContent.js} +14 -11
- package/dist/relationships/RelationshipTemplateContent.js.map +1 -0
- package/dist/relationships/index.d.ts +2 -2
- package/dist/relationships/index.js +2 -2
- package/dist/relationships/index.js.map +1 -1
- package/dist/requests/Request.d.ts +3 -2
- package/dist/requests/Request.js +2 -2
- package/dist/requests/Request.js.map +1 -1
- package/dist/requests/RequestItem.d.ts +17 -6
- package/dist/requests/RequestItem.js +7 -2
- package/dist/requests/RequestItem.js.map +1 -1
- package/dist/requests/RequestItemGroup.d.ts +5 -4
- package/dist/requests/RequestItemGroup.js +2 -2
- package/dist/requests/RequestItemGroup.js.map +1 -1
- package/dist/requests/index.d.ts +0 -3
- package/dist/requests/index.js +0 -3
- package/dist/requests/index.js.map +1 -1
- package/dist/requests/items/authentication/AuthenticationRequestItem.d.ts +10 -0
- package/dist/requests/items/authentication/AuthenticationRequestItem.js +24 -0
- package/dist/requests/items/authentication/AuthenticationRequestItem.js.map +1 -0
- package/dist/requests/items/consent/ConsentRequestItem.d.ts +3 -4
- package/dist/requests/items/consent/ConsentRequestItem.js +8 -7
- package/dist/requests/items/consent/ConsentRequestItem.js.map +1 -1
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.d.ts +14 -0
- package/dist/requests/items/{createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem.js → createRelationshipAttribute/CreateAttributeAcceptResponseItem.js} +11 -8
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.d.ts +15 -0
- package/dist/requests/items/{createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem.js → createRelationshipAttribute/CreateAttributeRequestItem.js} +13 -9
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.js.map +1 -0
- package/dist/requests/items/index.d.ts +5 -2
- package/dist/requests/items/index.js +5 -2
- package/dist/requests/items/index.js.map +1 -1
- package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.d.ts +2 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js +3 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js.map +1 -1
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.d.ts +3 -1
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +9 -4
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js.map +1 -1
- package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.d.ts +2 -0
- package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js +3 -0
- package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js.map +1 -1
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +6 -5
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js +5 -3
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -1
- package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.d.ts +13 -0
- package/dist/{forms/items/FormItemSelect.js → requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js} +16 -16
- package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.d.ts +14 -0
- package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js +35 -0
- package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js.map +1 -0
- package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.d.ts +2 -0
- package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js +3 -0
- package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js.map +1 -1
- package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.d.ts +3 -1
- package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js +3 -0
- package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js.map +1 -1
- package/dist/requests/response/AcceptResponseItem.d.ts +6 -6
- package/dist/requests/response/AcceptResponseItem.js +2 -2
- package/dist/requests/response/AcceptResponseItem.js.map +1 -1
- package/dist/requests/response/ErrorResponseItem.d.ts +3 -2
- package/dist/requests/response/ErrorResponseItem.js +2 -2
- package/dist/requests/response/ErrorResponseItem.js.map +1 -1
- package/dist/requests/response/RejectResponseItem.d.ts +3 -2
- package/dist/requests/response/RejectResponseItem.js +2 -2
- package/dist/requests/response/RejectResponseItem.js.map +1 -1
- package/dist/requests/response/Response.d.ts +3 -2
- package/dist/requests/response/Response.js +2 -2
- package/dist/requests/response/Response.js.map +1 -1
- package/dist/requests/response/ResponseItem.d.ts +1 -1
- package/dist/requests/response/ResponseItem.js +2 -2
- package/dist/requests/response/ResponseItem.js.map +1 -1
- package/dist/requests/response/ResponseItemGroup.d.ts +3 -2
- package/dist/requests/response/ResponseItemGroup.js +2 -2
- package/dist/requests/response/ResponseItemGroup.js.map +1 -1
- package/lib-web/nmshd.content.js +4739 -5812
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +18 -17
- package/dist/attributes/Attribute.d.ts +0 -24
- package/dist/attributes/Attribute.js +0 -66
- package/dist/attributes/Attribute.js.map +0 -1
- package/dist/attributes/hints/RelationshipAttributeCreationHints.d.ts +0 -31
- package/dist/attributes/hints/RelationshipAttributeCreationHints.js +0 -64
- package/dist/attributes/hints/RelationshipAttributeCreationHints.js.map +0 -1
- package/dist/attributes/types/AttributeList.d.ts +0 -1
- package/dist/attributes/types/AttributeList.js +0 -37
- package/dist/attributes/types/AttributeList.js.map +0 -1
- package/dist/attributes/types/AttributeTypeMapping.d.ts +0 -1
- package/dist/attributes/types/AttributeTypeMapping.js +0 -9
- package/dist/attributes/types/AttributeTypeMapping.js.map +0 -1
- package/dist/attributes/types/communication/Fax.d.ts +0 -3
- package/dist/attributes/types/communication/Fax.js.map +0 -1
- package/dist/attributes/types/communication/Phone.d.ts +0 -3
- package/dist/attributes/types/communication/Phone.js.map +0 -1
- package/dist/attributes/types/files/FileReference.d.ts +0 -3
- package/dist/attributes/types/files/FileReference.js.map +0 -1
- package/dist/attributes/types/files/index.js.map +0 -1
- package/dist/attributes/types/name/AbstractLegalName.d.ts +0 -3
- package/dist/attributes/types/name/AbstractLegalName.js +0 -8
- package/dist/attributes/types/name/AbstractLegalName.js.map +0 -1
- package/dist/attributes/types/name/DisplayName.d.ts +0 -3
- package/dist/attributes/types/name/DisplayName.js.map +0 -1
- package/dist/attributes/types/name/LegalNameDE.js +0 -92
- package/dist/attributes/types/name/LegalNameDE.js.map +0 -1
- package/dist/attributes/types/name/Salutation.js.map +0 -1
- package/dist/attributes/types/person/Age.d.ts +0 -6
- package/dist/attributes/types/person/Age.js +0 -34
- package/dist/attributes/types/person/Age.js.map +0 -1
- package/dist/attributes/types/person/Picture.d.ts +0 -3
- package/dist/attributes/types/person/Picture.js +0 -18
- package/dist/attributes/types/person/Picture.js.map +0 -1
- package/dist/attributes/types/proprietary/ProprietaryDataURL.d.ts +0 -14
- package/dist/attributes/types/proprietary/ProprietaryDataURL.js +0 -31
- package/dist/attributes/types/proprietary/ProprietaryDataURL.js.map +0 -1
- package/dist/attributes/types/strings/AbstractDataURL.d.ts +0 -7
- package/dist/attributes/types/strings/AbstractDataURL.js +0 -40
- package/dist/attributes/types/strings/AbstractDataURL.js.map +0 -1
- package/dist/forms/Form.d.ts +0 -18
- package/dist/forms/Form.js +0 -36
- package/dist/forms/Form.js.map +0 -1
- package/dist/forms/FormItem.d.ts +0 -35
- package/dist/forms/FormItem.js.map +0 -1
- package/dist/forms/index.d.ts +0 -8
- package/dist/forms/index.js.map +0 -1
- package/dist/forms/items/FormItemBoolean.d.ts +0 -7
- package/dist/forms/items/FormItemBoolean.js +0 -26
- package/dist/forms/items/FormItemBoolean.js.map +0 -1
- package/dist/forms/items/FormItemDate.d.ts +0 -15
- package/dist/forms/items/FormItemDate.js +0 -46
- package/dist/forms/items/FormItemDate.js.map +0 -1
- package/dist/forms/items/FormItemInvisible.d.ts +0 -7
- package/dist/forms/items/FormItemInvisible.js +0 -26
- package/dist/forms/items/FormItemInvisible.js.map +0 -1
- package/dist/forms/items/FormItemMultipleChoice.d.ts +0 -10
- package/dist/forms/items/FormItemMultipleChoice.js +0 -32
- package/dist/forms/items/FormItemMultipleChoice.js.map +0 -1
- package/dist/forms/items/FormItemMultipleChoiceItem.d.ts +0 -10
- package/dist/forms/items/FormItemMultipleChoiceItem.js +0 -30
- package/dist/forms/items/FormItemMultipleChoiceItem.js.map +0 -1
- package/dist/forms/items/FormItemSelect.d.ts +0 -10
- package/dist/forms/items/FormItemSelect.js.map +0 -1
- package/dist/forms/items/FormItemSelectItem.d.ts +0 -10
- package/dist/forms/items/FormItemSelectItem.js +0 -30
- package/dist/forms/items/FormItemSelectItem.js.map +0 -1
- package/dist/forms/items/FormItemString.d.ts +0 -15
- package/dist/forms/items/FormItemString.js +0 -46
- package/dist/forms/items/FormItemString.js.map +0 -1
- package/dist/forms/items/FormItemText.d.ts +0 -15
- package/dist/forms/items/FormItemText.js +0 -46
- package/dist/forms/items/FormItemText.js.map +0 -1
- package/dist/messages/RequestMail.d.ts +0 -14
- package/dist/messages/RequestMail.js +0 -51
- package/dist/messages/RequestMail.js.map +0 -1
- package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +0 -16
- package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +0 -1
- package/dist/relationships/RelationshipTemplateBody.d.ts +0 -22
- package/dist/relationships/RelationshipTemplateBody.js.map +0 -1
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem.d.ts +0 -12
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem.js.map +0 -1
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem.d.ts +0 -13
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem.js.map +0 -1
- package/dist/requests/old/AttributesChangeRequest.d.ts +0 -54
- package/dist/requests/old/AttributesChangeRequest.js +0 -71
- package/dist/requests/old/AttributesChangeRequest.js.map +0 -1
- package/dist/requests/old/AttributesRequest.d.ts +0 -49
- package/dist/requests/old/AttributesRequest.js +0 -64
- package/dist/requests/old/AttributesRequest.js.map +0 -1
- package/dist/requests/old/AttributesShareRequest.d.ts +0 -52
- package/dist/requests/old/AttributesShareRequest.js +0 -59
- package/dist/requests/old/AttributesShareRequest.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractAttribute.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAAsH;AAetH,MAAsB,iBAAkB,SAAQ,4BAAgB;CAY/D;
|
|
1
|
+
{"version":3,"file":"AbstractAttribute.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAAsH;AAetH,MAAsB,iBAAkB,SAAQ,4BAAgB;CAY/D;AAXG;IAAC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACE,uBAAW;gDAAA;AAEzB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;oDAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;kDAAA;AAX7B,8CAYC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { CoreDate, CoreSerializable, ICoreDate, ICoreSerializable } from "@nmshd/transport";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
3
|
export interface AbstractAttributeQueryJSON extends ContentJSON {
|
|
4
|
-
valueType: string;
|
|
5
4
|
validFrom?: string;
|
|
6
5
|
validTo?: string;
|
|
7
6
|
}
|
|
8
7
|
export interface IAbstractAttributeQuery extends ICoreSerializable {
|
|
9
|
-
valueType: string;
|
|
10
8
|
validFrom?: ICoreDate;
|
|
11
9
|
validTo?: ICoreDate;
|
|
12
10
|
}
|
|
13
11
|
export declare abstract class AbstractAttributeQuery extends CoreSerializable implements IAbstractAttributeQuery {
|
|
14
|
-
valueType: string;
|
|
15
12
|
validFrom?: CoreDate;
|
|
16
13
|
validTo?: CoreDate;
|
|
17
14
|
}
|
|
@@ -14,13 +14,6 @@ const ts_serval_1 = require("@js-soft/ts-serval");
|
|
|
14
14
|
const transport_1 = require("@nmshd/transport");
|
|
15
15
|
class AbstractAttributeQuery extends transport_1.CoreSerializable {
|
|
16
16
|
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)({
|
|
20
|
-
customValidator: (v) => (v === "" ? "must not be an empty string" : undefined)
|
|
21
|
-
}),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], AbstractAttributeQuery.prototype, "valueType", void 0);
|
|
24
17
|
__decorate([
|
|
25
18
|
(0, ts_serval_1.serialize)(),
|
|
26
19
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAA2F;
|
|
1
|
+
{"version":3,"file":"AbstractAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAA2F;AAa3F,MAAsB,sBAAuB,SAAQ,4BAAgB;CAQpE;AAPG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;yDAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;uDAAA;AAP7B,wDAQC"}
|
|
@@ -5,13 +5,12 @@ import { AbstractBoolean } from "./types/AbstractBoolean";
|
|
|
5
5
|
import { AbstractFloat } from "./types/AbstractFloat";
|
|
6
6
|
import { AbstractInteger } from "./types/AbstractInteger";
|
|
7
7
|
import { AbstractString } from "./types/AbstractString";
|
|
8
|
-
export interface AbstractAttributeValueJSON extends ContentJSON
|
|
8
|
+
export interface AbstractAttributeValueJSON extends ContentJSON {
|
|
9
9
|
}
|
|
10
10
|
export interface IAbstractAttributeValue extends ISerializable {
|
|
11
11
|
}
|
|
12
12
|
export declare abstract class AbstractAttributeValue extends Serializable implements IAbstractAttributeValue {
|
|
13
13
|
static valueGenerator(v: AbstractBoolean | AbstractFloat | AbstractInteger | AbstractString): boolean | number | string;
|
|
14
|
-
static valueArrayGenerator(v: (AbstractBoolean | AbstractFloat | AbstractInteger | AbstractString)[]): (boolean | number | string)[];
|
|
15
14
|
get valueHints(): ValueHints;
|
|
16
15
|
get renderHints(): RenderHints;
|
|
17
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractAttributeValue.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeValue.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAYhE,MAAsB,sBAAuB,SAAQ,wBAAY;IACtD,MAAM,CAAC,cAAc,CACxB,CAAqE;QAErE,OAAO,CAAC,CAAC,KAAK,CAAA;IAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"AbstractAttributeValue.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeValue.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAYhE,MAAsB,sBAAuB,SAAQ,wBAAY;IACtD,MAAM,CAAC,cAAc,CACxB,CAAqE;QAErE,OAAO,CAAC,CAAC,KAAK,CAAA;IAClB,CAAC;IAED,IAAW,UAAU;QACjB,OAAQ,IAAI,CAAC,WAAmB,CAAC,UAAU,CAAA;IAC/C,CAAC;IAED,IAAW,WAAW;QAClB,OAAQ,IAAI,CAAC,WAAmB,CAAC,WAAW,CAAA;IAChD,CAAC;CACJ;AAdD,wDAcC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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, FileReference, FileReferenceJSON, 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, IFileReference, IGivenName, IHonorificPrefix, IHonorificSuffix, IHouseNumber, IJobTitle, IMiddleName, INationality, IPersonName, IPhoneNumber, IPostOfficeBoxAddress, IProprietaryBoolean, IProprietaryCountry, IProprietaryEMailAddress, IProprietaryFileReference, IProprietaryFloat, IProprietaryHEXColor, IProprietaryInteger, IProprietaryLanguage, IProprietaryPhoneNumber, IProprietaryString, IProprietaryURL, IPseudonym, ISex, IState, 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, ProprietaryLanguage, ProprietaryLanguageJSON, ProprietaryPhoneNumber, ProprietaryPhoneNumberJSON, ProprietaryString, ProprietaryStringJSON, ProprietaryURL, ProprietaryURLJSON, Pseudonym, PseudonymJSON, Sex, SexJSON, State, StateJSON, Street, StreetAddress, StreetAddressJSON, StreetJSON, Surname, SurnameJSON, Website, WebsiteJSON, ZipCode, ZipCodeJSON } from "./types";
|
|
2
|
+
export declare module AttributeValues {
|
|
3
|
+
module Identity {
|
|
4
|
+
module Editable {
|
|
5
|
+
type Json = AffiliationJSON | BirthDateJSON | BirthNameJSON | BirthPlaceJSON | CitizenshipJSON | CommunicationLanguageJSON | DeliveryBoxAddressJSON | DisplayNameJSON | EMailAddressJSON | FaxNumberJSON | FileReferenceJSON | JobTitleJSON | NationalityJSON | PersonNameJSON | PhoneNumberJSON | PostOfficeBoxAddressJSON | PseudonymJSON | SexJSON | StreetAddressJSON | WebsiteJSON;
|
|
6
|
+
type Interface = IAffiliation | IBirthDate | IBirthName | IBirthPlace | ICitizenship | ICommunicationLanguage | IDeliveryBoxAddress | IDisplayName | IEMailAddress | IFaxNumber | IFileReference | IJobTitle | INationality | IPersonName | IPhoneNumber | IPostOfficeBoxAddress | IPseudonym | ISex | IStreetAddress | IWebsite;
|
|
7
|
+
type Class = Affiliation | BirthDate | BirthName | BirthPlace | Citizenship | CommunicationLanguage | DeliveryBoxAddress | DisplayName | EMailAddress | FaxNumber | FileReference | JobTitle | Nationality | PersonName | PhoneNumber | PostOfficeBoxAddress | Pseudonym | Sex | StreetAddress | Website;
|
|
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 FileReference | typeof BirthName | typeof PersonName | typeof Pseudonym | typeof Citizenship | typeof JobTitle | typeof Nationality | typeof Sex)[];
|
|
9
|
+
const TYPE_NAMES: readonly ["Affiliation", "BirthDate", "BirthName", "BirthPlace", "Citizenship", "CommunicationLanguage", "DeliveryBoxAddress", "DisplayName", "EMailAddress", "FaxNumber", "FileReference", "JobTitle", "Nationality", "PersonName", "PhoneNumber", "PostOfficeBoxAddress", "Pseudonym", "Sex", "StreetAddress", "Website"];
|
|
10
|
+
const TYPE_NAMES_STRINGIFIED: string;
|
|
11
|
+
type TypeName = typeof TYPE_NAMES[number];
|
|
12
|
+
}
|
|
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"];
|
|
19
|
+
const TYPE_NAMES_STRINGIFIED: string;
|
|
20
|
+
type TypeName = typeof TYPE_NAMES[number];
|
|
21
|
+
}
|
|
22
|
+
type Json = Editable.Json | Uneditable.Json;
|
|
23
|
+
type Interface = Editable.Interface | Uneditable.Interface;
|
|
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)[];
|
|
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" | "FileReference" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex")[];
|
|
28
|
+
const TYPE_NAMES_STRINGIFIED: string;
|
|
29
|
+
}
|
|
30
|
+
module Relationship {
|
|
31
|
+
type Json = ProprietaryBooleanJSON | ProprietaryCountryJSON | ProprietaryEMailAddressJSON | ProprietaryFileReferenceJSON | ProprietaryFloatJSON | ProprietaryHEXColorJSON | ProprietaryIntegerJSON | ProprietaryLanguageJSON | ProprietaryPhoneNumberJSON | ProprietaryStringJSON | ProprietaryURLJSON | ConsentJSON;
|
|
32
|
+
type Interface = IProprietaryBoolean | IProprietaryCountry | IProprietaryEMailAddress | IProprietaryFileReference | IProprietaryFloat | IProprietaryHEXColor | IProprietaryInteger | IProprietaryLanguage | IProprietaryPhoneNumber | IProprietaryString | IProprietaryURL | IConsent;
|
|
33
|
+
type Class = ProprietaryBoolean | ProprietaryCountry | ProprietaryEMailAddress | ProprietaryFileReference | ProprietaryFloat | ProprietaryHEXColor | ProprietaryInteger | ProprietaryLanguage | ProprietaryPhoneNumber | ProprietaryString | ProprietaryURL | Consent;
|
|
34
|
+
const CLASSES: (typeof ProprietaryBoolean | typeof ProprietaryCountry | typeof ProprietaryEMailAddress | typeof ProprietaryFileReference | typeof ProprietaryFloat | typeof ProprietaryHEXColor | typeof ProprietaryInteger | typeof ProprietaryLanguage | typeof ProprietaryPhoneNumber | typeof ProprietaryString | typeof ProprietaryURL | typeof Consent)[];
|
|
35
|
+
const TYPE_NAMES: readonly ["ProprietaryBoolean", "ProprietaryCountry", "ProprietaryEMailAddress", "ProprietaryFileReference", "ProprietaryFloat", "ProprietaryHEXColor", "ProprietaryInteger", "ProprietaryLanguage", "ProprietaryPhoneNumber", "ProprietaryString", "ProprietaryURL", "Consent"];
|
|
36
|
+
const TYPE_NAMES_STRINGIFIED: string;
|
|
37
|
+
type TypeName = typeof TYPE_NAMES[number];
|
|
38
|
+
}
|
|
39
|
+
type Json = Identity.Json | Relationship.Json;
|
|
40
|
+
type Interface = Identity.Interface | Relationship.Interface;
|
|
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 Consent)[];
|
|
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" | "FileReference" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex" | "ProprietaryBoolean" | "ProprietaryCountry" | "ProprietaryEMailAddress" | "ProprietaryFileReference" | "ProprietaryFloat" | "ProprietaryHEXColor" | "ProprietaryInteger" | "ProprietaryLanguage" | "ProprietaryPhoneNumber" | "ProprietaryString" | "ProprietaryURL" | "Consent")[];
|
|
45
|
+
const TYPE_NAMES_STRINGIFIED: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeValues = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
// ################################################ Editable Identity Attribute Value Types ###################################################################
|
|
6
|
+
var AttributeValues;
|
|
7
|
+
(function (AttributeValues) {
|
|
8
|
+
let Identity;
|
|
9
|
+
(function (Identity) {
|
|
10
|
+
let Editable;
|
|
11
|
+
(function (Editable) {
|
|
12
|
+
Editable.CLASSES = [
|
|
13
|
+
types_1.Affiliation,
|
|
14
|
+
types_1.BirthDate,
|
|
15
|
+
types_1.BirthName,
|
|
16
|
+
types_1.BirthPlace,
|
|
17
|
+
types_1.Citizenship,
|
|
18
|
+
types_1.CommunicationLanguage,
|
|
19
|
+
types_1.DeliveryBoxAddress,
|
|
20
|
+
types_1.DisplayName,
|
|
21
|
+
types_1.EMailAddress,
|
|
22
|
+
types_1.FaxNumber,
|
|
23
|
+
types_1.FileReference,
|
|
24
|
+
types_1.JobTitle,
|
|
25
|
+
types_1.Nationality,
|
|
26
|
+
types_1.PersonName,
|
|
27
|
+
types_1.PhoneNumber,
|
|
28
|
+
types_1.PostOfficeBoxAddress,
|
|
29
|
+
types_1.Pseudonym,
|
|
30
|
+
types_1.Sex,
|
|
31
|
+
types_1.StreetAddress,
|
|
32
|
+
types_1.Website
|
|
33
|
+
];
|
|
34
|
+
Editable.TYPE_NAMES = [
|
|
35
|
+
"Affiliation",
|
|
36
|
+
"BirthDate",
|
|
37
|
+
"BirthName",
|
|
38
|
+
"BirthPlace",
|
|
39
|
+
"Citizenship",
|
|
40
|
+
"CommunicationLanguage",
|
|
41
|
+
"DeliveryBoxAddress",
|
|
42
|
+
"DisplayName",
|
|
43
|
+
"EMailAddress",
|
|
44
|
+
"FaxNumber",
|
|
45
|
+
"FileReference",
|
|
46
|
+
"JobTitle",
|
|
47
|
+
"Nationality",
|
|
48
|
+
"PersonName",
|
|
49
|
+
"PhoneNumber",
|
|
50
|
+
"PostOfficeBoxAddress",
|
|
51
|
+
"Pseudonym",
|
|
52
|
+
"Sex",
|
|
53
|
+
"StreetAddress",
|
|
54
|
+
"Website"
|
|
55
|
+
];
|
|
56
|
+
Editable.TYPE_NAMES_STRINGIFIED = JSON.stringify(Editable.TYPE_NAMES);
|
|
57
|
+
})(Editable = Identity.Editable || (Identity.Editable = {}));
|
|
58
|
+
let Uneditable;
|
|
59
|
+
(function (Uneditable) {
|
|
60
|
+
Uneditable.CLASSES = [
|
|
61
|
+
types_1.AffiliationOrganization,
|
|
62
|
+
types_1.AffiliationRole,
|
|
63
|
+
types_1.AffiliationUnit,
|
|
64
|
+
types_1.BirthCity,
|
|
65
|
+
types_1.BirthCountry,
|
|
66
|
+
types_1.BirthDay,
|
|
67
|
+
types_1.BirthMonth,
|
|
68
|
+
types_1.BirthState,
|
|
69
|
+
types_1.BirthYear,
|
|
70
|
+
types_1.City,
|
|
71
|
+
types_1.Country,
|
|
72
|
+
types_1.GivenName,
|
|
73
|
+
types_1.HonorificPrefix,
|
|
74
|
+
types_1.HonorificSuffix,
|
|
75
|
+
types_1.HouseNumber,
|
|
76
|
+
types_1.MiddleName,
|
|
77
|
+
types_1.State,
|
|
78
|
+
types_1.Street,
|
|
79
|
+
types_1.Surname,
|
|
80
|
+
types_1.ZipCode
|
|
81
|
+
];
|
|
82
|
+
Uneditable.TYPE_NAMES = [
|
|
83
|
+
"AffiliationOrganization",
|
|
84
|
+
"AffiliationRole",
|
|
85
|
+
"AffiliationUnit",
|
|
86
|
+
"BirthCity",
|
|
87
|
+
"BirthCountry",
|
|
88
|
+
"BirthDay",
|
|
89
|
+
"BirthMonth",
|
|
90
|
+
"BirthState",
|
|
91
|
+
"BirthYear",
|
|
92
|
+
"City",
|
|
93
|
+
"Country",
|
|
94
|
+
"GivenName",
|
|
95
|
+
"HonorificPrefix",
|
|
96
|
+
"HonorificSuffix",
|
|
97
|
+
"HouseNumber",
|
|
98
|
+
"MiddleName",
|
|
99
|
+
"State",
|
|
100
|
+
"Street",
|
|
101
|
+
"Surname",
|
|
102
|
+
"ZipCode"
|
|
103
|
+
];
|
|
104
|
+
Uneditable.TYPE_NAMES_STRINGIFIED = JSON.stringify(Uneditable.TYPE_NAMES);
|
|
105
|
+
})(Uneditable = Identity.Uneditable || (Identity.Uneditable = {}));
|
|
106
|
+
Identity.CLASSES = [...Editable.CLASSES, ...Uneditable.CLASSES];
|
|
107
|
+
Identity.TYPE_NAMES = [...Editable.TYPE_NAMES, ...Uneditable.TYPE_NAMES];
|
|
108
|
+
Identity.TYPE_NAMES_STRINGIFIED = JSON.stringify(Identity.TYPE_NAMES);
|
|
109
|
+
})(Identity = AttributeValues.Identity || (AttributeValues.Identity = {}));
|
|
110
|
+
let Relationship;
|
|
111
|
+
(function (Relationship) {
|
|
112
|
+
Relationship.CLASSES = [
|
|
113
|
+
types_1.ProprietaryBoolean,
|
|
114
|
+
types_1.ProprietaryCountry,
|
|
115
|
+
types_1.ProprietaryEMailAddress,
|
|
116
|
+
types_1.ProprietaryFileReference,
|
|
117
|
+
types_1.ProprietaryFloat,
|
|
118
|
+
types_1.ProprietaryHEXColor,
|
|
119
|
+
types_1.ProprietaryInteger,
|
|
120
|
+
types_1.ProprietaryLanguage,
|
|
121
|
+
types_1.ProprietaryPhoneNumber,
|
|
122
|
+
types_1.ProprietaryString,
|
|
123
|
+
types_1.ProprietaryURL,
|
|
124
|
+
types_1.Consent
|
|
125
|
+
];
|
|
126
|
+
Relationship.TYPE_NAMES = [
|
|
127
|
+
"ProprietaryBoolean",
|
|
128
|
+
"ProprietaryCountry",
|
|
129
|
+
"ProprietaryEMailAddress",
|
|
130
|
+
"ProprietaryFileReference",
|
|
131
|
+
"ProprietaryFloat",
|
|
132
|
+
"ProprietaryHEXColor",
|
|
133
|
+
"ProprietaryInteger",
|
|
134
|
+
"ProprietaryLanguage",
|
|
135
|
+
"ProprietaryPhoneNumber",
|
|
136
|
+
"ProprietaryString",
|
|
137
|
+
"ProprietaryURL",
|
|
138
|
+
"Consent"
|
|
139
|
+
];
|
|
140
|
+
Relationship.TYPE_NAMES_STRINGIFIED = JSON.stringify(Relationship.TYPE_NAMES);
|
|
141
|
+
})(Relationship = AttributeValues.Relationship || (AttributeValues.Relationship = {}));
|
|
142
|
+
AttributeValues.CLASSES = [...Identity.CLASSES, ...Relationship.CLASSES];
|
|
143
|
+
AttributeValues.TYPE_NAMES = [...Identity.TYPE_NAMES, ...Relationship.TYPE_NAMES];
|
|
144
|
+
AttributeValues.TYPE_NAMES_STRINGIFIED = JSON.stringify(AttributeValues.TYPE_NAMES);
|
|
145
|
+
})(AttributeValues = exports.AttributeValues || (exports.AttributeValues = {}));
|
|
146
|
+
//# sourceMappingURL=AttributeValueTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeValueTypes.js","sourceRoot":"","sources":["../../src/attributes/AttributeValueTypes.ts"],"names":[],"mappings":";;;AAAA,mCA6JgB;AAEhB,+JAA+J;AAE/J,IAAc,eAAe,CAyU5B;AAzUD,WAAc,eAAe;IACzB,IAAc,QAAQ,CAkPrB;IAlPD,WAAc,QAAQ;QAClB,IAAc,QAAQ,CAmHrB;QAnHD,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,qBAAa;gBACb,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,eAAe;gBACf,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,EAnHa,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAmHrB;QAED,IAAc,UAAU,CAmHvB;QAnHD,WAAc,UAAU;YAmEP,kBAAO,GAAG;gBACnB,+BAAuB;gBACvB,uBAAe;gBACf,uBAAe;gBACf,iBAAS;gBACT,oBAAY;gBACZ,gBAAQ;gBACR,kBAAU;gBACV,kBAAU;gBACV,iBAAS;gBACT,YAAI;gBACJ,eAAO;gBACP,iBAAS;gBACT,uBAAe;gBACf,uBAAe;gBACf,mBAAW;gBACX,kBAAU;gBACV,aAAK;gBACL,cAAM;gBACN,eAAO;gBACP,eAAO;aACV,CAAA;YAEY,qBAAU,GAAG;gBACtB,yBAAyB;gBACzB,iBAAiB;gBACjB,iBAAiB;gBACjB,WAAW;gBACX,cAAc;gBACd,UAAU;gBACV,YAAY;gBACZ,YAAY;gBACZ,WAAW;gBACX,MAAM;gBACN,SAAS;gBACT,WAAW;gBACX,iBAAiB;gBACjB,iBAAiB;gBACjB,aAAa;gBACb,YAAY;gBACZ,OAAO;gBACP,QAAQ;gBACR,SAAS;gBACT,SAAS;aACH,CAAA;YAEG,iCAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,WAAA,UAAU,CAAC,CAAA;QAEpE,CAAC,EAnHa,UAAU,GAAV,mBAAU,KAAV,mBAAU,QAmHvB;QAKY,gBAAO,GAAG,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;QAEtD,mBAAU,GAAG,CAAC,GAAG,QAAQ,CAAC,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,CAAA;QAC/D,+BAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,SAAA,UAAU,CAAC,CAAA;IACpE,CAAC,EAlPa,QAAQ,GAAR,wBAAQ,KAAR,wBAAQ,QAkPrB;IAED,IAAc,YAAY,CA2EzB;IA3ED,WAAc,YAAY;QA2CT,oBAAO,GAAG;YACnB,0BAAkB;YAClB,0BAAkB;YAClB,+BAAuB;YACvB,gCAAwB;YACxB,wBAAgB;YAChB,2BAAmB;YACnB,0BAAkB;YAClB,2BAAmB;YACnB,8BAAsB;YACtB,yBAAiB;YACjB,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,SAAS;SACH,CAAA;QAEG,mCAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,aAAA,UAAU,CAAC,CAAA;IAEpE,CAAC,EA3Ea,YAAY,GAAZ,4BAAY,KAAZ,4BAAY,QA2EzB;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,EAzUa,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAyU5B"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { AbstractAttribute, AbstractAttributeJSON, IAbstractAttribute } from "./AbstractAttribute";
|
|
2
|
-
import {
|
|
3
|
-
export interface IdentityAttributeJSON<TValueJSONInterface extends
|
|
2
|
+
import { AttributeValues } from "./AttributeValueTypes";
|
|
3
|
+
export interface IdentityAttributeJSON<TValueJSONInterface extends AttributeValues.Identity.Json = AttributeValues.Identity.Json> extends AbstractAttributeJSON {
|
|
4
|
+
"@type": "IdentityAttribute";
|
|
4
5
|
value: TValueJSONInterface;
|
|
5
6
|
tags?: string[];
|
|
6
7
|
}
|
|
7
|
-
export interface IIdentityAttribute<TValueInterface extends
|
|
8
|
+
export interface IIdentityAttribute<TValueInterface extends AttributeValues.Identity.Interface = AttributeValues.Identity.Interface> extends IAbstractAttribute {
|
|
8
9
|
value: TValueInterface;
|
|
9
10
|
tags?: string[];
|
|
10
11
|
}
|
|
11
|
-
export declare class IdentityAttribute<TValueClass extends
|
|
12
|
+
export declare class IdentityAttribute<TValueClass extends AttributeValues.Identity.Class = AttributeValues.Identity.Class> extends AbstractAttribute implements IIdentityAttribute<TValueClass> {
|
|
12
13
|
value: TValueClass;
|
|
13
14
|
tags?: string[];
|
|
14
|
-
static from<TValueClass extends
|
|
15
|
-
toJSON(): IdentityAttributeJSON;
|
|
15
|
+
static from<TValueClass extends AttributeValues.Identity.Class = AttributeValues.Identity.Class, TValueInterface extends AttributeValues.Identity.Interface = AttributeValues.Identity.Interface, TValueJSONInterface extends AttributeValues.Identity.Json = AttributeValues.Identity.Json>(value: IIdentityAttribute<TValueInterface> | Omit<IdentityAttributeJSON<TValueJSONInterface>, "@type">): IdentityAttribute<TValueClass>;
|
|
16
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): IdentityAttributeJSON;
|
|
16
17
|
}
|
|
@@ -12,17 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.IdentityAttribute = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const AbstractAttribute_1 = require("./AbstractAttribute");
|
|
15
|
-
const
|
|
15
|
+
const AttributeValueTypes_1 = require("./AttributeValueTypes");
|
|
16
16
|
let IdentityAttribute = class IdentityAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
17
17
|
static from(value) {
|
|
18
18
|
return this.fromAny(value);
|
|
19
19
|
}
|
|
20
|
-
toJSON() {
|
|
21
|
-
return super.toJSON();
|
|
20
|
+
toJSON(verbose, serializeAsString) {
|
|
21
|
+
return super.toJSON(verbose, serializeAsString);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, ts_serval_1.serialize)({ unionTypes:
|
|
25
|
+
(0, ts_serval_1.serialize)({ unionTypes: AttributeValueTypes_1.AttributeValues.Identity.CLASSES }),
|
|
26
26
|
(0, ts_serval_1.validate)(),
|
|
27
27
|
__metadata("design:type", Object)
|
|
28
28
|
], IdentityAttribute.prototype, "value", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityAttribute.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG
|
|
1
|
+
{"version":3,"file":"IdentityAttribute.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG,+DAAuD;AAkBhD,IAAM,iBAAiB,GAAvB,MAAM,iBACT,SAAQ,qCAAiB;IAWlB,MAAM,CAAC,IAAI,CAKd,KAAsG;QAEtG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAmC,CAAA;IAChE,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAA0B,CAAA;IAC5E,CAAC;CACJ,CAAA;AAxBG;IAAC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,qCAAe,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC3D,IAAA,oBAAQ,GAAE;;gDACc;AAEzB;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACP;AAVb,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CA4B7B;AA5BY,8CAAiB"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
|
|
2
|
+
import { AttributeValues } from "./AttributeValueTypes";
|
|
2
3
|
export interface IdentityAttributeQueryJSON extends AbstractAttributeQueryJSON {
|
|
4
|
+
"@type": "IdentityAttributeQuery";
|
|
5
|
+
valueType: AttributeValues.Identity.TypeName;
|
|
3
6
|
tags?: string[];
|
|
4
7
|
}
|
|
5
8
|
export interface IIdentityAttributeQuery extends IAbstractAttributeQuery {
|
|
9
|
+
valueType: AttributeValues.Identity.TypeName;
|
|
6
10
|
tags?: string[];
|
|
7
11
|
}
|
|
8
12
|
export declare class IdentityAttributeQuery extends AbstractAttributeQuery implements IIdentityAttributeQuery {
|
|
13
|
+
valueType: AttributeValues.Identity.TypeName;
|
|
9
14
|
tags?: string[];
|
|
10
|
-
static from(value: IIdentityAttributeQuery | IdentityAttributeQueryJSON): IdentityAttributeQuery;
|
|
11
|
-
toJSON(): IdentityAttributeQueryJSON;
|
|
15
|
+
static from(value: IIdentityAttributeQuery | Omit<IdentityAttributeQueryJSON, "@type">): IdentityAttributeQuery;
|
|
16
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): IdentityAttributeQueryJSON;
|
|
12
17
|
}
|
|
@@ -12,14 +12,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.IdentityAttributeQuery = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const AbstractAttributeQuery_1 = require("./AbstractAttributeQuery");
|
|
15
|
+
const AttributeValueTypes_1 = require("./AttributeValueTypes");
|
|
15
16
|
let IdentityAttributeQuery = class IdentityAttributeQuery extends AbstractAttributeQuery_1.AbstractAttributeQuery {
|
|
16
17
|
static from(value) {
|
|
17
18
|
return this.fromAny(value);
|
|
18
19
|
}
|
|
19
|
-
toJSON() {
|
|
20
|
-
return super.toJSON();
|
|
20
|
+
toJSON(verbose, serializeAsString) {
|
|
21
|
+
return super.toJSON(verbose, serializeAsString);
|
|
21
22
|
}
|
|
22
23
|
};
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, ts_serval_1.serialize)(),
|
|
26
|
+
(0, ts_serval_1.validate)({
|
|
27
|
+
customValidator: (v) => !AttributeValueTypes_1.AttributeValues.Identity.TYPE_NAMES.includes(v)
|
|
28
|
+
? `must be one of: ${AttributeValueTypes_1.AttributeValues.Identity.TYPE_NAMES_STRINGIFIED}`
|
|
29
|
+
: undefined
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], IdentityAttributeQuery.prototype, "valueType", void 0);
|
|
23
33
|
__decorate([
|
|
24
34
|
(0, ts_serval_1.serialize)({ type: String }),
|
|
25
35
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qEAAsH;
|
|
1
|
+
{"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qEAAsH;AACtH,+DAAuD;AAchD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,+CAAsB;IAcvD,MAAM,CAAC,IAAI,CACd,KAA0E;QAE1E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAA+B,CAAA;IACjF,CAAC;CACJ,CAAA;AAzBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,qCAAe,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5C,CAAC,CAAC,mBAAmB,qCAAe,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YACtE,CAAC,CAAC,SAAS;KACtB,CAAC;;yDACiD;AAEnD;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAZb,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CA0BlC;AA1BY,wDAAsB"}
|
|
@@ -1,53 +1,25 @@
|
|
|
1
1
|
import { AbstractAttribute, AbstractAttributeJSON, IAbstractAttribute } from "./AbstractAttribute";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* warning message for a user that possibly sensitive information from within a Relationship
|
|
7
|
-
* is shared to a third party. However, this does not mean that the request for such an
|
|
8
|
-
* Attribute can or is automatically accepted, as the user might not want to share it with
|
|
9
|
-
* this third party - nevertheless it is public.
|
|
10
|
-
*
|
|
11
|
-
* Good examples for public RelationshipAttributes are bonus membership ids or social network
|
|
12
|
-
* account names/channels.
|
|
13
|
-
*/
|
|
14
|
-
Public = "public",
|
|
15
|
-
/**
|
|
16
|
-
* A private Attribute may never be queried by a third party. Even if queried, a user cannot
|
|
17
|
-
* "override" this rule and accept such a sharing request. Querying such an Attribute will
|
|
18
|
-
* result in an error.
|
|
19
|
-
*
|
|
20
|
-
* An example would be a telephone PIN with a bank which is used as the authentication factor.
|
|
21
|
-
*/
|
|
22
|
-
Private = "private",
|
|
23
|
-
/**
|
|
24
|
-
* A protected RelationshipAttribute may be queried by a third party, but the user is
|
|
25
|
-
* specifically warned about this query and needs to give consent.
|
|
26
|
-
*
|
|
27
|
-
* This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
|
|
28
|
-
* is a "common real-world edge case". For example given out a car insurance id to the
|
|
29
|
-
* other party once you had an accident.
|
|
30
|
-
*/
|
|
31
|
-
Protected = "protected"
|
|
32
|
-
}
|
|
33
|
-
export interface RelationshipAttributeJSON<TValueJSONInterface extends AbstractAttributeValueJSON = AbstractAttributeValueJSON> extends AbstractAttributeJSON {
|
|
2
|
+
import { AttributeValues } from "./AttributeValueTypes";
|
|
3
|
+
import { RelationshipAttributeConfidentiality } from "./RelationshipAttributeConfidentiality";
|
|
4
|
+
export interface RelationshipAttributeJSON<TValueJSONInterface extends AttributeValues.Relationship.Json = AttributeValues.Relationship.Json> extends AbstractAttributeJSON {
|
|
5
|
+
"@type": "RelationshipAttribute";
|
|
34
6
|
value: TValueJSONInterface;
|
|
35
7
|
key: string;
|
|
36
8
|
isTechnical?: boolean;
|
|
37
9
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
38
10
|
}
|
|
39
|
-
export interface IRelationshipAttribute<TValueInterface extends
|
|
11
|
+
export interface IRelationshipAttribute<TValueInterface extends AttributeValues.Relationship.Interface = AttributeValues.Relationship.Interface> extends IAbstractAttribute {
|
|
40
12
|
value: TValueInterface;
|
|
41
13
|
key: string;
|
|
42
14
|
isTechnical?: boolean;
|
|
43
15
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
44
16
|
}
|
|
45
|
-
export declare class RelationshipAttribute<TValueClass extends
|
|
17
|
+
export declare class RelationshipAttribute<TValueClass extends AttributeValues.Relationship.Class = AttributeValues.Relationship.Class> extends AbstractAttribute implements IRelationshipAttribute<TValueClass> {
|
|
46
18
|
value: TValueClass;
|
|
47
19
|
key: string;
|
|
48
20
|
isTechnical: boolean;
|
|
49
21
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
50
22
|
protected static preFrom(value: any): any;
|
|
51
|
-
static from<TValueClass extends
|
|
52
|
-
toJSON(): RelationshipAttributeJSON;
|
|
23
|
+
static from<TValueClass extends AttributeValues.Relationship.Class = AttributeValues.Relationship.Class, TValueInterface extends AttributeValues.Relationship.Interface = AttributeValues.Relationship.Interface, TValueJSONInterface extends AttributeValues.Relationship.Json = AttributeValues.Relationship.Json>(value: IRelationshipAttribute<TValueInterface> | RelationshipAttributeJSON<TValueJSONInterface>): RelationshipAttribute<TValueClass>;
|
|
24
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RelationshipAttributeJSON;
|
|
53
25
|
}
|
|
@@ -9,41 +9,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RelationshipAttribute =
|
|
12
|
+
exports.RelationshipAttribute = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const AbstractAttribute_1 = require("./AbstractAttribute");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
(function (RelationshipAttributeConfidentiality) {
|
|
18
|
-
/**
|
|
19
|
-
* If a third party queries a public RelationshipAttribute from an Identity, there is no
|
|
20
|
-
* warning message for a user that possibly sensitive information from within a Relationship
|
|
21
|
-
* is shared to a third party. However, this does not mean that the request for such an
|
|
22
|
-
* Attribute can or is automatically accepted, as the user might not want to share it with
|
|
23
|
-
* this third party - nevertheless it is public.
|
|
24
|
-
*
|
|
25
|
-
* Good examples for public RelationshipAttributes are bonus membership ids or social network
|
|
26
|
-
* account names/channels.
|
|
27
|
-
*/
|
|
28
|
-
RelationshipAttributeConfidentiality["Public"] = "public";
|
|
29
|
-
/**
|
|
30
|
-
* A private Attribute may never be queried by a third party. Even if queried, a user cannot
|
|
31
|
-
* "override" this rule and accept such a sharing request. Querying such an Attribute will
|
|
32
|
-
* result in an error.
|
|
33
|
-
*
|
|
34
|
-
* An example would be a telephone PIN with a bank which is used as the authentication factor.
|
|
35
|
-
*/
|
|
36
|
-
RelationshipAttributeConfidentiality["Private"] = "private";
|
|
37
|
-
/**
|
|
38
|
-
* A protected RelationshipAttribute may be queried by a third party, but the user is
|
|
39
|
-
* specifically warned about this query and needs to give consent.
|
|
40
|
-
*
|
|
41
|
-
* This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
|
|
42
|
-
* is a "common real-world edge case". For example given out a car insurance id to the
|
|
43
|
-
* other party once you had an accident.
|
|
44
|
-
*/
|
|
45
|
-
RelationshipAttributeConfidentiality["Protected"] = "protected";
|
|
46
|
-
})(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
|
|
15
|
+
const AttributeValueTypes_1 = require("./AttributeValueTypes");
|
|
16
|
+
const RelationshipAttributeConfidentiality_1 = require("./RelationshipAttributeConfidentiality");
|
|
47
17
|
let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
48
18
|
static preFrom(value) {
|
|
49
19
|
if (typeof value.isTechnical === "undefined")
|
|
@@ -53,12 +23,12 @@ let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribut
|
|
|
53
23
|
static from(value) {
|
|
54
24
|
return this.fromAny(value);
|
|
55
25
|
}
|
|
56
|
-
toJSON() {
|
|
57
|
-
return super.toJSON();
|
|
26
|
+
toJSON(verbose, serializeAsString) {
|
|
27
|
+
return super.toJSON(verbose, serializeAsString);
|
|
58
28
|
}
|
|
59
29
|
};
|
|
60
30
|
__decorate([
|
|
61
|
-
(0, ts_serval_1.serialize)({ unionTypes:
|
|
31
|
+
(0, ts_serval_1.serialize)({ unionTypes: AttributeValueTypes_1.AttributeValues.Relationship.CLASSES }),
|
|
62
32
|
(0, ts_serval_1.validate)(),
|
|
63
33
|
__metadata("design:type", Object)
|
|
64
34
|
], RelationshipAttribute.prototype, "value", void 0);
|
|
@@ -75,8 +45,8 @@ __decorate([
|
|
|
75
45
|
__decorate([
|
|
76
46
|
(0, ts_serval_1.serialize)(),
|
|
77
47
|
(0, ts_serval_1.validate)({
|
|
78
|
-
customValidator: (v) => !Object.values(RelationshipAttributeConfidentiality).includes(v)
|
|
79
|
-
? `must be one of: ${Object.values(RelationshipAttributeConfidentiality)}`
|
|
48
|
+
customValidator: (v) => !Object.values(RelationshipAttributeConfidentiality_1.RelationshipAttributeConfidentiality).includes(v)
|
|
49
|
+
? `must be one of: ${Object.values(RelationshipAttributeConfidentiality_1.RelationshipAttributeConfidentiality)}`
|
|
80
50
|
: undefined
|
|
81
51
|
}),
|
|
82
52
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipAttribute.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG
|
|
1
|
+
{"version":3,"file":"RelationshipAttribute.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG,+DAAuD;AACvD,iGAA6F;AAsBtF,IAAM,qBAAqB,GAA3B,MAAM,qBAGT,SAAQ,qCAAiB;IAwBf,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,WAAW;YAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAA;QAEvE,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,IAAI,CAKd,KAA+F;QAE/F,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAuC,CAAA;IACpE,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAA8B,CAAA;IAChF,CAAC;CACJ,CAAA;AA3CG;IAAC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,qCAAe,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;IAC/D,IAAA,oBAAQ,GAAE;;oDACc;AAEzB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kDACO;AAElB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACF;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,2EAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5D,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,2EAAoC,CAAC,EAAE;YAC1E,CAAC,CAAC,SAAS;KACtB,CAAC;;8DAC0D;AAzBnD,qBAAqB;IADjC,IAAA,gBAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAiDjC;AAjDY,sDAAqB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum RelationshipAttributeConfidentiality {
|
|
2
|
+
/**
|
|
3
|
+
* If a third party queries a public RelationshipAttribute from an Identity, there is no
|
|
4
|
+
* warning message for a user that possibly sensitive information from within a Relationship
|
|
5
|
+
* is shared to a third party. However, this does not mean that the request for such an
|
|
6
|
+
* Attribute can or is automatically accepted, as the user might not want to share it with
|
|
7
|
+
* this third party - nevertheless it is public.
|
|
8
|
+
*
|
|
9
|
+
* Good examples for public RelationshipAttributes are bonus membership ids or social network
|
|
10
|
+
* account names/channels.
|
|
11
|
+
*/
|
|
12
|
+
Public = "public",
|
|
13
|
+
/**
|
|
14
|
+
* A private Attribute may never be queried by a third party. Even if queried, a user cannot
|
|
15
|
+
* "override" this rule and accept such a sharing request. Querying such an Attribute will
|
|
16
|
+
* result in an error.
|
|
17
|
+
*
|
|
18
|
+
* An example would be a telephone PIN with a bank which is used as the authentication factor.
|
|
19
|
+
*/
|
|
20
|
+
Private = "private",
|
|
21
|
+
/**
|
|
22
|
+
* A protected RelationshipAttribute may be queried by a third party, but the user is
|
|
23
|
+
* specifically warned about this query and needs to give consent.
|
|
24
|
+
*
|
|
25
|
+
* This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
|
|
26
|
+
* is a "common real-world edge case". For example given out a car insurance id to the
|
|
27
|
+
* other party once you had an accident.
|
|
28
|
+
*/
|
|
29
|
+
Protected = "protected"
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationshipAttributeConfidentiality = void 0;
|
|
4
|
+
var RelationshipAttributeConfidentiality;
|
|
5
|
+
(function (RelationshipAttributeConfidentiality) {
|
|
6
|
+
/**
|
|
7
|
+
* If a third party queries a public RelationshipAttribute from an Identity, there is no
|
|
8
|
+
* warning message for a user that possibly sensitive information from within a Relationship
|
|
9
|
+
* is shared to a third party. However, this does not mean that the request for such an
|
|
10
|
+
* Attribute can or is automatically accepted, as the user might not want to share it with
|
|
11
|
+
* this third party - nevertheless it is public.
|
|
12
|
+
*
|
|
13
|
+
* Good examples for public RelationshipAttributes are bonus membership ids or social network
|
|
14
|
+
* account names/channels.
|
|
15
|
+
*/
|
|
16
|
+
RelationshipAttributeConfidentiality["Public"] = "public";
|
|
17
|
+
/**
|
|
18
|
+
* A private Attribute may never be queried by a third party. Even if queried, a user cannot
|
|
19
|
+
* "override" this rule and accept such a sharing request. Querying such an Attribute will
|
|
20
|
+
* result in an error.
|
|
21
|
+
*
|
|
22
|
+
* An example would be a telephone PIN with a bank which is used as the authentication factor.
|
|
23
|
+
*/
|
|
24
|
+
RelationshipAttributeConfidentiality["Private"] = "private";
|
|
25
|
+
/**
|
|
26
|
+
* A protected RelationshipAttribute may be queried by a third party, but the user is
|
|
27
|
+
* specifically warned about this query and needs to give consent.
|
|
28
|
+
*
|
|
29
|
+
* This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
|
|
30
|
+
* is a "common real-world edge case". For example given out a car insurance id to the
|
|
31
|
+
* other party once you had an accident.
|
|
32
|
+
*/
|
|
33
|
+
RelationshipAttributeConfidentiality["Protected"] = "protected";
|
|
34
|
+
})(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
|
|
35
|
+
//# sourceMappingURL=RelationshipAttributeConfidentiality.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipAttributeConfidentiality.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttributeConfidentiality.ts"],"names":[],"mappings":";;;AAAA,IAAY,oCA6BX;AA7BD,WAAY,oCAAoC;IAC5C;;;;;;;;;OASG;IACH,yDAAiB,CAAA;IACjB;;;;;;OAMG;IACH,2DAAmB,CAAA;IACnB;;;;;;;OAOG;IACH,+DAAuB,CAAA;AAC3B,CAAC,EA7BW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QA6B/C"}
|