@nmshd/content 2.0.0-alpha.1 → 2.0.0-alpha.12
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/AbstractAttributeQuery.js +32 -0
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -0
- package/dist/attributes/AbstractAttributeValue.d.ts +14 -0
- package/dist/attributes/AbstractAttributeValue.js +14 -0
- package/dist/attributes/AbstractAttributeValue.js.map +1 -0
- package/dist/attributes/AbstractComplexValue.d.ts +7 -0
- package/dist/attributes/AbstractComplexValue.js +8 -0
- package/dist/attributes/AbstractComplexValue.js.map +1 -0
- package/dist/attributes/Attribute.js +3 -4
- package/dist/attributes/Attribute.js.map +1 -1
- package/dist/attributes/IdentityAttribute.d.ts +15 -0
- package/dist/attributes/IdentityAttribute.js +35 -0
- package/dist/attributes/IdentityAttribute.js.map +1 -0
- package/dist/attributes/IdentityAttributeQuery.d.ts +11 -0
- package/dist/attributes/IdentityAttributeQuery.js +29 -0
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -0
- package/dist/attributes/RelationshipAttribute.d.ts +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/constants/index.js +19 -0
- package/dist/attributes/constants/index.js.map +1 -0
- package/dist/attributes/index.d.ts +11 -0
- package/dist/attributes/index.js +28 -0
- package/dist/attributes/index.js.map +1 -0
- package/dist/attributes/types/AbstractBoolean.d.ts +13 -0
- package/dist/{relationships/RelationshipExistsMessageAction.js → attributes/types/AbstractBoolean.js} +16 -11
- package/dist/attributes/types/AbstractBoolean.js.map +1 -0
- package/dist/attributes/types/AbstractFloat.d.ts +13 -0
- package/dist/attributes/types/AbstractFloat.js +31 -0
- package/dist/attributes/types/AbstractFloat.js.map +1 -0
- package/dist/attributes/types/AbstractInteger.d.ts +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/AbstractString.js +31 -0
- package/dist/attributes/types/AbstractString.js.map +1 -0
- package/dist/attributes/types/AttributeList.d.ts +1 -0
- package/dist/attributes/types/AttributeList.js +37 -0
- package/dist/attributes/types/AttributeList.js.map +1 -0
- package/dist/attributes/types/AttributeTypeMapping.d.ts +1 -0
- package/dist/attributes/types/AttributeTypeMapping.js +9 -0
- package/dist/attributes/types/AttributeTypeMapping.js.map +1 -0
- package/dist/attributes/types/address/AbstractAddress.d.ts +10 -0
- package/dist/attributes/types/address/AbstractAddress.js +23 -0
- package/dist/attributes/types/address/AbstractAddress.js.map +1 -0
- package/dist/attributes/types/address/City.d.ts +3 -0
- package/dist/{relationships/RelationshipExistsAction.js → attributes/types/address/City.js} +8 -7
- package/dist/attributes/types/address/City.js.map +1 -0
- package/dist/attributes/types/address/Country.d.ts +3 -0
- package/dist/attributes/types/address/Country.js +18 -0
- package/dist/attributes/types/address/Country.js.map +1 -0
- package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +36 -0
- package/dist/attributes/types/address/DeliveryBoxAddress.js +82 -0
- package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -0
- package/dist/attributes/types/address/HouseNumber.d.ts +3 -0
- package/dist/attributes/types/address/HouseNumber.js +18 -0
- package/dist/attributes/types/address/HouseNumber.js.map +1 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +29 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.js +67 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -0
- package/dist/attributes/types/address/State.d.ts +3 -0
- package/dist/attributes/types/address/State.js +18 -0
- package/dist/attributes/types/address/State.js.map +1 -0
- package/dist/attributes/types/address/Street.d.ts +3 -0
- package/dist/attributes/types/address/Street.js +18 -0
- package/dist/attributes/types/address/Street.js.map +1 -0
- package/dist/attributes/types/address/StreetAddress.d.ts +34 -0
- package/dist/attributes/types/address/StreetAddress.js +74 -0
- package/dist/attributes/types/address/StreetAddress.js.map +1 -0
- package/dist/attributes/types/address/ZipCode.d.ts +3 -0
- package/dist/attributes/types/address/ZipCode.js +18 -0
- package/dist/attributes/types/address/ZipCode.js.map +1 -0
- package/dist/attributes/types/address/index.d.ts +10 -0
- package/dist/attributes/types/address/index.js +27 -0
- package/dist/attributes/types/address/index.js.map +1 -0
- package/dist/attributes/types/birth/BirthCity.d.ts +3 -0
- package/dist/attributes/types/birth/BirthCity.js +18 -0
- package/dist/attributes/types/birth/BirthCity.js.map +1 -0
- package/dist/attributes/types/birth/BirthCountry.d.ts +3 -0
- package/dist/attributes/types/birth/BirthCountry.js +18 -0
- package/dist/attributes/types/birth/BirthCountry.js.map +1 -0
- package/dist/attributes/types/birth/BirthDate.d.ts +22 -0
- package/dist/attributes/types/birth/BirthDate.js +51 -0
- package/dist/attributes/types/birth/BirthDate.js.map +1 -0
- package/dist/attributes/types/birth/BirthDay.d.ts +3 -0
- package/dist/attributes/types/birth/BirthDay.js +18 -0
- package/dist/attributes/types/birth/BirthDay.js.map +1 -0
- package/dist/attributes/types/birth/BirthMonth.d.ts +3 -0
- package/dist/attributes/types/birth/BirthMonth.js +18 -0
- package/dist/attributes/types/birth/BirthMonth.js.map +1 -0
- package/dist/attributes/types/birth/BirthPlace.d.ts +22 -0
- package/dist/attributes/types/birth/BirthPlace.js +51 -0
- package/dist/attributes/types/birth/BirthPlace.js.map +1 -0
- package/dist/attributes/types/birth/BirthState.d.ts +3 -0
- package/dist/attributes/types/birth/BirthState.js +18 -0
- package/dist/attributes/types/birth/BirthState.js.map +1 -0
- package/dist/attributes/types/birth/BirthYear.d.ts +3 -0
- package/dist/attributes/types/birth/BirthYear.js +18 -0
- package/dist/attributes/types/birth/BirthYear.js.map +1 -0
- package/dist/attributes/types/birth/index.d.ts +8 -0
- package/dist/attributes/types/birth/index.js +25 -0
- package/dist/attributes/types/birth/index.js.map +1 -0
- package/dist/attributes/types/communication/CommunicationLanguage.d.ts +3 -0
- package/dist/attributes/types/communication/CommunicationLanguage.js +18 -0
- package/dist/attributes/types/communication/CommunicationLanguage.js.map +1 -0
- package/dist/attributes/types/communication/EMailAddress.d.ts +3 -0
- package/dist/attributes/types/communication/EMailAddress.js +18 -0
- package/dist/attributes/types/communication/EMailAddress.js.map +1 -0
- package/dist/attributes/types/communication/Fax.d.ts +3 -0
- package/dist/attributes/types/communication/Fax.js +18 -0
- package/dist/attributes/types/communication/Fax.js.map +1 -0
- package/dist/attributes/types/communication/Phone.d.ts +3 -0
- package/dist/attributes/types/communication/Phone.js +18 -0
- package/dist/attributes/types/communication/Phone.js.map +1 -0
- package/dist/attributes/types/communication/Website.d.ts +3 -0
- package/dist/attributes/types/communication/Website.js +18 -0
- package/dist/attributes/types/communication/Website.js.map +1 -0
- package/dist/attributes/types/communication/index.d.ts +5 -0
- package/dist/attributes/types/communication/index.js +22 -0
- package/dist/attributes/types/communication/index.js.map +1 -0
- package/dist/attributes/types/dates/AbstractDateString.d.ts +5 -0
- package/dist/attributes/types/dates/AbstractDateString.js +29 -0
- package/dist/attributes/types/dates/AbstractDateString.js.map +1 -0
- package/dist/attributes/types/dates/AbstractDay.d.ts +7 -0
- package/dist/attributes/types/dates/AbstractDay.js +28 -0
- package/dist/attributes/types/dates/AbstractDay.js.map +1 -0
- package/dist/attributes/types/dates/AbstractMonth.d.ts +25 -0
- package/dist/attributes/types/dates/AbstractMonth.js +48 -0
- 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/dates/AbstractYear.js +25 -0
- 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 +15 -0
- package/dist/attributes/types/index.js +32 -0
- package/dist/attributes/types/index.js.map +1 -0
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.d.ts +18 -0
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.js +40 -0
- package/dist/attributes/types/measurements/AbstractLengthMeasurement.js.map +1 -0
- package/dist/attributes/types/measurements/AbstractMeasurement.d.ts +17 -0
- package/dist/attributes/types/measurements/AbstractMeasurement.js +34 -0
- package/dist/attributes/types/measurements/AbstractMeasurement.js.map +1 -0
- package/dist/attributes/types/measurements/index.d.ts +2 -0
- package/dist/attributes/types/measurements/index.js +19 -0
- package/dist/attributes/types/measurements/index.js.map +1 -0
- package/dist/attributes/types/name/AbstractLegalName.d.ts +3 -0
- package/dist/attributes/types/name/AbstractLegalName.js +8 -0
- package/dist/attributes/types/name/AbstractLegalName.js.map +1 -0
- package/dist/attributes/types/name/BirthName.d.ts +3 -0
- package/dist/attributes/types/name/BirthName.js +18 -0
- package/dist/attributes/types/name/BirthName.js.map +1 -0
- package/dist/attributes/types/name/DisplayName.d.ts +3 -0
- package/dist/attributes/types/name/DisplayName.js +18 -0
- package/dist/attributes/types/name/DisplayName.js.map +1 -0
- package/dist/attributes/types/name/GivenName.d.ts +3 -0
- package/dist/attributes/types/name/GivenName.js +18 -0
- package/dist/attributes/types/name/GivenName.js.map +1 -0
- package/dist/attributes/types/name/HonorificPrefix.d.ts +3 -0
- package/dist/attributes/types/name/HonorificPrefix.js +18 -0
- package/dist/attributes/types/name/HonorificPrefix.js.map +1 -0
- package/dist/attributes/types/name/HonorificSuffix.d.ts +3 -0
- package/dist/attributes/types/name/HonorificSuffix.js +18 -0
- package/dist/attributes/types/name/HonorificSuffix.js.map +1 -0
- package/dist/attributes/types/name/LegalNameDE.d.ts +30 -0
- package/dist/attributes/types/name/LegalNameDE.js +64 -0
- package/dist/attributes/types/name/LegalNameDE.js.map +1 -0
- package/dist/attributes/types/name/Pseudonym.d.ts +3 -0
- package/dist/attributes/types/name/Pseudonym.js +18 -0
- package/dist/attributes/types/name/Pseudonym.js.map +1 -0
- package/dist/attributes/types/name/Salutation.d.ts +30 -0
- package/dist/attributes/types/name/Salutation.js +58 -0
- package/dist/attributes/types/name/Salutation.js.map +1 -0
- package/dist/attributes/types/name/Surname.d.ts +3 -0
- package/dist/attributes/types/name/Surname.js +18 -0
- package/dist/attributes/types/name/Surname.js.map +1 -0
- package/dist/attributes/types/name/index.d.ts +10 -0
- package/dist/attributes/types/name/index.js +27 -0
- package/dist/attributes/types/name/index.js.map +1 -0
- package/dist/attributes/types/person/Age.d.ts +4 -0
- package/dist/attributes/types/person/Age.js +28 -0
- package/dist/attributes/types/person/Age.js.map +1 -0
- package/dist/attributes/types/person/Citizenship.d.ts +3 -0
- package/dist/attributes/types/person/Citizenship.js +18 -0
- package/dist/attributes/types/person/Citizenship.js.map +1 -0
- package/dist/attributes/types/person/Nationality.d.ts +3 -0
- package/dist/attributes/types/person/Nationality.js +18 -0
- package/dist/attributes/types/person/Nationality.js.map +1 -0
- package/dist/attributes/types/person/Picture.d.ts +3 -0
- package/dist/attributes/types/person/Picture.js +18 -0
- package/dist/attributes/types/person/Picture.js.map +1 -0
- package/dist/attributes/types/person/Sex.d.ts +12 -0
- package/dist/attributes/types/person/Sex.js +37 -0
- package/dist/attributes/types/person/Sex.js.map +1 -0
- package/dist/attributes/types/person/index.d.ts +5 -0
- package/dist/attributes/types/person/index.js +22 -0
- package/dist/attributes/types/person/index.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryBoolean.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryCountry.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryCountry.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryCountry.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryDataURL.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryDataURL.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryDataURL.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js.map +1 -0
- package/dist/attributes/types/proprietary/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/strings/AbstractHEXColor.js +23 -0
- package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -0
- package/dist/attributes/types/strings/AbstractLanguage.d.ts +5 -0
- package/dist/attributes/types/strings/AbstractLanguage.js +26 -0
- package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.js +23 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -0
- package/dist/attributes/types/strings/AbstractURL.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractURL.js +27 -0
- package/dist/attributes/types/strings/AbstractURL.js.map +1 -0
- package/dist/attributes/types/strings/index.d.ts +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/forms/FormItem.js +4 -10
- package/dist/forms/FormItem.js.map +1 -1
- package/dist/index.d.ts +3 -6
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/messages/Mail.d.ts +6 -5
- package/dist/messages/Mail.js +11 -10
- 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 +12 -25
- 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 +52 -0
- package/dist/requests/Request.js +44 -0
- package/dist/requests/Request.js.map +1 -0
- package/dist/requests/RequestItem.d.ts +62 -0
- package/dist/{attributes/addresses/DeliveryAddress.js → requests/RequestItem.js} +16 -18
- package/dist/requests/RequestItem.js.map +1 -0
- package/dist/requests/RequestItemGroup.d.ts +84 -0
- package/dist/{attributes/addresses/Address.js → requests/RequestItemGroup.js} +28 -35
- package/dist/requests/RequestItemGroup.js.map +1 -0
- 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} +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/Response.d.ts +28 -0
- package/dist/requests/response/Response.js +49 -0
- package/dist/requests/response/Response.js.map +1 -0
- package/dist/requests/response/ResponseItem.d.ts +15 -0
- package/dist/requests/response/ResponseItem.js +28 -0
- package/dist/requests/response/ResponseItem.js.map +1 -0
- package/dist/requests/response/ResponseItemGroup.d.ts +16 -0
- package/dist/requests/response/ResponseItemGroup.js +33 -0
- package/dist/requests/response/ResponseItemGroup.js.map +1 -0
- package/dist/requests/response/ResponseItemResult.d.ts +5 -0
- package/dist/requests/response/ResponseItemResult.js +10 -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 +13685 -591
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +16 -16
- package/dist/attributes/AttributeName.d.ts +0 -16
- package/dist/attributes/AttributeName.js +0 -62
- package/dist/attributes/AttributeName.js.map +0 -1
- package/dist/attributes/AttributeNamespace.d.ts +0 -8
- package/dist/attributes/AttributeNamespace.js +0 -13
- package/dist/attributes/AttributeNamespace.js.map +0 -1
- package/dist/attributes/addresses/Address.d.ts +0 -22
- package/dist/attributes/addresses/Address.js.map +0 -1
- package/dist/attributes/addresses/DeliveryAddress.d.ts +0 -12
- package/dist/attributes/addresses/DeliveryAddress.js.map +0 -1
- package/dist/authorizations/Authorization.d.ts +0 -14
- package/dist/authorizations/Authorization.js.map +0 -1
- package/dist/relationships/RelationshipCreationChangeResponseBody.d.ts +0 -0
- package/dist/relationships/RelationshipCreationChangeResponseBody.js +0 -2
- package/dist/relationships/RelationshipCreationChangeResponseBody.js.map +0 -1
- package/dist/relationships/RelationshipExistsAction.d.ts +0 -7
- package/dist/relationships/RelationshipExistsAction.js.map +0 -1
- package/dist/relationships/RelationshipExistsMessageAction.d.ts +0 -11
- package/dist/relationships/RelationshipExistsMessageAction.js.map +0 -1
- package/dist/requests/AttributesChangeRequest.js.map +0 -1
- package/dist/requests/AttributesRequest.js.map +0 -1
- package/dist/requests/AttributesShareRequest.js.map +0 -1
|
@@ -8,48 +8,26 @@ 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 RelationshipCreationChangeRequestBody_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.RelationshipCreationChangeRequestBody = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return (await super.from(value, RelationshipCreationChangeRequestBody_1));
|
|
14
|
+
const Response_1 = require("../requests/response/Response");
|
|
15
|
+
let RelationshipCreationChangeRequestBody = class RelationshipCreationChangeRequestBody extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
20
18
|
}
|
|
21
19
|
};
|
|
22
20
|
__decorate([
|
|
23
21
|
(0, ts_serval_1.serialize)(),
|
|
24
22
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], RelationshipCreationChangeRequestBody.prototype, "title", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, ts_serval_1.serialize)(),
|
|
29
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], RelationshipCreationChangeRequestBody.prototype, "sessionIdentifier", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, ts_serval_1.serialize)({ any: true }),
|
|
34
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
35
23
|
__metadata("design:type", Object)
|
|
36
|
-
], RelationshipCreationChangeRequestBody.prototype, "
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
39
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
40
|
-
__metadata("design:type", Array)
|
|
41
|
-
], RelationshipCreationChangeRequestBody.prototype, "sharedAttributes", void 0);
|
|
24
|
+
], RelationshipCreationChangeRequestBody.prototype, "templateContentMetadata", void 0);
|
|
42
25
|
__decorate([
|
|
43
26
|
(0, ts_serval_1.serialize)(),
|
|
44
|
-
(0, ts_serval_1.validate)(
|
|
45
|
-
__metadata("design:type",
|
|
46
|
-
], RelationshipCreationChangeRequestBody.prototype, "
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
|
|
49
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
50
|
-
__metadata("design:type", Array)
|
|
51
|
-
], RelationshipCreationChangeRequestBody.prototype, "sharedAuthorizations", void 0);
|
|
52
|
-
RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody_1 = __decorate([
|
|
27
|
+
(0, ts_serval_1.validate)(),
|
|
28
|
+
__metadata("design:type", Response_1.Response)
|
|
29
|
+
], RelationshipCreationChangeRequestBody.prototype, "response", void 0);
|
|
30
|
+
RelationshipCreationChangeRequestBody = __decorate([
|
|
53
31
|
(0, ts_serval_1.type)("RelationshipCreationChangeRequestBody")
|
|
54
32
|
], RelationshipCreationChangeRequestBody);
|
|
55
33
|
exports.RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,4DAAiF;AAajF,IAAa,qCAAqC,GAAlD,MAAa,qCACT,SAAQ,wBAAY;IAWb,MAAM,CAAC,IAAI,CACd,KAA0F;QAE1F,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sFACU;AAIvC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,mBAAQ;uEAAA;AAVhB,qCAAqC;IADjD,IAAA,gBAAI,EAAC,uCAAuC,CAAC;GACjC,qCAAqC,CAiBjD;AAjBY,sFAAqC"}
|
|
@@ -1,42 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
|
|
3
|
-
import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
4
2
|
import { ContentJSON } from "../ContentJSON";
|
|
5
|
-
import {
|
|
6
|
-
import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/AttributesRequest";
|
|
7
|
-
import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
|
|
3
|
+
import { IRequest, Request, RequestJSON } from "../requests/Request";
|
|
8
4
|
export interface RelationshipTemplateBodyJSON extends ContentJSON {
|
|
9
5
|
title?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
sharedCertificates?: any[];
|
|
14
|
-
sharedAuthorizations?: AuthorizationJSON[];
|
|
15
|
-
requestedAttributesChanges?: AttributesChangeRequestJSON[];
|
|
16
|
-
requestedAttributes?: AttributesRequestJSON[];
|
|
17
|
-
requestedCertificates?: any[];
|
|
18
|
-
relationshipExistsAction?: RelationshipExistsActionJSON;
|
|
6
|
+
metadata?: object;
|
|
7
|
+
newRelationshipRequest: RequestJSON;
|
|
8
|
+
existingRelationshipRequest?: RequestJSON;
|
|
19
9
|
}
|
|
20
|
-
export interface IRelationshipTemplateBody extends
|
|
10
|
+
export interface IRelationshipTemplateBody extends ISerializable {
|
|
21
11
|
title?: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
sharedCertificates?: any[];
|
|
26
|
-
sharedAuthorizations?: IAuthorization[];
|
|
27
|
-
requestedAttributesChanges?: IAttributesChangeRequest[];
|
|
28
|
-
requestedAttributes?: IAttributesRequest[];
|
|
29
|
-
relationshipExistsAction?: IRelationshipExistsAction;
|
|
12
|
+
metadata?: object;
|
|
13
|
+
newRelationshipRequest: IRequest;
|
|
14
|
+
existingRelationshipRequest?: IRequest;
|
|
30
15
|
}
|
|
31
|
-
export declare class RelationshipTemplateBody extends
|
|
16
|
+
export declare class RelationshipTemplateBody extends Serializable implements IRelationshipTemplateBody {
|
|
32
17
|
title?: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
sharedAuthorizations?: Authorization[];
|
|
38
|
-
requestedAttributesChanges?: AttributesChangeRequest[];
|
|
39
|
-
requestedAttributes?: AttributesRequest[];
|
|
40
|
-
relationshipExistsAction?: RelationshipExistsAction;
|
|
41
|
-
static from(value: IRelationshipTemplateBody): Promise<RelationshipTemplateBody>;
|
|
18
|
+
metadata?: object;
|
|
19
|
+
newRelationshipRequest: Request;
|
|
20
|
+
existingRelationshipRequest?: Request;
|
|
21
|
+
static from(value: IRelationshipTemplateBody | RelationshipTemplateBodyJSON): RelationshipTemplateBody;
|
|
42
22
|
}
|
|
@@ -8,17 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var RelationshipTemplateBody_1;
|
|
12
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
12
|
exports.RelationshipTemplateBody = void 0;
|
|
14
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let RelationshipTemplateBody = RelationshipTemplateBody_1 = class RelationshipTemplateBody extends ts_serval_1.SerializableAsync {
|
|
20
|
-
static async from(value) {
|
|
21
|
-
return (await super.from(value, RelationshipTemplateBody_1));
|
|
14
|
+
const Request_1 = require("../requests/Request");
|
|
15
|
+
let RelationshipTemplateBody = class RelationshipTemplateBody extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
22
18
|
}
|
|
23
19
|
};
|
|
24
20
|
__decorate([
|
|
@@ -29,44 +25,19 @@ __decorate([
|
|
|
29
25
|
__decorate([
|
|
30
26
|
(0, ts_serval_1.serialize)(),
|
|
31
27
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], RelationshipTemplateBody.prototype, "sessionIdentifier", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, ts_serval_1.serialize)({ any: true }),
|
|
36
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
37
28
|
__metadata("design:type", Object)
|
|
38
29
|
], RelationshipTemplateBody.prototype, "metadata", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
41
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], RelationshipTemplateBody.prototype, "sharedAttributes", void 0);
|
|
44
30
|
__decorate([
|
|
45
31
|
(0, ts_serval_1.serialize)(),
|
|
46
|
-
(0, ts_serval_1.validate)(
|
|
47
|
-
__metadata("design:type",
|
|
48
|
-
], RelationshipTemplateBody.prototype, "
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
|
|
51
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
52
|
-
__metadata("design:type", Array)
|
|
53
|
-
], RelationshipTemplateBody.prototype, "sharedAuthorizations", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
56
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", Array)
|
|
58
|
-
], RelationshipTemplateBody.prototype, "requestedAttributesChanges", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, ts_serval_1.serialize)({ type: AttributesRequest_1.AttributesRequest }),
|
|
61
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", Array)
|
|
63
|
-
], RelationshipTemplateBody.prototype, "requestedAttributes", void 0);
|
|
32
|
+
(0, ts_serval_1.validate)(),
|
|
33
|
+
__metadata("design:type", Request_1.Request)
|
|
34
|
+
], RelationshipTemplateBody.prototype, "newRelationshipRequest", void 0);
|
|
64
35
|
__decorate([
|
|
65
36
|
(0, ts_serval_1.serialize)(),
|
|
66
37
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
67
|
-
__metadata("design:type",
|
|
68
|
-
], RelationshipTemplateBody.prototype, "
|
|
69
|
-
RelationshipTemplateBody =
|
|
38
|
+
__metadata("design:type", Request_1.Request)
|
|
39
|
+
], RelationshipTemplateBody.prototype, "existingRelationshipRequest", void 0);
|
|
40
|
+
RelationshipTemplateBody = __decorate([
|
|
70
41
|
(0, ts_serval_1.type)("RelationshipTemplateBody")
|
|
71
42
|
], RelationshipTemplateBody);
|
|
72
43
|
exports.RelationshipTemplateBody = RelationshipTemplateBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,iDAAoE;AAiBpE,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAY;IAiB/C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACL;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACoB,iBAAO;wEAAA;AAItC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACQ,iBAAO;6EAAA;AAfnC,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAoBpC;AApBY,4DAAwB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./RelationshipCreationChangeRequestBody"), exports);
|
|
18
|
+
__exportStar(require("./RelationshipTemplateBody"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAuD;AACvD,6DAA0C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreDate, CoreId, ICoreDate } from "@nmshd/transport";
|
|
3
|
+
import { ContentJSON } from "../ContentJSON";
|
|
4
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
|
|
5
|
+
import { IRequestItemGroup, RequestItemGroup, RequestItemGroupJSON } from "./RequestItemGroup";
|
|
6
|
+
export interface RequestJSON extends ContentJSON {
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
10
|
+
* valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer
|
|
11
|
+
* of interest).
|
|
12
|
+
* @default undefined - the request won't expire
|
|
13
|
+
*/
|
|
14
|
+
expiresAt?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The items of the Request. Can be either a single {@link RequestItemJSON RequestItem} or a {@link RequestItemGroupJSON RequestItemGroup}, which itself can contain
|
|
17
|
+
* further {@link RequestItemJSON RequestItems}.
|
|
18
|
+
*/
|
|
19
|
+
items: (RequestItemGroupJSON | RequestItemJSON)[];
|
|
20
|
+
/**
|
|
21
|
+
* This property can be used to add some arbitrary metadata to this request. The content
|
|
22
|
+
* of this property will be copied into the response on the side of the recipient.
|
|
23
|
+
*/
|
|
24
|
+
responseMetadata?: object;
|
|
25
|
+
}
|
|
26
|
+
export interface IRequest extends ISerializable {
|
|
27
|
+
id?: CoreId;
|
|
28
|
+
/**
|
|
29
|
+
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
30
|
+
* valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer
|
|
31
|
+
* of interest).
|
|
32
|
+
* @default undefined - the request won't expire
|
|
33
|
+
*/
|
|
34
|
+
expiresAt?: ICoreDate;
|
|
35
|
+
/**
|
|
36
|
+
* The items of the Request. Can be either a single {@link RequestItem RequestItem} or a {@link RequestItemGroup RequestItemGroup}, which itself can contain
|
|
37
|
+
* further {@link RequestItem RequestItems}.
|
|
38
|
+
*/
|
|
39
|
+
items: (IRequestItemGroup | IRequestItem)[];
|
|
40
|
+
/**
|
|
41
|
+
* This property can be used to add some arbitrary metadata to this request. The content
|
|
42
|
+
* of this property will be copied into the response on the side of the recipient.
|
|
43
|
+
*/
|
|
44
|
+
responseMetadata?: object;
|
|
45
|
+
}
|
|
46
|
+
export declare class Request extends Serializable implements IRequest {
|
|
47
|
+
id?: CoreId;
|
|
48
|
+
expiresAt?: CoreDate;
|
|
49
|
+
items: (RequestItemGroup | RequestItem)[];
|
|
50
|
+
responseMetadata?: object;
|
|
51
|
+
static from(value: IRequest | RequestJSON): Request;
|
|
52
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.Request = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
|
+
let Request = class Request extends ts_serval_1.Serializable {
|
|
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", transport_1.CoreId)
|
|
24
|
+
], Request.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.serialize)(),
|
|
27
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
28
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
29
|
+
], Request.prototype, "expiresAt", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.serialize)(),
|
|
32
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], Request.prototype, "items", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.serialize)(),
|
|
37
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], Request.prototype, "responseMetadata", void 0);
|
|
40
|
+
Request = __decorate([
|
|
41
|
+
(0, ts_serval_1.type)("Request")
|
|
42
|
+
], Request);
|
|
43
|
+
exports.Request = Request;
|
|
44
|
+
//# sourceMappingURL=Request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;AAsD9D,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,wBAAY;IAiB9B,MAAM,CAAC,IAAI,CAAC,KAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mCAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;sCACtC;AAIhD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACG;AAfvB,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAoBnB;AApBY,0BAAO"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
export interface RequestItemJSON extends ContentJSON {
|
|
4
|
+
/**
|
|
5
|
+
* The human-readable title of this item.
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The human-readable description of this item.
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* This property can be used to add some arbitrary metadata to this item. The content
|
|
14
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
15
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
16
|
+
*/
|
|
17
|
+
responseMetadata?: object;
|
|
18
|
+
/**
|
|
19
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
20
|
+
* Request.
|
|
21
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
22
|
+
*
|
|
23
|
+
* Caution: this setting does not take effect in case it is inside of a
|
|
24
|
+
* {@link RequestItemGroupJSON RequestItemGroup}, which is not accepted by the recipient,
|
|
25
|
+
* since a {@link RequestItemJSON RequestItem} can only be accepted if the parent group
|
|
26
|
+
* is accepted as well.
|
|
27
|
+
*/
|
|
28
|
+
mustBeAccepted: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IRequestItem extends ISerializable {
|
|
31
|
+
/**
|
|
32
|
+
* The human-readable title of this item.
|
|
33
|
+
*/
|
|
34
|
+
title?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The human-readable description of this item.
|
|
37
|
+
*/
|
|
38
|
+
description?: string;
|
|
39
|
+
/**
|
|
40
|
+
* This property can be used to add some arbitrary metadata to this item. The content
|
|
41
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
42
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
43
|
+
*/
|
|
44
|
+
responseMetadata?: object;
|
|
45
|
+
/**
|
|
46
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
47
|
+
* Request.
|
|
48
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
49
|
+
*
|
|
50
|
+
* Caution: this setting does not take effect in case it is inside of a
|
|
51
|
+
* {@link RequestItemGroup RequestItemGroup}, which is not accepted by the recipient,
|
|
52
|
+
* since a {@link RequestItem RequestItem} can only be accepted if the parent group
|
|
53
|
+
* is accepted as well.
|
|
54
|
+
*/
|
|
55
|
+
mustBeAccepted: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare abstract class RequestItem extends Serializable {
|
|
58
|
+
title?: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
mustBeAccepted: boolean;
|
|
61
|
+
responseMetadata?: object;
|
|
62
|
+
}
|
|
@@ -9,31 +9,29 @@ 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.RequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
static from(value) {
|
|
17
|
-
return super.from(value);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
14
|
+
class RequestItem extends ts_serval_1.Serializable {
|
|
15
|
+
}
|
|
20
16
|
__decorate([
|
|
21
17
|
(0, ts_serval_1.serialize)(),
|
|
22
|
-
(0, ts_serval_1.validate)(),
|
|
18
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
23
19
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
20
|
+
], RequestItem.prototype, "title", void 0);
|
|
25
21
|
__decorate([
|
|
26
22
|
(0, ts_serval_1.serialize)(),
|
|
27
|
-
(0, ts_serval_1.validate)(),
|
|
23
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
28
24
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
25
|
+
], RequestItem.prototype, "description", void 0);
|
|
30
26
|
__decorate([
|
|
31
27
|
(0, ts_serval_1.serialize)(),
|
|
32
28
|
(0, ts_serval_1.validate)(),
|
|
33
|
-
__metadata("design:type",
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
(0, ts_serval_1.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], RequestItem.prototype, "mustBeAccepted", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, ts_serval_1.serialize)(),
|
|
33
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], RequestItem.prototype, "responseMetadata", void 0);
|
|
36
|
+
exports.RequestItem = RequestItem;
|
|
37
|
+
//# sourceMappingURL=RequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AAiErF,MAAsB,WAAY,SAAQ,wBAAY;CAgBrD;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACG;AAfpC,kCAgBC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
|
|
4
|
+
/**
|
|
5
|
+
* A RequestItemGroup can be used to group one or more {@link RequestItemJSON RequestItems}. This is useful
|
|
6
|
+
* if you want to
|
|
7
|
+
* * make sure that the items in the group can only be accepted together
|
|
8
|
+
*
|
|
9
|
+
* Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
|
|
10
|
+
* Request where the latter one targets an attribute created by the first one, it it should be impossible to
|
|
11
|
+
* reject the first item, while accepting the second one.
|
|
12
|
+
* * visually group items on the UI and give the a common title/description
|
|
13
|
+
*/
|
|
14
|
+
export interface RequestItemGroupJSON extends ContentJSON {
|
|
15
|
+
/**
|
|
16
|
+
* The human-readable title of this group.
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The human-readable description of this group.
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
25
|
+
* Request.
|
|
26
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
27
|
+
*/
|
|
28
|
+
mustBeAccepted: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* This property can be used to add some arbitrary metadata to this group. The content
|
|
31
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
32
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
33
|
+
*/
|
|
34
|
+
responseMetadata?: object;
|
|
35
|
+
/**
|
|
36
|
+
* The items of this group.
|
|
37
|
+
*/
|
|
38
|
+
items: RequestItemJSON[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A RequestItemGroup can be used to group one or more {@link RequestItem RequestItems}. This is useful
|
|
42
|
+
* if you want to
|
|
43
|
+
* * make sure that the items in the group can only be accepted together
|
|
44
|
+
*
|
|
45
|
+
* Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
|
|
46
|
+
* Request where the latter one targets an attribute created by the first one, it it should be impossible to
|
|
47
|
+
* reject the first item, while accepting the second one.
|
|
48
|
+
* * visually group items on the UI and give the a common title/description
|
|
49
|
+
*/
|
|
50
|
+
export interface IRequestItemGroup extends ISerializable {
|
|
51
|
+
/**
|
|
52
|
+
* The human-readable title of this group.
|
|
53
|
+
*/
|
|
54
|
+
title?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The human-readable description of this group.
|
|
57
|
+
*/
|
|
58
|
+
description?: string;
|
|
59
|
+
/**
|
|
60
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
61
|
+
* Request.
|
|
62
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
63
|
+
*/
|
|
64
|
+
mustBeAccepted: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* This property can be used to add some arbitrary metadata to this group. The content
|
|
67
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
68
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
69
|
+
*/
|
|
70
|
+
responseMetadata?: object;
|
|
71
|
+
/**
|
|
72
|
+
* The items of this group.
|
|
73
|
+
*/
|
|
74
|
+
items: IRequestItem[];
|
|
75
|
+
}
|
|
76
|
+
export declare class RequestItemGroup extends Serializable {
|
|
77
|
+
title?: string;
|
|
78
|
+
description?: string;
|
|
79
|
+
mustBeAccepted: boolean;
|
|
80
|
+
items: RequestItem[];
|
|
81
|
+
responseMetadata?: object;
|
|
82
|
+
static from(value: IRequestItemGroup | RequestItemGroupJSON): RequestItemGroup;
|
|
83
|
+
protected static postFrom<T extends Serializable>(value: T): T;
|
|
84
|
+
}
|
|
@@ -8,57 +8,50 @@ 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 RequestItemGroup_1;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
+
exports.RequestItemGroup = void 0;
|
|
13
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
|
|
15
|
-
let Address = class Address extends Attribute_1.Attribute {
|
|
15
|
+
let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.Serializable {
|
|
16
16
|
static from(value) {
|
|
17
|
-
return
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
static postFrom(value) {
|
|
20
|
+
if (!(value instanceof RequestItemGroup_1))
|
|
21
|
+
throw new Error("this should never happen");
|
|
22
|
+
if (value.mustBeAccepted && value.items.every((item) => !item.mustBeAccepted)) {
|
|
23
|
+
throw new ts_serval_1.ValidationError("RequestItemGroup", "mustBeAccepted", "mustBeAccepted can only be true if at least one item is flagged as mustBeAccepted");
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
18
26
|
}
|
|
19
27
|
};
|
|
20
28
|
__decorate([
|
|
21
29
|
(0, ts_serval_1.serialize)(),
|
|
22
|
-
(0, ts_serval_1.validate)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Address.prototype, "street", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, ts_serval_1.serialize)(),
|
|
27
|
-
(0, ts_serval_1.validate)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], Address.prototype, "houseNo", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, ts_serval_1.serialize)(),
|
|
32
|
-
(0, ts_serval_1.validate)(),
|
|
30
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
33
31
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
32
|
+
], RequestItemGroup.prototype, "title", void 0);
|
|
35
33
|
__decorate([
|
|
36
34
|
(0, ts_serval_1.serialize)(),
|
|
37
|
-
(0, ts_serval_1.validate)(),
|
|
35
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
36
|
__metadata("design:type", String)
|
|
39
|
-
],
|
|
37
|
+
], RequestItemGroup.prototype, "description", void 0);
|
|
40
38
|
__decorate([
|
|
41
39
|
(0, ts_serval_1.serialize)(),
|
|
42
40
|
(0, ts_serval_1.validate)(),
|
|
43
|
-
__metadata("design:type",
|
|
44
|
-
],
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, ts_serval_1.serialize)(),
|
|
47
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], Address.prototype, "title", void 0);
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], RequestItemGroup.prototype, "mustBeAccepted", void 0);
|
|
50
43
|
__decorate([
|
|
51
44
|
(0, ts_serval_1.serialize)(),
|
|
52
|
-
(0, ts_serval_1.validate)({
|
|
53
|
-
__metadata("design:type",
|
|
54
|
-
],
|
|
45
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], RequestItemGroup.prototype, "items", void 0);
|
|
55
48
|
__decorate([
|
|
56
49
|
(0, ts_serval_1.serialize)(),
|
|
57
50
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
58
|
-
__metadata("design:type",
|
|
59
|
-
],
|
|
60
|
-
|
|
61
|
-
(0, ts_serval_1.type)("
|
|
62
|
-
],
|
|
63
|
-
exports.
|
|
64
|
-
//# sourceMappingURL=
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], RequestItemGroup.prototype, "responseMetadata", void 0);
|
|
53
|
+
RequestItemGroup = RequestItemGroup_1 = __decorate([
|
|
54
|
+
(0, ts_serval_1.type)("RequestItemGroup")
|
|
55
|
+
], RequestItemGroup);
|
|
56
|
+
exports.RequestItemGroup = RequestItemGroup;
|
|
57
|
+
//# sourceMappingURL=RequestItemGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA4G;AAuF5G,IAAa,gBAAgB,wBAA7B,MAAa,gBAAiB,SAAQ,wBAAY;IAqBvC,MAAM,CAAC,IAAI,CAAC,KAA+C;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,kBAAgB,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAErF,IAAI,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;YAC3E,MAAM,IAAI,2BAAe,CACrB,kBAAkB,EAClB,gBAAgB,EAChB,mFAAmF,CACtF,CAAA;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;CACJ,CAAA;AAnCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;+CAC3D;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACG;AAnBvB,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAsC5B;AAtCY,4CAAgB"}
|