@nmshd/content 2.0.0-beta.3 → 2.0.0-beta.30

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.
Files changed (380) hide show
  1. package/dist/attributes/AbstractAttribute.js.map +1 -1
  2. package/dist/attributes/AbstractAttributeQuery.d.ts +0 -3
  3. package/dist/attributes/AbstractAttributeQuery.js +0 -7
  4. package/dist/attributes/AbstractAttributeQuery.js.map +1 -1
  5. package/dist/attributes/Attribute.d.ts +2 -2
  6. package/dist/attributes/Attribute.js +0 -8
  7. package/dist/attributes/Attribute.js.map +1 -1
  8. package/dist/attributes/AttributeValueTypes.d.ts +47 -0
  9. package/dist/attributes/AttributeValueTypes.js +139 -0
  10. package/dist/attributes/AttributeValueTypes.js.map +1 -0
  11. package/dist/attributes/IdentityAttribute.d.ts +7 -6
  12. package/dist/attributes/IdentityAttribute.js +4 -4
  13. package/dist/attributes/IdentityAttribute.js.map +1 -1
  14. package/dist/attributes/IdentityAttributeQuery.d.ts +6 -1
  15. package/dist/attributes/IdentityAttributeQuery.js +12 -2
  16. package/dist/attributes/IdentityAttributeQuery.js.map +1 -1
  17. package/dist/attributes/RelationshipAttribute.d.ts +8 -36
  18. package/dist/attributes/RelationshipAttribute.js +8 -38
  19. package/dist/attributes/RelationshipAttribute.js.map +1 -1
  20. package/dist/attributes/RelationshipAttributeConfidentiality.d.ts +30 -0
  21. package/dist/attributes/RelationshipAttributeConfidentiality.js +35 -0
  22. package/dist/attributes/RelationshipAttributeConfidentiality.js.map +1 -0
  23. package/dist/attributes/RelationshipAttributeQuery.d.ts +37 -5
  24. package/dist/attributes/RelationshipAttributeQuery.js +64 -10
  25. package/dist/attributes/RelationshipAttributeQuery.js.map +1 -1
  26. package/dist/attributes/ThirdPartyRelationshipAttributeQuery.d.ts +20 -0
  27. package/dist/attributes/ThirdPartyRelationshipAttributeQuery.js +43 -0
  28. package/dist/attributes/ThirdPartyRelationshipAttributeQuery.js.map +1 -0
  29. package/dist/attributes/constants/AttributeValueTypeQueryMapping.d.ts +1 -0
  30. package/dist/attributes/constants/AttributeValueTypeQueryMapping.js +7 -0
  31. package/dist/attributes/constants/AttributeValueTypeQueryMapping.js.map +1 -0
  32. package/dist/attributes/constants/index.d.ts +1 -0
  33. package/dist/attributes/constants/index.js +1 -0
  34. package/dist/attributes/constants/index.js.map +1 -1
  35. package/dist/attributes/hints/RenderHints.d.ts +2 -1
  36. package/dist/attributes/hints/RenderHints.js.map +1 -1
  37. package/dist/attributes/hints/ValueHints.d.ts +1 -0
  38. package/dist/attributes/hints/ValueHints.js.map +1 -1
  39. package/dist/attributes/hints/ValueHintsValue.js.map +1 -1
  40. package/dist/attributes/hints/index.d.ts +0 -1
  41. package/dist/attributes/hints/index.js +0 -1
  42. package/dist/attributes/hints/index.js.map +1 -1
  43. package/dist/attributes/index.d.ts +3 -0
  44. package/dist/attributes/index.js +3 -0
  45. package/dist/attributes/index.js.map +1 -1
  46. package/dist/attributes/types/AbstractBoolean.js.map +1 -1
  47. package/dist/attributes/types/AbstractFloat.js.map +1 -1
  48. package/dist/attributes/types/AbstractInteger.d.ts +0 -1
  49. package/dist/attributes/types/AbstractInteger.js +0 -3
  50. package/dist/attributes/types/AbstractInteger.js.map +1 -1
  51. package/dist/attributes/types/AbstractString.js +2 -2
  52. package/dist/attributes/types/AbstractString.js.map +1 -1
  53. package/dist/attributes/types/address/AbstractAddress.js.map +1 -1
  54. package/dist/attributes/types/address/City.d.ts +8 -2
  55. package/dist/attributes/types/address/City.js +3 -0
  56. package/dist/attributes/types/address/City.js.map +1 -1
  57. package/dist/attributes/types/address/Country.d.ts +9 -2
  58. package/dist/attributes/types/address/Country.js +5 -2
  59. package/dist/attributes/types/address/Country.js.map +1 -1
  60. package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +15 -14
  61. package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -1
  62. package/dist/attributes/types/address/HouseNumber.d.ts +9 -2
  63. package/dist/attributes/types/address/HouseNumber.js +6 -0
  64. package/dist/attributes/types/address/HouseNumber.js.map +1 -1
  65. package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +8 -7
  66. package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -1
  67. package/dist/attributes/types/address/State.d.ts +8 -2
  68. package/dist/attributes/types/address/State.js +3 -0
  69. package/dist/attributes/types/address/State.js.map +1 -1
  70. package/dist/attributes/types/address/Street.d.ts +9 -2
  71. package/dist/attributes/types/address/Street.js +6 -0
  72. package/dist/attributes/types/address/Street.js.map +1 -1
  73. package/dist/attributes/types/address/StreetAddress.d.ts +22 -21
  74. package/dist/attributes/types/address/StreetAddress.js.map +1 -1
  75. package/dist/attributes/types/address/ZipCode.d.ts +9 -2
  76. package/dist/attributes/types/address/ZipCode.js +6 -0
  77. package/dist/attributes/types/address/ZipCode.js.map +1 -1
  78. package/dist/attributes/types/{name/LegalNameDE.d.ts → affiliation/Affiliation.d.ts} +35 -604
  79. package/dist/attributes/types/affiliation/Affiliation.js +77 -0
  80. package/dist/attributes/types/affiliation/Affiliation.js.map +1 -0
  81. package/dist/attributes/types/affiliation/AffiliationOrganization.d.ts +10 -0
  82. package/dist/attributes/types/affiliation/AffiliationOrganization.js +24 -0
  83. package/dist/attributes/types/affiliation/AffiliationOrganization.js.map +1 -0
  84. package/dist/attributes/types/affiliation/AffiliationRole.d.ts +10 -0
  85. package/dist/attributes/types/affiliation/AffiliationRole.js +24 -0
  86. package/dist/attributes/types/affiliation/AffiliationRole.js.map +1 -0
  87. package/dist/attributes/types/affiliation/AffiliationUnit.d.ts +10 -0
  88. package/dist/attributes/types/affiliation/AffiliationUnit.js +24 -0
  89. package/dist/attributes/types/affiliation/AffiliationUnit.js.map +1 -0
  90. package/dist/attributes/types/affiliation/index.d.ts +4 -0
  91. package/dist/attributes/types/affiliation/index.js +21 -0
  92. package/dist/attributes/types/affiliation/index.js.map +1 -0
  93. package/dist/attributes/types/birth/BirthCity.d.ts +9 -2
  94. package/dist/attributes/types/birth/BirthCity.js +8 -2
  95. package/dist/attributes/types/birth/BirthCity.js.map +1 -1
  96. package/dist/attributes/types/birth/BirthCountry.d.ts +9 -2
  97. package/dist/attributes/types/birth/BirthCountry.js +8 -2
  98. package/dist/attributes/types/birth/BirthCountry.js.map +1 -1
  99. package/dist/attributes/types/birth/BirthDate.d.ts +22 -21
  100. package/dist/attributes/types/birth/BirthDate.js.map +1 -1
  101. package/dist/attributes/types/birth/BirthDay.d.ts +9 -2
  102. package/dist/attributes/types/birth/BirthDay.js +8 -2
  103. package/dist/attributes/types/birth/BirthDay.js.map +1 -1
  104. package/dist/attributes/types/birth/BirthMonth.d.ts +9 -2
  105. package/dist/attributes/types/birth/BirthMonth.js +6 -0
  106. package/dist/attributes/types/birth/BirthMonth.js.map +1 -1
  107. package/dist/attributes/types/birth/BirthPlace.d.ts +22 -21
  108. package/dist/attributes/types/birth/BirthPlace.js.map +1 -1
  109. package/dist/attributes/types/birth/BirthState.d.ts +9 -2
  110. package/dist/attributes/types/birth/BirthState.js +8 -2
  111. package/dist/attributes/types/birth/BirthState.js.map +1 -1
  112. package/dist/attributes/types/birth/BirthYear.d.ts +10 -2
  113. package/dist/attributes/types/birth/BirthYear.js +8 -2
  114. package/dist/attributes/types/birth/BirthYear.js.map +1 -1
  115. package/dist/attributes/types/communication/CommunicationLanguage.d.ts +9 -1
  116. package/dist/attributes/types/communication/CommunicationLanguage.js +6 -0
  117. package/dist/attributes/types/communication/CommunicationLanguage.js.map +1 -1
  118. package/dist/attributes/types/communication/EMailAddress.d.ts +9 -1
  119. package/dist/attributes/types/communication/EMailAddress.js +6 -0
  120. package/dist/attributes/types/communication/EMailAddress.js.map +1 -1
  121. package/dist/attributes/types/communication/Fax.d.ts +10 -2
  122. package/dist/attributes/types/communication/Fax.js +8 -2
  123. package/dist/attributes/types/communication/Fax.js.map +1 -1
  124. package/dist/attributes/types/communication/Phone.d.ts +10 -2
  125. package/dist/attributes/types/communication/Phone.js +8 -2
  126. package/dist/attributes/types/communication/Phone.js.map +1 -1
  127. package/dist/attributes/types/communication/Website.d.ts +9 -1
  128. package/dist/attributes/types/communication/Website.js +6 -0
  129. package/dist/attributes/types/communication/Website.js.map +1 -1
  130. package/dist/attributes/types/dates/AbstractDateString.js.map +1 -1
  131. package/dist/attributes/types/dates/AbstractDay.d.ts +8 -1
  132. package/dist/attributes/types/dates/AbstractDay.js.map +1 -1
  133. package/dist/attributes/types/dates/AbstractMonth.d.ts +8 -1
  134. package/dist/attributes/types/dates/AbstractMonth.js.map +1 -1
  135. package/dist/attributes/types/dates/AbstractYear.js.map +1 -1
  136. package/dist/attributes/types/identity/DisplayName.d.ts +10 -0
  137. package/dist/attributes/types/{name → identity}/DisplayName.js +6 -0
  138. package/dist/attributes/types/identity/DisplayName.js.map +1 -0
  139. package/dist/attributes/types/identity/FileReference.d.ts +11 -0
  140. package/dist/attributes/types/{files → identity}/FileReference.js +6 -0
  141. package/dist/attributes/types/identity/FileReference.js.map +1 -0
  142. package/dist/attributes/types/{files → identity}/index.d.ts +1 -0
  143. package/dist/attributes/types/{files → identity}/index.js +1 -0
  144. package/dist/attributes/types/identity/index.js.map +1 -0
  145. package/dist/attributes/types/index.d.ts +2 -3
  146. package/dist/attributes/types/index.js +2 -3
  147. package/dist/attributes/types/index.js.map +1 -1
  148. package/dist/attributes/types/measurements/AbstractLengthMeasurement.js.map +1 -1
  149. package/dist/attributes/types/measurements/AbstractMeasurement.js.map +1 -1
  150. package/dist/attributes/types/name/BirthName.d.ts +9 -2
  151. package/dist/attributes/types/name/BirthName.js +6 -0
  152. package/dist/attributes/types/name/BirthName.js.map +1 -1
  153. package/dist/attributes/types/name/GivenName.d.ts +9 -2
  154. package/dist/attributes/types/name/GivenName.js +6 -0
  155. package/dist/attributes/types/name/GivenName.js.map +1 -1
  156. package/dist/attributes/types/name/HonorificPrefix.js.map +1 -1
  157. package/dist/attributes/types/name/HonorificSuffix.js.map +1 -1
  158. package/dist/attributes/types/name/MiddleName.d.ts +3 -0
  159. package/dist/attributes/types/{person/Picture.js → name/MiddleName.js} +8 -8
  160. package/dist/attributes/types/name/MiddleName.js.map +1 -0
  161. package/dist/attributes/types/name/{Salutation.d.ts → PersonName.d.ts} +24 -29
  162. package/dist/attributes/types/name/{Salutation.js → PersonName.js} +32 -23
  163. package/dist/attributes/types/name/PersonName.js.map +1 -0
  164. package/dist/attributes/types/name/Pseudonym.d.ts +9 -2
  165. package/dist/attributes/types/name/Pseudonym.js +6 -0
  166. package/dist/attributes/types/name/Pseudonym.js.map +1 -1
  167. package/dist/attributes/types/name/Surname.js.map +1 -1
  168. package/dist/attributes/types/name/index.d.ts +2 -4
  169. package/dist/attributes/types/name/index.js +2 -4
  170. package/dist/attributes/types/name/index.js.map +1 -1
  171. package/dist/attributes/types/person/Citizenship.d.ts +10 -2
  172. package/dist/attributes/types/person/Citizenship.js +8 -2
  173. package/dist/attributes/types/person/Citizenship.js.map +1 -1
  174. package/dist/attributes/types/person/JobTitle.d.ts +10 -0
  175. package/dist/attributes/types/person/JobTitle.js +24 -0
  176. package/dist/attributes/types/person/JobTitle.js.map +1 -0
  177. package/dist/attributes/types/person/Nationality.d.ts +10 -2
  178. package/dist/attributes/types/person/Nationality.js +8 -2
  179. package/dist/attributes/types/person/Nationality.js.map +1 -1
  180. package/dist/attributes/types/person/Sex.d.ts +10 -3
  181. package/dist/attributes/types/person/Sex.js +8 -2
  182. package/dist/attributes/types/person/Sex.js.map +1 -1
  183. package/dist/attributes/types/person/index.d.ts +1 -2
  184. package/dist/attributes/types/person/index.js +1 -2
  185. package/dist/attributes/types/person/index.js.map +1 -1
  186. package/dist/attributes/types/proprietary/ProprietaryBoolean.d.ts +4 -1
  187. package/dist/attributes/types/proprietary/ProprietaryBoolean.js +6 -0
  188. package/dist/attributes/types/proprietary/ProprietaryBoolean.js.map +1 -1
  189. package/dist/attributes/types/proprietary/ProprietaryCountry.d.ts +3 -0
  190. package/dist/attributes/types/proprietary/ProprietaryCountry.js +6 -0
  191. package/dist/attributes/types/proprietary/ProprietaryCountry.js.map +1 -1
  192. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.d.ts +3 -0
  193. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js +6 -0
  194. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js.map +1 -1
  195. package/dist/attributes/types/proprietary/ProprietaryFileReference.d.ts +3 -0
  196. package/dist/attributes/types/proprietary/ProprietaryFileReference.js +6 -0
  197. package/dist/attributes/types/proprietary/ProprietaryFileReference.js.map +1 -1
  198. package/dist/attributes/types/proprietary/ProprietaryFloat.d.ts +3 -0
  199. package/dist/attributes/types/proprietary/ProprietaryFloat.js +6 -0
  200. package/dist/attributes/types/proprietary/ProprietaryFloat.js.map +1 -1
  201. package/dist/attributes/types/proprietary/ProprietaryHEXColor.d.ts +3 -0
  202. package/dist/attributes/types/proprietary/ProprietaryHEXColor.js +6 -0
  203. package/dist/attributes/types/proprietary/ProprietaryHEXColor.js.map +1 -1
  204. package/dist/attributes/types/proprietary/ProprietaryInteger.d.ts +3 -1
  205. package/dist/attributes/types/proprietary/ProprietaryInteger.js +3 -0
  206. package/dist/attributes/types/proprietary/ProprietaryInteger.js.map +1 -1
  207. package/dist/attributes/types/proprietary/ProprietaryLanguage.d.ts +3 -0
  208. package/dist/attributes/types/proprietary/ProprietaryLanguage.js +6 -0
  209. package/dist/attributes/types/proprietary/ProprietaryLanguage.js.map +1 -1
  210. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.d.ts +3 -0
  211. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js +6 -0
  212. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js.map +1 -1
  213. package/dist/attributes/types/proprietary/ProprietaryString.d.ts +3 -0
  214. package/dist/attributes/types/proprietary/ProprietaryString.js +6 -0
  215. package/dist/attributes/types/proprietary/ProprietaryString.js.map +1 -1
  216. package/dist/attributes/types/proprietary/ProprietaryURL.d.ts +3 -0
  217. package/dist/attributes/types/proprietary/ProprietaryURL.js +6 -0
  218. package/dist/attributes/types/proprietary/ProprietaryURL.js.map +1 -1
  219. package/dist/attributes/types/proprietary/index.d.ts +0 -1
  220. package/dist/attributes/types/proprietary/index.js +0 -1
  221. package/dist/attributes/types/proprietary/index.js.map +1 -1
  222. package/dist/attributes/types/strings/AbstractCountry.js.map +1 -1
  223. package/dist/attributes/types/strings/AbstractEMailAddress.js +2 -2
  224. package/dist/attributes/types/strings/AbstractEMailAddress.js.map +1 -1
  225. package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -1
  226. package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -1
  227. package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -1
  228. package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -1
  229. package/dist/attributes/types/strings/AbstractURL.js.map +1 -1
  230. package/dist/attributes/types/strings/index.d.ts +0 -1
  231. package/dist/attributes/types/strings/index.js +0 -1
  232. package/dist/attributes/types/strings/index.js.map +1 -1
  233. package/dist/buildInformation.js +5 -5
  234. package/dist/forms/Form.d.ts +1 -0
  235. package/dist/forms/Form.js.map +1 -1
  236. package/dist/forms/FormItem.js.map +1 -1
  237. package/dist/forms/items/FormItemBoolean.d.ts +1 -0
  238. package/dist/forms/items/FormItemBoolean.js.map +1 -1
  239. package/dist/forms/items/FormItemDate.d.ts +1 -0
  240. package/dist/forms/items/FormItemDate.js.map +1 -1
  241. package/dist/forms/items/FormItemInvisible.js.map +1 -1
  242. package/dist/forms/items/FormItemMultipleChoice.d.ts +1 -0
  243. package/dist/forms/items/FormItemMultipleChoice.js.map +1 -1
  244. package/dist/forms/items/FormItemMultipleChoiceItem.d.ts +1 -0
  245. package/dist/forms/items/FormItemMultipleChoiceItem.js.map +1 -1
  246. package/dist/forms/items/FormItemSelect.d.ts +1 -0
  247. package/dist/forms/items/FormItemSelect.js.map +1 -1
  248. package/dist/forms/items/FormItemSelectItem.d.ts +1 -0
  249. package/dist/forms/items/FormItemSelectItem.js.map +1 -1
  250. package/dist/forms/items/FormItemString.d.ts +1 -0
  251. package/dist/forms/items/FormItemString.js.map +1 -1
  252. package/dist/forms/items/FormItemText.d.ts +1 -0
  253. package/dist/forms/items/FormItemText.js.map +1 -1
  254. package/dist/messages/Mail.d.ts +3 -2
  255. package/dist/messages/Mail.js +2 -8
  256. package/dist/messages/Mail.js.map +1 -1
  257. package/dist/messages/RequestMail.d.ts +21 -6
  258. package/dist/messages/RequestMail.js +24 -21
  259. package/dist/messages/RequestMail.js.map +1 -1
  260. package/dist/relationships/RelationshipCreationChangeRequestContent.d.ts +18 -0
  261. package/dist/relationships/{RelationshipCreationChangeRequestBody.js → RelationshipCreationChangeRequestContent.js} +12 -9
  262. package/dist/relationships/RelationshipCreationChangeRequestContent.js.map +1 -0
  263. package/dist/relationships/{RelationshipTemplateBody.d.ts → RelationshipTemplateContent.d.ts} +6 -4
  264. package/dist/relationships/{RelationshipTemplateBody.js → RelationshipTemplateContent.js} +14 -11
  265. package/dist/relationships/RelationshipTemplateContent.js.map +1 -0
  266. package/dist/relationships/index.d.ts +2 -2
  267. package/dist/relationships/index.js +2 -2
  268. package/dist/relationships/index.js.map +1 -1
  269. package/dist/requests/Request.d.ts +2 -1
  270. package/dist/requests/Request.js +2 -2
  271. package/dist/requests/Request.js.map +1 -1
  272. package/dist/requests/RequestItem.d.ts +18 -5
  273. package/dist/requests/RequestItem.js +7 -2
  274. package/dist/requests/RequestItem.js.map +1 -1
  275. package/dist/requests/RequestItemGroup.d.ts +4 -3
  276. package/dist/requests/RequestItemGroup.js +2 -2
  277. package/dist/requests/RequestItemGroup.js.map +1 -1
  278. package/dist/requests/items/authentication/AuthenticationRequestItem.d.ts +10 -0
  279. package/dist/requests/items/authentication/AuthenticationRequestItem.js +24 -0
  280. package/dist/requests/items/authentication/AuthenticationRequestItem.js.map +1 -0
  281. package/dist/requests/items/consent/ConsentRequestItem.d.ts +3 -4
  282. package/dist/requests/items/consent/ConsentRequestItem.js +8 -7
  283. package/dist/requests/items/consent/ConsentRequestItem.js.map +1 -1
  284. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeAcceptResponseItem.d.ts +2 -0
  285. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeAcceptResponseItem.js +3 -0
  286. package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js.map +1 -0
  287. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeRequestItem.d.ts +5 -7
  288. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeRequestItem.js +4 -7
  289. package/dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.js.map +1 -0
  290. package/dist/requests/items/index.d.ts +6 -2
  291. package/dist/requests/items/index.js +6 -2
  292. package/dist/requests/items/index.js.map +1 -1
  293. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.d.ts +2 -0
  294. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js +3 -0
  295. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js.map +1 -1
  296. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.d.ts +3 -1
  297. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +9 -4
  298. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js.map +1 -1
  299. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.d.ts +2 -0
  300. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js +3 -0
  301. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js.map +1 -1
  302. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +5 -4
  303. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js +5 -3
  304. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -1
  305. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.d.ts +13 -0
  306. package/dist/{attributes/types/proprietary/ProprietaryDataURL.js → requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js} +15 -14
  307. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js.map +1 -0
  308. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.d.ts +14 -0
  309. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js +35 -0
  310. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js.map +1 -0
  311. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.d.ts +14 -0
  312. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js +33 -0
  313. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js.map +1 -0
  314. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.d.ts +12 -8
  315. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js +9 -5
  316. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js.map +1 -1
  317. package/dist/requests/old/AttributesChangeRequest.d.ts +2 -2
  318. package/dist/requests/old/AttributesChangeRequest.js +0 -11
  319. package/dist/requests/old/AttributesChangeRequest.js.map +1 -1
  320. package/dist/requests/old/AttributesRequest.d.ts +2 -2
  321. package/dist/requests/old/AttributesRequest.js +0 -10
  322. package/dist/requests/old/AttributesRequest.js.map +1 -1
  323. package/dist/requests/old/AttributesShareRequest.d.ts +2 -1
  324. package/dist/requests/old/AttributesShareRequest.js.map +1 -1
  325. package/dist/requests/response/AcceptResponseItem.d.ts +5 -5
  326. package/dist/requests/response/AcceptResponseItem.js +2 -2
  327. package/dist/requests/response/AcceptResponseItem.js.map +1 -1
  328. package/dist/requests/response/ErrorResponseItem.d.ts +2 -1
  329. package/dist/requests/response/ErrorResponseItem.js +2 -2
  330. package/dist/requests/response/ErrorResponseItem.js.map +1 -1
  331. package/dist/requests/response/RejectResponseItem.d.ts +2 -1
  332. package/dist/requests/response/RejectResponseItem.js +2 -2
  333. package/dist/requests/response/RejectResponseItem.js.map +1 -1
  334. package/dist/requests/response/Response.d.ts +2 -1
  335. package/dist/requests/response/Response.js +2 -2
  336. package/dist/requests/response/Response.js.map +1 -1
  337. package/dist/requests/response/ResponseItem.d.ts +1 -1
  338. package/dist/requests/response/ResponseItem.js +2 -2
  339. package/dist/requests/response/ResponseItem.js.map +1 -1
  340. package/dist/requests/response/ResponseItemGroup.d.ts +2 -1
  341. package/dist/requests/response/ResponseItemGroup.js +2 -2
  342. package/dist/requests/response/ResponseItemGroup.js.map +1 -1
  343. package/lib-web/nmshd.content.js +4160 -4591
  344. package/lib-web/nmshd.content.min.js +1 -1
  345. package/package.json +17 -16
  346. package/dist/attributes/hints/RelationshipAttributeCreationHints.d.ts +0 -31
  347. package/dist/attributes/hints/RelationshipAttributeCreationHints.js +0 -64
  348. package/dist/attributes/hints/RelationshipAttributeCreationHints.js.map +0 -1
  349. package/dist/attributes/types/AttributeList.d.ts +0 -1
  350. package/dist/attributes/types/AttributeList.js +0 -37
  351. package/dist/attributes/types/AttributeList.js.map +0 -1
  352. package/dist/attributes/types/AttributeTypeMapping.d.ts +0 -1
  353. package/dist/attributes/types/AttributeTypeMapping.js +0 -9
  354. package/dist/attributes/types/AttributeTypeMapping.js.map +0 -1
  355. package/dist/attributes/types/files/FileReference.d.ts +0 -3
  356. package/dist/attributes/types/files/FileReference.js.map +0 -1
  357. package/dist/attributes/types/files/index.js.map +0 -1
  358. package/dist/attributes/types/name/AbstractLegalName.d.ts +0 -3
  359. package/dist/attributes/types/name/AbstractLegalName.js +0 -8
  360. package/dist/attributes/types/name/AbstractLegalName.js.map +0 -1
  361. package/dist/attributes/types/name/DisplayName.d.ts +0 -3
  362. package/dist/attributes/types/name/DisplayName.js.map +0 -1
  363. package/dist/attributes/types/name/LegalNameDE.js +0 -92
  364. package/dist/attributes/types/name/LegalNameDE.js.map +0 -1
  365. package/dist/attributes/types/name/Salutation.js.map +0 -1
  366. package/dist/attributes/types/person/Age.d.ts +0 -6
  367. package/dist/attributes/types/person/Age.js +0 -34
  368. package/dist/attributes/types/person/Age.js.map +0 -1
  369. package/dist/attributes/types/person/Picture.d.ts +0 -3
  370. package/dist/attributes/types/person/Picture.js.map +0 -1
  371. package/dist/attributes/types/proprietary/ProprietaryDataURL.d.ts +0 -14
  372. package/dist/attributes/types/proprietary/ProprietaryDataURL.js.map +0 -1
  373. package/dist/attributes/types/strings/AbstractDataURL.d.ts +0 -7
  374. package/dist/attributes/types/strings/AbstractDataURL.js +0 -40
  375. package/dist/attributes/types/strings/AbstractDataURL.js.map +0 -1
  376. package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +0 -16
  377. package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +0 -1
  378. package/dist/relationships/RelationshipTemplateBody.js.map +0 -1
  379. package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js.map +0 -1
  380. package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js.map +0 -1
@@ -2,6 +2,7 @@ import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { CoreAddress, ICoreAddress } from "@nmshd/transport";
3
3
  import { ContentJSON } from "../ContentJSON";
4
4
  export interface MailJSON extends ContentJSON {
5
+ "@type": "Mail";
5
6
  to: string[];
6
7
  cc?: string[];
7
8
  subject: string;
@@ -19,6 +20,6 @@ export declare class Mail extends Serializable implements IMail {
19
20
  subject: string;
20
21
  body: string;
21
22
  protected static preFrom(value: any): any;
22
- static from(value: IMail): Mail;
23
- static fromJSON(value: MailJSON): Mail;
23
+ static from(value: IMail | MailJSON): Mail;
24
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): MailJSON;
24
25
  }
@@ -26,14 +26,8 @@ let Mail = class Mail extends ts_serval_1.Serializable {
26
26
  static from(value) {
27
27
  return this.fromAny(value);
28
28
  }
29
- static fromJSON(value) {
30
- return this.from({
31
- body: value.body,
32
- subject: value.subject,
33
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
34
- to: value.to?.map((recipient) => transport_1.CoreAddress.from(recipient)),
35
- cc: value.cc?.map((recipient) => transport_1.CoreAddress.from(recipient))
36
- });
29
+ toJSON(verbose, serializeAsString) {
30
+ return super.toJSON(verbose, serializeAsString);
37
31
  }
38
32
  };
39
33
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"Mail.js","sourceRoot":"","sources":["../../src/messages/Mail.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA4D;AAiB5D,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,wBAAY;IAiBxB,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,IAAI,OAAO,KAAK,CAAC,EAAE,KAAK,WAAW,EAAE;YACjC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;SAChB;QAED,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,WAAW,IAAI,KAAK,CAAC,OAAO,EAAE;YACpD,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAA;YAC1B,OAAO,KAAK,CAAC,OAAO,CAAA;SACvB;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,KAAY;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAe;QAClC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,uEAAuE;YACvE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,uBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC7D,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,uBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAChE,CAAC,CAAA;IACN,CAAC;CACJ,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AC9B,CAAC;IAEe,MAAM,CAAC,OAA6B,EAAE,iBAAuC;QACzF,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAa,CAAA;IAC/D,CAAC;CACJ,CAAA;AApCG;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,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;;gCAC9D;AAExB;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gCACJ;AAEzB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qCACW;AAEtB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kCACQ;AAfV,IAAI;IADhB,IAAA,gBAAI,EAAC,MAAM,CAAC;GACA,IAAI,CAqChB;AArCY,oBAAI"}
@@ -1,14 +1,29 @@
1
+ import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
+ import { CoreAddress, ICoreAddress } from "@nmshd/transport";
3
+ import { ContentJSON } from "../ContentJSON";
1
4
  import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/old/AttributesChangeRequest";
2
5
  import { AttributesShareRequest, AttributesShareRequestJSON, IAttributesShareRequest } from "../requests/old/AttributesShareRequest";
3
- import { IMail, Mail, MailJSON } from "./Mail";
4
- export interface RequestMailJSON extends MailJSON {
6
+ export interface RequestMailJSON extends ContentJSON {
7
+ "@type": "RequestMail";
8
+ to: string[];
9
+ cc?: string[];
10
+ subject: string;
11
+ body: string;
5
12
  requests: (AttributesChangeRequestJSON | AttributesShareRequestJSON)[];
6
13
  }
7
- export interface IRequestMail extends IMail {
14
+ export interface IRequestMail extends ISerializable {
15
+ to: ICoreAddress[];
16
+ cc?: ICoreAddress[];
17
+ subject: string;
18
+ body: string;
8
19
  requests: (IAttributesChangeRequest | IAttributesShareRequest)[];
9
20
  }
10
- export declare class RequestMail extends Mail {
21
+ export declare class RequestMail extends Serializable implements IRequestMail {
22
+ to: CoreAddress[];
23
+ cc?: CoreAddress[];
24
+ subject: string;
25
+ body: string;
11
26
  requests: (AttributesChangeRequest | AttributesShareRequest)[];
12
- static from(value: IRequestMail): RequestMail;
13
- static fromJSON(value: RequestMailJSON): RequestMail;
27
+ static from(value: IRequestMail | RequestMailJSON): RequestMail;
28
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RequestMailJSON;
14
29
  }
@@ -11,37 +11,40 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RequestMail = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const transport_1 = require("@nmshd/transport");
14
15
  const AttributesChangeRequest_1 = require("../requests/old/AttributesChangeRequest");
15
16
  const AttributesShareRequest_1 = require("../requests/old/AttributesShareRequest");
16
- const Mail_1 = require("./Mail");
17
- let RequestMail = class RequestMail extends Mail_1.Mail {
17
+ let RequestMail = class RequestMail extends ts_serval_1.Serializable {
18
18
  static from(value) {
19
19
  return this.fromAny(value);
20
20
  }
21
- static fromJSON(value) {
22
- const mail = Mail_1.Mail.fromJSON(value);
23
- const requests = value.requests.map((request) => {
24
- switch (request["@type"]) {
25
- case "AttributesChangeRequest":
26
- return AttributesChangeRequest_1.AttributesChangeRequest.fromAny(request);
27
- case "AttributesShareRequest":
28
- return AttributesShareRequest_1.AttributesShareRequest.fromAny(request);
29
- default:
30
- throw new Error(`Unknown request type: ${request["@type"]}`);
31
- }
32
- });
33
- return this.from({
34
- body: mail.body,
35
- subject: mail.subject,
36
- to: mail.to,
37
- cc: mail.cc,
38
- requests: requests
39
- });
21
+ toJSON(verbose, serializeAsString) {
22
+ return super.toJSON(verbose, serializeAsString);
40
23
  }
41
24
  };
25
+ __decorate([
26
+ (0, ts_serval_1.serialize)({ type: transport_1.CoreAddress }),
27
+ (0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
28
+ __metadata("design:type", Array)
29
+ ], RequestMail.prototype, "to", void 0);
30
+ __decorate([
31
+ (0, ts_serval_1.serialize)({ type: transport_1.CoreAddress }),
32
+ (0, ts_serval_1.validate)({ nullable: true }),
33
+ __metadata("design:type", Array)
34
+ ], RequestMail.prototype, "cc", void 0);
42
35
  __decorate([
43
36
  (0, ts_serval_1.serialize)(),
44
37
  (0, ts_serval_1.validate)(),
38
+ __metadata("design:type", String)
39
+ ], RequestMail.prototype, "subject", void 0);
40
+ __decorate([
41
+ (0, ts_serval_1.serialize)(),
42
+ (0, ts_serval_1.validate)(),
43
+ __metadata("design:type", String)
44
+ ], RequestMail.prototype, "body", void 0);
45
+ __decorate([
46
+ (0, ts_serval_1.serialize)({ unionTypes: [AttributesChangeRequest_1.AttributesChangeRequest, AttributesShareRequest_1.AttributesShareRequest] }),
47
+ (0, ts_serval_1.validate)(),
45
48
  __metadata("design:type", Array)
46
49
  ], RequestMail.prototype, "requests", void 0);
47
50
  RequestMail = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"RequestMail.js","sourceRoot":"","sources":["../../src/messages/RequestMail.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qFAIgD;AAChD,mFAI+C;AAC/C,iCAA8C;AAW9C,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,WAAI;IAK1B,MAAM,CAAU,IAAI,CAAC,KAAmB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,CAAU,QAAQ,CAAC,KAAsB;QAClD,MAAM,IAAI,GAAS,WAAI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AO,EAAE,iBAAiB,CAAoB,CAAA;IACtE,CAAC;CACJ,CAAA;AA3BG;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,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;;uCAC9D;AAExB;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACJ;AAEzB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;4CACW;AAEtB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;yCACQ;AAEnB;IAAC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,iDAAuB,EAAE,+CAAsB,CAAC,EAAE,CAAC;IAC5E,IAAA,oBAAQ,GAAE;;6CAC0D;AAnB5D,WAAW;IADvB,IAAA,gBAAI,EAAC,aAAa,CAAC;GACP,WAAW,CA4BvB;AA5BY,kCAAW"}
@@ -0,0 +1,18 @@
1
+ import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
+ import { ContentJSON } from "../ContentJSON";
3
+ import { IResponse, Response, ResponseJSON } from "../requests/response/Response";
4
+ export interface RelationshipCreationChangeRequestContentJSON extends ContentJSON {
5
+ "@type": "RelationshipCreationChangeRequestContent";
6
+ templateContentMetadata?: object;
7
+ response: ResponseJSON;
8
+ }
9
+ export interface IRelationshipCreationChangeRequestContent extends ISerializable {
10
+ templateContentMetadata?: object;
11
+ response: IResponse;
12
+ }
13
+ export declare class RelationshipCreationChangeRequestContent extends Serializable implements IRelationshipCreationChangeRequestContent {
14
+ templateContentMetadata?: object;
15
+ response: Response;
16
+ static from(value: IRelationshipCreationChangeRequestContent | RelationshipCreationChangeRequestContentJSON): RelationshipCreationChangeRequestContent;
17
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RelationshipCreationChangeRequestContentJSON;
18
+ }
@@ -9,26 +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.RelationshipCreationChangeRequestBody = void 0;
12
+ exports.RelationshipCreationChangeRequestContent = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const Response_1 = require("../requests/response/Response");
15
- let RelationshipCreationChangeRequestBody = class RelationshipCreationChangeRequestBody extends ts_serval_1.Serializable {
15
+ let RelationshipCreationChangeRequestContent = class RelationshipCreationChangeRequestContent extends ts_serval_1.Serializable {
16
16
  static from(value) {
17
17
  return this.fromAny(value);
18
18
  }
19
+ toJSON(verbose, serializeAsString) {
20
+ return super.toJSON(verbose, serializeAsString);
21
+ }
19
22
  };
20
23
  __decorate([
21
24
  (0, ts_serval_1.serialize)(),
22
25
  (0, ts_serval_1.validate)({ nullable: true }),
23
26
  __metadata("design:type", Object)
24
- ], RelationshipCreationChangeRequestBody.prototype, "templateContentMetadata", void 0);
27
+ ], RelationshipCreationChangeRequestContent.prototype, "templateContentMetadata", void 0);
25
28
  __decorate([
26
29
  (0, ts_serval_1.serialize)(),
27
30
  (0, ts_serval_1.validate)(),
28
31
  __metadata("design:type", Response_1.Response)
29
- ], RelationshipCreationChangeRequestBody.prototype, "response", void 0);
30
- RelationshipCreationChangeRequestBody = __decorate([
31
- (0, ts_serval_1.type)("RelationshipCreationChangeRequestBody")
32
- ], RelationshipCreationChangeRequestBody);
33
- exports.RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody;
34
- //# sourceMappingURL=RelationshipCreationChangeRequestBody.js.map
32
+ ], RelationshipCreationChangeRequestContent.prototype, "response", void 0);
33
+ RelationshipCreationChangeRequestContent = __decorate([
34
+ (0, ts_serval_1.type)("RelationshipCreationChangeRequestContent")
35
+ ], RelationshipCreationChangeRequestContent);
36
+ exports.RelationshipCreationChangeRequestContent = RelationshipCreationChangeRequestContent;
37
+ //# sourceMappingURL=RelationshipCreationChangeRequestContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipCreationChangeRequestContent.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestContent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,4DAAiF;AAc1E,IAAM,wCAAwC,GAA9C,MAAM,wCACT,SAAQ,wBAAY;IAWb,MAAM,CAAC,IAAI,CACd,KAA+F;QAE/F,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAiD,CAAA;IACnG,CAAC;CACJ,CAAA;AApBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yFACU;AAEvC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,mBAAQ;0EAAA;AAVhB,wCAAwC;IADpD,IAAA,gBAAI,EAAC,0CAA0C,CAAC;GACpC,wCAAwC,CAwBpD;AAxBY,4FAAwC"}
@@ -1,22 +1,24 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { ContentJSON } from "../ContentJSON";
3
3
  import { IRequest, Request, RequestJSON } from "../requests/Request";
4
- export interface RelationshipTemplateBodyJSON extends ContentJSON {
4
+ export interface RelationshipTemplateContentJSON extends ContentJSON {
5
+ "@type": "RelationshipTemplateContent";
5
6
  title?: string;
6
7
  metadata?: object;
7
8
  onNewRelationship: RequestJSON;
8
9
  onExistingRelationship?: RequestJSON;
9
10
  }
10
- export interface IRelationshipTemplateBody extends ISerializable {
11
+ export interface IRelationshipTemplateContent extends ISerializable {
11
12
  title?: string;
12
13
  metadata?: object;
13
14
  onNewRelationship: IRequest;
14
15
  onExistingRelationship?: IRequest;
15
16
  }
16
- export declare class RelationshipTemplateBody extends Serializable implements IRelationshipTemplateBody {
17
+ export declare class RelationshipTemplateContent extends Serializable implements IRelationshipTemplateContent {
17
18
  title?: string;
18
19
  metadata?: object;
19
20
  onNewRelationship: Request;
20
21
  onExistingRelationship?: Request;
21
- static from(value: IRelationshipTemplateBody | RelationshipTemplateBodyJSON): RelationshipTemplateBody;
22
+ static from(value: IRelationshipTemplateContent | RelationshipTemplateContentJSON): RelationshipTemplateContent;
23
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RelationshipTemplateContentJSON;
22
24
  }
@@ -9,36 +9,39 @@ 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.RelationshipTemplateBody = void 0;
12
+ exports.RelationshipTemplateContent = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const Request_1 = require("../requests/Request");
15
- let RelationshipTemplateBody = class RelationshipTemplateBody extends ts_serval_1.Serializable {
15
+ let RelationshipTemplateContent = class RelationshipTemplateContent extends ts_serval_1.Serializable {
16
16
  static from(value) {
17
17
  return this.fromAny(value);
18
18
  }
19
+ toJSON(verbose, serializeAsString) {
20
+ return super.toJSON(verbose, serializeAsString);
21
+ }
19
22
  };
20
23
  __decorate([
21
24
  (0, ts_serval_1.serialize)(),
22
25
  (0, ts_serval_1.validate)({ nullable: true }),
23
26
  __metadata("design:type", String)
24
- ], RelationshipTemplateBody.prototype, "title", void 0);
27
+ ], RelationshipTemplateContent.prototype, "title", void 0);
25
28
  __decorate([
26
29
  (0, ts_serval_1.serialize)(),
27
30
  (0, ts_serval_1.validate)({ nullable: true }),
28
31
  __metadata("design:type", Object)
29
- ], RelationshipTemplateBody.prototype, "metadata", void 0);
32
+ ], RelationshipTemplateContent.prototype, "metadata", void 0);
30
33
  __decorate([
31
34
  (0, ts_serval_1.serialize)(),
32
35
  (0, ts_serval_1.validate)(),
33
36
  __metadata("design:type", Request_1.Request)
34
- ], RelationshipTemplateBody.prototype, "onNewRelationship", void 0);
37
+ ], RelationshipTemplateContent.prototype, "onNewRelationship", void 0);
35
38
  __decorate([
36
39
  (0, ts_serval_1.serialize)(),
37
40
  (0, ts_serval_1.validate)({ nullable: true }),
38
41
  __metadata("design:type", Request_1.Request)
39
- ], RelationshipTemplateBody.prototype, "onExistingRelationship", void 0);
40
- RelationshipTemplateBody = __decorate([
41
- (0, ts_serval_1.type)("RelationshipTemplateBody")
42
- ], RelationshipTemplateBody);
43
- exports.RelationshipTemplateBody = RelationshipTemplateBody;
44
- //# sourceMappingURL=RelationshipTemplateBody.js.map
42
+ ], RelationshipTemplateContent.prototype, "onExistingRelationship", void 0);
43
+ RelationshipTemplateContent = __decorate([
44
+ (0, ts_serval_1.type)("RelationshipTemplateContent")
45
+ ], RelationshipTemplateContent);
46
+ exports.RelationshipTemplateContent = RelationshipTemplateContent;
47
+ //# sourceMappingURL=RelationshipTemplateContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipTemplateContent.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateContent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,iDAAoE;AAkB7D,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,wBAAY;IAiBlD,MAAM,CAAC,IAAI,CACd,KAAqE;QAErE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAoC,CAAA;IACtF,CAAC;CACJ,CAAA;AA5BG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AAErB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACL;AAExB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACe,iBAAO;sEAAA;AAEjC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACG,iBAAO;2EAAA;AAf9B,2BAA2B;IADvC,IAAA,gBAAI,EAAC,6BAA6B,CAAC;GACvB,2BAA2B,CA6BvC;AA7BY,kEAA2B"}
@@ -1,2 +1,2 @@
1
- export * from "./RelationshipCreationChangeRequestBody";
2
- export * from "./RelationshipTemplateBody";
1
+ export * from "./RelationshipCreationChangeRequestContent";
2
+ export * from "./RelationshipTemplateContent";
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./RelationshipCreationChangeRequestBody"), exports);
18
- __exportStar(require("./RelationshipTemplateBody"), exports);
17
+ __exportStar(require("./RelationshipCreationChangeRequestContent"), exports);
18
+ __exportStar(require("./RelationshipTemplateContent"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAuD;AACvD,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA0D;AAC1D,gEAA6C"}
@@ -4,6 +4,7 @@ import { ContentJSON } from "../ContentJSON";
4
4
  import { IRequestItemDerivations, RequestItemDerivations, RequestItemJSONDerivations } from "./RequestItem";
5
5
  import { IRequestItemGroup, RequestItemGroup, RequestItemGroupJSON } from "./RequestItemGroup";
6
6
  export interface RequestJSON extends ContentJSON {
7
+ "@type": "Request";
7
8
  id?: string;
8
9
  /**
9
10
  * The point in time the request is considered obsolete either technically (e.g. the request is no longer
@@ -67,5 +68,5 @@ export declare class Request extends Serializable implements IRequest {
67
68
  description?: string;
68
69
  metadata?: object;
69
70
  static from(value: IRequest | RequestJSON): Request;
70
- toJSON(): RequestJSON;
71
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RequestJSON;
71
72
  }
@@ -16,8 +16,8 @@ let Request = class Request extends ts_serval_1.Serializable {
16
16
  static from(value) {
17
17
  return this.fromAny(value);
18
18
  }
19
- toJSON() {
20
- return super.toJSON();
19
+ toJSON(verbose, serializeAsString) {
20
+ return super.toJSON(verbose, serializeAsString);
21
21
  }
22
22
  };
23
23
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;AA0E9D,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,wBAAY;IAyB9B,MAAM,CAAC,IAAI,CAAC,KAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAiB,CAAA;IACxC,CAAC;CACJ,CAAA;AA7BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mCAAA;AAIlB;IAFC,IAAA,qBAA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AElB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0CAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;sCAC3B;AAE3D;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACR;AAErB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACF;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACL;AAvBf,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAgCnB;AAhCY,0BAAO"}
@@ -1,6 +1,8 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { ContentJSON } from "../ContentJSON";
3
- import { ConsentRequestItem, ConsentRequestItemJSON, CreateAttributeRequestItem, CreateAttributeRequestItemJSON, IConsentRequestItem, ICreateAttributeRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, IShareAttributeRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items";
3
+ import { AuthenticationRequestItem, AuthenticationRequestItemJSON, ConsentRequestItem, ConsentRequestItemJSON, IAuthenticationRequestItem, IConsentRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, IRegisterAttributeListenerRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON, RegisterAttributeListenerRequestItem, RegisterAttributeListenerRequestItemJSON } from "./items";
4
+ import { CreateAttributeRequestItem, CreateAttributeRequestItemJSON, ICreateAttributeRequestItem } from "./items/createRelationshipAttribute/CreateAttributeRequestItem";
5
+ import { IShareAttributeRequestItem, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items/shareAttribute/ShareAttributeRequestItem";
4
6
  export interface RequestItemJSON extends ContentJSON {
5
7
  /**
6
8
  * The human-readable title of this item.
@@ -27,8 +29,13 @@ export interface RequestItemJSON extends ContentJSON {
27
29
  * is accepted as well.
28
30
  */
29
31
  mustBeAccepted: boolean;
32
+ /**
33
+ * If set to `true`, it advices the recipient of this RequestItem to carefully consider
34
+ * their decision and especially do not decide based on some automation rules.
35
+ */
36
+ requireManualDecision?: boolean;
30
37
  }
31
- export declare type RequestItemJSONDerivations = RequestItemJSON | CreateAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ConsentRequestItemJSON;
38
+ export declare type RequestItemJSONDerivations = RequestItemJSON | CreateAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ConsentRequestItemJSON | AuthenticationRequestItemJSON | RegisterAttributeListenerRequestItemJSON;
32
39
  export interface IRequestItem extends ISerializable {
33
40
  /**
34
41
  * The human-readable title of this item.
@@ -55,13 +62,19 @@ export interface IRequestItem extends ISerializable {
55
62
  * is accepted as well.
56
63
  */
57
64
  mustBeAccepted: boolean;
65
+ /**
66
+ * If set to `true`, it advices the recipient of this RequestItem to carefully consider
67
+ * their decision and especially do not decide based on some automation rules.
68
+ */
69
+ requireManualDecision?: boolean;
58
70
  }
59
- export declare type IRequestItemDerivations = IRequestItem | ICreateAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IShareAttributeRequestItem | IConsentRequestItem;
71
+ export declare type IRequestItemDerivations = IRequestItem | ICreateAttributeRequestItem | IShareAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IConsentRequestItem | IAuthenticationRequestItem | IRegisterAttributeListenerRequestItem;
60
72
  export declare abstract class RequestItem extends Serializable {
61
73
  title?: string;
62
74
  description?: string;
63
75
  mustBeAccepted: boolean;
64
76
  metadata?: object;
65
- toJSON(): RequestItemJSON;
77
+ requireManualDecision?: boolean;
78
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RequestItemJSON;
66
79
  }
67
- export declare type RequestItemDerivations = RequestItem | CreateAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ShareAttributeRequestItem | ConsentRequestItem;
80
+ export declare type RequestItemDerivations = RequestItem | CreateAttributeRequestItem | ShareAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ConsentRequestItem | AuthenticationRequestItem | RegisterAttributeListenerRequestItem;
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RequestItem = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  class RequestItem extends ts_serval_1.Serializable {
15
- toJSON() {
16
- return super.toJSON();
15
+ toJSON(verbose, serializeAsString) {
16
+ return super.toJSON(verbose, serializeAsString);
17
17
  }
18
18
  }
19
19
  __decorate([
@@ -36,5 +36,10 @@ __decorate([
36
36
  (0, ts_serval_1.validate)({ nullable: true }),
37
37
  __metadata("design:type", Object)
38
38
  ], RequestItem.prototype, "metadata", void 0);
39
+ __decorate([
40
+ (0, ts_serval_1.serialize)(),
41
+ (0, ts_serval_1.validate)({ nullable: true }),
42
+ __metadata("design:type", Boolean)
43
+ ], RequestItem.prototype, "requireManualDecision", void 0);
39
44
  exports.RequestItem = RequestItem;
40
45
  //# sourceMappingURL=RequestItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem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A,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACS;AAnB1C,kCAwBC"}
@@ -6,12 +6,13 @@ import { IRequestItemDerivations, RequestItemDerivations, RequestItemJSONDerivat
6
6
  * if you want to
7
7
  * * make sure that the items in the group can only be accepted together
8
8
  *
9
- * Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
9
+ * Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
10
10
  * Request where the latter one targets an attribute created by the first one, it it should be impossible to
11
11
  * reject the first item, while accepting the second one.
12
12
  * * visually group items on the UI and give the a common title/description
13
13
  */
14
14
  export interface RequestItemGroupJSON extends ContentJSON {
15
+ "@type": "RequestItemGroup";
15
16
  /**
16
17
  * The human-readable title of this group.
17
18
  */
@@ -42,7 +43,7 @@ export interface RequestItemGroupJSON extends ContentJSON {
42
43
  * if you want to
43
44
  * * make sure that the items in the group can only be accepted together
44
45
  *
45
- * Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
46
+ * Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
46
47
  * Request where the latter one targets an attribute created by the first one, it it should be impossible to
47
48
  * reject the first item, while accepting the second one.
48
49
  * * visually group items on the UI and give the a common title/description
@@ -81,5 +82,5 @@ export declare class RequestItemGroup extends Serializable {
81
82
  metadata?: object;
82
83
  static from(value: IRequestItemGroup | RequestItemGroupJSON): RequestItemGroup;
83
84
  protected static postFrom<T extends Serializable>(value: T): T;
84
- toJSON(): RequestItemGroupJSON;
85
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RequestItemGroupJSON;
85
86
  }
@@ -25,8 +25,8 @@ let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_se
25
25
  }
26
26
  return value;
27
27
  }
28
- toJSON() {
29
- return super.toJSON();
28
+ toJSON(verbose, serializeAsString) {
29
+ return super.toJSON(verbose, serializeAsString);
30
30
  }
31
31
  };
32
32
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA4G;AAC5G,uDAAyC;AAuFzC,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,kBAAgB,CAAC,IAAI,EACrB,IAAA,yBAAM,EAAmB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,EACjD,GAAG,IAAA,yBAAM,EACL,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAC1B,wDAAwD,IAAA,yBAAM,EAC3D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAC1B,EAAE,CACN,CAAA;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAA0B,CAAA;IACjD,CAAC;CACJ,CAAA;AA3CG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EA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C,EACjD,GAAG,IAAA,yBAAM,EACL,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAC1B,wDAAwD,IAAA,yBAAM,EAC3D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAC1B,EAAE,CACN,CAAA;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAyB,CAAA;IAC3E,CAAC;CACJ,CAAA;AAhDG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAErB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACF;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAE9B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;+CAChD;AAEtC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACL;AAnBf,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAiD5B;AAjDY,4CAAgB"}
@@ -0,0 +1,10 @@
1
+ import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
2
+ export interface AuthenticationRequestItemJSON extends RequestItemJSON {
3
+ "@type": "AuthenticationRequestItem";
4
+ }
5
+ export interface IAuthenticationRequestItem extends IRequestItem {
6
+ }
7
+ export declare class AuthenticationRequestItem extends RequestItem implements IAuthenticationRequestItem {
8
+ static from(value: IAuthenticationRequestItem | AuthenticationRequestItemJSON): AuthenticationRequestItem;
9
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): AuthenticationRequestItemJSON;
10
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.AuthenticationRequestItem = void 0;
10
+ const ts_serval_1 = require("@js-soft/ts-serval");
11
+ const RequestItem_1 = require("../../RequestItem");
12
+ let AuthenticationRequestItem = class AuthenticationRequestItem extends RequestItem_1.RequestItem {
13
+ static from(value) {
14
+ return this.fromAny(value);
15
+ }
16
+ toJSON(verbose, serializeAsString) {
17
+ return super.toJSON(verbose, serializeAsString);
18
+ }
19
+ };
20
+ AuthenticationRequestItem = __decorate([
21
+ (0, ts_serval_1.type)("AuthenticationRequestItem")
22
+ ], AuthenticationRequestItem);
23
+ exports.AuthenticationRequestItem = AuthenticationRequestItem;
24
+ //# sourceMappingURL=AuthenticationRequestItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/authentication/AuthenticationRequestItem.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AACzC,mDAA8E;AASvE,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,yBAAW;IAC/C,MAAM,CAAC,IAAI,CAAC,KAAiE;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAkC,CAAA;IACpF,CAAC;CACJ,CAAA;AAXY,yBAAyB;IADrC,IAAA,gBAAI,EAAC,2BAA2B,CAAC;GACrB,yBAAyB,CAWrC;AAXY,8DAAyB"}
@@ -1,17 +1,16 @@
1
1
  import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
2
2
  export interface ConsentRequestItemJSON extends RequestItemJSON {
3
+ "@type": "ConsentRequestItem";
3
4
  consent: string;
4
5
  link?: string;
5
- requireActiveConsent?: boolean;
6
6
  }
7
7
  export interface IConsentRequestItem extends IRequestItem {
8
8
  consent: string;
9
9
  link?: string;
10
- requireActiveConsent?: boolean;
11
10
  }
12
11
  export declare class ConsentRequestItem extends RequestItem implements IConsentRequestItem {
13
12
  consent: string;
14
13
  link?: string;
15
- requireActiveConsent?: boolean;
16
- static from(value: IConsentRequestItem): ConsentRequestItem;
14
+ static from(value: IConsentRequestItem | ConsentRequestItemJSON): ConsentRequestItem;
15
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): ConsentRequestItemJSON;
17
16
  }
@@ -12,11 +12,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ConsentRequestItem = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const RequestItem_1 = require("../../RequestItem");
15
- class ConsentRequestItem extends RequestItem_1.RequestItem {
15
+ let ConsentRequestItem = class ConsentRequestItem extends RequestItem_1.RequestItem {
16
16
  static from(value) {
17
17
  return this.fromAny(value);
18
18
  }
19
- }
19
+ toJSON(verbose, serializeAsString) {
20
+ return super.toJSON(verbose, serializeAsString);
21
+ }
22
+ };
20
23
  __decorate([
21
24
  (0, ts_serval_1.serialize)(),
22
25
  (0, ts_serval_1.validate)(),
@@ -27,10 +30,8 @@ __decorate([
27
30
  (0, ts_serval_1.validate)({ nullable: true }),
28
31
  __metadata("design:type", String)
29
32
  ], ConsentRequestItem.prototype, "link", void 0);
30
- __decorate([
31
- (0, ts_serval_1.serialize)(),
32
- (0, ts_serval_1.validate)({ nullable: true }),
33
- __metadata("design:type", Boolean)
34
- ], ConsentRequestItem.prototype, "requireActiveConsent", void 0);
33
+ ConsentRequestItem = __decorate([
34
+ (0, ts_serval_1.type)("ConsentRequestItem")
35
+ ], ConsentRequestItem);
35
36
  exports.ConsentRequestItem = ConsentRequestItem;
36
37
  //# sourceMappingURL=ConsentRequestItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConsentRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/consent/ConsentRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,mDAA8E;AAc9E,MAAa,kBAAmB,SAAQ,yBAAW;IAaxC,MAAM,CAAC,IAAI,CAAC,KAA0B;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACW;AAItB;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;;gEACQ;AAXzC,gDAgBC"}
1
+ {"version":3,"file":"ConsentRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/consent/ConsentRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,mDAA8E;AAcvE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,yBAAW;IASxC,MAAM,CAAC,IAAI,CAAC,KAAmD;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAA2B,CAAA;IAC7E,CAAC;CACJ,CAAA;AAlBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACW;AAEtB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAPX,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAmB9B;AAnBY,gDAAkB"}
@@ -1,6 +1,7 @@
1
1
  import { CoreId, ICoreId } from "@nmshd/transport";
2
2
  import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
3
3
  export interface CreateAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
4
+ "@type": "CreateAttributeAcceptResponseItem";
4
5
  attributeId: string;
5
6
  }
6
7
  export interface ICreateAttributeAcceptResponseItem extends IAcceptResponseItem {
@@ -9,4 +10,5 @@ export interface ICreateAttributeAcceptResponseItem extends IAcceptResponseItem
9
10
  export declare class CreateAttributeAcceptResponseItem extends AcceptResponseItem implements ICreateAttributeAcceptResponseItem {
10
11
  attributeId: CoreId;
11
12
  static from(value: ICreateAttributeAcceptResponseItem | CreateAttributeAcceptResponseItemJSON): CreateAttributeAcceptResponseItem;
13
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): CreateAttributeAcceptResponseItemJSON;
12
14
  }