@nmshd/content 2.0.0-alpha.2.2 → 2.0.0-alpha.21
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/ContentJSON.d.ts +2 -1
- package/dist/attributes/AbstractAttribute.d.ts +17 -0
- package/dist/attributes/AbstractAttribute.js +33 -0
- package/dist/attributes/AbstractAttribute.js.map +1 -0
- package/dist/attributes/AbstractAttributeQuery.d.ts +17 -0
- package/dist/attributes/AbstractAttributeQuery.js +35 -0
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -0
- package/dist/attributes/AbstractAttributeValue.d.ts +17 -0
- package/dist/attributes/AbstractAttributeValue.js +20 -0
- package/dist/attributes/AbstractAttributeValue.js.map +1 -0
- package/dist/attributes/AbstractComplexValue.d.ts +7 -0
- package/dist/attributes/AbstractComplexValue.js +8 -0
- package/dist/attributes/AbstractComplexValue.js.map +1 -0
- package/dist/attributes/Attribute.js +3 -4
- package/dist/attributes/Attribute.js.map +1 -1
- package/dist/attributes/IdentityAttribute.d.ts +15 -0
- package/dist/attributes/IdentityAttribute.js +35 -0
- package/dist/attributes/IdentityAttribute.js.map +1 -0
- package/dist/attributes/IdentityAttributeQuery.d.ts +11 -0
- package/dist/attributes/IdentityAttributeQuery.js +29 -0
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -0
- package/dist/attributes/RelationshipAttribute.d.ts +51 -0
- package/dist/attributes/RelationshipAttribute.js +84 -0
- package/dist/attributes/RelationshipAttribute.js.map +1 -0
- package/dist/attributes/RelationshipAttributeQuery.d.ts +22 -0
- package/dist/attributes/{addresses/Address.js → RelationshipAttributeQuery.js} +18 -36
- package/dist/attributes/RelationshipAttributeQuery.js.map +1 -0
- package/dist/attributes/constants/CountriesAlpha2.d.ts +252 -0
- package/dist/attributes/constants/CountriesAlpha2.js +507 -0
- package/dist/attributes/constants/CountriesAlpha2.js.map +1 -0
- package/dist/attributes/constants/LanguagesISO639.d.ts +191 -0
- package/dist/attributes/constants/LanguagesISO639.js +377 -0
- package/dist/attributes/constants/LanguagesISO639.js.map +1 -0
- package/dist/attributes/constants/index.d.ts +2 -0
- package/dist/attributes/constants/index.js +19 -0
- package/dist/attributes/constants/index.js.map +1 -0
- package/dist/attributes/hints/RelationshipAttributeHints.d.ts +30 -0
- package/dist/attributes/hints/RelationshipAttributeHints.js +63 -0
- package/dist/attributes/hints/RelationshipAttributeHints.js.map +1 -0
- package/dist/attributes/hints/RenderHints.d.ts +70 -0
- package/dist/attributes/hints/RenderHints.js +111 -0
- package/dist/attributes/hints/RenderHints.js.map +1 -0
- package/dist/attributes/hints/ValueHints.d.ts +44 -0
- package/dist/attributes/hints/ValueHints.js +103 -0
- package/dist/attributes/hints/ValueHints.js.map +1 -0
- package/dist/attributes/hints/ValueHintsValue.d.ts +14 -0
- package/dist/attributes/{addresses/DeliveryAddress.js → hints/ValueHintsValue.js} +12 -18
- package/dist/attributes/hints/ValueHintsValue.js.map +1 -0
- package/dist/attributes/hints/index.d.ts +4 -0
- package/dist/attributes/hints/index.js +21 -0
- package/dist/attributes/hints/index.js.map +1 -0
- package/dist/attributes/index.d.ts +12 -0
- package/dist/attributes/index.js +29 -0
- package/dist/attributes/index.js.map +1 -0
- package/dist/attributes/types/AbstractBoolean.d.ts +13 -0
- package/dist/{relationships/RelationshipExistsMessageAction.js → attributes/types/AbstractBoolean.js} +16 -11
- package/dist/attributes/types/AbstractBoolean.js.map +1 -0
- package/dist/attributes/types/AbstractFloat.d.ts +13 -0
- package/dist/attributes/types/AbstractFloat.js +31 -0
- package/dist/attributes/types/AbstractFloat.js.map +1 -0
- package/dist/attributes/types/AbstractInteger.d.ts +17 -0
- package/dist/attributes/types/AbstractInteger.js +44 -0
- package/dist/attributes/types/AbstractInteger.js.map +1 -0
- package/dist/attributes/types/AbstractString.d.ts +13 -0
- package/dist/attributes/types/AbstractString.js +31 -0
- package/dist/attributes/types/AbstractString.js.map +1 -0
- package/dist/attributes/types/AttributeList.d.ts +1 -0
- package/dist/attributes/types/AttributeList.js +37 -0
- package/dist/attributes/types/AttributeList.js.map +1 -0
- package/dist/attributes/types/AttributeTypeMapping.d.ts +1 -0
- package/dist/attributes/types/AttributeTypeMapping.js +9 -0
- package/dist/attributes/types/AttributeTypeMapping.js.map +1 -0
- package/dist/attributes/types/address/AbstractAddress.d.ts +10 -0
- package/dist/attributes/types/address/AbstractAddress.js +23 -0
- package/dist/attributes/types/address/AbstractAddress.js.map +1 -0
- package/dist/attributes/types/address/City.d.ts +3 -0
- package/dist/{relationships/RelationshipExistsAction.js → attributes/types/address/City.js} +8 -7
- package/dist/attributes/types/address/City.js.map +1 -0
- package/dist/attributes/types/address/Country.d.ts +3 -0
- package/dist/attributes/types/address/Country.js +18 -0
- package/dist/attributes/types/address/Country.js.map +1 -0
- package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +36 -0
- package/dist/attributes/types/address/DeliveryBoxAddress.js +82 -0
- package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -0
- package/dist/attributes/types/address/HouseNumber.d.ts +3 -0
- package/dist/attributes/types/address/HouseNumber.js +18 -0
- package/dist/attributes/types/address/HouseNumber.js.map +1 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +29 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.js +67 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -0
- package/dist/attributes/types/address/State.d.ts +3 -0
- package/dist/attributes/types/address/State.js +18 -0
- package/dist/attributes/types/address/State.js.map +1 -0
- package/dist/attributes/types/address/Street.d.ts +3 -0
- package/dist/attributes/types/address/Street.js +18 -0
- package/dist/attributes/types/address/Street.js.map +1 -0
- package/dist/attributes/types/address/StreetAddress.d.ts +34 -0
- package/dist/attributes/types/address/StreetAddress.js +74 -0
- package/dist/attributes/types/address/StreetAddress.js.map +1 -0
- package/dist/attributes/types/address/ZipCode.d.ts +3 -0
- package/dist/attributes/types/address/ZipCode.js +18 -0
- package/dist/attributes/types/address/ZipCode.js.map +1 -0
- package/dist/attributes/types/address/index.d.ts +10 -0
- package/dist/attributes/types/address/index.js +27 -0
- package/dist/attributes/types/address/index.js.map +1 -0
- package/dist/attributes/types/birth/BirthCity.d.ts +3 -0
- package/dist/attributes/types/birth/BirthCity.js +18 -0
- package/dist/attributes/types/birth/BirthCity.js.map +1 -0
- package/dist/attributes/types/birth/BirthCountry.d.ts +3 -0
- package/dist/attributes/types/birth/BirthCountry.js +18 -0
- package/dist/attributes/types/birth/BirthCountry.js.map +1 -0
- package/dist/attributes/types/birth/BirthDate.d.ts +22 -0
- package/dist/attributes/types/birth/BirthDate.js +51 -0
- package/dist/attributes/types/birth/BirthDate.js.map +1 -0
- package/dist/attributes/types/birth/BirthDay.d.ts +3 -0
- package/dist/attributes/types/birth/BirthDay.js +18 -0
- package/dist/attributes/types/birth/BirthDay.js.map +1 -0
- package/dist/attributes/types/birth/BirthMonth.d.ts +5 -0
- package/dist/attributes/types/birth/BirthMonth.js +23 -0
- package/dist/attributes/types/birth/BirthMonth.js.map +1 -0
- package/dist/attributes/types/birth/BirthPlace.d.ts +22 -0
- package/dist/attributes/types/birth/BirthPlace.js +51 -0
- package/dist/attributes/types/birth/BirthPlace.js.map +1 -0
- package/dist/attributes/types/birth/BirthState.d.ts +3 -0
- package/dist/attributes/types/birth/BirthState.js +18 -0
- package/dist/attributes/types/birth/BirthState.js.map +1 -0
- package/dist/attributes/types/birth/BirthYear.d.ts +3 -0
- package/dist/attributes/types/birth/BirthYear.js +18 -0
- package/dist/attributes/types/birth/BirthYear.js.map +1 -0
- package/dist/attributes/types/birth/index.d.ts +8 -0
- package/dist/attributes/types/birth/index.js +25 -0
- package/dist/attributes/types/birth/index.js.map +1 -0
- package/dist/attributes/types/communication/CommunicationLanguage.d.ts +3 -0
- package/dist/attributes/types/communication/CommunicationLanguage.js +18 -0
- package/dist/attributes/types/communication/CommunicationLanguage.js.map +1 -0
- package/dist/attributes/types/communication/EMailAddress.d.ts +3 -0
- package/dist/attributes/types/communication/EMailAddress.js +18 -0
- package/dist/attributes/types/communication/EMailAddress.js.map +1 -0
- package/dist/attributes/types/communication/Fax.d.ts +3 -0
- package/dist/attributes/types/communication/Fax.js +18 -0
- package/dist/attributes/types/communication/Fax.js.map +1 -0
- package/dist/attributes/types/communication/Phone.d.ts +3 -0
- package/dist/attributes/types/communication/Phone.js +18 -0
- package/dist/attributes/types/communication/Phone.js.map +1 -0
- package/dist/attributes/types/communication/Website.d.ts +3 -0
- package/dist/attributes/types/communication/Website.js +18 -0
- package/dist/attributes/types/communication/Website.js.map +1 -0
- package/dist/attributes/types/communication/index.d.ts +5 -0
- package/dist/attributes/types/communication/index.js +22 -0
- package/dist/attributes/types/communication/index.js.map +1 -0
- package/dist/attributes/types/dates/AbstractDateString.d.ts +5 -0
- package/dist/attributes/types/dates/AbstractDateString.js +29 -0
- package/dist/attributes/types/dates/AbstractDateString.js.map +1 -0
- package/dist/attributes/types/dates/AbstractDay.d.ts +7 -0
- package/dist/attributes/types/dates/AbstractDay.js +28 -0
- package/dist/attributes/types/dates/AbstractDay.js.map +1 -0
- package/dist/attributes/types/dates/AbstractMonth.d.ts +27 -0
- package/dist/attributes/types/dates/AbstractMonth.js +54 -0
- package/dist/attributes/types/dates/AbstractMonth.js.map +1 -0
- package/dist/attributes/types/dates/AbstractYear.d.ts +4 -0
- package/dist/attributes/types/dates/AbstractYear.js +25 -0
- package/dist/attributes/types/dates/AbstractYear.js.map +1 -0
- package/dist/attributes/types/dates/index.d.ts +4 -0
- package/dist/attributes/types/dates/index.js +21 -0
- package/dist/attributes/types/dates/index.js.map +1 -0
- package/dist/attributes/types/files/FileReference.d.ts +3 -0
- package/dist/attributes/types/files/FileReference.js +18 -0
- package/dist/attributes/types/files/FileReference.js.map +1 -0
- package/dist/attributes/types/files/index.d.ts +1 -0
- package/dist/attributes/types/files/index.js +18 -0
- package/dist/attributes/types/files/index.js.map +1 -0
- package/dist/attributes/types/index.d.ts +16 -0
- package/dist/attributes/types/index.js +33 -0
- package/dist/attributes/types/index.js.map +1 -0
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.d.ts +18 -0
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.js +40 -0
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.js.map +1 -0
- package/dist/attributes/types/measurements/AbstractMeasurement.d.ts +17 -0
- package/dist/{authorizations/Authorization.js → attributes/types/measurements/AbstractMeasurement.js} +16 -16
- package/dist/attributes/types/measurements/AbstractMeasurement.js.map +1 -0
- package/dist/attributes/types/measurements/index.d.ts +2 -0
- package/dist/attributes/types/measurements/index.js +19 -0
- package/dist/attributes/types/measurements/index.js.map +1 -0
- package/dist/attributes/types/name/AbstractLegalName.d.ts +3 -0
- package/dist/attributes/types/name/AbstractLegalName.js +8 -0
- package/dist/attributes/types/name/AbstractLegalName.js.map +1 -0
- package/dist/attributes/types/name/BirthName.d.ts +3 -0
- package/dist/attributes/types/name/BirthName.js +18 -0
- package/dist/attributes/types/name/BirthName.js.map +1 -0
- package/dist/attributes/types/name/DisplayName.d.ts +3 -0
- package/dist/attributes/types/name/DisplayName.js +18 -0
- package/dist/attributes/types/name/DisplayName.js.map +1 -0
- package/dist/attributes/types/name/GivenName.d.ts +3 -0
- package/dist/attributes/types/name/GivenName.js +18 -0
- package/dist/attributes/types/name/GivenName.js.map +1 -0
- package/dist/attributes/types/name/HonorificPrefix.d.ts +3 -0
- package/dist/attributes/types/name/HonorificPrefix.js +18 -0
- package/dist/attributes/types/name/HonorificPrefix.js.map +1 -0
- package/dist/attributes/types/name/HonorificSuffix.d.ts +3 -0
- package/dist/attributes/types/name/HonorificSuffix.js +18 -0
- package/dist/attributes/types/name/HonorificSuffix.js.map +1 -0
- package/dist/attributes/types/name/LegalNameDE.d.ts +30 -0
- package/dist/attributes/types/name/LegalNameDE.js +64 -0
- package/dist/attributes/types/name/LegalNameDE.js.map +1 -0
- package/dist/attributes/types/name/Pseudonym.d.ts +3 -0
- package/dist/attributes/types/name/Pseudonym.js +18 -0
- package/dist/attributes/types/name/Pseudonym.js.map +1 -0
- package/dist/attributes/types/name/Salutation.d.ts +30 -0
- package/dist/attributes/types/name/Salutation.js +58 -0
- package/dist/attributes/types/name/Salutation.js.map +1 -0
- package/dist/attributes/types/name/Surname.d.ts +3 -0
- package/dist/attributes/types/name/Surname.js +18 -0
- package/dist/attributes/types/name/Surname.js.map +1 -0
- package/dist/attributes/types/name/index.d.ts +10 -0
- package/dist/attributes/types/name/index.js +27 -0
- package/dist/attributes/types/name/index.js.map +1 -0
- package/dist/attributes/types/person/Age.d.ts +4 -0
- package/dist/attributes/types/person/Age.js +28 -0
- package/dist/attributes/types/person/Age.js.map +1 -0
- package/dist/attributes/types/person/Citizenship.d.ts +3 -0
- package/dist/attributes/types/person/Citizenship.js +18 -0
- package/dist/attributes/types/person/Citizenship.js.map +1 -0
- package/dist/attributes/types/person/Nationality.d.ts +3 -0
- package/dist/attributes/types/person/Nationality.js +18 -0
- package/dist/attributes/types/person/Nationality.js.map +1 -0
- package/dist/attributes/types/person/Picture.d.ts +3 -0
- package/dist/attributes/types/person/Picture.js +18 -0
- package/dist/attributes/types/person/Picture.js.map +1 -0
- package/dist/attributes/types/person/Sex.d.ts +12 -0
- package/dist/attributes/types/person/Sex.js +37 -0
- package/dist/attributes/types/person/Sex.js.map +1 -0
- package/dist/attributes/types/person/index.d.ts +5 -0
- package/dist/attributes/types/person/index.js +22 -0
- package/dist/attributes/types/person/index.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryBoolean.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryCountry.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryCountry.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryCountry.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryDataURL.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryDataURL.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryDataURL.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryFileReference.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryFloat.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryFloat.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryFloat.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryInteger.d.ts +13 -0
- package/dist/attributes/types/proprietary/ProprietaryInteger.js +41 -0
- package/dist/attributes/types/proprietary/ProprietaryInteger.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryLanguage.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryLanguage.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryLanguage.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryString.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryString.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryString.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryURL.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryURL.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryURL.js.map +1 -0
- package/dist/attributes/types/proprietary/index.d.ts +12 -0
- package/dist/attributes/types/proprietary/index.js +29 -0
- package/dist/attributes/types/proprietary/index.js.map +1 -0
- package/dist/attributes/types/strings/AbstractCountry.d.ts +5 -0
- package/dist/attributes/types/strings/AbstractCountry.js +26 -0
- package/dist/attributes/types/strings/AbstractCountry.js.map +1 -0
- package/dist/attributes/types/strings/AbstractDataURL.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractDataURL.js +25 -0
- package/dist/attributes/types/strings/AbstractDataURL.js.map +1 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.js +25 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.js.map +1 -0
- package/dist/attributes/types/strings/AbstractFileReference.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractFileReference.js +8 -0
- package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -0
- package/dist/attributes/types/strings/AbstractHEXColor.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractHEXColor.js +23 -0
- package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -0
- package/dist/attributes/types/strings/AbstractLanguage.d.ts +5 -0
- package/dist/attributes/types/strings/AbstractLanguage.js +26 -0
- package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.js +23 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -0
- package/dist/attributes/types/strings/AbstractURL.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractURL.js +27 -0
- package/dist/attributes/types/strings/AbstractURL.js.map +1 -0
- package/dist/attributes/types/strings/index.d.ts +8 -0
- package/dist/attributes/types/strings/index.js +25 -0
- package/dist/attributes/types/strings/index.js.map +1 -0
- package/dist/buildInformation.js +4 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/messages/Mail.d.ts +6 -5
- package/dist/messages/Mail.js +9 -7
- package/dist/messages/Mail.js.map +1 -1
- package/dist/messages/RequestMail.d.ts +2 -2
- package/dist/messages/RequestMail.js +11 -12
- package/dist/messages/RequestMail.js.map +1 -1
- package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +11 -24
- package/dist/relationships/RelationshipCreationChangeRequestBody.js +9 -31
- package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +1 -1
- package/dist/relationships/RelationshipTemplateBody.d.ts +14 -34
- package/dist/relationships/RelationshipTemplateBody.js +10 -39
- package/dist/relationships/RelationshipTemplateBody.js.map +1 -1
- package/dist/relationships/index.d.ts +2 -0
- package/dist/relationships/index.js +19 -0
- package/dist/relationships/index.js.map +1 -0
- package/dist/requests/Request.d.ts +15 -4
- package/dist/requests/Request.js +9 -5
- package/dist/requests/Request.js.map +1 -1
- package/dist/requests/RequestItem.d.ts +5 -5
- package/dist/requests/RequestItem.js +1 -1
- package/dist/requests/RequestItem.js.map +1 -1
- package/dist/requests/RequestItemGroup.d.ts +7 -6
- package/dist/requests/RequestItemGroup.js +11 -3
- package/dist/requests/RequestItemGroup.js.map +1 -1
- package/dist/requests/index.d.ts +1 -0
- package/dist/requests/index.js +1 -0
- package/dist/requests/index.js.map +1 -1
- package/dist/requests/items/index.d.ts +2 -0
- package/dist/requests/items/index.js +19 -0
- package/dist/requests/items/index.js.map +1 -0
- package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.d.ts +16 -0
- package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js +36 -0
- package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +11 -0
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js +30 -0
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -0
- package/dist/requests/old/AttributesChangeRequest.d.ts +4 -4
- package/dist/requests/old/AttributesChangeRequest.js +7 -8
- package/dist/requests/old/AttributesChangeRequest.js.map +1 -1
- package/dist/requests/old/AttributesRequest.d.ts +5 -5
- package/dist/requests/old/AttributesRequest.js +6 -7
- package/dist/requests/old/AttributesRequest.js.map +1 -1
- package/dist/requests/old/AttributesShareRequest.d.ts +3 -3
- package/dist/requests/old/AttributesShareRequest.js +4 -5
- package/dist/requests/old/AttributesShareRequest.js.map +1 -1
- package/dist/requests/response/AcceptResponseItem.d.ts +1 -1
- package/dist/requests/response/AcceptResponseItem.js +4 -5
- package/dist/requests/response/AcceptResponseItem.js.map +1 -1
- package/dist/requests/response/ErrorResponseItem.d.ts +1 -1
- package/dist/requests/response/ErrorResponseItem.js +4 -5
- package/dist/requests/response/ErrorResponseItem.js.map +1 -1
- package/dist/requests/response/RejectResponseItem.d.ts +1 -1
- package/dist/requests/response/RejectResponseItem.js +4 -5
- package/dist/requests/response/RejectResponseItem.js.map +1 -1
- package/dist/requests/response/Response.d.ts +13 -3
- package/dist/requests/response/Response.js +20 -6
- package/dist/requests/response/Response.js.map +1 -1
- package/dist/requests/response/ResponseItem.d.ts +2 -2
- package/dist/requests/response/ResponseItem.js +1 -1
- package/dist/requests/response/ResponseItem.js.map +1 -1
- package/dist/requests/response/ResponseItemGroup.d.ts +3 -3
- package/dist/requests/response/ResponseItemGroup.js +4 -5
- package/dist/requests/response/ResponseItemGroup.js.map +1 -1
- package/lib-web/nmshd.content.js +14078 -866
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +18 -18
- package/dist/attributes/AttributeName.d.ts +0 -16
- package/dist/attributes/AttributeName.js +0 -62
- package/dist/attributes/AttributeName.js.map +0 -1
- package/dist/attributes/AttributeNamespace.d.ts +0 -8
- package/dist/attributes/AttributeNamespace.js +0 -13
- package/dist/attributes/AttributeNamespace.js.map +0 -1
- package/dist/attributes/addresses/Address.d.ts +0 -22
- package/dist/attributes/addresses/Address.js.map +0 -1
- package/dist/attributes/addresses/DeliveryAddress.d.ts +0 -12
- package/dist/attributes/addresses/DeliveryAddress.js.map +0 -1
- package/dist/authorizations/Authorization.d.ts +0 -14
- package/dist/authorizations/Authorization.js.map +0 -1
- package/dist/relationships/RelationshipCreationChangeResponseBody.d.ts +0 -0
- package/dist/relationships/RelationshipCreationChangeResponseBody.js +0 -2
- package/dist/relationships/RelationshipCreationChangeResponseBody.js.map +0 -1
- package/dist/relationships/RelationshipExistsAction.d.ts +0 -7
- package/dist/relationships/RelationshipExistsAction.js.map +0 -1
- package/dist/relationships/RelationshipExistsMessageAction.d.ts +0 -11
- package/dist/relationships/RelationshipExistsMessageAction.js.map +0 -1
|
@@ -8,17 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
-
var RelationshipTemplateBody_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.RelationshipTemplateBody = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let RelationshipTemplateBody = RelationshipTemplateBody_1 = class RelationshipTemplateBody extends ts_serval_1.SerializableAsync {
|
|
20
|
-
static async from(value) {
|
|
21
|
-
return (await super.from(value, RelationshipTemplateBody_1));
|
|
14
|
+
const Request_1 = require("../requests/Request");
|
|
15
|
+
let RelationshipTemplateBody = class RelationshipTemplateBody extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
22
18
|
}
|
|
23
19
|
};
|
|
24
20
|
__decorate([
|
|
@@ -29,44 +25,19 @@ __decorate([
|
|
|
29
25
|
__decorate([
|
|
30
26
|
(0, ts_serval_1.serialize)(),
|
|
31
27
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], RelationshipTemplateBody.prototype, "sessionIdentifier", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, ts_serval_1.serialize)({ any: true }),
|
|
36
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
37
28
|
__metadata("design:type", Object)
|
|
38
29
|
], RelationshipTemplateBody.prototype, "metadata", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
41
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], RelationshipTemplateBody.prototype, "sharedAttributes", void 0);
|
|
44
30
|
__decorate([
|
|
45
31
|
(0, ts_serval_1.serialize)(),
|
|
46
|
-
(0, ts_serval_1.validate)(
|
|
47
|
-
__metadata("design:type",
|
|
48
|
-
], RelationshipTemplateBody.prototype, "
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
|
|
51
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
52
|
-
__metadata("design:type", Array)
|
|
53
|
-
], RelationshipTemplateBody.prototype, "sharedAuthorizations", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
56
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", Array)
|
|
58
|
-
], RelationshipTemplateBody.prototype, "requestedAttributesChanges", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, ts_serval_1.serialize)({ type: AttributesRequest_1.AttributesRequest }),
|
|
61
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", Array)
|
|
63
|
-
], RelationshipTemplateBody.prototype, "requestedAttributes", void 0);
|
|
32
|
+
(0, ts_serval_1.validate)(),
|
|
33
|
+
__metadata("design:type", Request_1.Request)
|
|
34
|
+
], RelationshipTemplateBody.prototype, "onNewRelationship", void 0);
|
|
64
35
|
__decorate([
|
|
65
36
|
(0, ts_serval_1.serialize)(),
|
|
66
37
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
67
|
-
__metadata("design:type",
|
|
68
|
-
], RelationshipTemplateBody.prototype, "
|
|
69
|
-
RelationshipTemplateBody =
|
|
38
|
+
__metadata("design:type", Request_1.Request)
|
|
39
|
+
], RelationshipTemplateBody.prototype, "onExistingRelationship", void 0);
|
|
40
|
+
RelationshipTemplateBody = __decorate([
|
|
70
41
|
(0, ts_serval_1.type)("RelationshipTemplateBody")
|
|
71
42
|
], RelationshipTemplateBody);
|
|
72
43
|
exports.RelationshipTemplateBody = RelationshipTemplateBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,iDAAoE;AAiBpE,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAY;IAiB/C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACL;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACe,iBAAO;mEAAA;AAIjC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACG,iBAAO;wEAAA;AAf9B,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAoBpC;AApBY,4DAAwB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./RelationshipCreationChangeRequestBody"), exports);
|
|
18
|
+
__exportStar(require("./RelationshipTemplateBody"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAuD;AACvD,6DAA0C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreDate, CoreId, ICoreDate } from "@nmshd/transport";
|
|
3
3
|
import { ContentJSON } from "../ContentJSON";
|
|
4
4
|
import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
|
|
@@ -17,8 +17,13 @@ export interface RequestJSON extends ContentJSON {
|
|
|
17
17
|
* further {@link RequestItemJSON RequestItems}.
|
|
18
18
|
*/
|
|
19
19
|
items: (RequestItemGroupJSON | RequestItemJSON)[];
|
|
20
|
+
/**
|
|
21
|
+
* This property can be used to add some arbitrary metadata to this request. The content
|
|
22
|
+
* of this property will be copied into the response on the side of the recipient.
|
|
23
|
+
*/
|
|
24
|
+
responseMetadata?: object;
|
|
20
25
|
}
|
|
21
|
-
export interface IRequest extends
|
|
26
|
+
export interface IRequest extends ISerializable {
|
|
22
27
|
id?: CoreId;
|
|
23
28
|
/**
|
|
24
29
|
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
@@ -32,10 +37,16 @@ export interface IRequest extends ISerializableAsync {
|
|
|
32
37
|
* further {@link RequestItem RequestItems}.
|
|
33
38
|
*/
|
|
34
39
|
items: (IRequestItemGroup | IRequestItem)[];
|
|
40
|
+
/**
|
|
41
|
+
* This property can be used to add some arbitrary metadata to this request. The content
|
|
42
|
+
* of this property will be copied into the response on the side of the recipient.
|
|
43
|
+
*/
|
|
44
|
+
responseMetadata?: object;
|
|
35
45
|
}
|
|
36
|
-
export declare class Request extends
|
|
46
|
+
export declare class Request extends Serializable implements IRequest {
|
|
37
47
|
id?: CoreId;
|
|
38
48
|
expiresAt?: CoreDate;
|
|
39
49
|
items: (RequestItemGroup | RequestItem)[];
|
|
40
|
-
|
|
50
|
+
responseMetadata?: object;
|
|
51
|
+
static from(value: IRequest | RequestJSON): Request;
|
|
41
52
|
}
|
package/dist/requests/Request.js
CHANGED
|
@@ -8,14 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
-
var Request_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.Request = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const transport_1 = require("@nmshd/transport");
|
|
16
|
-
let Request =
|
|
17
|
-
static
|
|
18
|
-
return
|
|
15
|
+
let Request = class Request extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
__decorate([
|
|
@@ -33,7 +32,12 @@ __decorate([
|
|
|
33
32
|
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
34
33
|
__metadata("design:type", Array)
|
|
35
34
|
], Request.prototype, "items", void 0);
|
|
36
|
-
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.serialize)(),
|
|
37
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], Request.prototype, "responseMetadata", void 0);
|
|
40
|
+
Request = __decorate([
|
|
37
41
|
(0, ts_serval_1.type)("Request")
|
|
38
42
|
], Request);
|
|
39
43
|
exports.Request = Request;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;AAsD9D,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,wBAAY;IAiB9B,MAAM,CAAC,IAAI,CAAC,KAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mCAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0CAAA;AAI3B;IAFC,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;;sCACtC;AAIhD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACG;AAfvB,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAoBnB;AApBY,0BAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
3
|
export interface RequestItemJSON extends ContentJSON {
|
|
4
4
|
/**
|
|
@@ -10,7 +10,7 @@ export interface RequestItemJSON extends ContentJSON {
|
|
|
10
10
|
*/
|
|
11
11
|
description?: string;
|
|
12
12
|
/**
|
|
13
|
-
* This
|
|
13
|
+
* This property can be used to add some arbitrary metadata to this item. The content
|
|
14
14
|
* of this property will be copied into the response on the side of the recipient, so
|
|
15
15
|
* the sender can use it to identify the group content as they receive the response.
|
|
16
16
|
*/
|
|
@@ -27,7 +27,7 @@ export interface RequestItemJSON extends ContentJSON {
|
|
|
27
27
|
*/
|
|
28
28
|
mustBeAccepted: boolean;
|
|
29
29
|
}
|
|
30
|
-
export interface IRequestItem extends
|
|
30
|
+
export interface IRequestItem extends ISerializable {
|
|
31
31
|
/**
|
|
32
32
|
* The human-readable title of this item.
|
|
33
33
|
*/
|
|
@@ -37,7 +37,7 @@ export interface IRequestItem extends ISerializableAsync {
|
|
|
37
37
|
*/
|
|
38
38
|
description?: string;
|
|
39
39
|
/**
|
|
40
|
-
* This
|
|
40
|
+
* This property can be used to add some arbitrary metadata to this item. The content
|
|
41
41
|
* of this property will be copied into the response on the side of the recipient, so
|
|
42
42
|
* the sender can use it to identify the group content as they receive the response.
|
|
43
43
|
*/
|
|
@@ -54,7 +54,7 @@ export interface IRequestItem extends ISerializableAsync {
|
|
|
54
54
|
*/
|
|
55
55
|
mustBeAccepted: boolean;
|
|
56
56
|
}
|
|
57
|
-
export declare abstract class RequestItem extends
|
|
57
|
+
export declare abstract class RequestItem extends Serializable {
|
|
58
58
|
title?: string;
|
|
59
59
|
description?: string;
|
|
60
60
|
mustBeAccepted: boolean;
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
class RequestItem extends ts_serval_1.
|
|
14
|
+
class RequestItem extends ts_serval_1.Serializable {
|
|
15
15
|
}
|
|
16
16
|
__decorate([
|
|
17
17
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AAiErF,MAAsB,WAAY,SAAQ,wBAAY;CAgBrD;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACG;AAfpC,kCAgBC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
3
|
import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
|
|
4
4
|
/**
|
|
@@ -27,7 +27,7 @@ export interface RequestItemGroupJSON extends ContentJSON {
|
|
|
27
27
|
*/
|
|
28
28
|
mustBeAccepted: boolean;
|
|
29
29
|
/**
|
|
30
|
-
* This
|
|
30
|
+
* This property can be used to add some arbitrary metadata to this group. The content
|
|
31
31
|
* of this property will be copied into the response on the side of the recipient, so
|
|
32
32
|
* the sender can use it to identify the group content as they receive the response.
|
|
33
33
|
*/
|
|
@@ -47,7 +47,7 @@ export interface RequestItemGroupJSON extends ContentJSON {
|
|
|
47
47
|
* reject the first item, while accepting the second one.
|
|
48
48
|
* * visually group items on the UI and give the a common title/description
|
|
49
49
|
*/
|
|
50
|
-
export interface IRequestItemGroup extends
|
|
50
|
+
export interface IRequestItemGroup extends ISerializable {
|
|
51
51
|
/**
|
|
52
52
|
* The human-readable title of this group.
|
|
53
53
|
*/
|
|
@@ -63,7 +63,7 @@ export interface IRequestItemGroup extends ISerializableAsync {
|
|
|
63
63
|
*/
|
|
64
64
|
mustBeAccepted: boolean;
|
|
65
65
|
/**
|
|
66
|
-
* This
|
|
66
|
+
* This property can be used to add some arbitrary metadata to this group. The content
|
|
67
67
|
* of this property will be copied into the response on the side of the recipient, so
|
|
68
68
|
* the sender can use it to identify the group content as they receive the response.
|
|
69
69
|
*/
|
|
@@ -73,11 +73,12 @@ export interface IRequestItemGroup extends ISerializableAsync {
|
|
|
73
73
|
*/
|
|
74
74
|
items: IRequestItem[];
|
|
75
75
|
}
|
|
76
|
-
export declare class RequestItemGroup extends
|
|
76
|
+
export declare class RequestItemGroup extends Serializable {
|
|
77
77
|
title?: string;
|
|
78
78
|
description?: string;
|
|
79
79
|
mustBeAccepted: boolean;
|
|
80
80
|
items: RequestItem[];
|
|
81
81
|
responseMetadata?: object;
|
|
82
|
-
static from(value: IRequestItemGroup | RequestItemGroupJSON):
|
|
82
|
+
static from(value: IRequestItemGroup | RequestItemGroupJSON): RequestItemGroup;
|
|
83
|
+
protected static postFrom<T extends Serializable>(value: T): T;
|
|
83
84
|
}
|
|
@@ -12,9 +12,17 @@ var RequestItemGroup_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.RequestItemGroup = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
-
let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.
|
|
16
|
-
static
|
|
17
|
-
return
|
|
15
|
+
let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
static postFrom(value) {
|
|
20
|
+
if (!(value instanceof RequestItemGroup_1))
|
|
21
|
+
throw new Error("this should never happen");
|
|
22
|
+
if (value.mustBeAccepted && value.items.every((item) => !item.mustBeAccepted)) {
|
|
23
|
+
throw new ts_serval_1.ValidationError("RequestItemGroup", "mustBeAccepted", "mustBeAccepted can only be true if at least one item is flagged as mustBeAccepted");
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
18
26
|
}
|
|
19
27
|
};
|
|
20
28
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA4G;AAuF5G,IAAa,gBAAgB,wBAA7B,MAAa,gBAAiB,SAAQ,wBAAY;IAqBvC,MAAM,CAAC,IAAI,CAAC,KAA+C;QAC9D,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,kBAAkB,EAClB,gBAAgB,EAChB,mFAAmF,CACtF,CAAA;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;CACJ,CAAA;AAnCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAI9B;IAFC,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;;+CAC3D;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACG;AAnBvB,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAsC5B;AAtCY,4CAAgB"}
|
package/dist/requests/index.d.ts
CHANGED
package/dist/requests/index.js
CHANGED
|
@@ -14,6 +14,7 @@ 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("./items"), exports);
|
|
17
18
|
__exportStar(require("./old/AttributesChangeRequest"), exports);
|
|
18
19
|
__exportStar(require("./old/AttributesRequest"), exports);
|
|
19
20
|
__exportStar(require("./old/AttributesShareRequest"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,0DAAuC;AACvC,+DAA4C;AAC5C,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,6CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,gEAA6C;AAC7C,0DAAuC;AACvC,+DAA4C;AAC5C,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,6CAA0B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./readAttribute/ReadAttributeAcceptResponseItem"), exports);
|
|
18
|
+
__exportStar(require("./readAttribute/ReadAttributeRequestItem"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAA+D;AAC/D,2EAAwD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
|
+
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
4
|
+
export interface ReadAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
5
|
+
attributeId: string;
|
|
6
|
+
attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
|
+
}
|
|
8
|
+
export interface IReadAttributeAcceptResponseItem extends IAcceptResponseItem {
|
|
9
|
+
attributeId: ICoreId;
|
|
10
|
+
attribute: IIdentityAttribute | IRelationshipAttribute;
|
|
11
|
+
}
|
|
12
|
+
export declare class ReadAttributeAcceptResponseItem extends AcceptResponseItem implements IReadAttributeAcceptResponseItem {
|
|
13
|
+
attributeId: CoreId;
|
|
14
|
+
attribute: IdentityAttribute | RelationshipAttribute;
|
|
15
|
+
static from(value: IReadAttributeAcceptResponseItem | ReadAttributeAcceptResponseItemJSON): ReadAttributeAcceptResponseItem;
|
|
16
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReadAttributeAcceptResponseItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
|
+
const attributes_1 = require("../../../attributes");
|
|
16
|
+
const response_1 = require("../../response");
|
|
17
|
+
let ReadAttributeAcceptResponseItem = class ReadAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
|
|
18
|
+
static from(value) {
|
|
19
|
+
return this.fromAny(value);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
|
+
(0, ts_serval_1.validate)(),
|
|
25
|
+
__metadata("design:type", transport_1.CoreId)
|
|
26
|
+
], ReadAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
|
|
29
|
+
(0, ts_serval_1.validate)(),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], ReadAttributeAcceptResponseItem.prototype, "attribute", void 0);
|
|
32
|
+
ReadAttributeAcceptResponseItem = __decorate([
|
|
33
|
+
(0, ts_serval_1.type)("AcceptReadAttributeResponseItem")
|
|
34
|
+
], ReadAttributeAcceptResponseItem);
|
|
35
|
+
exports.ReadAttributeAcceptResponseItem = ReadAttributeAcceptResponseItem;
|
|
36
|
+
//# sourceMappingURL=ReadAttributeAcceptResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,oDAO4B;AAC5B,6CAAgG;AAahG,IAAa,+BAA+B,GAA5C,MAAa,+BAAgC,SAAQ,6BAAkB;IAS5D,MAAM,CAAU,IAAI,CACvB,KAA6E;QAE7E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;oEAAA;AAI1B;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;kEACgD;AAPlD,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAc3C;AAdY,0EAA+B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractAttributeQuery, IAbstractAttributeQuery } from "../../../attributes/AbstractAttributeQuery";
|
|
2
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
3
|
+
export interface ReadAttributeRequestItemJSON extends RequestItemJSON {
|
|
4
|
+
}
|
|
5
|
+
export interface IReadAttributeRequestItem extends IRequestItem {
|
|
6
|
+
query: IAbstractAttributeQuery;
|
|
7
|
+
}
|
|
8
|
+
export declare class ReadAttributeRequestItem extends RequestItem implements IReadAttributeRequestItem {
|
|
9
|
+
query: AbstractAttributeQuery;
|
|
10
|
+
static from(value: IReadAttributeRequestItem): ReadAttributeRequestItem;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReadAttributeRequestItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const AbstractAttributeQuery_1 = require("../../../attributes/AbstractAttributeQuery");
|
|
15
|
+
const RequestItem_1 = require("../../RequestItem");
|
|
16
|
+
let ReadAttributeRequestItem = class ReadAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.serialize)(),
|
|
23
|
+
(0, ts_serval_1.validate)(),
|
|
24
|
+
__metadata("design:type", AbstractAttributeQuery_1.AbstractAttributeQuery)
|
|
25
|
+
], ReadAttributeRequestItem.prototype, "query", void 0);
|
|
26
|
+
ReadAttributeRequestItem = __decorate([
|
|
27
|
+
(0, ts_serval_1.type)("ReadAttributeRequestItem")
|
|
28
|
+
], ReadAttributeRequestItem);
|
|
29
|
+
exports.ReadAttributeRequestItem = ReadAttributeRequestItem;
|
|
30
|
+
//# sourceMappingURL=ReadAttributeRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,uFAA4G;AAC5G,mDAA8E;AAS9E,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,yBAAW;IAK9C,MAAM,CAAC,IAAI,CAAC,KAAgC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,+CAAsB;uDAAA;AAH3B,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAQpC;AARY,4DAAwB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISerializable,
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
3
|
import { Attribute, AttributeJSON, IAttribute } from "../../attributes/Attribute";
|
|
4
4
|
import { ContentJSON } from "../../ContentJSON";
|
|
@@ -41,7 +41,7 @@ export interface IAttributesChangeRequest extends ISerializable {
|
|
|
41
41
|
attributes: IAttribute[];
|
|
42
42
|
applyTo?: ICoreAddress;
|
|
43
43
|
}
|
|
44
|
-
export declare class AttributesChangeRequest extends
|
|
44
|
+
export declare class AttributesChangeRequest extends Serializable implements IAttributesChangeRequest {
|
|
45
45
|
id?: CoreId;
|
|
46
46
|
key?: string;
|
|
47
47
|
reason?: string;
|
|
@@ -49,6 +49,6 @@ export declare class AttributesChangeRequest extends SerializableAsync implement
|
|
|
49
49
|
impact?: string;
|
|
50
50
|
attributes: Attribute[];
|
|
51
51
|
applyTo?: CoreAddress;
|
|
52
|
-
static from(value: IAttributesChangeRequest):
|
|
53
|
-
static fromJSON(value: AttributesChangeRequestJSON):
|
|
52
|
+
static from(value: IAttributesChangeRequest): AttributesChangeRequest;
|
|
53
|
+
static fromJSON(value: AttributesChangeRequestJSON): AttributesChangeRequest;
|
|
54
54
|
}
|
|
@@ -8,19 +8,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
-
var AttributesChangeRequest_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.AttributesChangeRequest = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const transport_1 = require("@nmshd/transport");
|
|
16
15
|
const Attribute_1 = require("../../attributes/Attribute");
|
|
17
|
-
let AttributesChangeRequest =
|
|
18
|
-
static
|
|
19
|
-
return
|
|
16
|
+
let AttributesChangeRequest = class AttributesChangeRequest extends ts_serval_1.Serializable {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
20
19
|
}
|
|
21
|
-
static
|
|
22
|
-
const parsedAttributes =
|
|
23
|
-
return
|
|
20
|
+
static fromJSON(value) {
|
|
21
|
+
const parsedAttributes = value.attributes.map((attribute) => Attribute_1.Attribute.fromJSON(attribute));
|
|
22
|
+
return this.from({
|
|
24
23
|
id: value.id ? transport_1.CoreId.from(value.id) : undefined,
|
|
25
24
|
attributes: parsedAttributes,
|
|
26
25
|
applyTo: value.applyTo ? transport_1.CoreAddress.from(value.applyTo) : undefined,
|
|
@@ -65,7 +64,7 @@ __decorate([
|
|
|
65
64
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
66
65
|
__metadata("design:type", transport_1.CoreAddress)
|
|
67
66
|
], AttributesChangeRequest.prototype, "applyTo", void 0);
|
|
68
|
-
AttributesChangeRequest =
|
|
67
|
+
AttributesChangeRequest = __decorate([
|
|
69
68
|
(0, ts_serval_1.type)("AttributesChangeRequest")
|
|
70
69
|
], AttributesChangeRequest);
|
|
71
70
|
exports.AttributesChangeRequest = AttributesChangeRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributesChangeRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesChangeRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AttributesChangeRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesChangeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAkG;AAClG,0DAAiF;AA+CjF,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,wBAAY;IA6B9C,MAAM,CAAC,IAAI,CAAC,KAA+B;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAkC;QACrD,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAA;QAC3F,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YAChD,UAAU,EAAE,gBAAgB;YAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;YACpE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAzCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mDAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0DAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,GAAE;;2DACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,uBAAW;wDAAA;AA3BnB,uBAAuB;IADnC,IAAA,gBAAI,EAAC,yBAAyB,CAAC;GACnB,uBAAuB,CA4CnC;AA5CY,0DAAuB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
3
|
import { ContentJSON } from "../../ContentJSON";
|
|
4
4
|
export interface AttributesRequestJSON extends ContentJSON {
|
|
@@ -9,7 +9,7 @@ export interface AttributesRequestJSON extends ContentJSON {
|
|
|
9
9
|
names: string[];
|
|
10
10
|
required: boolean;
|
|
11
11
|
}
|
|
12
|
-
export interface IAttributesRequest extends
|
|
12
|
+
export interface IAttributesRequest extends ISerializable {
|
|
13
13
|
id?: ICoreId;
|
|
14
14
|
/**
|
|
15
15
|
* The technial key of the request which is submitted back with the answer. This can be used
|
|
@@ -37,13 +37,13 @@ export interface IAttributesRequest extends ISerializableAsync {
|
|
|
37
37
|
*/
|
|
38
38
|
required?: boolean;
|
|
39
39
|
}
|
|
40
|
-
export declare class AttributesRequest extends
|
|
40
|
+
export declare class AttributesRequest extends Serializable implements IAttributesRequest {
|
|
41
41
|
id?: CoreId;
|
|
42
42
|
key?: string;
|
|
43
43
|
reason?: string;
|
|
44
44
|
expiresAt?: CoreDate;
|
|
45
45
|
names: string[];
|
|
46
46
|
required?: boolean;
|
|
47
|
-
static from(value: IAttributesRequest):
|
|
48
|
-
static fromJSON(value: AttributesRequestJSON):
|
|
47
|
+
static from(value: IAttributesRequest): AttributesRequest;
|
|
48
|
+
static fromJSON(value: AttributesRequestJSON): AttributesRequest;
|
|
49
49
|
}
|
|
@@ -8,17 +8,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
-
var AttributesRequest_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.AttributesRequest = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const transport_1 = require("@nmshd/transport");
|
|
16
|
-
let AttributesRequest =
|
|
17
|
-
static
|
|
18
|
-
return
|
|
15
|
+
let AttributesRequest = class AttributesRequest extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
19
18
|
}
|
|
20
|
-
static
|
|
21
|
-
return
|
|
19
|
+
static fromJSON(value) {
|
|
20
|
+
return this.from({
|
|
22
21
|
id: value.id ? transport_1.CoreId.from(value.id) : undefined,
|
|
23
22
|
expiresAt: value.expiresAt ? transport_1.CoreDate.from(value.expiresAt) : undefined,
|
|
24
23
|
key: value.key,
|
|
@@ -58,7 +57,7 @@ __decorate([
|
|
|
58
57
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
59
58
|
__metadata("design:type", Boolean)
|
|
60
59
|
], AttributesRequest.prototype, "required", void 0);
|
|
61
|
-
AttributesRequest =
|
|
60
|
+
AttributesRequest = __decorate([
|
|
62
61
|
(0, ts_serval_1.type)("AttributesRequest")
|
|
63
62
|
], AttributesRequest);
|
|
64
63
|
exports.AttributesRequest = AttributesRequest;
|