@nmshd/content 2.0.0-beta.9 → 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/createRelationshipAttribute/{CreateRelationshipAttributeAcceptResponseItem.js → 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/createRelationshipAttribute/{CreateRelationshipAttributeRequestItem.js → 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/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.d.ts +0 -12
- package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.js.map +0 -1
- package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.d.ts +0 -13
- package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.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,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./RelationshipCreationChangeRequestContent";
|
|
2
|
+
export * from "./RelationshipTemplateContent";
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./RelationshipCreationChangeRequestContent"), exports);
|
|
18
|
+
__exportStar(require("./RelationshipTemplateContent"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA0D;AAC1D,gEAA6C"}
|
|
@@ -4,6 +4,7 @@ import { ContentJSON } from "../ContentJSON";
|
|
|
4
4
|
import { IRequestItemDerivations, RequestItemDerivations, RequestItemJSONDerivations } from "./RequestItem";
|
|
5
5
|
import { IRequestItemGroup, RequestItemGroup, RequestItemGroupJSON } from "./RequestItemGroup";
|
|
6
6
|
export interface RequestJSON extends ContentJSON {
|
|
7
|
+
"@type": "Request";
|
|
7
8
|
id?: string;
|
|
8
9
|
/**
|
|
9
10
|
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
@@ -66,6 +67,6 @@ export declare class Request extends Serializable implements IRequest {
|
|
|
66
67
|
title?: string;
|
|
67
68
|
description?: string;
|
|
68
69
|
metadata?: object;
|
|
69
|
-
static from(value: IRequest | RequestJSON): Request;
|
|
70
|
-
toJSON(): RequestJSON;
|
|
70
|
+
static from(value: IRequest | Omit<RequestJSON, "@type">): Request;
|
|
71
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RequestJSON;
|
|
71
72
|
}
|
package/dist/requests/Request.js
CHANGED
|
@@ -16,8 +16,8 @@ let Request = class Request extends ts_serval_1.Serializable {
|
|
|
16
16
|
static from(value) {
|
|
17
17
|
return this.fromAny(value);
|
|
18
18
|
}
|
|
19
|
-
toJSON() {
|
|
20
|
-
return super.toJSON();
|
|
19
|
+
toJSON(verbose, serializeAsString) {
|
|
20
|
+
return super.toJSON(verbose, serializeAsString);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;AA4EvD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAY;IAyB9B,MAAM,CAAC,IAAI,CAAC,KAA4C;QAC3D,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,CAAgB,CAAA;IAClE,CAAC;CACJ,CAAA;AA/BG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mCAAA;AAElB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0CAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;sCAC3B;AAE3D;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACR;AAErB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACF;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACL;AAvBf,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAgCnB;AAhCY,0BAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
|
-
import { ConsentRequestItem, ConsentRequestItemJSON, IConsentRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON } from "./items";
|
|
4
|
-
import {
|
|
3
|
+
import { AuthenticationRequestItem, AuthenticationRequestItemJSON, ConsentRequestItem, ConsentRequestItemJSON, IAuthenticationRequestItem, IConsentRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, IRegisterAttributeListenerRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON, RegisterAttributeListenerRequestItem, RegisterAttributeListenerRequestItemJSON } from "./items";
|
|
4
|
+
import { CreateAttributeRequestItem, CreateAttributeRequestItemJSON, ICreateAttributeRequestItem } from "./items/createRelationshipAttribute/CreateAttributeRequestItem";
|
|
5
5
|
import { IShareAttributeRequestItem, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items/shareAttribute/ShareAttributeRequestItem";
|
|
6
6
|
export interface RequestItemJSON extends ContentJSON {
|
|
7
7
|
/**
|
|
@@ -29,8 +29,13 @@ export interface RequestItemJSON extends ContentJSON {
|
|
|
29
29
|
* is accepted as well.
|
|
30
30
|
*/
|
|
31
31
|
mustBeAccepted: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If set to `true`, it advices the recipient of this RequestItem to carefully consider
|
|
34
|
+
* their decision and especially do not decide based on some automation rules.
|
|
35
|
+
*/
|
|
36
|
+
requireManualDecision?: boolean;
|
|
32
37
|
}
|
|
33
|
-
export declare type RequestItemJSONDerivations = RequestItemJSON |
|
|
38
|
+
export declare type RequestItemJSONDerivations = RequestItemJSON | CreateAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ConsentRequestItemJSON | AuthenticationRequestItemJSON | RegisterAttributeListenerRequestItemJSON;
|
|
34
39
|
export interface IRequestItem extends ISerializable {
|
|
35
40
|
/**
|
|
36
41
|
* The human-readable title of this item.
|
|
@@ -57,13 +62,19 @@ export interface IRequestItem extends ISerializable {
|
|
|
57
62
|
* is accepted as well.
|
|
58
63
|
*/
|
|
59
64
|
mustBeAccepted: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* If set to `true`, it advices the recipient of this RequestItem to carefully consider
|
|
67
|
+
* their decision and especially do not decide based on some automation rules.
|
|
68
|
+
*/
|
|
69
|
+
requireManualDecision?: boolean;
|
|
60
70
|
}
|
|
61
|
-
export declare type IRequestItemDerivations = IRequestItem |
|
|
71
|
+
export declare type IRequestItemDerivations = IRequestItem | ICreateAttributeRequestItem | IShareAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IConsentRequestItem | IAuthenticationRequestItem | IRegisterAttributeListenerRequestItem;
|
|
62
72
|
export declare abstract class RequestItem extends Serializable {
|
|
63
73
|
title?: string;
|
|
64
74
|
description?: string;
|
|
65
75
|
mustBeAccepted: boolean;
|
|
66
76
|
metadata?: object;
|
|
67
|
-
|
|
77
|
+
requireManualDecision?: boolean;
|
|
78
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RequestItemJSON;
|
|
68
79
|
}
|
|
69
|
-
export declare type RequestItemDerivations = RequestItem |
|
|
80
|
+
export declare type RequestItemDerivations = RequestItem | CreateAttributeRequestItem | ShareAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ConsentRequestItem | AuthenticationRequestItem | RegisterAttributeListenerRequestItem;
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.RequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
class RequestItem extends ts_serval_1.Serializable {
|
|
15
|
-
toJSON() {
|
|
16
|
-
return super.toJSON();
|
|
15
|
+
toJSON(verbose, serializeAsString) {
|
|
16
|
+
return super.toJSON(verbose, serializeAsString);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
@@ -36,5 +36,10 @@ __decorate([
|
|
|
36
36
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
37
37
|
__metadata("design:type", Object)
|
|
38
38
|
], RequestItem.prototype, "metadata", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, ts_serval_1.serialize)(),
|
|
41
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], RequestItem.prototype, "requireManualDecision", void 0);
|
|
39
44
|
exports.RequestItem = RequestItem;
|
|
40
45
|
//# sourceMappingURL=RequestItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;
|
|
1
|
+
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AA4HrF,MAAsB,WAAY,SAAQ,wBAAY;IAqBlC,MAAM,CAAC,OAA6B,EAAE,iBAAuC;QACzF,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAoB,CAAA;IACtE,CAAC;CACJ;AAvBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAErB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACmB;AAE9B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACL;AAExB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACS;AAnB1C,kCAwBC"}
|
|
@@ -6,12 +6,13 @@ import { IRequestItemDerivations, RequestItemDerivations, RequestItemJSONDerivat
|
|
|
6
6
|
* if you want to
|
|
7
7
|
* * make sure that the items in the group can only be accepted together
|
|
8
8
|
*
|
|
9
|
-
* Example: when sending a `
|
|
9
|
+
* Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
|
|
10
10
|
* Request where the latter one targets an attribute created by the first one, it it should be impossible to
|
|
11
11
|
* reject the first item, while accepting the second one.
|
|
12
12
|
* * visually group items on the UI and give the a common title/description
|
|
13
13
|
*/
|
|
14
14
|
export interface RequestItemGroupJSON extends ContentJSON {
|
|
15
|
+
"@type": "RequestItemGroup";
|
|
15
16
|
/**
|
|
16
17
|
* The human-readable title of this group.
|
|
17
18
|
*/
|
|
@@ -42,7 +43,7 @@ export interface RequestItemGroupJSON extends ContentJSON {
|
|
|
42
43
|
* if you want to
|
|
43
44
|
* * make sure that the items in the group can only be accepted together
|
|
44
45
|
*
|
|
45
|
-
* Example: when sending a `
|
|
46
|
+
* Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
|
|
46
47
|
* Request where the latter one targets an attribute created by the first one, it it should be impossible to
|
|
47
48
|
* reject the first item, while accepting the second one.
|
|
48
49
|
* * visually group items on the UI and give the a common title/description
|
|
@@ -79,7 +80,7 @@ export declare class RequestItemGroup extends Serializable {
|
|
|
79
80
|
mustBeAccepted: boolean;
|
|
80
81
|
items: RequestItemDerivations[];
|
|
81
82
|
metadata?: object;
|
|
82
|
-
static from(value: IRequestItemGroup | RequestItemGroupJSON): RequestItemGroup;
|
|
83
|
+
static from(value: IRequestItemGroup | Omit<RequestItemGroupJSON, "@type">): RequestItemGroup;
|
|
83
84
|
protected static postFrom<T extends Serializable>(value: T): T;
|
|
84
|
-
toJSON(): RequestItemGroupJSON;
|
|
85
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RequestItemGroupJSON;
|
|
85
86
|
}
|
|
@@ -25,8 +25,8 @@ let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_se
|
|
|
25
25
|
}
|
|
26
26
|
return value;
|
|
27
27
|
}
|
|
28
|
-
toJSON() {
|
|
29
|
-
return super.toJSON();
|
|
28
|
+
toJSON(verbose, serializeAsString) {
|
|
29
|
+
return super.toJSON(verbose, serializeAsString);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA4G;AAC5G,uDAAyC;
|
|
1
|
+
{"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA4G;AAC5G,uDAAyC;AAyFlC,IAAM,gBAAgB,wBAAtB,MAAM,gBAAiB,SAAQ,wBAAY;IAqBvC,MAAM,CAAC,IAAI,CAAC,KAA8D;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,kBAAgB,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAErF,IAAI,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;YAC3E,MAAM,IAAI,2BAAe,CACrB,kBAAgB,CAAC,IAAI,EACrB,IAAA,yBAAM,EAAmB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,EACjD,GAAG,IAAA,yBAAM,EACL,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAC1B,wDAAwD,IAAA,yBAAM,EAC3D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAC1B,EAAE,CACN,CAAA;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAyB,CAAA;IAC3E,CAAC;CACJ,CAAA;AAhDG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAErB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACF;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAE9B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;+CAChD;AAEtC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACL;AAnBf,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAiD5B;AAjDY,4CAAgB"}
|
package/dist/requests/index.d.ts
CHANGED
package/dist/requests/index.js
CHANGED
|
@@ -15,9 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./items"), exports);
|
|
18
|
-
__exportStar(require("./old/AttributesChangeRequest"), exports);
|
|
19
|
-
__exportStar(require("./old/AttributesRequest"), exports);
|
|
20
|
-
__exportStar(require("./old/AttributesShareRequest"), exports);
|
|
21
18
|
__exportStar(require("./Request"), exports);
|
|
22
19
|
__exportStar(require("./RequestItem"), exports);
|
|
23
20
|
__exportStar(require("./RequestItemGroup"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,6CAA0B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
2
|
+
export interface AuthenticationRequestItemJSON extends RequestItemJSON {
|
|
3
|
+
"@type": "AuthenticationRequestItem";
|
|
4
|
+
}
|
|
5
|
+
export interface IAuthenticationRequestItem extends IRequestItem {
|
|
6
|
+
}
|
|
7
|
+
export declare class AuthenticationRequestItem extends RequestItem implements IAuthenticationRequestItem {
|
|
8
|
+
static from(value: IAuthenticationRequestItem | Omit<AuthenticationRequestItemJSON, "@type">): AuthenticationRequestItem;
|
|
9
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): AuthenticationRequestItemJSON;
|
|
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.AuthenticationRequestItem = void 0;
|
|
10
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
11
|
+
const RequestItem_1 = require("../../RequestItem");
|
|
12
|
+
let AuthenticationRequestItem = class AuthenticationRequestItem extends RequestItem_1.RequestItem {
|
|
13
|
+
static from(value) {
|
|
14
|
+
return this.fromAny(value);
|
|
15
|
+
}
|
|
16
|
+
toJSON(verbose, serializeAsString) {
|
|
17
|
+
return super.toJSON(verbose, serializeAsString);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
AuthenticationRequestItem = __decorate([
|
|
21
|
+
(0, ts_serval_1.type)("AuthenticationRequestItem")
|
|
22
|
+
], AuthenticationRequestItem);
|
|
23
|
+
exports.AuthenticationRequestItem = AuthenticationRequestItem;
|
|
24
|
+
//# sourceMappingURL=AuthenticationRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticationRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/authentication/AuthenticationRequestItem.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AACzC,mDAA8E;AASvE,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,yBAAW;IAC/C,MAAM,CAAC,IAAI,CACd,KAAgF;QAEhF,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,CAAkC,CAAA;IACpF,CAAC;CACJ,CAAA;AAbY,yBAAyB;IADrC,IAAA,gBAAI,EAAC,2BAA2B,CAAC;GACrB,yBAAyB,CAarC;AAbY,8DAAyB"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
2
2
|
export interface ConsentRequestItemJSON extends RequestItemJSON {
|
|
3
|
+
"@type": "ConsentRequestItem";
|
|
3
4
|
consent: string;
|
|
4
5
|
link?: string;
|
|
5
|
-
requireActiveConsent?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export interface IConsentRequestItem extends IRequestItem {
|
|
8
8
|
consent: string;
|
|
9
9
|
link?: string;
|
|
10
|
-
requireActiveConsent?: boolean;
|
|
11
10
|
}
|
|
12
11
|
export declare class ConsentRequestItem extends RequestItem implements IConsentRequestItem {
|
|
13
12
|
consent: string;
|
|
14
13
|
link?: string;
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
static from(value: IConsentRequestItem | Omit<ConsentRequestItemJSON, "@type">): ConsentRequestItem;
|
|
15
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): ConsentRequestItemJSON;
|
|
17
16
|
}
|
|
@@ -12,11 +12,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ConsentRequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const RequestItem_1 = require("../../RequestItem");
|
|
15
|
-
class ConsentRequestItem extends RequestItem_1.RequestItem {
|
|
15
|
+
let ConsentRequestItem = class ConsentRequestItem extends RequestItem_1.RequestItem {
|
|
16
16
|
static from(value) {
|
|
17
17
|
return this.fromAny(value);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
toJSON(verbose, serializeAsString) {
|
|
20
|
+
return super.toJSON(verbose, serializeAsString);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
20
23
|
__decorate([
|
|
21
24
|
(0, ts_serval_1.serialize)(),
|
|
22
25
|
(0, ts_serval_1.validate)(),
|
|
@@ -27,10 +30,8 @@ __decorate([
|
|
|
27
30
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
28
31
|
__metadata("design:type", String)
|
|
29
32
|
], ConsentRequestItem.prototype, "link", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, ts_serval_1.
|
|
32
|
-
|
|
33
|
-
__metadata("design:type", Boolean)
|
|
34
|
-
], ConsentRequestItem.prototype, "requireActiveConsent", void 0);
|
|
33
|
+
ConsentRequestItem = __decorate([
|
|
34
|
+
(0, ts_serval_1.type)("ConsentRequestItem")
|
|
35
|
+
], ConsentRequestItem);
|
|
35
36
|
exports.ConsentRequestItem = ConsentRequestItem;
|
|
36
37
|
//# sourceMappingURL=ConsentRequestItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsentRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/consent/ConsentRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ConsentRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/consent/ConsentRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,mDAA8E;AAcvE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,yBAAW;IASxC,MAAM,CAAC,IAAI,CAAC,KAAkE;QACjF,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,CAA2B,CAAA;IAC7E,CAAC;CACJ,CAAA;AAlBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACW;AAEtB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAPX,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAmB9B;AAnBY,gDAAkB"}
|
package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
2
|
+
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
3
|
+
export interface CreateAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
4
|
+
"@type": "CreateAttributeAcceptResponseItem";
|
|
5
|
+
attributeId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ICreateAttributeAcceptResponseItem extends IAcceptResponseItem {
|
|
8
|
+
attributeId: ICoreId;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateAttributeAcceptResponseItem extends AcceptResponseItem implements ICreateAttributeAcceptResponseItem {
|
|
11
|
+
attributeId: CoreId;
|
|
12
|
+
static from(value: ICreateAttributeAcceptResponseItem | CreateAttributeAcceptResponseItemJSON): CreateAttributeAcceptResponseItem;
|
|
13
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): CreateAttributeAcceptResponseItemJSON;
|
|
14
|
+
}
|
|
@@ -9,22 +9,25 @@ 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.
|
|
12
|
+
exports.CreateAttributeAcceptResponseItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const transport_1 = require("@nmshd/transport");
|
|
15
15
|
const response_1 = require("../../response");
|
|
16
|
-
let
|
|
16
|
+
let CreateAttributeAcceptResponseItem = class CreateAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
|
|
17
17
|
static from(value) {
|
|
18
18
|
return this.fromAny(value);
|
|
19
19
|
}
|
|
20
|
+
toJSON(verbose, serializeAsString) {
|
|
21
|
+
return super.toJSON(verbose, serializeAsString);
|
|
22
|
+
}
|
|
20
23
|
};
|
|
21
24
|
__decorate([
|
|
22
25
|
(0, ts_serval_1.serialize)(),
|
|
23
26
|
(0, ts_serval_1.validate)(),
|
|
24
27
|
__metadata("design:type", transport_1.CoreId)
|
|
25
|
-
],
|
|
26
|
-
|
|
27
|
-
(0, ts_serval_1.type)("
|
|
28
|
-
],
|
|
29
|
-
exports.
|
|
30
|
-
//# sourceMappingURL=
|
|
28
|
+
], CreateAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
29
|
+
CreateAttributeAcceptResponseItem = __decorate([
|
|
30
|
+
(0, ts_serval_1.type)("CreateAttributeAcceptResponseItem")
|
|
31
|
+
], CreateAttributeAcceptResponseItem);
|
|
32
|
+
exports.CreateAttributeAcceptResponseItem = CreateAttributeAcceptResponseItem;
|
|
33
|
+
//# sourceMappingURL=CreateAttributeAcceptResponseItem.js.map
|
package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,6CAAgG;AAYzF,IAAM,iCAAiC,GAAvC,MAAM,iCACT,SAAQ,6BAAkB;IAOnB,MAAM,CAAU,IAAI,CACvB,KAAiF;QAEjF,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,CAA0C,CAAA;IAC5F,CAAC;CACJ,CAAA;AAhBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;sEAAA;AANjB,iCAAiC;IAD7C,IAAA,gBAAI,EAAC,mCAAmC,CAAC;GAC7B,iCAAiC,CAoB7C;AApBY,8EAAiC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RequestItemJSON } from "../..";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
|
+
import { IRequestItem, RequestItem } from "../../RequestItem";
|
|
4
|
+
export interface CreateAttributeRequestItemJSON extends RequestItemJSON {
|
|
5
|
+
"@type": "CreateAttributeRequestItem";
|
|
6
|
+
attribute: RelationshipAttributeJSON | IdentityAttributeJSON;
|
|
7
|
+
}
|
|
8
|
+
export interface ICreateAttributeRequestItem extends IRequestItem {
|
|
9
|
+
attribute: IRelationshipAttribute | IIdentityAttribute;
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateAttributeRequestItem extends RequestItem implements ICreateAttributeRequestItem {
|
|
12
|
+
attribute: RelationshipAttribute | IdentityAttribute;
|
|
13
|
+
static from(value: ICreateAttributeRequestItem | CreateAttributeRequestItemJSON): CreateAttributeRequestItem;
|
|
14
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): CreateAttributeRequestItemJSON;
|
|
15
|
+
}
|
|
@@ -9,21 +9,25 @@ 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.
|
|
12
|
+
exports.CreateAttributeRequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const attributes_1 = require("../../../attributes");
|
|
15
15
|
const RequestItem_1 = require("../../RequestItem");
|
|
16
|
-
let
|
|
16
|
+
let CreateAttributeRequestItem = class CreateAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
17
17
|
static from(value) {
|
|
18
18
|
return this.fromAny(value);
|
|
19
19
|
}
|
|
20
|
+
toJSON(verbose, serializeAsString) {
|
|
21
|
+
return super.toJSON(verbose, serializeAsString);
|
|
22
|
+
}
|
|
20
23
|
};
|
|
21
24
|
__decorate([
|
|
22
25
|
(0, ts_serval_1.validate)(),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.RelationshipAttribute, attributes_1.IdentityAttribute] }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], CreateAttributeRequestItem.prototype, "attribute", void 0);
|
|
29
|
+
CreateAttributeRequestItem = __decorate([
|
|
30
|
+
(0, ts_serval_1.type)("CreateAttributeRequestItem")
|
|
31
|
+
], CreateAttributeRequestItem);
|
|
32
|
+
exports.CreateAttributeRequestItem = CreateAttributeRequestItem;
|
|
33
|
+
//# sourceMappingURL=CreateAttributeRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAE9D,oDAO4B;AAC5B,mDAA6D;AAYtD,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,yBAAW;IAKhD,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,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,CAAmC,CAAA;IACrF,CAAC;CACJ,CAAA;AAhBG;IAAC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,kCAAqB,EAAE,8BAAiB,CAAC,EAAE,CAAC;;6DACX;AAHlD,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAiBtC;AAjBY,gEAA0B"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
export * from "./authentication/AuthenticationRequestItem";
|
|
1
2
|
export * from "./consent/ConsentRequestItem";
|
|
2
|
-
export * from "./createRelationshipAttribute/
|
|
3
|
-
export * from "./createRelationshipAttribute/
|
|
3
|
+
export * from "./createRelationshipAttribute/CreateAttributeAcceptResponseItem";
|
|
4
|
+
export * from "./createRelationshipAttribute/CreateAttributeRequestItem";
|
|
4
5
|
export * from "./proposeAttribute/ProposeAttributeAcceptResponseItem";
|
|
5
6
|
export * from "./proposeAttribute/ProposeAttributeRequestItem";
|
|
6
7
|
export * from "./readAttribute/ReadAttributeAcceptResponseItem";
|
|
7
8
|
export * from "./readAttribute/ReadAttributeRequestItem";
|
|
9
|
+
export * from "./registerAttributeListener/RegisterAttributeListenerAcceptResponseItem";
|
|
10
|
+
export * from "./registerAttributeListener/RegisterAttributeListenerRequestItem";
|
|
8
11
|
export * from "./shareAttribute/ShareAttributeAcceptResponseItem";
|
|
9
12
|
export * from "./shareAttribute/ShareAttributeRequestItem";
|
|
@@ -14,13 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./authentication/AuthenticationRequestItem"), exports);
|
|
17
18
|
__exportStar(require("./consent/ConsentRequestItem"), exports);
|
|
18
|
-
__exportStar(require("./createRelationshipAttribute/
|
|
19
|
-
__exportStar(require("./createRelationshipAttribute/
|
|
19
|
+
__exportStar(require("./createRelationshipAttribute/CreateAttributeAcceptResponseItem"), exports);
|
|
20
|
+
__exportStar(require("./createRelationshipAttribute/CreateAttributeRequestItem"), exports);
|
|
20
21
|
__exportStar(require("./proposeAttribute/ProposeAttributeAcceptResponseItem"), exports);
|
|
21
22
|
__exportStar(require("./proposeAttribute/ProposeAttributeRequestItem"), exports);
|
|
22
23
|
__exportStar(require("./readAttribute/ReadAttributeAcceptResponseItem"), exports);
|
|
23
24
|
__exportStar(require("./readAttribute/ReadAttributeRequestItem"), exports);
|
|
25
|
+
__exportStar(require("./registerAttributeListener/RegisterAttributeListenerAcceptResponseItem"), exports);
|
|
26
|
+
__exportStar(require("./registerAttributeListener/RegisterAttributeListenerRequestItem"), exports);
|
|
24
27
|
__exportStar(require("./shareAttribute/ShareAttributeAcceptResponseItem"), exports);
|
|
25
28
|
__exportStar(require("./shareAttribute/ShareAttributeRequestItem"), exports);
|
|
26
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA0D;AAC1D,+DAA4C;AAC5C,kGAA+E;AAC/E,2FAAwE;AACxE,wFAAqE;AACrE,iFAA8D;AAC9D,kFAA+D;AAC/D,2EAAwD;AACxD,0GAAuF;AACvF,mGAAgF;AAChF,oFAAiE;AACjE,6EAA0D"}
|
|
@@ -2,6 +2,7 @@ import { CoreId, ICoreId } from "@nmshd/transport";
|
|
|
2
2
|
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
3
|
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
4
4
|
export interface ProposeAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
5
|
+
"@type": "ProposeAttributeAcceptResponseItem";
|
|
5
6
|
attributeId: string;
|
|
6
7
|
attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
8
|
}
|
|
@@ -13,4 +14,5 @@ export declare class ProposeAttributeAcceptResponseItem extends AcceptResponseIt
|
|
|
13
14
|
attributeId: CoreId;
|
|
14
15
|
attribute: IdentityAttribute | RelationshipAttribute;
|
|
15
16
|
static from(value: IProposeAttributeAcceptResponseItem | ProposeAttributeAcceptResponseItemJSON): ProposeAttributeAcceptResponseItem;
|
|
17
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): ProposeAttributeAcceptResponseItemJSON;
|
|
16
18
|
}
|
|
@@ -18,6 +18,9 @@ let ProposeAttributeAcceptResponseItem = class ProposeAttributeAcceptResponseIte
|
|
|
18
18
|
static from(value) {
|
|
19
19
|
return this.fromAny(value);
|
|
20
20
|
}
|
|
21
|
+
toJSON(verbose, serializeAsString) {
|
|
22
|
+
return super.toJSON(verbose, serializeAsString);
|
|
23
|
+
}
|
|
21
24
|
};
|
|
22
25
|
__decorate([
|
|
23
26
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProposeAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,oDAO4B;AAC5B,6CAAgG;
|
|
1
|
+
{"version":3,"file":"ProposeAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,oDAO4B;AAC5B,6CAAgG;AAczF,IAAM,kCAAkC,GAAxC,MAAM,kCACT,SAAQ,6BAAkB;IAWnB,MAAM,CAAU,IAAI,CACvB,KAAmF;QAEnF,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,CAA2C,CAAA;IAC7F,CAAC;CACJ,CAAA;AApBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;uEAAA;AAE1B;IAAC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;qEACgD;AAVlD,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,oCAAoC,CAAC;GAC9B,kCAAkC,CAwB9C;AAxBY,gFAAkC"}
|
|
@@ -2,6 +2,7 @@ import { Serializable } from "@js-soft/ts-serval";
|
|
|
2
2
|
import { IdentityAttribute, IdentityAttributeJSON, IdentityAttributeQuery, IdentityAttributeQueryJSON, IIdentityAttribute, IIdentityAttributeQuery, IRelationshipAttribute, IRelationshipAttributeQuery, RelationshipAttribute, RelationshipAttributeJSON, RelationshipAttributeQuery, RelationshipAttributeQueryJSON } from "../../../attributes";
|
|
3
3
|
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
4
4
|
export interface ProposeAttributeRequestItemJSON extends RequestItemJSON {
|
|
5
|
+
"@type": "ProposeAttributeRequestItem";
|
|
5
6
|
query: IdentityAttributeQueryJSON | RelationshipAttributeQueryJSON;
|
|
6
7
|
attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
8
|
}
|
|
@@ -12,6 +13,7 @@ export interface IProposeAttributeRequestItem extends IRequestItem {
|
|
|
12
13
|
export declare class ProposeAttributeRequestItem extends RequestItem implements IProposeAttributeRequestItem {
|
|
13
14
|
query: IdentityAttributeQuery | RelationshipAttributeQuery;
|
|
14
15
|
attribute: IdentityAttribute | RelationshipAttribute;
|
|
15
|
-
static from(value: IProposeAttributeRequestItem): ProposeAttributeRequestItem;
|
|
16
|
+
static from(value: IProposeAttributeRequestItem | Omit<ProposeAttributeRequestItemJSON, "@type">): ProposeAttributeRequestItem;
|
|
16
17
|
protected static postFrom<T extends Serializable>(value: T): T;
|
|
18
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): ProposeAttributeRequestItemJSON;
|
|
17
19
|
}
|
|
@@ -22,10 +22,12 @@ let ProposeAttributeRequestItem = ProposeAttributeRequestItem_1 = class ProposeA
|
|
|
22
22
|
static postFrom(value) {
|
|
23
23
|
if (!(value instanceof ProposeAttributeRequestItem_1))
|
|
24
24
|
throw new Error("this should never happen");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
if (value.query instanceof attributes_1.IdentityAttributeQuery) {
|
|
26
|
+
const attributeValueType = value.attribute.value.toJSON()["@type"];
|
|
27
|
+
const queryValueType = value.query.valueType;
|
|
28
|
+
if (attributeValueType !== queryValueType) {
|
|
29
|
+
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, `${(0, ts_simple_nameof_1.nameof)((x) => x.query)}.${(0, ts_simple_nameof_1.nameof)((x) => x.valueType)}`, `You cannot propose an Attribute whose type of the value ('${attributeValueType}') is different from the value type of the query ('${queryValueType}').`);
|
|
30
|
+
}
|
|
29
31
|
}
|
|
30
32
|
if (value.attribute instanceof attributes_1.RelationshipAttribute && !(value.query instanceof attributes_1.RelationshipAttributeQuery)) {
|
|
31
33
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing a RelationshipAttribute, the corresponding query has to be a RelationshipAttributeQuery.");
|
|
@@ -35,6 +37,9 @@ let ProposeAttributeRequestItem = ProposeAttributeRequestItem_1 = class ProposeA
|
|
|
35
37
|
}
|
|
36
38
|
return value;
|
|
37
39
|
}
|
|
40
|
+
toJSON(verbose, serializeAsString) {
|
|
41
|
+
return super.toJSON(verbose, serializeAsString);
|
|
42
|
+
}
|
|
38
43
|
};
|
|
39
44
|
__decorate([
|
|
40
45
|
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttributeQuery, attributes_1.RelationshipAttributeQuery] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA6F;AAC7F,uDAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA6F;AAC7F,uDAAyC;AACzC,oDAa4B;AAC5B,mDAA8E;AAcvE,IAAM,2BAA2B,mCAAjC,MAAM,2BAA4B,SAAQ,yBAAW;IASjD,MAAM,CAAC,IAAI,CACd,KAAoF;QAEpF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,6BAA2B,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAEhG,IAAI,KAAK,CAAC,KAAK,YAAY,mCAAsB,EAAE;YAC/C,MAAM,kBAAkB,GAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAU,CAAC,OAAO,CAAC,CAAA;YAC3E,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAA;YAE5C,IAAI,kBAAkB,KAAK,cAAc,EAAE;gBACvC,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAAC,IAAI,EAChC,GAAG,IAAA,yBAAM,EAA8B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,IAAA,yBAAM,EAC5D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACrB,EAAE,EACH,6DAA6D,kBAAkB,sDAAsD,cAAc,KAAK,CAC3J,CAAA;aACJ;SACJ;QAED,IAAI,KAAK,CAAC,SAAS,YAAY,kCAAqB,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY,uCAA0B,CAAC,EAAE;YAC1G,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAAC,IAAI,EAChC,EAAE,EACF,yGAAyG,CAC5G,CAAA;SACJ;QAED,IAAI,KAAK,CAAC,SAAS,YAAY,8BAAiB,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY,mCAAsB,CAAC,EAAE;YAClG,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAAC,IAAI,EAChC,EAAE,EACF,kGAAkG,CACrG,CAAA;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAoC,CAAA;IACtF,CAAC;CACJ,CAAA;AAzDG;IAAC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,mCAAsB,EAAE,uCAA0B,CAAC,EAAE,CAAC;IAC/E,IAAA,oBAAQ,GAAE;;0DACsD;AAEjE;IAAC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;8DACgD;AAPlD,2BAA2B;IADvC,IAAA,gBAAI,EAAC,6BAA6B,CAAC;GACvB,2BAA2B,CA0DvC;AA1DY,kEAA2B"}
|
|
@@ -2,6 +2,7 @@ import { CoreId, ICoreId } from "@nmshd/transport";
|
|
|
2
2
|
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
3
|
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
4
4
|
export interface ReadAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
5
|
+
"@type": "ReadAttributeAcceptResponseItem";
|
|
5
6
|
attributeId: string;
|
|
6
7
|
attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
8
|
}
|
|
@@ -13,4 +14,5 @@ export declare class ReadAttributeAcceptResponseItem extends AcceptResponseItem
|
|
|
13
14
|
attributeId: CoreId;
|
|
14
15
|
attribute: IdentityAttribute | RelationshipAttribute;
|
|
15
16
|
static from(value: IReadAttributeAcceptResponseItem | ReadAttributeAcceptResponseItemJSON): ReadAttributeAcceptResponseItem;
|
|
17
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): ReadAttributeAcceptResponseItemJSON;
|
|
16
18
|
}
|
|
@@ -18,6 +18,9 @@ let ReadAttributeAcceptResponseItem = class ReadAttributeAcceptResponseItem exte
|
|
|
18
18
|
static from(value) {
|
|
19
19
|
return this.fromAny(value);
|
|
20
20
|
}
|
|
21
|
+
toJSON(verbose, serializeAsString) {
|
|
22
|
+
return super.toJSON(verbose, serializeAsString);
|
|
23
|
+
}
|
|
21
24
|
};
|
|
22
25
|
__decorate([
|
|
23
26
|
(0, ts_serval_1.serialize)(),
|