@nmshd/content 2.0.0-alpha.8 → 2.0.0-beta.10

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 (411) hide show
  1. package/README.md +2 -2
  2. package/dist/attributes/AbstractAttribute.d.ts +17 -0
  3. package/dist/attributes/{AttributeV2.js → AbstractAttribute.js} +9 -26
  4. package/dist/attributes/AbstractAttribute.js.map +1 -0
  5. package/dist/attributes/AbstractAttributeQuery.d.ts +17 -0
  6. package/dist/attributes/{AttributeQuery.js → AbstractAttributeQuery.js} +14 -21
  7. package/dist/attributes/AbstractAttributeQuery.js.map +1 -0
  8. package/dist/attributes/AbstractAttributeValue.d.ts +10 -2
  9. package/dist/attributes/AbstractAttributeValue.js +12 -0
  10. package/dist/attributes/AbstractAttributeValue.js.map +1 -1
  11. package/dist/attributes/AbstractComplexValue.d.ts +9 -0
  12. package/dist/attributes/AbstractComplexValue.js +15 -0
  13. package/dist/attributes/AbstractComplexValue.js.map +1 -0
  14. package/dist/attributes/IdentityAttribute.d.ts +16 -0
  15. package/dist/attributes/IdentityAttribute.js +38 -0
  16. package/dist/attributes/IdentityAttribute.js.map +1 -0
  17. package/dist/attributes/IdentityAttributeQuery.d.ts +12 -0
  18. package/dist/attributes/IdentityAttributeQuery.js +32 -0
  19. package/dist/attributes/IdentityAttributeQuery.js.map +1 -0
  20. package/dist/attributes/RelationshipAttribute.d.ts +53 -0
  21. package/dist/attributes/RelationshipAttribute.js +88 -0
  22. package/dist/attributes/RelationshipAttribute.js.map +1 -0
  23. package/dist/attributes/RelationshipAttributeQuery.d.ts +23 -0
  24. package/dist/attributes/RelationshipAttributeQuery.js +49 -0
  25. package/dist/attributes/RelationshipAttributeQuery.js.map +1 -0
  26. package/dist/attributes/constants/CountriesAlpha2.d.ts +252 -0
  27. package/dist/attributes/constants/CountriesAlpha2.js +507 -0
  28. package/dist/attributes/constants/CountriesAlpha2.js.map +1 -0
  29. package/dist/attributes/constants/LanguagesISO639.d.ts +191 -0
  30. package/dist/attributes/constants/LanguagesISO639.js +377 -0
  31. package/dist/attributes/constants/LanguagesISO639.js.map +1 -0
  32. package/dist/attributes/constants/index.d.ts +2 -0
  33. package/dist/attributes/{types/idcard → constants}/index.js +2 -4
  34. package/dist/attributes/constants/index.js.map +1 -0
  35. package/dist/attributes/hints/RelationshipAttributeCreationHints.d.ts +31 -0
  36. package/dist/attributes/hints/RelationshipAttributeCreationHints.js +64 -0
  37. package/dist/attributes/hints/RelationshipAttributeCreationHints.js.map +1 -0
  38. package/dist/attributes/hints/RenderHints.d.ts +40 -0
  39. package/dist/attributes/hints/RenderHints.js +119 -0
  40. package/dist/attributes/hints/RenderHints.js.map +1 -0
  41. package/dist/attributes/hints/RenderHintsDataType.d.ts +19 -0
  42. package/dist/attributes/hints/RenderHintsDataType.js +24 -0
  43. package/dist/attributes/hints/RenderHintsDataType.js.map +1 -0
  44. package/dist/attributes/hints/RenderHintsEditType.d.ts +11 -0
  45. package/dist/attributes/hints/RenderHintsEditType.js +16 -0
  46. package/dist/attributes/hints/RenderHintsEditType.js.map +1 -0
  47. package/dist/attributes/hints/RenderHintsTechnicalType.d.ts +7 -0
  48. package/dist/attributes/hints/RenderHintsTechnicalType.js +12 -0
  49. package/dist/attributes/hints/RenderHintsTechnicalType.js.map +1 -0
  50. package/dist/attributes/hints/ValueHints.d.ts +50 -0
  51. package/dist/attributes/hints/ValueHints.js +149 -0
  52. package/dist/attributes/hints/ValueHints.js.map +1 -0
  53. package/dist/attributes/hints/ValueHintsValue.d.ts +14 -0
  54. package/dist/attributes/hints/ValueHintsValue.js +33 -0
  55. package/dist/attributes/hints/ValueHintsValue.js.map +1 -0
  56. package/dist/attributes/hints/index.d.ts +7 -0
  57. package/dist/attributes/hints/index.js +24 -0
  58. package/dist/attributes/hints/index.js.map +1 -0
  59. package/dist/attributes/index.d.ts +9 -2
  60. package/dist/attributes/index.js +9 -2
  61. package/dist/attributes/index.js.map +1 -1
  62. package/dist/attributes/types/AbstractBoolean.d.ts +16 -0
  63. package/dist/attributes/types/AbstractBoolean.js +41 -0
  64. package/dist/attributes/types/AbstractBoolean.js.map +1 -0
  65. package/dist/attributes/types/AbstractFloat.d.ts +16 -0
  66. package/dist/attributes/types/{AbstractFloatValue.js → AbstractFloat.js} +23 -5
  67. package/dist/attributes/types/AbstractFloat.js.map +1 -0
  68. package/dist/attributes/types/AbstractInteger.d.ts +17 -0
  69. package/dist/attributes/types/{AbstractIntegerValue.js → AbstractInteger.js} +26 -5
  70. package/dist/attributes/types/AbstractInteger.js.map +1 -0
  71. package/dist/attributes/types/AbstractString.d.ts +16 -0
  72. package/dist/attributes/types/AbstractString.js +43 -0
  73. package/dist/attributes/types/AbstractString.js.map +1 -0
  74. package/dist/attributes/types/address/AbstractAddress.d.ts +282 -2
  75. package/dist/attributes/types/address/AbstractAddress.js +25 -2
  76. package/dist/attributes/types/address/AbstractAddress.js.map +1 -1
  77. package/dist/attributes/types/address/City.d.ts +2 -2
  78. package/dist/attributes/types/address/City.js +2 -2
  79. package/dist/attributes/types/address/City.js.map +1 -1
  80. package/dist/attributes/types/address/Country.d.ts +2 -2
  81. package/dist/attributes/types/address/Country.js +2 -2
  82. package/dist/attributes/types/address/Country.js.map +1 -1
  83. package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +1710 -2
  84. package/dist/attributes/types/address/DeliveryBoxAddress.js +69 -4
  85. package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -1
  86. package/dist/attributes/types/address/HouseNumber.d.ts +2 -2
  87. package/dist/attributes/types/address/HouseNumber.js +2 -2
  88. package/dist/attributes/types/address/HouseNumber.js.map +1 -1
  89. package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +1419 -2
  90. package/dist/attributes/types/address/PostOfficeBoxAddress.js +52 -4
  91. package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -1
  92. package/dist/attributes/types/address/State.d.ts +2 -2
  93. package/dist/attributes/types/address/State.js +2 -2
  94. package/dist/attributes/types/address/State.js.map +1 -1
  95. package/dist/attributes/types/address/Street.d.ts +2 -2
  96. package/dist/attributes/types/address/Street.js +2 -2
  97. package/dist/attributes/types/address/Street.js.map +1 -1
  98. package/dist/attributes/types/address/StreetAddress.d.ts +1970 -2
  99. package/dist/attributes/types/address/StreetAddress.js +49 -6
  100. package/dist/attributes/types/address/StreetAddress.js.map +1 -1
  101. package/dist/attributes/types/address/ZipCode.d.ts +2 -2
  102. package/dist/attributes/types/address/ZipCode.js +2 -2
  103. package/dist/attributes/types/address/ZipCode.js.map +1 -1
  104. package/dist/attributes/types/birth/BirthDate.d.ts +1123 -2
  105. package/dist/attributes/types/birth/BirthDate.js +40 -4
  106. package/dist/attributes/types/birth/BirthDate.js.map +1 -1
  107. package/dist/attributes/types/birth/BirthDay.d.ts +1 -1
  108. package/dist/attributes/types/birth/BirthDay.js +1 -1
  109. package/dist/attributes/types/birth/BirthDay.js.map +1 -1
  110. package/dist/attributes/types/birth/BirthMonth.d.ts +3 -1
  111. package/dist/attributes/types/birth/BirthMonth.js +6 -1
  112. package/dist/attributes/types/birth/BirthMonth.js.map +1 -1
  113. package/dist/attributes/types/birth/BirthPlace.d.ts +1124 -3
  114. package/dist/attributes/types/birth/BirthPlace.js +41 -5
  115. package/dist/attributes/types/birth/BirthPlace.js.map +1 -1
  116. package/dist/attributes/types/birth/BirthYear.d.ts +1 -1
  117. package/dist/attributes/types/birth/BirthYear.js +1 -1
  118. package/dist/attributes/types/birth/BirthYear.js.map +1 -1
  119. package/dist/attributes/types/communication/CommunicationLanguage.d.ts +3 -0
  120. package/dist/attributes/types/{idcard/IDCardIssuingDate.js → communication/CommunicationLanguage.js} +8 -8
  121. package/dist/attributes/types/communication/CommunicationLanguage.js.map +1 -0
  122. package/dist/attributes/types/communication/EMailAddress.d.ts +3 -0
  123. package/dist/{relationships/RelationshipExistsAction.js → attributes/types/communication/EMailAddress.js} +8 -7
  124. package/dist/attributes/types/communication/EMailAddress.js.map +1 -0
  125. package/dist/attributes/types/communication/Fax.d.ts +3 -0
  126. package/dist/attributes/types/{name/Title.js → communication/Fax.js} +8 -8
  127. package/dist/attributes/types/communication/Fax.js.map +1 -0
  128. package/dist/attributes/types/communication/Phone.d.ts +3 -0
  129. package/dist/attributes/types/communication/Phone.js +18 -0
  130. package/dist/attributes/types/communication/Phone.js.map +1 -0
  131. package/dist/attributes/types/communication/Website.d.ts +3 -0
  132. package/dist/attributes/types/communication/Website.js +18 -0
  133. package/dist/attributes/types/communication/Website.js.map +1 -0
  134. package/dist/attributes/types/communication/index.d.ts +5 -0
  135. package/dist/attributes/types/communication/index.js +22 -0
  136. package/dist/attributes/types/communication/index.js.map +1 -0
  137. package/dist/attributes/types/dates/AbstractDateString.d.ts +8 -0
  138. package/dist/attributes/types/{AbstractDateString.js → dates/AbstractDateString.js} +17 -2
  139. package/dist/attributes/types/dates/AbstractDateString.js.map +1 -0
  140. package/dist/attributes/types/dates/AbstractDay.d.ts +10 -0
  141. package/dist/attributes/types/{AbstractDay.js → dates/AbstractDay.js} +15 -2
  142. package/dist/attributes/types/dates/AbstractDay.js.map +1 -0
  143. package/dist/attributes/types/{AbstractMonth.d.ts → dates/AbstractMonth.d.ts} +6 -2
  144. package/dist/attributes/types/{AbstractMonth.js → dates/AbstractMonth.js} +15 -2
  145. package/dist/attributes/types/dates/AbstractMonth.js.map +1 -0
  146. package/dist/attributes/types/dates/AbstractYear.d.ts +7 -0
  147. package/dist/attributes/types/dates/AbstractYear.js +38 -0
  148. package/dist/attributes/types/dates/AbstractYear.js.map +1 -0
  149. package/dist/attributes/types/dates/index.d.ts +4 -0
  150. package/dist/attributes/types/dates/index.js +21 -0
  151. package/dist/attributes/types/dates/index.js.map +1 -0
  152. package/dist/attributes/types/files/FileReference.d.ts +3 -0
  153. package/dist/attributes/types/files/FileReference.js +18 -0
  154. package/dist/attributes/types/files/FileReference.js.map +1 -0
  155. package/dist/attributes/types/files/index.d.ts +1 -0
  156. package/dist/attributes/types/files/index.js +18 -0
  157. package/dist/attributes/types/files/index.js.map +1 -0
  158. package/dist/attributes/types/index.d.ts +11 -1
  159. package/dist/attributes/types/index.js +11 -1
  160. package/dist/attributes/types/index.js.map +1 -1
  161. package/dist/attributes/types/measurements/{LengthMeasurement.d.ts → AbstractLengthMeasurement.d.ts} +3 -1
  162. package/dist/attributes/types/measurements/{LengthMeasurement.js → AbstractLengthMeasurement.js} +19 -9
  163. package/dist/attributes/types/measurements/AbstractLengthMeasurement.js.map +1 -0
  164. package/dist/attributes/types/measurements/AbstractMeasurement.d.ts +299 -2
  165. package/dist/attributes/types/measurements/AbstractMeasurement.js +33 -2
  166. package/dist/attributes/types/measurements/AbstractMeasurement.js.map +1 -1
  167. package/dist/attributes/types/measurements/index.d.ts +2 -1
  168. package/dist/attributes/types/measurements/index.js +2 -1
  169. package/dist/attributes/types/measurements/index.js.map +1 -1
  170. package/dist/attributes/types/name/AbstractLegalName.d.ts +2 -2
  171. package/dist/attributes/types/name/AbstractLegalName.js +4 -4
  172. package/dist/attributes/types/name/AbstractLegalName.js.map +1 -1
  173. package/dist/attributes/types/name/BirthName.d.ts +2 -2
  174. package/dist/attributes/types/name/BirthName.js +2 -2
  175. package/dist/attributes/types/name/BirthName.js.map +1 -1
  176. package/dist/attributes/types/name/DisplayName.d.ts +2 -2
  177. package/dist/attributes/types/name/DisplayName.js +2 -2
  178. package/dist/attributes/types/name/DisplayName.js.map +1 -1
  179. package/dist/attributes/types/name/GivenName.d.ts +2 -2
  180. package/dist/attributes/types/name/GivenName.js +2 -2
  181. package/dist/attributes/types/name/GivenName.js.map +1 -1
  182. package/dist/attributes/types/name/HonorificPrefix.d.ts +3 -0
  183. package/dist/attributes/types/name/HonorificPrefix.js +18 -0
  184. package/dist/attributes/types/name/HonorificPrefix.js.map +1 -0
  185. package/dist/attributes/types/name/HonorificSuffix.d.ts +3 -0
  186. package/dist/attributes/types/name/HonorificSuffix.js +18 -0
  187. package/dist/attributes/types/name/HonorificSuffix.js.map +1 -0
  188. package/dist/attributes/types/name/LegalNameDE.d.ts +1691 -2
  189. package/dist/attributes/types/name/LegalNameDE.js +52 -5
  190. package/dist/attributes/types/name/LegalNameDE.js.map +1 -1
  191. package/dist/attributes/types/name/Pseudonym.d.ts +2 -2
  192. package/dist/attributes/types/name/Pseudonym.js +2 -2
  193. package/dist/attributes/types/name/Pseudonym.js.map +1 -1
  194. package/dist/attributes/types/name/Salutation.d.ts +1694 -5
  195. package/dist/attributes/types/name/Salutation.js +51 -10
  196. package/dist/attributes/types/name/Salutation.js.map +1 -1
  197. package/dist/attributes/types/name/Surname.d.ts +2 -2
  198. package/dist/attributes/types/name/Surname.js +2 -2
  199. package/dist/attributes/types/name/Surname.js.map +1 -1
  200. package/dist/attributes/types/name/index.d.ts +2 -1
  201. package/dist/attributes/types/name/index.js +2 -1
  202. package/dist/attributes/types/name/index.js.map +1 -1
  203. package/dist/attributes/types/person/Age.d.ts +5 -2
  204. package/dist/attributes/types/person/Age.js +18 -2
  205. package/dist/attributes/types/person/Age.js.map +1 -1
  206. package/dist/attributes/types/person/Citizenship.d.ts +3 -0
  207. package/dist/attributes/types/person/{PersonEyeColor.js → Citizenship.js} +8 -8
  208. package/dist/attributes/types/person/Citizenship.js.map +1 -0
  209. package/dist/attributes/types/person/Nationality.d.ts +3 -0
  210. package/dist/attributes/types/person/Nationality.js +18 -0
  211. package/dist/attributes/types/person/Nationality.js.map +1 -0
  212. package/dist/attributes/types/person/Picture.d.ts +3 -0
  213. package/dist/attributes/types/person/{Gender.js → Picture.js} +8 -11
  214. package/dist/attributes/types/person/Picture.js.map +1 -0
  215. package/dist/attributes/types/person/Sex.d.ts +8 -5
  216. package/dist/attributes/types/person/Sex.js +21 -10
  217. package/dist/attributes/types/person/Sex.js.map +1 -1
  218. package/dist/attributes/types/person/index.d.ts +3 -3
  219. package/dist/attributes/types/person/index.js +3 -3
  220. package/dist/attributes/types/person/index.js.map +1 -1
  221. package/dist/attributes/types/proprietary/ProprietaryBoolean.d.ts +13 -0
  222. package/dist/attributes/types/proprietary/ProprietaryBoolean.js +31 -0
  223. package/dist/attributes/types/proprietary/ProprietaryBoolean.js.map +1 -0
  224. package/dist/attributes/types/proprietary/ProprietaryCountry.d.ts +14 -0
  225. package/dist/attributes/types/proprietary/ProprietaryCountry.js +31 -0
  226. package/dist/attributes/types/proprietary/ProprietaryCountry.js.map +1 -0
  227. package/dist/attributes/types/proprietary/ProprietaryDataURL.d.ts +14 -0
  228. package/dist/attributes/types/proprietary/ProprietaryDataURL.js +31 -0
  229. package/dist/attributes/types/proprietary/ProprietaryDataURL.js.map +1 -0
  230. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.d.ts +14 -0
  231. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js +31 -0
  232. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js.map +1 -0
  233. package/dist/attributes/types/proprietary/ProprietaryFileReference.d.ts +14 -0
  234. package/dist/attributes/types/proprietary/ProprietaryFileReference.js +31 -0
  235. package/dist/attributes/types/proprietary/ProprietaryFileReference.js.map +1 -0
  236. package/dist/attributes/types/proprietary/ProprietaryFloat.d.ts +13 -0
  237. package/dist/attributes/types/{person/PersonHeight.js → proprietary/ProprietaryFloat.js} +15 -13
  238. package/dist/attributes/types/proprietary/ProprietaryFloat.js.map +1 -0
  239. package/dist/attributes/types/proprietary/ProprietaryHEXColor.d.ts +14 -0
  240. package/dist/attributes/types/proprietary/ProprietaryHEXColor.js +31 -0
  241. package/dist/attributes/types/proprietary/ProprietaryHEXColor.js.map +1 -0
  242. package/dist/attributes/types/proprietary/ProprietaryInteger.d.ts +21 -0
  243. package/dist/attributes/types/proprietary/ProprietaryInteger.js +51 -0
  244. package/dist/attributes/types/proprietary/ProprietaryInteger.js.map +1 -0
  245. package/dist/attributes/types/proprietary/ProprietaryLanguage.d.ts +14 -0
  246. package/dist/attributes/types/proprietary/ProprietaryLanguage.js +31 -0
  247. package/dist/attributes/types/proprietary/ProprietaryLanguage.js.map +1 -0
  248. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.d.ts +14 -0
  249. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js +31 -0
  250. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js.map +1 -0
  251. package/dist/attributes/types/proprietary/ProprietaryString.d.ts +13 -0
  252. package/dist/attributes/types/proprietary/ProprietaryString.js +31 -0
  253. package/dist/attributes/types/proprietary/ProprietaryString.js.map +1 -0
  254. package/dist/attributes/types/proprietary/ProprietaryURL.d.ts +14 -0
  255. package/dist/{authorizations/Authorization.js → attributes/types/proprietary/ProprietaryURL.js} +12 -14
  256. package/dist/attributes/types/proprietary/ProprietaryURL.js.map +1 -0
  257. package/dist/attributes/types/proprietary/index.d.ts +12 -0
  258. package/dist/attributes/types/proprietary/index.js +29 -0
  259. package/dist/attributes/types/proprietary/index.js.map +1 -0
  260. package/dist/attributes/types/strings/AbstractCountry.d.ts +8 -0
  261. package/dist/attributes/types/strings/AbstractCountry.js +40 -0
  262. package/dist/attributes/types/strings/AbstractCountry.js.map +1 -0
  263. package/dist/attributes/types/strings/AbstractDataURL.d.ts +7 -0
  264. package/dist/attributes/types/strings/AbstractDataURL.js +40 -0
  265. package/dist/attributes/types/strings/AbstractDataURL.js.map +1 -0
  266. package/dist/attributes/types/strings/AbstractEMailAddress.d.ts +7 -0
  267. package/dist/attributes/types/strings/AbstractEMailAddress.js +41 -0
  268. package/dist/attributes/types/strings/AbstractEMailAddress.js.map +1 -0
  269. package/dist/attributes/types/strings/AbstractFileReference.d.ts +7 -0
  270. package/dist/attributes/types/strings/AbstractFileReference.js +39 -0
  271. package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -0
  272. package/dist/attributes/types/strings/AbstractHEXColor.d.ts +7 -0
  273. package/dist/attributes/types/strings/AbstractHEXColor.js +37 -0
  274. package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -0
  275. package/dist/attributes/types/strings/AbstractLanguage.d.ts +8 -0
  276. package/dist/attributes/types/strings/AbstractLanguage.js +42 -0
  277. package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -0
  278. package/dist/attributes/types/strings/AbstractPhoneNumber.d.ts +7 -0
  279. package/dist/attributes/types/strings/AbstractPhoneNumber.js +37 -0
  280. package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -0
  281. package/dist/attributes/types/strings/AbstractURL.d.ts +7 -0
  282. package/dist/attributes/types/strings/AbstractURL.js +42 -0
  283. package/dist/attributes/types/strings/AbstractURL.js.map +1 -0
  284. package/dist/attributes/types/strings/index.d.ts +8 -0
  285. package/dist/attributes/types/strings/index.js +25 -0
  286. package/dist/attributes/types/strings/index.js.map +1 -0
  287. package/dist/buildInformation.js +5 -5
  288. package/dist/index.d.ts +0 -1
  289. package/dist/index.js +0 -1
  290. package/dist/index.js.map +1 -1
  291. package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +8 -21
  292. package/dist/relationships/RelationshipCreationChangeRequestBody.js +5 -26
  293. package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +1 -1
  294. package/dist/relationships/RelationshipTemplateBody.d.ts +11 -31
  295. package/dist/relationships/RelationshipTemplateBody.js +6 -34
  296. package/dist/relationships/RelationshipTemplateBody.js.map +1 -1
  297. package/dist/relationships/index.d.ts +0 -2
  298. package/dist/relationships/index.js +0 -2
  299. package/dist/relationships/index.js.map +1 -1
  300. package/dist/requests/Request.d.ts +38 -8
  301. package/dist/requests/Request.js +18 -0
  302. package/dist/requests/Request.js.map +1 -1
  303. package/dist/requests/RequestItem.d.ts +12 -5
  304. package/dist/requests/RequestItem.js +4 -1
  305. package/dist/requests/RequestItem.js.map +1 -1
  306. package/dist/requests/RequestItemGroup.d.ts +13 -11
  307. package/dist/requests/RequestItemGroup.js +16 -3
  308. package/dist/requests/RequestItemGroup.js.map +1 -1
  309. package/dist/requests/index.d.ts +1 -0
  310. package/dist/requests/index.js +1 -0
  311. package/dist/requests/index.js.map +1 -1
  312. package/dist/requests/items/authentication/AuthenticationRequestItem.d.ts +11 -0
  313. package/dist/{attributes/types/AbstractStringValue.js → requests/items/authentication/AuthenticationRequestItem.js} +9 -6
  314. package/dist/requests/items/authentication/AuthenticationRequestItem.js.map +1 -0
  315. package/dist/requests/items/consent/ConsentRequestItem.d.ts +17 -0
  316. package/dist/requests/items/consent/ConsentRequestItem.js +36 -0
  317. package/dist/requests/items/consent/ConsentRequestItem.js.map +1 -0
  318. package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.d.ts +12 -0
  319. package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.js +30 -0
  320. package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.js.map +1 -0
  321. package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.d.ts +13 -0
  322. package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.js +29 -0
  323. package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.js.map +1 -0
  324. package/dist/requests/items/index.d.ts +10 -0
  325. package/dist/requests/items/index.js +27 -0
  326. package/dist/requests/items/index.js.map +1 -0
  327. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.d.ts +16 -0
  328. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js +36 -0
  329. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js.map +1 -0
  330. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.d.ts +17 -0
  331. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +53 -0
  332. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js.map +1 -0
  333. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.d.ts +16 -0
  334. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js +36 -0
  335. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js.map +1 -0
  336. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +12 -0
  337. package/dist/{relationships/RelationshipExistsMessageAction.js → requests/items/readAttribute/ReadAttributeRequestItem.js} +14 -10
  338. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -0
  339. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.d.ts +12 -0
  340. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js +30 -0
  341. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js.map +1 -0
  342. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.d.ts +17 -0
  343. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js +36 -0
  344. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js.map +1 -0
  345. package/dist/requests/response/AcceptResponseItem.d.ts +5 -0
  346. package/dist/requests/response/AcceptResponseItem.js +3 -0
  347. package/dist/requests/response/AcceptResponseItem.js.map +1 -1
  348. package/dist/requests/response/ErrorResponseItem.d.ts +4 -0
  349. package/dist/requests/response/ErrorResponseItem.js +3 -0
  350. package/dist/requests/response/ErrorResponseItem.js.map +1 -1
  351. package/dist/requests/response/RejectResponseItem.d.ts +4 -0
  352. package/dist/requests/response/RejectResponseItem.js +3 -0
  353. package/dist/requests/response/RejectResponseItem.js.map +1 -1
  354. package/dist/requests/response/Response.d.ts +5 -4
  355. package/dist/requests/response/Response.js +3 -0
  356. package/dist/requests/response/Response.js.map +1 -1
  357. package/dist/requests/response/ResponseItem.d.ts +7 -3
  358. package/dist/requests/response/ResponseItem.js +3 -5
  359. package/dist/requests/response/ResponseItem.js.map +1 -1
  360. package/dist/requests/response/ResponseItemGroup.d.ts +5 -7
  361. package/dist/requests/response/ResponseItemGroup.js +3 -5
  362. package/dist/requests/response/ResponseItemGroup.js.map +1 -1
  363. package/lib-web/nmshd.content.js +8740 -5689
  364. package/lib-web/nmshd.content.min.js +1 -1
  365. package/package.json +18 -17
  366. package/dist/attributes/AttributeQuery.d.ts +0 -12
  367. package/dist/attributes/AttributeQuery.js.map +0 -1
  368. package/dist/attributes/AttributeV2.d.ts +0 -25
  369. package/dist/attributes/AttributeV2.js.map +0 -1
  370. package/dist/attributes/types/AbstractDateString.d.ts +0 -5
  371. package/dist/attributes/types/AbstractDateString.js.map +0 -1
  372. package/dist/attributes/types/AbstractDay.d.ts +0 -7
  373. package/dist/attributes/types/AbstractDay.js.map +0 -1
  374. package/dist/attributes/types/AbstractFloatValue.d.ts +0 -4
  375. package/dist/attributes/types/AbstractFloatValue.js.map +0 -1
  376. package/dist/attributes/types/AbstractIntegerValue.d.ts +0 -4
  377. package/dist/attributes/types/AbstractIntegerValue.js.map +0 -1
  378. package/dist/attributes/types/AbstractMonth.js.map +0 -1
  379. package/dist/attributes/types/AbstractStringValue.d.ts +0 -4
  380. package/dist/attributes/types/AbstractStringValue.js.map +0 -1
  381. package/dist/attributes/types/AbstractYear.d.ts +0 -3
  382. package/dist/attributes/types/AbstractYear.js +0 -8
  383. package/dist/attributes/types/AbstractYear.js.map +0 -1
  384. package/dist/attributes/types/idcard/AbstractIDCard.d.ts +0 -3
  385. package/dist/attributes/types/idcard/AbstractIDCard.js +0 -8
  386. package/dist/attributes/types/idcard/AbstractIDCard.js.map +0 -1
  387. package/dist/attributes/types/idcard/IDCardAuthorityName.d.ts +0 -3
  388. package/dist/attributes/types/idcard/IDCardAuthorityName.js +0 -18
  389. package/dist/attributes/types/idcard/IDCardAuthorityName.js.map +0 -1
  390. package/dist/attributes/types/idcard/IDCardDE.d.ts +0 -13
  391. package/dist/attributes/types/idcard/IDCardDE.js +0 -51
  392. package/dist/attributes/types/idcard/IDCardDE.js.map +0 -1
  393. package/dist/attributes/types/idcard/IDCardIssuingDate.d.ts +0 -3
  394. package/dist/attributes/types/idcard/IDCardIssuingDate.js.map +0 -1
  395. package/dist/attributes/types/idcard/index.d.ts +0 -4
  396. package/dist/attributes/types/idcard/index.js.map +0 -1
  397. package/dist/attributes/types/measurements/LengthMeasurement.js.map +0 -1
  398. package/dist/attributes/types/name/Title.d.ts +0 -3
  399. package/dist/attributes/types/name/Title.js.map +0 -1
  400. package/dist/attributes/types/person/Gender.d.ts +0 -6
  401. package/dist/attributes/types/person/Gender.js.map +0 -1
  402. package/dist/attributes/types/person/PersonEyeColor.d.ts +0 -3
  403. package/dist/attributes/types/person/PersonEyeColor.js.map +0 -1
  404. package/dist/attributes/types/person/PersonHeight.d.ts +0 -4
  405. package/dist/attributes/types/person/PersonHeight.js.map +0 -1
  406. package/dist/authorizations/Authorization.d.ts +0 -14
  407. package/dist/authorizations/Authorization.js.map +0 -1
  408. package/dist/relationships/RelationshipExistsAction.d.ts +0 -7
  409. package/dist/relationships/RelationshipExistsAction.js.map +0 -1
  410. package/dist/relationships/RelationshipExistsMessageAction.d.ts +0 -11
  411. package/dist/relationships/RelationshipExistsMessageAction.js.map +0 -1
@@ -15,7 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./RelationshipCreationChangeRequestBody"), exports);
18
- __exportStar(require("./RelationshipExistsAction"), exports);
19
- __exportStar(require("./RelationshipExistsMessageAction"), exports);
20
18
  __exportStar(require("./RelationshipTemplateBody"), exports);
21
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;AAC1C,oEAAiD;AACjD,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAuD;AACvD,6DAA0C"}
@@ -1,7 +1,7 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { CoreDate, CoreId, ICoreDate } from "@nmshd/transport";
3
3
  import { ContentJSON } from "../ContentJSON";
4
- import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
4
+ import { IRequestItemDerivations, RequestItemDerivations, RequestItemJSONDerivations } from "./RequestItem";
5
5
  import { IRequestItemGroup, RequestItemGroup, RequestItemGroupJSON } from "./RequestItemGroup";
6
6
  export interface RequestJSON extends ContentJSON {
7
7
  id?: string;
@@ -13,10 +13,23 @@ export interface RequestJSON extends ContentJSON {
13
13
  */
14
14
  expiresAt?: string;
15
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}.
16
+ * The items of the Request. Can be either a single {@link RequestItemJSONDerivations RequestItem} or a {@link RequestItemGroupJSON RequestItemGroup}, which itself can contain
17
+ * further {@link RequestItemJSONDerivations RequestItems}.
18
18
  */
19
- items: (RequestItemGroupJSON | RequestItemJSON)[];
19
+ items: (RequestItemGroupJSON | RequestItemJSONDerivations)[];
20
+ /**
21
+ * The human-readable title of this Request.
22
+ */
23
+ title?: string;
24
+ /**
25
+ * The human-readable description of this Request.
26
+ */
27
+ description?: string;
28
+ /**
29
+ * This property can be used to add some arbitrary metadata to this request. The content
30
+ * of this property will be copied into the response on the side of the recipient.
31
+ */
32
+ metadata?: object;
20
33
  }
21
34
  export interface IRequest extends ISerializable {
22
35
  id?: CoreId;
@@ -28,14 +41,31 @@ export interface IRequest extends ISerializable {
28
41
  */
29
42
  expiresAt?: ICoreDate;
30
43
  /**
31
- * The items of the Request. Can be either a single {@link RequestItem RequestItem} or a {@link RequestItemGroup RequestItemGroup}, which itself can contain
32
- * further {@link RequestItem RequestItems}.
44
+ * The items of the Request. Can be either a single {@link IRequestItemDerivations RequestItem} or a {@link IRequestItemGroup RequestItemGroup}, which itself can contain
45
+ * further {@link IRequestItemDerivations RequestItems}.
46
+ */
47
+ items: (IRequestItemGroup | IRequestItemDerivations)[];
48
+ /**
49
+ * The human-readable title of this Request.
50
+ */
51
+ title?: string;
52
+ /**
53
+ * The human-readable description of this Request.
54
+ */
55
+ description?: string;
56
+ /**
57
+ * This property can be used to add some arbitrary metadata to this request. The content
58
+ * of this property will be copied into the response on the side of the recipient.
33
59
  */
34
- items: (IRequestItemGroup | IRequestItem)[];
60
+ metadata?: object;
35
61
  }
36
62
  export declare class Request extends Serializable implements IRequest {
37
63
  id?: CoreId;
38
64
  expiresAt?: CoreDate;
39
- items: (RequestItemGroup | RequestItem)[];
65
+ items: (RequestItemGroup | RequestItemDerivations)[];
66
+ title?: string;
67
+ description?: string;
68
+ metadata?: object;
40
69
  static from(value: IRequest | RequestJSON): Request;
70
+ toJSON(): RequestJSON;
41
71
  }
@@ -16,6 +16,9 @@ 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();
21
+ }
19
22
  };
20
23
  __decorate([
21
24
  (0, ts_serval_1.serialize)(),
@@ -32,6 +35,21 @@ __decorate([
32
35
  (0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
33
36
  __metadata("design:type", Array)
34
37
  ], Request.prototype, "items", void 0);
38
+ __decorate([
39
+ (0, ts_serval_1.serialize)(),
40
+ (0, ts_serval_1.validate)({ nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], Request.prototype, "title", void 0);
43
+ __decorate([
44
+ (0, ts_serval_1.serialize)(),
45
+ (0, ts_serval_1.validate)({ nullable: true }),
46
+ __metadata("design:type", String)
47
+ ], Request.prototype, "description", void 0);
48
+ __decorate([
49
+ (0, ts_serval_1.serialize)(),
50
+ (0, ts_serval_1.validate)({ nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], Request.prototype, "metadata", void 0);
35
53
  Request = __decorate([
36
54
  (0, ts_serval_1.type)("Request")
37
55
  ], Request);
@@ -1 +1 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;AA0C9D,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,wBAAY;IAa9B,MAAM,CAAC,IAAI,CAAC,KAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAbG;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;AAXvC,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAgBnB;AAhBY,0BAAO"}
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,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;;sCAC3B;AAI3D;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACF;AAI3B;IAFC,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,5 +1,8 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { ContentJSON } from "../ContentJSON";
3
+ import { AuthenticationRequestItem, AuthenticationRequestItemJSON, ConsentRequestItem, ConsentRequestItemJSON, IAuthenticationRequestItem, IConsentRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON } from "./items";
4
+ import { CreateRelationshipAttributeRequestItem, CreateRelationshipAttributeRequestItemJSON, ICreateRelationshipAttributeRequestItem } from "./items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem";
5
+ import { IShareAttributeRequestItem, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items/shareAttribute/ShareAttributeRequestItem";
3
6
  export interface RequestItemJSON extends ContentJSON {
4
7
  /**
5
8
  * The human-readable title of this item.
@@ -10,11 +13,11 @@ export interface RequestItemJSON extends ContentJSON {
10
13
  */
11
14
  description?: string;
12
15
  /**
13
- * This propertycan be used to add some arbitrary metadata to this item. The content
16
+ * This property can be used to add some arbitrary metadata to this item. The content
14
17
  * of this property will be copied into the response on the side of the recipient, so
15
18
  * the sender can use it to identify the group content as they receive the response.
16
19
  */
17
- responseMetadata?: object;
20
+ metadata?: object;
18
21
  /**
19
22
  * If set to `true`, the recipient has to accept this group if he wants to accept the
20
23
  * Request.
@@ -27,6 +30,7 @@ export interface RequestItemJSON extends ContentJSON {
27
30
  */
28
31
  mustBeAccepted: boolean;
29
32
  }
33
+ export declare type RequestItemJSONDerivations = RequestItemJSON | CreateRelationshipAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ConsentRequestItemJSON | AuthenticationRequestItemJSON;
30
34
  export interface IRequestItem extends ISerializable {
31
35
  /**
32
36
  * The human-readable title of this item.
@@ -37,11 +41,11 @@ export interface IRequestItem extends ISerializable {
37
41
  */
38
42
  description?: string;
39
43
  /**
40
- * This propertycan be used to add some arbitrary metadata to this item. The content
44
+ * This property can be used to add some arbitrary metadata to this item. The content
41
45
  * of this property will be copied into the response on the side of the recipient, so
42
46
  * the sender can use it to identify the group content as they receive the response.
43
47
  */
44
- responseMetadata?: object;
48
+ metadata?: object;
45
49
  /**
46
50
  * If set to `true`, the recipient has to accept this group if he wants to accept the
47
51
  * Request.
@@ -54,9 +58,12 @@ export interface IRequestItem extends ISerializable {
54
58
  */
55
59
  mustBeAccepted: boolean;
56
60
  }
61
+ export declare type IRequestItemDerivations = IRequestItem | ICreateRelationshipAttributeRequestItem | IShareAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IConsentRequestItem | IAuthenticationRequestItem;
57
62
  export declare abstract class RequestItem extends Serializable {
58
63
  title?: string;
59
64
  description?: string;
60
65
  mustBeAccepted: boolean;
61
- responseMetadata?: object;
66
+ metadata?: object;
67
+ toJSON(): RequestItemJSON;
62
68
  }
69
+ export declare type RequestItemDerivations = RequestItem | CreateRelationshipAttributeRequestItem | ShareAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ConsentRequestItem | AuthenticationRequestItem;
@@ -12,6 +12,9 @@ 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();
17
+ }
15
18
  }
16
19
  __decorate([
17
20
  (0, ts_serval_1.serialize)(),
@@ -32,6 +35,6 @@ __decorate([
32
35
  (0, ts_serval_1.serialize)(),
33
36
  (0, ts_serval_1.validate)({ nullable: true }),
34
37
  __metadata("design:type", Object)
35
- ], RequestItem.prototype, "responseMetadata", void 0);
38
+ ], RequestItem.prototype, "metadata", void 0);
36
39
  exports.RequestItem = RequestItem;
37
40
  //# sourceMappingURL=RequestItem.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AA2GrF,MAAsB,WAAY,SAAQ,wBAAY;IAiBlC,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAqB,CAAA;IAC5C,CAAC;CACJ;AAjBG;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;;6CACL;AAf5B,kCAoBC"}
@@ -1,8 +1,8 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { ContentJSON } from "../ContentJSON";
3
- import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
3
+ import { IRequestItemDerivations, RequestItemDerivations, RequestItemJSONDerivations } from "./RequestItem";
4
4
  /**
5
- * A RequestItemGroup can be used to group one or more {@link RequestItemJSON RequestItems}. This is useful
5
+ * A RequestItemGroup can be used to group one or more RequestItems. This is useful
6
6
  * if you want to
7
7
  * * make sure that the items in the group can only be accepted together
8
8
  *
@@ -27,18 +27,18 @@ export interface RequestItemGroupJSON extends ContentJSON {
27
27
  */
28
28
  mustBeAccepted: boolean;
29
29
  /**
30
- * This propertycan be used to add some arbitrary metadata to this group. The content
30
+ * This property can be used to add some arbitrary metadata to this group. The content
31
31
  * of this property will be copied into the response on the side of the recipient, so
32
32
  * the sender can use it to identify the group content as they receive the response.
33
33
  */
34
- responseMetadata?: object;
34
+ metadata?: object;
35
35
  /**
36
36
  * The items of this group.
37
37
  */
38
- items: RequestItemJSON[];
38
+ items: RequestItemJSONDerivations[];
39
39
  }
40
40
  /**
41
- * A RequestItemGroup can be used to group one or more {@link RequestItem RequestItems}. This is useful
41
+ * A RequestItemGroup can be used to group one or more RequestItems. This is useful
42
42
  * if you want to
43
43
  * * make sure that the items in the group can only be accepted together
44
44
  *
@@ -63,21 +63,23 @@ export interface IRequestItemGroup extends ISerializable {
63
63
  */
64
64
  mustBeAccepted: boolean;
65
65
  /**
66
- * This propertycan be used to add some arbitrary metadata to this group. The content
66
+ * This property can be used to add some arbitrary metadata to this group. The content
67
67
  * of this property will be copied into the response on the side of the recipient, so
68
68
  * the sender can use it to identify the group content as they receive the response.
69
69
  */
70
- responseMetadata?: object;
70
+ metadata?: object;
71
71
  /**
72
72
  * The items of this group.
73
73
  */
74
- items: IRequestItem[];
74
+ items: IRequestItemDerivations[];
75
75
  }
76
76
  export declare class RequestItemGroup extends Serializable {
77
77
  title?: string;
78
78
  description?: string;
79
79
  mustBeAccepted: boolean;
80
- items: RequestItem[];
81
- responseMetadata?: object;
80
+ items: RequestItemDerivations[];
81
+ metadata?: object;
82
82
  static from(value: IRequestItemGroup | RequestItemGroupJSON): RequestItemGroup;
83
+ protected static postFrom<T extends Serializable>(value: T): T;
84
+ toJSON(): RequestItemGroupJSON;
83
85
  }
@@ -8,13 +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 RequestItemGroup_1;
11
12
  Object.defineProperty(exports, "__esModule", { value: true });
12
13
  exports.RequestItemGroup = void 0;
13
14
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- let RequestItemGroup = class RequestItemGroup extends ts_serval_1.Serializable {
15
+ const ts_simple_nameof_1 = require("ts-simple-nameof");
16
+ let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.Serializable {
15
17
  static from(value) {
16
18
  return this.fromAny(value);
17
19
  }
20
+ static postFrom(value) {
21
+ if (!(value instanceof RequestItemGroup_1))
22
+ throw new Error("this should never happen");
23
+ if (value.mustBeAccepted && value.items.every((item) => !item.mustBeAccepted)) {
24
+ throw new ts_serval_1.ValidationError(RequestItemGroup_1.name, (0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted), `${(0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted)} can only be true if at least one item is flagged as ${(0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted)}`);
25
+ }
26
+ return value;
27
+ }
28
+ toJSON() {
29
+ return super.toJSON();
30
+ }
18
31
  };
19
32
  __decorate([
20
33
  (0, ts_serval_1.serialize)(),
@@ -40,8 +53,8 @@ __decorate([
40
53
  (0, ts_serval_1.serialize)(),
41
54
  (0, ts_serval_1.validate)({ nullable: true }),
42
55
  __metadata("design:type", Object)
43
- ], RequestItemGroup.prototype, "responseMetadata", void 0);
44
- RequestItemGroup = __decorate([
56
+ ], RequestItemGroup.prototype, "metadata", void 0);
57
+ RequestItemGroup = RequestItemGroup_1 = __decorate([
45
58
  (0, ts_serval_1.type)("RequestItemGroup")
46
59
  ], RequestItemGroup);
47
60
  exports.RequestItemGroup = RequestItemGroup;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAuF3F,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,wBAAY;IAqBvC,MAAM,CAAC,IAAI,CAAC,KAA+C;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AArBG;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,CAwB5B;AAxBY,4CAAgB"}
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,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;;+CAChD;AAItC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACL;AAnBf,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CA8C5B;AA9CY,4CAAgB"}
@@ -1,3 +1,4 @@
1
+ export * from "./items";
1
2
  export * from "./old/AttributesChangeRequest";
2
3
  export * from "./old/AttributesRequest";
3
4
  export * from "./old/AttributesShareRequest";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./items"), exports);
17
18
  __exportStar(require("./old/AttributesChangeRequest"), exports);
18
19
  __exportStar(require("./old/AttributesRequest"), exports);
19
20
  __exportStar(require("./old/AttributesShareRequest"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,0DAAuC;AACvC,+DAA4C;AAC5C,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,gEAA6C;AAC7C,0DAAuC;AACvC,+DAA4C;AAC5C,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,6CAA0B"}
@@ -0,0 +1,11 @@
1
+ import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
2
+ export interface AuthenticationRequestItemJSON extends RequestItemJSON {
3
+ description: string;
4
+ }
5
+ export interface IAuthenticationRequestItem extends IRequestItem {
6
+ description: string;
7
+ }
8
+ export declare class AuthenticationRequestItem extends RequestItem implements IAuthenticationRequestItem {
9
+ description: string;
10
+ static from(value: IAuthenticationRequestItem): AuthenticationRequestItem;
11
+ }
@@ -9,15 +9,18 @@ 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.AbstractStringValue = void 0;
12
+ exports.AuthenticationRequestItem = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
15
- class AbstractStringValue extends AbstractAttributeValue_1.AbstractAttributeValue {
14
+ const RequestItem_1 = require("../../RequestItem");
15
+ class AuthenticationRequestItem extends RequestItem_1.RequestItem {
16
+ static from(value) {
17
+ return this.fromAny(value);
18
+ }
16
19
  }
17
20
  __decorate([
18
21
  (0, ts_serval_1.serialize)(),
19
22
  (0, ts_serval_1.validate)(),
20
23
  __metadata("design:type", String)
21
- ], AbstractStringValue.prototype, "value", void 0);
22
- exports.AbstractStringValue = AbstractStringValue;
23
- //# sourceMappingURL=AbstractStringValue.js.map
24
+ ], AuthenticationRequestItem.prototype, "description", void 0);
25
+ exports.AuthenticationRequestItem = AuthenticationRequestItem;
26
+ //# sourceMappingURL=AuthenticationRequestItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/authentication/AuthenticationRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,mDAA8E;AAU9E,MAAa,yBAA0B,SAAQ,yBAAW;IAK/C,MAAM,CAAC,IAAI,CAAC,KAAiC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;8DACwB;AAHvC,8DAQC"}
@@ -0,0 +1,17 @@
1
+ import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
2
+ export interface ConsentRequestItemJSON extends RequestItemJSON {
3
+ consent: string;
4
+ link?: string;
5
+ requireActiveConsent?: boolean;
6
+ }
7
+ export interface IConsentRequestItem extends IRequestItem {
8
+ consent: string;
9
+ link?: string;
10
+ requireActiveConsent?: boolean;
11
+ }
12
+ export declare class ConsentRequestItem extends RequestItem implements IConsentRequestItem {
13
+ consent: string;
14
+ link?: string;
15
+ requireActiveConsent?: boolean;
16
+ static from(value: IConsentRequestItem): ConsentRequestItem;
17
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ConsentRequestItem = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const RequestItem_1 = require("../../RequestItem");
15
+ class ConsentRequestItem extends RequestItem_1.RequestItem {
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)(),
23
+ __metadata("design:type", String)
24
+ ], ConsentRequestItem.prototype, "consent", void 0);
25
+ __decorate([
26
+ (0, ts_serval_1.serialize)(),
27
+ (0, ts_serval_1.validate)({ nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], 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);
35
+ exports.ConsentRequestItem = ConsentRequestItem;
36
+ //# sourceMappingURL=ConsentRequestItem.js.map
@@ -0,0 +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"}
@@ -0,0 +1,12 @@
1
+ import { CoreId, ICoreId } from "@nmshd/transport";
2
+ import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
3
+ export interface CreateRelationshipAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
4
+ attributeId: string;
5
+ }
6
+ export interface ICreateRelationshipAttributeAcceptResponseItem extends IAcceptResponseItem {
7
+ attributeId: ICoreId;
8
+ }
9
+ export declare class CreateRelationshipAttributeAcceptResponseItem extends AcceptResponseItem implements ICreateRelationshipAttributeAcceptResponseItem {
10
+ attributeId: CoreId;
11
+ static from(value: ICreateRelationshipAttributeAcceptResponseItem | CreateRelationshipAttributeAcceptResponseItemJSON): CreateRelationshipAttributeAcceptResponseItem;
12
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateRelationshipAttributeAcceptResponseItem = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const transport_1 = require("@nmshd/transport");
15
+ const response_1 = require("../../response");
16
+ let CreateRelationshipAttributeAcceptResponseItem = class CreateRelationshipAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
17
+ static from(value) {
18
+ return this.fromAny(value);
19
+ }
20
+ };
21
+ __decorate([
22
+ (0, ts_serval_1.serialize)(),
23
+ (0, ts_serval_1.validate)(),
24
+ __metadata("design:type", transport_1.CoreId)
25
+ ], CreateRelationshipAttributeAcceptResponseItem.prototype, "attributeId", void 0);
26
+ CreateRelationshipAttributeAcceptResponseItem = __decorate([
27
+ (0, ts_serval_1.type)("CreateRelationshipAttributeAcceptResponseItem")
28
+ ], CreateRelationshipAttributeAcceptResponseItem);
29
+ exports.CreateRelationshipAttributeAcceptResponseItem = CreateRelationshipAttributeAcceptResponseItem;
30
+ //# sourceMappingURL=CreateRelationshipAttributeAcceptResponseItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateRelationshipAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,6CAAgG;AAWhG,IAAa,6CAA6C,GAA1D,MAAa,6CACT,SAAQ,6BAAkB;IAOnB,MAAM,CAAU,IAAI,CACvB,KAAyG;QAEzG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;kFAAA;AANjB,6CAA6C;IADzD,IAAA,gBAAI,EAAC,+CAA+C,CAAC;GACzC,6CAA6C,CAazD;AAbY,sGAA6C"}
@@ -0,0 +1,13 @@
1
+ import { RequestItemJSON } from "../..";
2
+ import { IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
3
+ import { IRequestItem, RequestItem } from "../../RequestItem";
4
+ export interface CreateRelationshipAttributeRequestItemJSON extends RequestItemJSON {
5
+ attribute: RelationshipAttributeJSON;
6
+ }
7
+ export interface ICreateRelationshipAttributeRequestItem extends IRequestItem {
8
+ attribute: IRelationshipAttribute;
9
+ }
10
+ export declare class CreateRelationshipAttributeRequestItem extends RequestItem implements ICreateRelationshipAttributeRequestItem {
11
+ attribute: RelationshipAttribute;
12
+ static from(value: ICreateRelationshipAttributeRequestItem | CreateRelationshipAttributeRequestItemJSON): CreateRelationshipAttributeRequestItem;
13
+ }
@@ -0,0 +1,29 @@
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.CreateRelationshipAttributeRequestItem = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const attributes_1 = require("../../../attributes");
15
+ const RequestItem_1 = require("../../RequestItem");
16
+ let CreateRelationshipAttributeRequestItem = class CreateRelationshipAttributeRequestItem extends RequestItem_1.RequestItem {
17
+ static from(value) {
18
+ return this.fromAny(value);
19
+ }
20
+ };
21
+ __decorate([
22
+ (0, ts_serval_1.validate)(),
23
+ __metadata("design:type", attributes_1.RelationshipAttribute)
24
+ ], CreateRelationshipAttributeRequestItem.prototype, "attribute", void 0);
25
+ CreateRelationshipAttributeRequestItem = __decorate([
26
+ (0, ts_serval_1.type)("CreateRelationshipAttributeRequestItem")
27
+ ], CreateRelationshipAttributeRequestItem);
28
+ exports.CreateRelationshipAttributeRequestItem = CreateRelationshipAttributeRequestItem;
29
+ //# sourceMappingURL=CreateRelationshipAttributeRequestItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateRelationshipAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAmD;AAEnD,oDAA8G;AAC9G,mDAA6D;AAW7D,IAAa,sCAAsC,GAAnD,MAAa,sCACT,SAAQ,yBAAW;IAMZ,MAAM,CAAC,IAAI,CACd,KAA2F;QAE3F,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IADC,IAAA,oBAAQ,GAAE;8BACO,kCAAqB;yEAAA;AAL9B,sCAAsC;IADlD,IAAA,gBAAI,EAAC,wCAAwC,CAAC;GAClC,sCAAsC,CAYlD;AAZY,wFAAsC"}
@@ -0,0 +1,10 @@
1
+ export * from "./authentication/AuthenticationRequestItem";
2
+ export * from "./consent/ConsentRequestItem";
3
+ export * from "./createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem";
4
+ export * from "./createRelationshipAttribute/CreateRelationshipAttributeRequestItem";
5
+ export * from "./proposeAttribute/ProposeAttributeAcceptResponseItem";
6
+ export * from "./proposeAttribute/ProposeAttributeRequestItem";
7
+ export * from "./readAttribute/ReadAttributeAcceptResponseItem";
8
+ export * from "./readAttribute/ReadAttributeRequestItem";
9
+ export * from "./shareAttribute/ShareAttributeAcceptResponseItem";
10
+ export * from "./shareAttribute/ShareAttributeRequestItem";
@@ -0,0 +1,27 @@
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("./authentication/AuthenticationRequestItem"), exports);
18
+ __exportStar(require("./consent/ConsentRequestItem"), exports);
19
+ __exportStar(require("./createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem"), exports);
20
+ __exportStar(require("./createRelationshipAttribute/CreateRelationshipAttributeRequestItem"), exports);
21
+ __exportStar(require("./proposeAttribute/ProposeAttributeAcceptResponseItem"), exports);
22
+ __exportStar(require("./proposeAttribute/ProposeAttributeRequestItem"), exports);
23
+ __exportStar(require("./readAttribute/ReadAttributeAcceptResponseItem"), exports);
24
+ __exportStar(require("./readAttribute/ReadAttributeRequestItem"), exports);
25
+ __exportStar(require("./shareAttribute/ShareAttributeAcceptResponseItem"), exports);
26
+ __exportStar(require("./shareAttribute/ShareAttributeRequestItem"), exports);
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA0D;AAC1D,+DAA4C;AAC5C,8GAA2F;AAC3F,uGAAoF;AACpF,wFAAqE;AACrE,iFAA8D;AAC9D,kFAA+D;AAC/D,2EAAwD;AACxD,oFAAiE;AACjE,6EAA0D"}
@@ -0,0 +1,16 @@
1
+ import { CoreId, ICoreId } from "@nmshd/transport";
2
+ import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
3
+ import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
4
+ export interface ProposeAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
5
+ attributeId: string;
6
+ attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
7
+ }
8
+ export interface IProposeAttributeAcceptResponseItem extends IAcceptResponseItem {
9
+ attributeId: ICoreId;
10
+ attribute: IIdentityAttribute | IRelationshipAttribute;
11
+ }
12
+ export declare class ProposeAttributeAcceptResponseItem extends AcceptResponseItem implements IProposeAttributeAcceptResponseItem {
13
+ attributeId: CoreId;
14
+ attribute: IdentityAttribute | RelationshipAttribute;
15
+ static from(value: IProposeAttributeAcceptResponseItem | ProposeAttributeAcceptResponseItemJSON): ProposeAttributeAcceptResponseItem;
16
+ }