@nmshd/content 1.3.0 → 2.0.0-alpha.11
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 +15 -0
- package/dist/attributes/{AttributeQuery.js → AbstractAttributeQuery.js} +10 -21
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -0
- package/dist/attributes/AbstractAttributeValue.d.ts +8 -3
- package/dist/attributes/AbstractAttributeValue.js +6 -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 +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 +15 -0
- package/dist/attributes/RelationshipAttribute.js +35 -0
- package/dist/attributes/RelationshipAttribute.js.map +1 -0
- package/dist/attributes/RelationshipAttributeQuery.d.ts +15 -0
- package/dist/attributes/RelationshipAttributeQuery.js +35 -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/index.d.ts +8 -1
- package/dist/attributes/index.js +8 -1
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/types/AbstractBoolean.d.ts +13 -0
- package/dist/attributes/types/AbstractBoolean.js +31 -0
- package/dist/attributes/types/AbstractBoolean.js.map +1 -0
- package/dist/attributes/types/AbstractFloat.d.ts +13 -0
- package/dist/attributes/types/{idcard/IDCardAuthorityName.js → AbstractFloat.js} +16 -11
- package/dist/attributes/types/AbstractFloat.js.map +1 -0
- package/dist/attributes/types/AbstractInteger.d.ts +13 -0
- package/dist/attributes/types/AbstractInteger.js +31 -0
- package/dist/attributes/types/AbstractInteger.js.map +1 -0
- package/dist/attributes/types/AbstractString.d.ts +13 -0
- package/dist/attributes/types/{idcard/IDCardIssuingDate.js → AbstractString.js} +15 -10
- 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 +1 -1
- package/dist/attributes/types/birth/BirthMonth.js +1 -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/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/{person/PersonHeight.js → dates/AbstractDateString.js} +12 -12
- package/dist/attributes/types/dates/AbstractDateString.js.map +1 -0
- package/dist/attributes/types/dates/AbstractDay.d.ts +7 -0
- package/dist/attributes/types/{AbstractDay.js → dates/AbstractDay.js} +5 -3
- package/dist/attributes/types/dates/AbstractDay.js.map +1 -0
- package/dist/attributes/types/{AbstractMonth.d.ts → dates/AbstractMonth.d.ts} +2 -2
- package/dist/attributes/types/{AbstractMonth.js → dates/AbstractMonth.js} +7 -3
- package/dist/attributes/types/dates/AbstractMonth.js.map +1 -0
- package/dist/attributes/types/dates/AbstractPeriod.d.ts +16 -0
- package/dist/attributes/types/dates/AbstractPeriod.js +32 -0
- package/dist/attributes/types/dates/AbstractPeriod.js.map +1 -0
- package/dist/attributes/types/dates/AbstractYear.d.ts +4 -0
- package/dist/attributes/types/{AbstractYear.js → dates/AbstractYear.js} +5 -3
- package/dist/attributes/types/dates/AbstractYear.js.map +1 -0
- package/dist/attributes/types/dates/index.d.ts +5 -0
- package/dist/attributes/types/dates/index.js +22 -0
- package/dist/attributes/types/dates/index.js.map +1 -0
- package/dist/attributes/types/index.d.ts +10 -1
- package/dist/attributes/types/index.js +10 -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 +2 -2
- package/dist/attributes/types/person/Age.js +5 -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 +8 -3
- package/dist/attributes/types/person/Sex.js +12 -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/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 +3 -0
- package/dist/attributes/types/proprietary/ProprietaryInteger.js +18 -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 +11 -0
- package/dist/attributes/types/proprietary/index.js +28 -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/AbstractHEXColor.d.ts +4 -0
- package/dist/attributes/types/{name/Title.js → strings/AbstractHEXColor.js} +8 -11
- 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/{person/Gender.js → strings/AbstractPhoneNumber.js} +8 -14
- 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 +7 -0
- package/dist/attributes/types/strings/index.js +24 -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/RelationshipCreationChangeRequestContent.d.ts +16 -0
- package/dist/relationships/RelationshipCreationChangeRequestContent.js +34 -0
- package/dist/relationships/RelationshipCreationChangeRequestContent.js.map +1 -0
- package/dist/relationships/RelationshipTemplateContent.d.ts +22 -0
- package/dist/relationships/RelationshipTemplateContent.js +44 -0
- package/dist/relationships/RelationshipTemplateContent.js.map +1 -0
- 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 +14 -2
- package/dist/requests/RequestItemGroup.js.map +1 -1
- package/dist/requests/index.d.ts +7 -0
- package/dist/requests/index.js +24 -0
- package/dist/requests/index.js.map +1 -0
- package/dist/requests/{AttributesChangeRequest.d.ts → old/AttributesChangeRequest.d.ts} +6 -6
- package/dist/requests/{AttributesChangeRequest.js → old/AttributesChangeRequest.js} +9 -10
- package/dist/requests/old/AttributesChangeRequest.js.map +1 -0
- package/dist/requests/old/AttributesRequest.d.ts +49 -0
- package/dist/requests/old/AttributesRequest.js +64 -0
- 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/person/PersonEyeColor.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 +12927 -1941
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +16 -16
- 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.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/requests/AttributesChangeRequest.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":"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,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
|
|
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,
|
|
@@ -56,7 +55,7 @@ __decorate([
|
|
|
56
55
|
__metadata("design:type", String)
|
|
57
56
|
], AttributesChangeRequest.prototype, "impact", void 0);
|
|
58
57
|
__decorate([
|
|
59
|
-
(0, ts_serval_1.serialize)({ type:
|
|
58
|
+
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
60
59
|
(0, ts_serval_1.validate)(),
|
|
61
60
|
__metadata("design:type", Array)
|
|
62
61
|
], AttributesChangeRequest.prototype, "attributes", void 0);
|
|
@@ -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"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
4
|
+
export interface AttributesRequestJSON extends ContentJSON {
|
|
5
|
+
id?: string;
|
|
6
|
+
key?: string;
|
|
7
|
+
reason?: string;
|
|
8
|
+
expiresAt?: string;
|
|
9
|
+
names: string[];
|
|
10
|
+
required: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IAttributesRequest extends ISerializable {
|
|
13
|
+
id?: ICoreId;
|
|
14
|
+
/**
|
|
15
|
+
* The technial key of the request which is submitted back with the answer. This can be used
|
|
16
|
+
* for mapping requests and answers. The key should be unique and non-personal, best a random UUID.
|
|
17
|
+
* @default undefined - no key is used
|
|
18
|
+
*/
|
|
19
|
+
key?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The human-readable reason for this request. This can be used to provide the user with more input
|
|
22
|
+
* why this request is necessary and should be answered.
|
|
23
|
+
* @default undefined - no reason is given
|
|
24
|
+
*/
|
|
25
|
+
reason?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
28
|
+
* valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer
|
|
29
|
+
* of interest).
|
|
30
|
+
* @default undefined - the request won't expire
|
|
31
|
+
*/
|
|
32
|
+
expiresAt?: ICoreDate;
|
|
33
|
+
names: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Whether or not this attribute request is required or optional
|
|
36
|
+
* @default undefined - the attribute request is optional
|
|
37
|
+
*/
|
|
38
|
+
required?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare class AttributesRequest extends Serializable implements IAttributesRequest {
|
|
41
|
+
id?: CoreId;
|
|
42
|
+
key?: string;
|
|
43
|
+
reason?: string;
|
|
44
|
+
expiresAt?: CoreDate;
|
|
45
|
+
names: string[];
|
|
46
|
+
required?: boolean;
|
|
47
|
+
static from(value: IAttributesRequest): AttributesRequest;
|
|
48
|
+
static fromJSON(value: AttributesRequestJSON): AttributesRequest;
|
|
49
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.AttributesRequest = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
|
+
let AttributesRequest = class AttributesRequest extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
static fromJSON(value) {
|
|
20
|
+
return this.from({
|
|
21
|
+
id: value.id ? transport_1.CoreId.from(value.id) : undefined,
|
|
22
|
+
expiresAt: value.expiresAt ? transport_1.CoreDate.from(value.expiresAt) : undefined,
|
|
23
|
+
key: value.key,
|
|
24
|
+
reason: value.reason,
|
|
25
|
+
names: value.names,
|
|
26
|
+
required: value.required
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.serialize)(),
|
|
32
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
33
|
+
__metadata("design:type", transport_1.CoreId)
|
|
34
|
+
], AttributesRequest.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.serialize)(),
|
|
37
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], AttributesRequest.prototype, "key", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, ts_serval_1.serialize)(),
|
|
42
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AttributesRequest.prototype, "reason", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, ts_serval_1.serialize)(),
|
|
47
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
49
|
+
], AttributesRequest.prototype, "expiresAt", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, ts_serval_1.serialize)({ type: String }),
|
|
52
|
+
(0, ts_serval_1.validate)(),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], AttributesRequest.prototype, "names", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, ts_serval_1.serialize)(),
|
|
57
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], AttributesRequest.prototype, "required", void 0);
|
|
60
|
+
AttributesRequest = __decorate([
|
|
61
|
+
(0, ts_serval_1.type)("AttributesRequest")
|
|
62
|
+
], AttributesRequest);
|
|
63
|
+
exports.AttributesRequest = AttributesRequest;
|
|
64
|
+
//# sourceMappingURL=AttributesRequest.js.map
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/requests/response/Response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAkD;AAKlD,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;AACzB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAiBD,IAAa,QAAQ,GAArB,MAAa,QAAS,SAAQ,wBAAY;IAiB/B,MAAM,CAAC,IAAI,CAAC,KAA+B;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wCACkB;AAI7B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,kBAAM;2CAAA;AAIxB;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;;uCACpC;AAIlD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACL;AAff,QAAQ;IADpB,IAAA,gBAAI,EAAC,UAAU,CAAC;GACJ,QAAQ,CAoBpB;AApBY,4BAAQ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
3
|
+
import { ResponseItemResult } from "./ResponseItemResult";
|
|
4
|
+
export interface ResponseItemJSON extends ContentJSON {
|
|
5
|
+
result: ResponseItemResult;
|
|
6
|
+
metadata?: object;
|
|
7
|
+
}
|
|
8
|
+
export interface IResponseItem extends ISerializable {
|
|
9
|
+
result: ResponseItemResult;
|
|
10
|
+
metadata?: object;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class ResponseItem extends Serializable {
|
|
13
|
+
result: ResponseItemResult;
|
|
14
|
+
metadata?: object;
|
|
15
|
+
}
|
package/dist/{attributes/types/person/PersonEyeColor.js → requests/response/ResponseItem.js}
RENAMED
|
@@ -9,18 +9,20 @@ 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.ResponseItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
const ResponseItemResult_1 = require("./ResponseItemResult");
|
|
15
|
+
class ResponseItem extends ts_serval_1.Serializable {
|
|
16
|
+
}
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, ts_serval_1.serialize)(),
|
|
19
19
|
(0, ts_serval_1.validate)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
(0, ts_serval_1.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
], ResponseItem.prototype, "result", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], ResponseItem.prototype, "metadata", void 0);
|
|
27
|
+
exports.ResponseItem = ResponseItem;
|
|
28
|
+
//# sourceMappingURL=ResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/ResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AAErF,6DAAyD;AAYzD,MAAsB,YAAa,SAAQ,wBAAY;CAQtD;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;4CACsB;AAIjC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACL;AAP5B,oCAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISerializable,
|
|
2
|
-
import { ContentJSON } from "
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
3
3
|
import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
|
|
4
4
|
export interface ResponseItemGroupJSON extends ContentJSON {
|
|
5
5
|
items: ResponseItemJSON[];
|
|
@@ -9,7 +9,8 @@ export interface IResponseItemGroup extends ISerializable {
|
|
|
9
9
|
items: IResponseItem[];
|
|
10
10
|
metadata?: object;
|
|
11
11
|
}
|
|
12
|
-
export declare class ResponseItemGroup extends
|
|
12
|
+
export declare class ResponseItemGroup extends Serializable {
|
|
13
13
|
items: ResponseItem[];
|
|
14
14
|
metadata?: object;
|
|
15
|
+
static from(value: IResponseItemGroup | ResponseItemGroupJSON): ResponseItemGroup;
|
|
15
16
|
}
|
|
@@ -11,7 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ResponseItemGroup = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
let ResponseItemGroup = class ResponseItemGroup extends ts_serval_1.
|
|
14
|
+
let ResponseItemGroup = class ResponseItemGroup extends ts_serval_1.Serializable {
|
|
15
|
+
static from(value) {
|
|
16
|
+
return this.fromAny(value);
|
|
17
|
+
}
|
|
15
18
|
};
|
|
16
19
|
__decorate([
|
|
17
20
|
(0, ts_serval_1.serialize)(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponseItemGroup.js","sourceRoot":"","sources":["../../../src/requests/response/ResponseItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAe3F,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,wBAAY;IASxC,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,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;;gDAC1D;AAI5B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACL;AAPf,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CAY7B;AAZY,8CAAiB"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponseItemResult.js","sourceRoot":"","sources":["../../../src/requests/response/ResponseItemResult.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,sCAAgB,CAAA;AACpB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
|