@nmshd/content 2.0.0-alpha.3 → 2.0.0-alpha.32
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/{AttributeQuery.js → AbstractAttributeQuery.js} +14 -22
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -0
- package/dist/attributes/AbstractAttributeValue.d.ts +11 -3
- package/dist/attributes/AbstractAttributeValue.js +12 -0
- package/dist/attributes/AbstractAttributeValue.js.map +1 -1
- 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.d.ts +9 -11
- package/dist/attributes/Attribute.js +29 -17
- package/dist/attributes/Attribute.js.map +1 -1
- package/dist/attributes/IdentityAttribute.d.ts +16 -0
- package/dist/attributes/IdentityAttribute.js +38 -0
- package/dist/attributes/IdentityAttribute.js.map +1 -0
- package/dist/attributes/IdentityAttributeQuery.d.ts +12 -0
- package/dist/attributes/IdentityAttributeQuery.js +32 -0
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -0
- package/dist/attributes/RelationshipAttribute.d.ts +53 -0
- package/dist/attributes/RelationshipAttribute.js +88 -0
- package/dist/attributes/RelationshipAttribute.js.map +1 -0
- package/dist/attributes/RelationshipAttributeQuery.d.ts +23 -0
- package/dist/attributes/RelationshipAttributeQuery.js +49 -0
- 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/{types/idcard → constants}/index.js +2 -4
- 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 +73 -0
- package/dist/attributes/hints/RenderHints.js +112 -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 +104 -0
- package/dist/attributes/hints/ValueHints.js.map +1 -0
- package/dist/attributes/hints/ValueHintsValue.d.ts +14 -0
- package/dist/attributes/{types/idcard/IDCardAuthorityName.js → hints/ValueHintsValue.js} +16 -9
- 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 +9 -1
- package/dist/attributes/index.js +9 -1
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/types/AbstractBoolean.d.ts +16 -0
- package/dist/attributes/types/AbstractBoolean.js +41 -0
- package/dist/attributes/types/AbstractBoolean.js.map +1 -0
- package/dist/attributes/types/AbstractFloat.d.ts +16 -0
- package/dist/attributes/types/AbstractFloat.js +41 -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 +16 -0
- package/dist/attributes/types/AbstractString.js +43 -0
- package/dist/attributes/types/AbstractString.js.map +1 -0
- package/dist/attributes/types/address/AbstractAddress.d.ts +8 -2
- package/dist/attributes/types/address/AbstractAddress.js +2 -2
- package/dist/attributes/types/address/AbstractAddress.js.map +1 -1
- package/dist/attributes/types/address/City.d.ts +2 -3
- package/dist/attributes/types/address/City.js +2 -10
- package/dist/attributes/types/address/City.js.map +1 -1
- package/dist/attributes/types/address/Country.d.ts +2 -3
- package/dist/attributes/types/address/Country.js +2 -10
- package/dist/attributes/types/address/Country.js.map +1 -1
- package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +25 -2
- package/dist/attributes/types/address/DeliveryBoxAddress.js +31 -4
- package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -1
- package/dist/attributes/types/address/HouseNumber.d.ts +2 -3
- package/dist/attributes/types/address/HouseNumber.js +2 -10
- package/dist/attributes/types/address/HouseNumber.js.map +1 -1
- package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +19 -2
- package/dist/attributes/types/address/PostOfficeBoxAddress.js +21 -4
- package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -1
- package/dist/attributes/types/address/State.d.ts +2 -3
- package/dist/attributes/types/address/State.js +2 -10
- package/dist/attributes/types/address/State.js.map +1 -1
- package/dist/attributes/types/address/Street.d.ts +2 -3
- package/dist/attributes/types/address/Street.js +2 -10
- package/dist/attributes/types/address/Street.js.map +1 -1
- package/dist/attributes/types/address/StreetAddress.d.ts +21 -2
- package/dist/attributes/types/address/StreetAddress.js +23 -6
- package/dist/attributes/types/address/StreetAddress.js.map +1 -1
- package/dist/attributes/types/address/ZipCode.d.ts +2 -3
- package/dist/attributes/types/address/ZipCode.js +2 -10
- package/dist/attributes/types/address/ZipCode.js.map +1 -1
- package/dist/attributes/types/birth/BirthDate.d.ts +15 -2
- package/dist/attributes/types/birth/BirthDate.js +16 -4
- package/dist/attributes/types/birth/BirthDate.js.map +1 -1
- package/dist/attributes/types/birth/BirthDay.d.ts +1 -1
- package/dist/attributes/types/birth/BirthDay.js +1 -1
- package/dist/attributes/types/birth/BirthDay.js.map +1 -1
- package/dist/attributes/types/birth/BirthMonth.d.ts +3 -1
- package/dist/attributes/types/birth/BirthMonth.js +6 -1
- package/dist/attributes/types/birth/BirthMonth.js.map +1 -1
- package/dist/attributes/types/birth/BirthPlace.d.ts +16 -3
- package/dist/attributes/types/birth/BirthPlace.js +17 -5
- package/dist/attributes/types/birth/BirthPlace.js.map +1 -1
- package/dist/attributes/types/birth/BirthYear.d.ts +1 -1
- package/dist/attributes/types/birth/BirthYear.js +1 -1
- package/dist/attributes/types/birth/BirthYear.js.map +1 -1
- 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/{relationships/RelationshipExistsAction.js → attributes/types/communication/EMailAddress.js} +8 -7
- 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 +8 -0
- package/dist/attributes/types/dates/AbstractDateString.js +44 -0
- package/dist/attributes/types/dates/AbstractDateString.js.map +1 -0
- package/dist/attributes/types/dates/AbstractDay.d.ts +10 -0
- package/dist/attributes/types/{AbstractDay.js → dates/AbstractDay.js} +18 -3
- package/dist/attributes/types/dates/AbstractDay.js.map +1 -0
- package/dist/attributes/types/{AbstractMonth.d.ts → dates/AbstractMonth.d.ts} +6 -2
- package/dist/attributes/types/{AbstractMonth.js → dates/AbstractMonth.js} +20 -3
- package/dist/attributes/types/dates/AbstractMonth.js.map +1 -0
- package/dist/attributes/types/dates/AbstractYear.d.ts +7 -0
- package/dist/attributes/types/{AbstractYear.js → dates/AbstractYear.js} +18 -3
- 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 +11 -1
- package/dist/attributes/types/index.js +11 -1
- package/dist/attributes/types/index.js.map +1 -1
- package/dist/attributes/types/measurements/{LengthMeasurement.d.ts → AbstractLengthMeasurement.d.ts} +1 -1
- package/dist/attributes/types/measurements/{LengthMeasurement.js → AbstractLengthMeasurement.js} +6 -9
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.js.map +1 -0
- package/dist/attributes/types/measurements/AbstractMeasurement.d.ts +11 -2
- package/dist/attributes/types/measurements/AbstractMeasurement.js +5 -2
- package/dist/attributes/types/measurements/AbstractMeasurement.js.map +1 -1
- package/dist/attributes/types/measurements/index.d.ts +2 -1
- package/dist/attributes/types/measurements/index.js +2 -1
- package/dist/attributes/types/measurements/index.js.map +1 -1
- package/dist/attributes/types/name/AbstractLegalName.d.ts +2 -2
- package/dist/attributes/types/name/AbstractLegalName.js +4 -4
- package/dist/attributes/types/name/AbstractLegalName.js.map +1 -1
- package/dist/attributes/types/name/BirthName.d.ts +2 -3
- package/dist/attributes/types/name/BirthName.js +2 -10
- package/dist/attributes/types/name/BirthName.js.map +1 -1
- package/dist/attributes/types/name/DisplayName.d.ts +2 -3
- package/dist/attributes/types/name/DisplayName.js +2 -10
- package/dist/attributes/types/name/DisplayName.js.map +1 -1
- package/dist/attributes/types/name/GivenName.d.ts +2 -3
- package/dist/attributes/types/name/GivenName.js +2 -10
- package/dist/attributes/types/name/GivenName.js.map +1 -1
- 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 +21 -2
- package/dist/attributes/types/name/LegalNameDE.js +24 -5
- package/dist/attributes/types/name/LegalNameDE.js.map +1 -1
- package/dist/attributes/types/name/Pseudonym.d.ts +2 -3
- package/dist/attributes/types/name/Pseudonym.js +2 -10
- package/dist/attributes/types/name/Pseudonym.js.map +1 -1
- package/dist/attributes/types/name/Salutation.d.ts +24 -5
- package/dist/attributes/types/name/Salutation.js +23 -10
- package/dist/attributes/types/name/Salutation.js.map +1 -1
- package/dist/attributes/types/name/Surname.d.ts +2 -3
- package/dist/attributes/types/name/Surname.js +2 -10
- package/dist/attributes/types/name/Surname.js.map +1 -1
- package/dist/attributes/types/name/index.d.ts +2 -1
- package/dist/attributes/types/name/index.js +2 -1
- package/dist/attributes/types/name/index.js.map +1 -1
- package/dist/attributes/types/person/Age.d.ts +4 -2
- package/dist/attributes/types/person/Age.js +11 -3
- package/dist/attributes/types/person/Age.js.map +1 -1
- 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 +11 -3
- package/dist/attributes/types/person/Sex.js +23 -4
- package/dist/attributes/types/person/Sex.js.map +1 -1
- package/dist/attributes/types/person/index.d.ts +3 -3
- package/dist/attributes/types/person/index.js +3 -3
- package/dist/attributes/types/person/index.js.map +1 -1
- 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 +8 -0
- package/dist/attributes/types/strings/AbstractCountry.js +40 -0
- package/dist/attributes/types/strings/AbstractCountry.js.map +1 -0
- package/dist/attributes/types/strings/AbstractDataURL.d.ts +7 -0
- package/dist/attributes/types/strings/AbstractDataURL.js +40 -0
- package/dist/attributes/types/strings/AbstractDataURL.js.map +1 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.d.ts +7 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.js +41 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.js.map +1 -0
- package/dist/attributes/types/strings/AbstractFileReference.d.ts +7 -0
- package/dist/attributes/types/{person/PersonHeight.js → strings/AbstractFileReference.js} +22 -12
- package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -0
- package/dist/attributes/types/strings/AbstractHEXColor.d.ts +7 -0
- package/dist/attributes/types/strings/AbstractHEXColor.js +37 -0
- package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -0
- package/dist/attributes/types/strings/AbstractLanguage.d.ts +8 -0
- package/dist/attributes/types/strings/AbstractLanguage.js +42 -0
- package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.d.ts +7 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.js +37 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -0
- package/dist/attributes/types/strings/AbstractURL.d.ts +7 -0
- package/dist/attributes/types/strings/AbstractURL.js +42 -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 -10
- package/dist/index.js +2 -10
- 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 +4 -4
- package/dist/messages/RequestMail.js +13 -14
- 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 -5
- package/dist/requests/RequestItemGroup.js +15 -2
- package/dist/requests/RequestItemGroup.js.map +1 -1
- package/dist/requests/index.d.ts +8 -0
- package/dist/requests/index.js +25 -0
- package/dist/requests/index.js.map +1 -0
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.d.ts +12 -0
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js +30 -0
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.d.ts +13 -0
- package/dist/{attributes/types/idcard/IDCardIssuingDate.js → requests/items/createAttribute/CreateAttributeRequestItem.js} +13 -10
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js.map +1 -0
- package/dist/requests/items/index.d.ts +6 -0
- package/dist/requests/items/index.js +23 -0
- package/dist/requests/items/index.js.map +1 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.d.ts +16 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js +36 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.d.ts +15 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +35 -0
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.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 +12 -0
- package/dist/{attributes/types/person/Gender.js → requests/items/readAttribute/ReadAttributeRequestItem.js} +14 -13
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -0
- package/dist/requests/{AttributesChangeRequest.d.ts → old/AttributesChangeRequest.d.ts} +6 -6
- package/dist/requests/{AttributesChangeRequest.js → old/AttributesChangeRequest.js} +8 -9
- package/dist/requests/old/AttributesChangeRequest.js.map +1 -0
- package/dist/requests/{AttributesRequest.d.ts → old/AttributesRequest.d.ts} +6 -6
- package/dist/requests/{AttributesRequest.js → old/AttributesRequest.js} +6 -7
- package/dist/requests/old/AttributesRequest.js.map +1 -0
- package/dist/requests/{AttributesShareRequest.d.ts → old/AttributesShareRequest.d.ts} +4 -4
- package/dist/requests/{AttributesShareRequest.js → old/AttributesShareRequest.js} +4 -5
- package/dist/requests/old/AttributesShareRequest.js.map +1 -0
- package/dist/requests/response/AcceptResponseItem.d.ts +12 -0
- package/dist/requests/response/AcceptResponseItem.js +21 -0
- package/dist/requests/response/AcceptResponseItem.js.map +1 -0
- package/dist/requests/response/ErrorResponseItem.d.ts +18 -0
- package/dist/{authorizations/Authorization.js → requests/response/ErrorResponseItem.js} +13 -13
- package/dist/requests/response/ErrorResponseItem.js.map +1 -0
- package/dist/requests/response/RejectResponseItem.d.ts +18 -0
- package/dist/requests/response/RejectResponseItem.js +34 -0
- package/dist/requests/response/RejectResponseItem.js.map +1 -0
- package/dist/requests/{Response.d.ts → response/Response.d.ts} +14 -4
- package/dist/requests/{Response.js → response/Response.js} +20 -6
- package/dist/requests/response/Response.js.map +1 -0
- package/dist/requests/response/ResponseItem.d.ts +15 -0
- package/dist/{attributes/types/name/Title.js → requests/response/ResponseItem.js} +12 -10
- package/dist/requests/response/ResponseItem.js.map +1 -0
- package/dist/requests/{ResponseItemGroup.d.ts → response/ResponseItemGroup.d.ts} +4 -3
- package/dist/requests/{ResponseItemGroup.js → response/ResponseItemGroup.js} +4 -1
- package/dist/requests/response/ResponseItemGroup.js.map +1 -0
- package/dist/requests/{ResponseItemResult.d.ts → response/ResponseItemResult.d.ts} +0 -0
- package/dist/requests/{ResponseItemResult.js → response/ResponseItemResult.js} +0 -0
- package/dist/requests/response/ResponseItemResult.js.map +1 -0
- package/dist/requests/response/index.d.ts +7 -0
- package/dist/requests/response/index.js +24 -0
- package/dist/requests/response/index.js.map +1 -0
- package/lib-web/nmshd.content.js +14000 -1864
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +18 -18
- package/dist/attributes/AttributeQuery.d.ts +0 -12
- package/dist/attributes/AttributeQuery.js.map +0 -1
- package/dist/attributes/types/AbstractDay.d.ts +0 -7
- package/dist/attributes/types/AbstractDay.js.map +0 -1
- package/dist/attributes/types/AbstractMonth.js.map +0 -1
- package/dist/attributes/types/AbstractYear.d.ts +0 -4
- package/dist/attributes/types/AbstractYear.js.map +0 -1
- package/dist/attributes/types/idcard/AbstractIDCard.d.ts +0 -3
- package/dist/attributes/types/idcard/AbstractIDCard.js +0 -8
- package/dist/attributes/types/idcard/AbstractIDCard.js.map +0 -1
- package/dist/attributes/types/idcard/IDCardAuthorityName.d.ts +0 -4
- package/dist/attributes/types/idcard/IDCardAuthorityName.js.map +0 -1
- package/dist/attributes/types/idcard/IDCardDE.d.ts +0 -11
- package/dist/attributes/types/idcard/IDCardDE.js +0 -45
- package/dist/attributes/types/idcard/IDCardDE.js.map +0 -1
- package/dist/attributes/types/idcard/IDCardIssuingDate.d.ts +0 -4
- package/dist/attributes/types/idcard/IDCardIssuingDate.js.map +0 -1
- package/dist/attributes/types/idcard/index.d.ts +0 -4
- package/dist/attributes/types/idcard/index.js.map +0 -1
- package/dist/attributes/types/measurements/LengthMeasurement.js.map +0 -1
- package/dist/attributes/types/name/Title.d.ts +0 -4
- package/dist/attributes/types/name/Title.js.map +0 -1
- package/dist/attributes/types/person/Gender.d.ts +0 -7
- package/dist/attributes/types/person/Gender.js.map +0 -1
- package/dist/attributes/types/person/PersonEyeColor.d.ts +0 -4
- package/dist/attributes/types/person/PersonEyeColor.js +0 -26
- package/dist/attributes/types/person/PersonEyeColor.js.map +0 -1
- package/dist/attributes/types/person/PersonHeight.d.ts +0 -4
- package/dist/attributes/types/person/PersonHeight.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 +0 -26
- package/dist/relationships/RelationshipExistsMessageAction.js.map +0 -1
- package/dist/requests/AttributesChangeRequest.js.map +0 -1
- package/dist/requests/AttributesRequest.js.map +0 -1
- package/dist/requests/AttributesShareRequest.js.map +0 -1
- package/dist/requests/Response.js.map +0 -1
- package/dist/requests/ResponseItem.d.ts +0 -48
- package/dist/requests/ResponseItem.js +0 -71
- package/dist/requests/ResponseItem.js.map +0 -1
- package/dist/requests/ResponseItemGroup.js.map +0 -1
- package/dist/requests/ResponseItemResult.js.map +0 -1
|
@@ -0,0 +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;AAahG,IAAa,kCAAkC,GAA/C,MAAa,kCACT,SAAQ,6BAAkB;IAWnB,MAAM,CAAU,IAAI,CACvB,KAAmF;QAEnF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;uEAAA;AAI1B;IAFC,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,CAiB9C;AAjBY,gFAAkC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IdentityAttribute, IdentityAttributeJSON, IdentityAttributeQuery, IdentityAttributeQueryJSON, IIdentityAttribute, IIdentityAttributeQuery, IRelationshipAttribute, IRelationshipAttributeQuery, RelationshipAttribute, RelationshipAttributeJSON, RelationshipAttributeQuery, RelationshipAttributeQueryJSON } from "../../../attributes";
|
|
2
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
3
|
+
export interface ProposeAttributeRequestItemJSON extends RequestItemJSON {
|
|
4
|
+
query: IdentityAttributeQueryJSON | RelationshipAttributeQueryJSON;
|
|
5
|
+
attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
6
|
+
}
|
|
7
|
+
export interface IProposeAttributeRequestItem extends IRequestItem {
|
|
8
|
+
query: IIdentityAttributeQuery | IRelationshipAttributeQuery;
|
|
9
|
+
attribute: IIdentityAttribute | IRelationshipAttribute;
|
|
10
|
+
}
|
|
11
|
+
export declare class ProposeAttributeRequestItem extends RequestItem implements IProposeAttributeRequestItem {
|
|
12
|
+
query: IdentityAttributeQuery | RelationshipAttributeQuery;
|
|
13
|
+
attribute: IdentityAttribute | RelationshipAttribute;
|
|
14
|
+
static from(value: IProposeAttributeRequestItem): ProposeAttributeRequestItem;
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.ProposeAttributeRequestItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const attributes_1 = require("../../../attributes");
|
|
15
|
+
const RequestItem_1 = require("../../RequestItem");
|
|
16
|
+
let ProposeAttributeRequestItem = class ProposeAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttributeQuery, attributes_1.RelationshipAttributeQuery] }),
|
|
23
|
+
(0, ts_serval_1.validate)(),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], ProposeAttributeRequestItem.prototype, "query", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
|
|
28
|
+
(0, ts_serval_1.validate)(),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], ProposeAttributeRequestItem.prototype, "attribute", void 0);
|
|
31
|
+
ProposeAttributeRequestItem = __decorate([
|
|
32
|
+
(0, ts_serval_1.type)("ProposeAttributeRequestItem")
|
|
33
|
+
], ProposeAttributeRequestItem);
|
|
34
|
+
exports.ProposeAttributeRequestItem = ProposeAttributeRequestItem;
|
|
35
|
+
//# sourceMappingURL=ProposeAttributeRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,oDAa4B;AAC5B,mDAA8E;AAY9E,IAAa,2BAA2B,GAAxC,MAAa,2BAA4B,SAAQ,yBAAW;IASjD,MAAM,CAAC,IAAI,CAAC,KAAmC;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,mCAAsB,EAAE,uCAA0B,CAAC,EAAE,CAAC;IAC/E,IAAA,oBAAQ,GAAE;;0DACsD;AAIjE;IAFC,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,CAYvC;AAZY,kEAA2B"}
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "../../../attributes/AbstractAttributeQuery";
|
|
2
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
3
|
+
export interface ReadAttributeRequestItemJSON extends RequestItemJSON {
|
|
4
|
+
query: AbstractAttributeQueryJSON;
|
|
5
|
+
}
|
|
6
|
+
export interface IReadAttributeRequestItem extends IRequestItem {
|
|
7
|
+
query: IAbstractAttributeQuery;
|
|
8
|
+
}
|
|
9
|
+
export declare class ReadAttributeRequestItem extends RequestItem implements IReadAttributeRequestItem {
|
|
10
|
+
query: AbstractAttributeQuery;
|
|
11
|
+
static from(value: IReadAttributeRequestItem | ReadAttributeRequestItemJSON): ReadAttributeRequestItem;
|
|
12
|
+
}
|
|
@@ -9,21 +9,22 @@ 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.ReadAttributeRequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
}
|
|
19
20
|
};
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, ts_serval_1.serialize)(),
|
|
22
23
|
(0, ts_serval_1.validate)(),
|
|
23
|
-
__metadata("design:type",
|
|
24
|
-
],
|
|
25
|
-
|
|
26
|
-
(0, ts_serval_1.type)("
|
|
27
|
-
],
|
|
28
|
-
exports.
|
|
29
|
-
//# sourceMappingURL=
|
|
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,uFAImD;AACnD,mDAA8E;AAW9E,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,yBAAW;IAK9C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,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,7 +1,7 @@
|
|
|
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
|
-
import { Attribute, AttributeJSON, IAttribute } from "
|
|
4
|
-
import { ContentJSON } from "
|
|
3
|
+
import { Attribute, AttributeJSON, IAttribute } from "../../attributes/Attribute";
|
|
4
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
5
5
|
export interface AttributesChangeRequestJSON extends ContentJSON {
|
|
6
6
|
id?: string;
|
|
7
7
|
key?: string;
|
|
@@ -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
|
-
const Attribute_1 = require("
|
|
17
|
-
let AttributesChangeRequest =
|
|
18
|
-
static
|
|
19
|
-
return
|
|
15
|
+
const Attribute_1 = require("../../attributes/Attribute");
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
-
import { ContentJSON } from "
|
|
3
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
4
4
|
export interface AttributesRequestJSON extends ContentJSON {
|
|
5
5
|
id?: string;
|
|
6
6
|
key?: string;
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributesRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAuE;AA2CvE,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,wBAAY;IAyBxC,MAAM,CAAC,IAAI,CAAC,KAAyB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAA4B;QAC/C,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,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;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SAC3B,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AApCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;6CAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;oDAAA;AAI3B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;gDACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACJ;AAvBhB,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CAuC7B;AAvCY,8CAAiB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { ContentJSON } from "
|
|
3
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
4
4
|
export interface AttributesShareRequestJSON extends ContentJSON {
|
|
5
5
|
id?: string;
|
|
6
6
|
key?: string;
|
|
@@ -40,7 +40,7 @@ export interface IAttributesShareRequest extends ISerializable {
|
|
|
40
40
|
attributes: string[];
|
|
41
41
|
recipients: ICoreAddress[];
|
|
42
42
|
}
|
|
43
|
-
export declare class AttributesShareRequest extends
|
|
43
|
+
export declare class AttributesShareRequest extends Serializable implements IAttributesShareRequest {
|
|
44
44
|
id?: CoreId;
|
|
45
45
|
key?: string;
|
|
46
46
|
reason?: string;
|
|
@@ -48,5 +48,5 @@ export declare class AttributesShareRequest extends SerializableAsync implements
|
|
|
48
48
|
impact?: string;
|
|
49
49
|
attributes: string[];
|
|
50
50
|
recipients: CoreAddress[];
|
|
51
|
-
static from(value: IAttributesShareRequest):
|
|
51
|
+
static from(value: IAttributesShareRequest): AttributesShareRequest;
|
|
52
52
|
}
|
|
@@ -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 AttributesShareRequest_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.AttributesShareRequest = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const transport_1 = require("@nmshd/transport");
|
|
16
|
-
let AttributesShareRequest =
|
|
17
|
-
static
|
|
18
|
-
return
|
|
15
|
+
let AttributesShareRequest = class AttributesShareRequest extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
__decorate([
|
|
@@ -53,7 +52,7 @@ __decorate([
|
|
|
53
52
|
(0, ts_serval_1.validate)(),
|
|
54
53
|
__metadata("design:type", Array)
|
|
55
54
|
], AttributesShareRequest.prototype, "recipients", void 0);
|
|
56
|
-
AttributesShareRequest =
|
|
55
|
+
AttributesShareRequest = __decorate([
|
|
57
56
|
(0, ts_serval_1.type)("AttributesShareRequest")
|
|
58
57
|
], AttributesShareRequest);
|
|
59
58
|
exports.AttributesShareRequest = AttributesShareRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributesShareRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesShareRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAkG;AA+ClG,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,wBAAY;IA6B7C,MAAM,CAAC,IAAI,CAAC,KAA8B;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AA7BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;kDAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;yDAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAItB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;0DACgB;AAI3B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,GAAE;;0DACqB;AA3BvB,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CAgClC;AAhCY,wDAAsB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
|
|
2
|
+
import { ResponseItemResult } from "./ResponseItemResult";
|
|
3
|
+
export interface AcceptResponseItemJSON extends ResponseItemJSON {
|
|
4
|
+
result: ResponseItemResult.Accepted;
|
|
5
|
+
}
|
|
6
|
+
export interface IAcceptResponseItem extends IResponseItem {
|
|
7
|
+
result: ResponseItemResult.Accepted;
|
|
8
|
+
}
|
|
9
|
+
export declare class AcceptResponseItem extends ResponseItem implements IAcceptResponseItem {
|
|
10
|
+
result: ResponseItemResult.Accepted;
|
|
11
|
+
static from(value: IAcceptResponseItem | AcceptResponseItemJSON): AcceptResponseItem;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.AcceptResponseItem = void 0;
|
|
10
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
11
|
+
const ResponseItem_1 = require("./ResponseItem");
|
|
12
|
+
let AcceptResponseItem = class AcceptResponseItem extends ResponseItem_1.ResponseItem {
|
|
13
|
+
static from(value) {
|
|
14
|
+
return this.fromAny(value);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
AcceptResponseItem = __decorate([
|
|
18
|
+
(0, ts_serval_1.type)("AcceptResponseItem")
|
|
19
|
+
], AcceptResponseItem);
|
|
20
|
+
exports.AcceptResponseItem = AcceptResponseItem;
|
|
21
|
+
//# sourceMappingURL=AcceptResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/AcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AACzC,iDAA8E;AAY9E,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,2BAAY;IAGzC,MAAM,CAAC,IAAI,CAAC,KAAmD;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AANY,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAM9B;AANY,gDAAkB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
|
|
2
|
+
import { ResponseItemResult } from "./ResponseItemResult";
|
|
3
|
+
export interface ErrorResponseItemJSON extends ResponseItemJSON {
|
|
4
|
+
result: ResponseItemResult.Failed;
|
|
5
|
+
code: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IErrorResponseItem extends IResponseItem {
|
|
9
|
+
result: ResponseItemResult.Failed;
|
|
10
|
+
code: string;
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class ErrorResponseItem extends ResponseItem implements IErrorResponseItem {
|
|
14
|
+
result: ResponseItemResult.Failed;
|
|
15
|
+
code: string;
|
|
16
|
+
message: string;
|
|
17
|
+
static from(value: IErrorResponseItem | ErrorResponseItemJSON): ErrorResponseItem;
|
|
18
|
+
}
|
|
@@ -8,27 +8,27 @@ 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 Authorization_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
12
|
+
exports.ErrorResponseItem = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
-
|
|
14
|
+
const ResponseItem_1 = require("./ResponseItem");
|
|
15
|
+
let ErrorResponseItem = class ErrorResponseItem extends ResponseItem_1.ResponseItem {
|
|
16
16
|
static from(value) {
|
|
17
|
-
return
|
|
17
|
+
return this.fromAny(value);
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, ts_serval_1.validate)(),
|
|
22
21
|
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
24
|
+
], ErrorResponseItem.prototype, "code", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, ts_serval_1.validate)(),
|
|
27
26
|
(0, ts_serval_1.serialize)(),
|
|
27
|
+
(0, ts_serval_1.validate)(),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
30
|
-
|
|
31
|
-
(0, ts_serval_1.type)("
|
|
32
|
-
],
|
|
33
|
-
exports.
|
|
34
|
-
//# sourceMappingURL=
|
|
29
|
+
], ErrorResponseItem.prototype, "message", void 0);
|
|
30
|
+
ErrorResponseItem = __decorate([
|
|
31
|
+
(0, ts_serval_1.type)("ErrorResponseItem")
|
|
32
|
+
], ErrorResponseItem);
|
|
33
|
+
exports.ErrorResponseItem = ErrorResponseItem;
|
|
34
|
+
//# sourceMappingURL=ErrorResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/ErrorResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,iDAA8E;AAgB9E,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,2BAAY;IAWxC,MAAM,CAAC,IAAI,CAAC,KAAiD;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;+CACQ;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kDACW;AATb,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CAc7B;AAdY,8CAAiB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
|
|
2
|
+
import { ResponseItemResult } from "./ResponseItemResult";
|
|
3
|
+
export interface RejectResponseItemJSON extends ResponseItemJSON {
|
|
4
|
+
result: ResponseItemResult.Rejected;
|
|
5
|
+
code?: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IRejectResponseItem extends IResponseItem {
|
|
9
|
+
result: ResponseItemResult.Rejected;
|
|
10
|
+
code?: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class RejectResponseItem extends ResponseItem implements IRejectResponseItem {
|
|
14
|
+
result: ResponseItemResult.Rejected;
|
|
15
|
+
code?: string;
|
|
16
|
+
message?: string;
|
|
17
|
+
static from(value: IRejectResponseItem | RejectResponseItemJSON): RejectResponseItem;
|
|
18
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.RejectResponseItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const ResponseItem_1 = require("./ResponseItem");
|
|
15
|
+
let RejectResponseItem = class RejectResponseItem extends ResponseItem_1.ResponseItem {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RejectResponseItem.prototype, "code", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.serialize)(),
|
|
27
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RejectResponseItem.prototype, "message", void 0);
|
|
30
|
+
RejectResponseItem = __decorate([
|
|
31
|
+
(0, ts_serval_1.type)("RejectResponseItem")
|
|
32
|
+
], RejectResponseItem);
|
|
33
|
+
exports.RejectResponseItem = RejectResponseItem;
|
|
34
|
+
//# sourceMappingURL=RejectResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RejectResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/RejectResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,iDAA8E;AAgB9E,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,2BAAY;IAWzC,MAAM,CAAC,IAAI,CAAC,KAAmD;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACN;AATd,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAc9B;AAdY,gDAAkB"}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
|
-
import { ISerializable,
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
3
|
-
import { ContentJSON } from "
|
|
3
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
4
4
|
import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
|
|
5
5
|
import { IResponseItemGroup, ResponseItemGroup, ResponseItemGroupJSON } from "./ResponseItemGroup";
|
|
6
|
+
export declare enum ResponseResult {
|
|
7
|
+
Accepted = "Accepted",
|
|
8
|
+
Rejected = "Rejected"
|
|
9
|
+
}
|
|
6
10
|
export interface ResponseJSON extends ContentJSON {
|
|
11
|
+
result: ResponseResult;
|
|
7
12
|
requestId: string;
|
|
8
13
|
items: (ResponseItemGroupJSON | ResponseItemJSON)[];
|
|
14
|
+
metadata?: object;
|
|
9
15
|
}
|
|
10
16
|
export interface IResponse extends ISerializable {
|
|
17
|
+
result: ResponseResult;
|
|
11
18
|
requestId: ICoreId;
|
|
12
19
|
items: (IResponseItemGroup | IResponseItem)[];
|
|
20
|
+
metadata?: object;
|
|
13
21
|
}
|
|
14
|
-
export declare class Response extends
|
|
22
|
+
export declare class Response extends Serializable {
|
|
23
|
+
result: ResponseResult;
|
|
15
24
|
requestId: CoreId;
|
|
16
25
|
items: (ResponseItemGroup | ResponseItem)[];
|
|
17
|
-
|
|
26
|
+
metadata?: object;
|
|
27
|
+
static from(value: IResponse | ResponseJSON): Response;
|
|
18
28
|
}
|
|
@@ -8,16 +8,25 @@ 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 Response_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.Response = void 0;
|
|
12
|
+
exports.Response = exports.ResponseResult = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
14
|
const transport_1 = require("@nmshd/transport");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
var ResponseResult;
|
|
16
|
+
(function (ResponseResult) {
|
|
17
|
+
ResponseResult["Accepted"] = "Accepted";
|
|
18
|
+
ResponseResult["Rejected"] = "Rejected";
|
|
19
|
+
})(ResponseResult = exports.ResponseResult || (exports.ResponseResult = {}));
|
|
20
|
+
let Response = class Response extends ts_serval_1.Serializable {
|
|
21
|
+
static from(value) {
|
|
22
|
+
return this.fromAny(value);
|
|
19
23
|
}
|
|
20
24
|
};
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.serialize)(),
|
|
27
|
+
(0, ts_serval_1.validate)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Response.prototype, "result", void 0);
|
|
21
30
|
__decorate([
|
|
22
31
|
(0, ts_serval_1.serialize)(),
|
|
23
32
|
(0, ts_serval_1.validate)(),
|
|
@@ -28,7 +37,12 @@ __decorate([
|
|
|
28
37
|
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
29
38
|
__metadata("design:type", Array)
|
|
30
39
|
], Response.prototype, "items", void 0);
|
|
31
|
-
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, ts_serval_1.serialize)(),
|
|
42
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], Response.prototype, "metadata", void 0);
|
|
45
|
+
Response = __decorate([
|
|
32
46
|
(0, ts_serval_1.type)("Response")
|
|
33
47
|
], Response);
|
|
34
48
|
exports.Response = Response;
|