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

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 (386) 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 +145 -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.d.ts +9 -2
  157. package/dist/attributes/types/name/HonorificPrefix.js +6 -0
  158. package/dist/attributes/types/name/HonorificPrefix.js.map +1 -1
  159. package/dist/attributes/types/name/HonorificSuffix.d.ts +9 -2
  160. package/dist/attributes/types/name/HonorificSuffix.js +6 -0
  161. package/dist/attributes/types/name/HonorificSuffix.js.map +1 -1
  162. package/dist/attributes/types/name/MiddleName.d.ts +10 -0
  163. package/dist/attributes/types/name/MiddleName.js +24 -0
  164. package/dist/attributes/types/name/MiddleName.js.map +1 -0
  165. package/dist/attributes/types/name/{Salutation.d.ts → PersonName.d.ts} +52 -57
  166. package/dist/attributes/types/name/{Salutation.js → PersonName.js} +32 -23
  167. package/dist/attributes/types/name/PersonName.js.map +1 -0
  168. package/dist/attributes/types/name/Pseudonym.d.ts +9 -2
  169. package/dist/attributes/types/name/Pseudonym.js +6 -0
  170. package/dist/attributes/types/name/Pseudonym.js.map +1 -1
  171. package/dist/attributes/types/name/Surname.d.ts +9 -2
  172. package/dist/attributes/types/name/Surname.js +6 -0
  173. package/dist/attributes/types/name/Surname.js.map +1 -1
  174. package/dist/attributes/types/name/index.d.ts +2 -4
  175. package/dist/attributes/types/name/index.js +2 -4
  176. package/dist/attributes/types/name/index.js.map +1 -1
  177. package/dist/attributes/types/person/Citizenship.d.ts +10 -2
  178. package/dist/attributes/types/person/Citizenship.js +8 -2
  179. package/dist/attributes/types/person/Citizenship.js.map +1 -1
  180. package/dist/attributes/types/person/JobTitle.d.ts +10 -0
  181. package/dist/attributes/types/person/{Picture.js → JobTitle.js} +14 -8
  182. package/dist/attributes/types/person/JobTitle.js.map +1 -0
  183. package/dist/attributes/types/person/Nationality.d.ts +10 -2
  184. package/dist/attributes/types/person/Nationality.js +8 -2
  185. package/dist/attributes/types/person/Nationality.js.map +1 -1
  186. package/dist/attributes/types/person/Sex.d.ts +10 -3
  187. package/dist/attributes/types/person/Sex.js +8 -2
  188. package/dist/attributes/types/person/Sex.js.map +1 -1
  189. package/dist/attributes/types/person/index.d.ts +1 -2
  190. package/dist/attributes/types/person/index.js +1 -2
  191. package/dist/attributes/types/person/index.js.map +1 -1
  192. package/dist/attributes/types/proprietary/ProprietaryBoolean.d.ts +4 -1
  193. package/dist/attributes/types/proprietary/ProprietaryBoolean.js +6 -0
  194. package/dist/attributes/types/proprietary/ProprietaryBoolean.js.map +1 -1
  195. package/dist/attributes/types/proprietary/ProprietaryCountry.d.ts +3 -0
  196. package/dist/attributes/types/proprietary/ProprietaryCountry.js +6 -0
  197. package/dist/attributes/types/proprietary/ProprietaryCountry.js.map +1 -1
  198. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.d.ts +3 -0
  199. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js +6 -0
  200. package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js.map +1 -1
  201. package/dist/attributes/types/proprietary/ProprietaryFileReference.d.ts +3 -0
  202. package/dist/attributes/types/proprietary/ProprietaryFileReference.js +6 -0
  203. package/dist/attributes/types/proprietary/ProprietaryFileReference.js.map +1 -1
  204. package/dist/attributes/types/proprietary/ProprietaryFloat.d.ts +3 -0
  205. package/dist/attributes/types/proprietary/ProprietaryFloat.js +6 -0
  206. package/dist/attributes/types/proprietary/ProprietaryFloat.js.map +1 -1
  207. package/dist/attributes/types/proprietary/ProprietaryHEXColor.d.ts +3 -0
  208. package/dist/attributes/types/proprietary/ProprietaryHEXColor.js +6 -0
  209. package/dist/attributes/types/proprietary/ProprietaryHEXColor.js.map +1 -1
  210. package/dist/attributes/types/proprietary/ProprietaryInteger.d.ts +3 -1
  211. package/dist/attributes/types/proprietary/ProprietaryInteger.js +3 -0
  212. package/dist/attributes/types/proprietary/ProprietaryInteger.js.map +1 -1
  213. package/dist/attributes/types/proprietary/ProprietaryLanguage.d.ts +3 -0
  214. package/dist/attributes/types/proprietary/ProprietaryLanguage.js +6 -0
  215. package/dist/attributes/types/proprietary/ProprietaryLanguage.js.map +1 -1
  216. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.d.ts +3 -0
  217. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js +6 -0
  218. package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js.map +1 -1
  219. package/dist/attributes/types/proprietary/ProprietaryString.d.ts +3 -0
  220. package/dist/attributes/types/proprietary/ProprietaryString.js +6 -0
  221. package/dist/attributes/types/proprietary/ProprietaryString.js.map +1 -1
  222. package/dist/attributes/types/proprietary/ProprietaryURL.d.ts +3 -0
  223. package/dist/attributes/types/proprietary/ProprietaryURL.js +6 -0
  224. package/dist/attributes/types/proprietary/ProprietaryURL.js.map +1 -1
  225. package/dist/attributes/types/proprietary/index.d.ts +0 -1
  226. package/dist/attributes/types/proprietary/index.js +0 -1
  227. package/dist/attributes/types/proprietary/index.js.map +1 -1
  228. package/dist/attributes/types/strings/AbstractCountry.js.map +1 -1
  229. package/dist/attributes/types/strings/AbstractEMailAddress.js +2 -2
  230. package/dist/attributes/types/strings/AbstractEMailAddress.js.map +1 -1
  231. package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -1
  232. package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -1
  233. package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -1
  234. package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -1
  235. package/dist/attributes/types/strings/AbstractURL.js.map +1 -1
  236. package/dist/attributes/types/strings/index.d.ts +0 -1
  237. package/dist/attributes/types/strings/index.js +0 -1
  238. package/dist/attributes/types/strings/index.js.map +1 -1
  239. package/dist/buildInformation.js +5 -5
  240. package/dist/forms/Form.d.ts +1 -0
  241. package/dist/forms/Form.js.map +1 -1
  242. package/dist/forms/FormItem.js.map +1 -1
  243. package/dist/forms/items/FormItemBoolean.d.ts +1 -0
  244. package/dist/forms/items/FormItemBoolean.js.map +1 -1
  245. package/dist/forms/items/FormItemDate.d.ts +1 -0
  246. package/dist/forms/items/FormItemDate.js.map +1 -1
  247. package/dist/forms/items/FormItemInvisible.js.map +1 -1
  248. package/dist/forms/items/FormItemMultipleChoice.d.ts +1 -0
  249. package/dist/forms/items/FormItemMultipleChoice.js.map +1 -1
  250. package/dist/forms/items/FormItemMultipleChoiceItem.d.ts +1 -0
  251. package/dist/forms/items/FormItemMultipleChoiceItem.js.map +1 -1
  252. package/dist/forms/items/FormItemSelect.d.ts +1 -0
  253. package/dist/forms/items/FormItemSelect.js.map +1 -1
  254. package/dist/forms/items/FormItemSelectItem.d.ts +1 -0
  255. package/dist/forms/items/FormItemSelectItem.js.map +1 -1
  256. package/dist/forms/items/FormItemString.d.ts +1 -0
  257. package/dist/forms/items/FormItemString.js.map +1 -1
  258. package/dist/forms/items/FormItemText.d.ts +1 -0
  259. package/dist/forms/items/FormItemText.js.map +1 -1
  260. package/dist/messages/Mail.d.ts +3 -2
  261. package/dist/messages/Mail.js +2 -8
  262. package/dist/messages/Mail.js.map +1 -1
  263. package/dist/messages/RequestMail.d.ts +21 -6
  264. package/dist/messages/RequestMail.js +24 -21
  265. package/dist/messages/RequestMail.js.map +1 -1
  266. package/dist/relationships/RelationshipCreationChangeRequestContent.d.ts +18 -0
  267. package/dist/relationships/{RelationshipCreationChangeRequestBody.js → RelationshipCreationChangeRequestContent.js} +12 -9
  268. package/dist/relationships/RelationshipCreationChangeRequestContent.js.map +1 -0
  269. package/dist/relationships/{RelationshipTemplateBody.d.ts → RelationshipTemplateContent.d.ts} +6 -4
  270. package/dist/relationships/{RelationshipTemplateBody.js → RelationshipTemplateContent.js} +14 -11
  271. package/dist/relationships/RelationshipTemplateContent.js.map +1 -0
  272. package/dist/relationships/index.d.ts +2 -2
  273. package/dist/relationships/index.js +2 -2
  274. package/dist/relationships/index.js.map +1 -1
  275. package/dist/requests/Request.d.ts +2 -1
  276. package/dist/requests/Request.js +2 -2
  277. package/dist/requests/Request.js.map +1 -1
  278. package/dist/requests/RequestItem.d.ts +18 -5
  279. package/dist/requests/RequestItem.js +7 -2
  280. package/dist/requests/RequestItem.js.map +1 -1
  281. package/dist/requests/RequestItemGroup.d.ts +4 -3
  282. package/dist/requests/RequestItemGroup.js +2 -2
  283. package/dist/requests/RequestItemGroup.js.map +1 -1
  284. package/dist/requests/items/authentication/AuthenticationRequestItem.d.ts +10 -0
  285. package/dist/requests/items/authentication/AuthenticationRequestItem.js +24 -0
  286. package/dist/requests/items/authentication/AuthenticationRequestItem.js.map +1 -0
  287. package/dist/requests/items/consent/ConsentRequestItem.d.ts +3 -4
  288. package/dist/requests/items/consent/ConsentRequestItem.js +8 -7
  289. package/dist/requests/items/consent/ConsentRequestItem.js.map +1 -1
  290. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeAcceptResponseItem.d.ts +2 -0
  291. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeAcceptResponseItem.js +3 -0
  292. package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js.map +1 -0
  293. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeRequestItem.d.ts +5 -7
  294. package/dist/requests/items/{createAttribute → createRelationshipAttribute}/CreateAttributeRequestItem.js +4 -7
  295. package/dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.js.map +1 -0
  296. package/dist/requests/items/index.d.ts +6 -2
  297. package/dist/requests/items/index.js +6 -2
  298. package/dist/requests/items/index.js.map +1 -1
  299. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.d.ts +2 -0
  300. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js +3 -0
  301. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js.map +1 -1
  302. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.d.ts +3 -1
  303. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +9 -4
  304. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js.map +1 -1
  305. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.d.ts +2 -0
  306. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js +3 -0
  307. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js.map +1 -1
  308. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +5 -4
  309. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js +5 -3
  310. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -1
  311. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.d.ts +13 -0
  312. package/dist/{attributes/types/proprietary/ProprietaryDataURL.js → requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js} +15 -14
  313. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js.map +1 -0
  314. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.d.ts +14 -0
  315. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js +35 -0
  316. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js.map +1 -0
  317. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.d.ts +14 -0
  318. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js +33 -0
  319. package/dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js.map +1 -0
  320. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.d.ts +12 -8
  321. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js +9 -5
  322. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js.map +1 -1
  323. package/dist/requests/old/AttributesChangeRequest.d.ts +2 -2
  324. package/dist/requests/old/AttributesChangeRequest.js +0 -11
  325. package/dist/requests/old/AttributesChangeRequest.js.map +1 -1
  326. package/dist/requests/old/AttributesRequest.d.ts +2 -2
  327. package/dist/requests/old/AttributesRequest.js +0 -10
  328. package/dist/requests/old/AttributesRequest.js.map +1 -1
  329. package/dist/requests/old/AttributesShareRequest.d.ts +2 -1
  330. package/dist/requests/old/AttributesShareRequest.js.map +1 -1
  331. package/dist/requests/response/AcceptResponseItem.d.ts +5 -5
  332. package/dist/requests/response/AcceptResponseItem.js +2 -2
  333. package/dist/requests/response/AcceptResponseItem.js.map +1 -1
  334. package/dist/requests/response/ErrorResponseItem.d.ts +2 -1
  335. package/dist/requests/response/ErrorResponseItem.js +2 -2
  336. package/dist/requests/response/ErrorResponseItem.js.map +1 -1
  337. package/dist/requests/response/RejectResponseItem.d.ts +2 -1
  338. package/dist/requests/response/RejectResponseItem.js +2 -2
  339. package/dist/requests/response/RejectResponseItem.js.map +1 -1
  340. package/dist/requests/response/Response.d.ts +2 -1
  341. package/dist/requests/response/Response.js +2 -2
  342. package/dist/requests/response/Response.js.map +1 -1
  343. package/dist/requests/response/ResponseItem.d.ts +1 -1
  344. package/dist/requests/response/ResponseItem.js +2 -2
  345. package/dist/requests/response/ResponseItem.js.map +1 -1
  346. package/dist/requests/response/ResponseItemGroup.d.ts +2 -1
  347. package/dist/requests/response/ResponseItemGroup.js +2 -2
  348. package/dist/requests/response/ResponseItemGroup.js.map +1 -1
  349. package/lib-web/nmshd.content.js +4182 -4583
  350. package/lib-web/nmshd.content.min.js +1 -1
  351. package/package.json +17 -16
  352. package/dist/attributes/hints/RelationshipAttributeCreationHints.d.ts +0 -31
  353. package/dist/attributes/hints/RelationshipAttributeCreationHints.js +0 -64
  354. package/dist/attributes/hints/RelationshipAttributeCreationHints.js.map +0 -1
  355. package/dist/attributes/types/AttributeList.d.ts +0 -1
  356. package/dist/attributes/types/AttributeList.js +0 -37
  357. package/dist/attributes/types/AttributeList.js.map +0 -1
  358. package/dist/attributes/types/AttributeTypeMapping.d.ts +0 -1
  359. package/dist/attributes/types/AttributeTypeMapping.js +0 -9
  360. package/dist/attributes/types/AttributeTypeMapping.js.map +0 -1
  361. package/dist/attributes/types/files/FileReference.d.ts +0 -3
  362. package/dist/attributes/types/files/FileReference.js.map +0 -1
  363. package/dist/attributes/types/files/index.js.map +0 -1
  364. package/dist/attributes/types/name/AbstractLegalName.d.ts +0 -3
  365. package/dist/attributes/types/name/AbstractLegalName.js +0 -8
  366. package/dist/attributes/types/name/AbstractLegalName.js.map +0 -1
  367. package/dist/attributes/types/name/DisplayName.d.ts +0 -3
  368. package/dist/attributes/types/name/DisplayName.js.map +0 -1
  369. package/dist/attributes/types/name/LegalNameDE.js +0 -92
  370. package/dist/attributes/types/name/LegalNameDE.js.map +0 -1
  371. package/dist/attributes/types/name/Salutation.js.map +0 -1
  372. package/dist/attributes/types/person/Age.d.ts +0 -6
  373. package/dist/attributes/types/person/Age.js +0 -34
  374. package/dist/attributes/types/person/Age.js.map +0 -1
  375. package/dist/attributes/types/person/Picture.d.ts +0 -3
  376. package/dist/attributes/types/person/Picture.js.map +0 -1
  377. package/dist/attributes/types/proprietary/ProprietaryDataURL.d.ts +0 -14
  378. package/dist/attributes/types/proprietary/ProprietaryDataURL.js.map +0 -1
  379. package/dist/attributes/types/strings/AbstractDataURL.d.ts +0 -7
  380. package/dist/attributes/types/strings/AbstractDataURL.js +0 -40
  381. package/dist/attributes/types/strings/AbstractDataURL.js.map +0 -1
  382. package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +0 -16
  383. package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +0 -1
  384. package/dist/relationships/RelationshipTemplateBody.js.map +0 -1
  385. package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js.map +0 -1
  386. package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractAttribute.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAAsH;AAetH,MAAsB,iBAAkB,SAAQ,4BAAgB;CAY/D;AATG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACE,uBAAW;gDAAA;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;oDAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;kDAAA;AAX7B,8CAYC"}
1
+ {"version":3,"file":"AbstractAttribute.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAAsH;AAetH,MAAsB,iBAAkB,SAAQ,4BAAgB;CAY/D;AAXG;IAAC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACE,uBAAW;gDAAA;AAEzB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;oDAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;kDAAA;AAX7B,8CAYC"}
@@ -1,17 +1,14 @@
1
1
  import { CoreDate, CoreSerializable, ICoreDate, ICoreSerializable } from "@nmshd/transport";
2
2
  import { ContentJSON } from "../ContentJSON";
3
3
  export interface AbstractAttributeQueryJSON extends ContentJSON {
4
- valueType: string;
5
4
  validFrom?: string;
6
5
  validTo?: string;
7
6
  }
8
7
  export interface IAbstractAttributeQuery extends ICoreSerializable {
9
- valueType: string;
10
8
  validFrom?: ICoreDate;
11
9
  validTo?: ICoreDate;
12
10
  }
13
11
  export declare abstract class AbstractAttributeQuery extends CoreSerializable implements IAbstractAttributeQuery {
14
- valueType: string;
15
12
  validFrom?: CoreDate;
16
13
  validTo?: CoreDate;
17
14
  }
@@ -14,13 +14,6 @@ const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const transport_1 = require("@nmshd/transport");
15
15
  class AbstractAttributeQuery extends transport_1.CoreSerializable {
16
16
  }
17
- __decorate([
18
- (0, ts_serval_1.serialize)(),
19
- (0, ts_serval_1.validate)({
20
- customValidator: (v) => (v === "" ? "must not be an empty string" : undefined)
21
- }),
22
- __metadata("design:type", String)
23
- ], AbstractAttributeQuery.prototype, "valueType", void 0);
24
17
  __decorate([
25
18
  (0, ts_serval_1.serialize)(),
26
19
  (0, ts_serval_1.validate)({ nullable: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAA2F;AAe3F,MAAsB,sBAAuB,SAAQ,4BAAgB;CAcpE;AATG;IAJC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,SAAS,CAAC;KACjF,CAAC;;yDACsB;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;yDAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;uDAAA;AAb7B,wDAcC"}
1
+ {"version":3,"file":"AbstractAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,gDAA2F;AAa3F,MAAsB,sBAAuB,SAAQ,4BAAgB;CAQpE;AAPG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;yDAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;uDAAA;AAP7B,wDAQC"}
@@ -1,6 +1,7 @@
1
1
  import { CoreDate, CoreSerializable, ICoreDate, ICoreSerializable } from "@nmshd/transport";
2
2
  import { ContentJSON } from "../ContentJSON";
3
3
  export interface AttributeJSON extends ContentJSON {
4
+ "@type": "Attribute";
4
5
  name: string;
5
6
  value: any;
6
7
  validFrom?: string;
@@ -19,6 +20,5 @@ export declare class Attribute extends CoreSerializable implements IAttribute {
19
20
  validTo?: CoreDate;
20
21
  get namespace(): string | undefined;
21
22
  get attribute(): string | undefined;
22
- static from(value: IAttribute): Attribute;
23
- static fromJSON(value: AttributeJSON): Attribute;
23
+ static from(value: IAttribute | AttributeJSON): Attribute;
24
24
  }
@@ -30,14 +30,6 @@ let Attribute = class Attribute extends transport_1.CoreSerializable {
30
30
  static from(value) {
31
31
  return this.fromAny(value);
32
32
  }
33
- static fromJSON(value) {
34
- return this.from({
35
- name: value.name,
36
- value: value.value,
37
- validFrom: value.validFrom ? transport_1.CoreDate.from(value.validFrom) : undefined,
38
- validTo: value.validTo ? transport_1.CoreDate.from(value.validTo) : undefined
39
- });
40
- }
41
33
  };
42
34
  __decorate([
43
35
  (0, ts_serval_1.serialize)(),
@@ -1 +1 @@
1
- {"version":3,"file":"Attribute.js","sourceRoot":"","sources":["../../src/attributes/Attribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA2F;AAkB3F,IAAa,SAAS,GAAtB,MAAa,SAAU,SAAQ,4BAAgB;IAiB3C,IAAW,SAAS;QAChB,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAA;QAChC,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC/B,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO,SAAS,CAAA;QACpC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAA;IAChB,CAAC;IAED,IAAW,SAAS;QAChB,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAA;Q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AC,WAAW,CAAC;GACL,SAAS,CAiCrB;AAjCY,8BAAS"}
@@ -0,0 +1,47 @@
1
+ import { FileReference, IFileReference } from "@nmshd/transport";
2
+ import { Affiliation, AffiliationJSON, AffiliationOrganization, AffiliationOrganizationJSON, AffiliationRole, AffiliationRoleJSON, AffiliationUnit, AffiliationUnitJSON, BirthCity, BirthCityJSON, BirthCountry, BirthCountryJSON, BirthDate, BirthDateJSON, BirthDay, BirthDayJSON, BirthMonth, BirthMonthJSON, BirthName, BirthNameJSON, BirthPlace, BirthPlaceJSON, BirthState, BirthStateJSON, BirthYear, BirthYearJSON, Citizenship, CitizenshipJSON, City, CityJSON, CommunicationLanguage, CommunicationLanguageJSON, Country, CountryJSON, DeliveryBoxAddress, DeliveryBoxAddressJSON, DisplayName, DisplayNameJSON, EMailAddress, EMailAddressJSON, Fax, FaxJSON, FileReferenceJSON, GivenName, GivenNameJSON, HonorificPrefix, HonorificPrefixJSON, HonorificSuffix, HonorificSuffixJSON, HouseNumber, HouseNumberJSON, IAffiliation, IAffiliationOrganization, IAffiliationRole, IAffiliationUnit, IBirthCity, IBirthCountry, IBirthDate, IBirthDay, IBirthMonth, IBirthName, IBirthPlace, IBirthState, IBirthYear, ICitizenship, ICity, ICommunicationLanguage, ICountry, IDeliveryBoxAddress, IDisplayName, IEMailAddress, IFax, IGivenName, IHonorificPrefix, IHonorificSuffix, IHouseNumber, IJobTitle, IMiddleName, INationality, IPersonName, IPhone, IPostOfficeBoxAddress, IProprietaryBoolean, IProprietaryCountry, IProprietaryEMailAddress, IProprietaryFileReference, IProprietaryFloat, IProprietaryHEXColor, IProprietaryInteger, IProprietaryLanguage, IProprietaryPhoneNumber, IProprietaryString, IProprietaryURL, IPseudonym, ISex, IState, IStreet, IStreetAddress, ISurname, IWebsite, IZipCode, JobTitle, JobTitleJSON, MiddleName, MiddleNameJSON, Nationality, NationalityJSON, PersonName, PersonNameJSON, Phone, PhoneJSON, PostOfficeBoxAddress, PostOfficeBoxAddressJSON, ProprietaryBoolean, ProprietaryBooleanJSON, ProprietaryCountry, ProprietaryCountryJSON, ProprietaryEMailAddress, ProprietaryEMailAddressJSON, ProprietaryFileReference, ProprietaryFileReferenceJSON, ProprietaryFloat, ProprietaryFloatJSON, ProprietaryHEXColor, ProprietaryHEXColorJSON, ProprietaryInteger, ProprietaryIntegerJSON, ProprietaryLanguage, ProprietaryLanguageJSON, ProprietaryPhoneNumber, ProprietaryPhoneNumberJSON, ProprietaryString, ProprietaryStringJSON, ProprietaryURL, ProprietaryURLJSON, Pseudonym, PseudonymJSON, Sex, SexJSON, State, StateJSON, Street, StreetAddress, StreetAddressJSON, StreetJSON, Surname, SurnameJSON, Website, WebsiteJSON, ZipCode, ZipCodeJSON } from "./types";
3
+ export declare module AttributeValues {
4
+ module Identity {
5
+ module Editable {
6
+ type Json = AffiliationJSON | BirthDateJSON | BirthNameJSON | BirthPlaceJSON | CitizenshipJSON | CommunicationLanguageJSON | DeliveryBoxAddressJSON | DisplayNameJSON | EMailAddressJSON | FaxJSON | FileReferenceJSON | JobTitleJSON | NationalityJSON | PersonNameJSON | PhoneJSON | PostOfficeBoxAddressJSON | PseudonymJSON | SexJSON | StreetAddressJSON | WebsiteJSON;
7
+ type Interface = IAffiliation | IBirthDate | IBirthName | IBirthPlace | ICitizenship | ICommunicationLanguage | IDeliveryBoxAddress | IDisplayName | IEMailAddress | IFax | IFileReference | IJobTitle | INationality | IPersonName | IPhone | IPostOfficeBoxAddress | IPseudonym | ISex | IStreetAddress | IWebsite;
8
+ type Class = Affiliation | BirthDate | BirthName | BirthPlace | Citizenship | CommunicationLanguage | DeliveryBoxAddress | DisplayName | EMailAddress | Fax | FileReference | JobTitle | Nationality | PersonName | Phone | PostOfficeBoxAddress | Pseudonym | Sex | StreetAddress | Website;
9
+ const CLASSES: (typeof FileReference | typeof CommunicationLanguage | typeof EMailAddress | typeof Fax | typeof Phone | typeof Website | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDate | typeof BirthPlace | typeof DisplayName | typeof BirthName | typeof PersonName | typeof Pseudonym | typeof Citizenship | typeof JobTitle | typeof Nationality | typeof Sex)[];
10
+ const TYPE_NAMES: readonly ["Affiliation", "BirthDate", "BirthName", "BirthPlace", "Citizenship", "CommunicationLanguage", "DeliveryBoxAddress", "DisplayName", "EMailAddress", "Fax", "FileReference", "JobTitle", "Nationality", "PersonName", "Phone", "PostOfficeBoxAddress", "Pseudonym", "Sex", "StreetAddress", "Website"];
11
+ const TYPE_NAMES_STRINGIFIED: string;
12
+ type TypeName = typeof TYPE_NAMES[number];
13
+ }
14
+ module Uneditable {
15
+ type Json = AffiliationOrganizationJSON | AffiliationRoleJSON | AffiliationUnitJSON | BirthCityJSON | BirthCountryJSON | BirthDayJSON | BirthMonthJSON | BirthStateJSON | BirthYearJSON | CityJSON | CountryJSON | GivenNameJSON | HonorificPrefixJSON | HonorificSuffixJSON | HouseNumberJSON | MiddleNameJSON | StateJSON | StreetJSON | SurnameJSON | ZipCodeJSON;
16
+ type Interface = IAffiliationOrganization | IAffiliationRole | IAffiliationUnit | IBirthCity | IBirthCountry | IBirthDay | IBirthMonth | IBirthState | IBirthYear | ICity | ICountry | IGivenName | IHonorificPrefix | IHonorificSuffix | IHouseNumber | IMiddleName | IState | IStreet | ISurname | IZipCode;
17
+ type Class = AffiliationOrganization | AffiliationRole | AffiliationUnit | BirthCity | BirthCountry | BirthDay | BirthMonth | BirthState | BirthYear | City | Country | GivenName | HonorificPrefix | HonorificSuffix | HouseNumber | MiddleName | State | Street | Surname | ZipCode;
18
+ const CLASSES: (typeof City | typeof BirthDay | typeof BirthMonth | typeof BirthYear)[];
19
+ const TYPE_NAMES: readonly ["AffiliationOrganization", "AffiliationRole", "AffiliationUnit", "BirthCity", "BirthCountry", "BirthDay", "BirthMonth", "BirthState", "BirthYear", "City", "Country", "GivenName", "HonorificPrefix", "HonorificSuffix", "HouseNumber", "MiddleName", "State", "Street", "Surname", "ZipCode"];
20
+ const TYPE_NAMES_STRINGIFIED: string;
21
+ type TypeName = typeof TYPE_NAMES[number];
22
+ }
23
+ type Json = Editable.Json | Uneditable.Json;
24
+ type Interface = Editable.Interface | Uneditable.Interface;
25
+ type Class = Editable.Class | Uneditable.Class;
26
+ const CLASSES: (typeof FileReference | typeof City | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDay | typeof BirthMonth | typeof BirthYear | typeof BirthDate | typeof BirthPlace | typeof PersonName)[];
27
+ type TypeName = Editable.TypeName | Uneditable.TypeName;
28
+ const TYPE_NAMES: ("City" | "Country" | "StreetAddress" | "DeliveryBoxAddress" | "PostOfficeBoxAddress" | "CommunicationLanguage" | "EMailAddress" | "Fax" | "Phone" | "Website" | "State" | "ZipCode" | "HouseNumber" | "Street" | "AffiliationOrganization" | "AffiliationRole" | "AffiliationUnit" | "Affiliation" | "BirthCity" | "BirthCountry" | "BirthDay" | "BirthMonth" | "BirthYear" | "BirthDate" | "BirthState" | "BirthPlace" | "DisplayName" | "FileReference" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex")[];
29
+ const TYPE_NAMES_STRINGIFIED: string;
30
+ }
31
+ module Relationship {
32
+ type Json = ProprietaryBooleanJSON | ProprietaryCountryJSON | ProprietaryEMailAddressJSON | ProprietaryFileReferenceJSON | ProprietaryFloatJSON | ProprietaryHEXColorJSON | ProprietaryIntegerJSON | ProprietaryLanguageJSON | ProprietaryPhoneNumberJSON | ProprietaryStringJSON | ProprietaryURLJSON;
33
+ type Interface = IProprietaryBoolean | IProprietaryCountry | IProprietaryEMailAddress | IProprietaryFileReference | IProprietaryFloat | IProprietaryHEXColor | IProprietaryInteger | IProprietaryLanguage | IProprietaryPhoneNumber | IProprietaryString | IProprietaryURL;
34
+ type Class = ProprietaryBoolean | ProprietaryCountry | ProprietaryEMailAddress | ProprietaryFileReference | ProprietaryFloat | ProprietaryHEXColor | ProprietaryInteger | ProprietaryLanguage | ProprietaryPhoneNumber | ProprietaryString | ProprietaryURL;
35
+ const CLASSES: (typeof ProprietaryBoolean | typeof ProprietaryCountry | typeof ProprietaryEMailAddress | typeof ProprietaryFileReference | typeof ProprietaryFloat | typeof ProprietaryHEXColor | typeof ProprietaryInteger | typeof ProprietaryLanguage | typeof ProprietaryPhoneNumber | typeof ProprietaryString | typeof ProprietaryURL)[];
36
+ const TYPE_NAMES: readonly ["ProprietaryBoolean", "ProprietaryCountry", "ProprietaryEMailAddress", "ProprietaryFileReference", "ProprietaryFloat", "ProprietaryHEXColor", "ProprietaryInteger", "ProprietaryLanguage", "ProprietaryPhoneNumber", "ProprietaryString", "ProprietaryURL"];
37
+ const TYPE_NAMES_STRINGIFIED: string;
38
+ type TypeName = typeof TYPE_NAMES[number];
39
+ }
40
+ type Json = Identity.Json | Relationship.Json;
41
+ type Interface = Identity.Interface | Relationship.Interface;
42
+ type Class = Identity.Class | Relationship.Class;
43
+ const CLASSES: (typeof FileReference | typeof City | typeof DeliveryBoxAddress | typeof PostOfficeBoxAddress | typeof StreetAddress | typeof Affiliation | typeof BirthDay | typeof BirthMonth | typeof BirthYear | typeof BirthDate | typeof BirthPlace | typeof PersonName | typeof ProprietaryBoolean | typeof ProprietaryFloat | typeof ProprietaryInteger)[];
44
+ type TypeName = Identity.TypeName | Relationship.TypeName;
45
+ const TYPE_NAMES: ("City" | "Country" | "StreetAddress" | "DeliveryBoxAddress" | "PostOfficeBoxAddress" | "CommunicationLanguage" | "EMailAddress" | "Fax" | "Phone" | "Website" | "State" | "ZipCode" | "HouseNumber" | "Street" | "AffiliationOrganization" | "AffiliationRole" | "AffiliationUnit" | "Affiliation" | "BirthCity" | "BirthCountry" | "BirthDay" | "BirthMonth" | "BirthYear" | "BirthDate" | "BirthState" | "BirthPlace" | "DisplayName" | "FileReference" | "BirthName" | "GivenName" | "HonorificPrefix" | "HonorificSuffix" | "MiddleName" | "Surname" | "PersonName" | "Pseudonym" | "Citizenship" | "JobTitle" | "Nationality" | "Sex" | "ProprietaryBoolean" | "ProprietaryCountry" | "ProprietaryEMailAddress" | "ProprietaryFileReference" | "ProprietaryFloat" | "ProprietaryHEXColor" | "ProprietaryInteger" | "ProprietaryLanguage" | "ProprietaryPhoneNumber" | "ProprietaryString" | "ProprietaryURL")[];
46
+ const TYPE_NAMES_STRINGIFIED: string;
47
+ }
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributeValues = void 0;
4
+ const transport_1 = require("@nmshd/transport");
5
+ const types_1 = require("./types");
6
+ // ################################################ Editable Identity Attribute Value Types ###################################################################
7
+ var AttributeValues;
8
+ (function (AttributeValues) {
9
+ let Identity;
10
+ (function (Identity) {
11
+ let Editable;
12
+ (function (Editable) {
13
+ Editable.CLASSES = [
14
+ types_1.Affiliation,
15
+ types_1.BirthDate,
16
+ types_1.BirthName,
17
+ types_1.BirthPlace,
18
+ types_1.Citizenship,
19
+ types_1.CommunicationLanguage,
20
+ types_1.DeliveryBoxAddress,
21
+ types_1.DisplayName,
22
+ types_1.EMailAddress,
23
+ types_1.Fax,
24
+ transport_1.FileReference,
25
+ types_1.JobTitle,
26
+ types_1.Nationality,
27
+ types_1.PersonName,
28
+ types_1.Phone,
29
+ types_1.PostOfficeBoxAddress,
30
+ types_1.Pseudonym,
31
+ types_1.Sex,
32
+ types_1.StreetAddress,
33
+ types_1.Website
34
+ ];
35
+ Editable.TYPE_NAMES = [
36
+ "Affiliation",
37
+ "BirthDate",
38
+ "BirthName",
39
+ "BirthPlace",
40
+ "Citizenship",
41
+ "CommunicationLanguage",
42
+ "DeliveryBoxAddress",
43
+ "DisplayName",
44
+ "EMailAddress",
45
+ "Fax",
46
+ "FileReference",
47
+ "JobTitle",
48
+ "Nationality",
49
+ "PersonName",
50
+ "Phone",
51
+ "PostOfficeBoxAddress",
52
+ "Pseudonym",
53
+ "Sex",
54
+ "StreetAddress",
55
+ "Website"
56
+ ];
57
+ Editable.TYPE_NAMES_STRINGIFIED = JSON.stringify(Editable.TYPE_NAMES);
58
+ })(Editable = Identity.Editable || (Identity.Editable = {}));
59
+ let Uneditable;
60
+ (function (Uneditable) {
61
+ Uneditable.CLASSES = [
62
+ types_1.AffiliationOrganization,
63
+ types_1.AffiliationRole,
64
+ types_1.AffiliationUnit,
65
+ types_1.BirthCity,
66
+ types_1.BirthCountry,
67
+ types_1.BirthDay,
68
+ types_1.BirthMonth,
69
+ types_1.BirthState,
70
+ types_1.BirthYear,
71
+ types_1.City,
72
+ types_1.Country,
73
+ types_1.GivenName,
74
+ types_1.HonorificPrefix,
75
+ types_1.HonorificSuffix,
76
+ types_1.HouseNumber,
77
+ types_1.MiddleName,
78
+ types_1.State,
79
+ types_1.Street,
80
+ types_1.Surname,
81
+ types_1.ZipCode
82
+ ];
83
+ Uneditable.TYPE_NAMES = [
84
+ "AffiliationOrganization",
85
+ "AffiliationRole",
86
+ "AffiliationUnit",
87
+ "BirthCity",
88
+ "BirthCountry",
89
+ "BirthDay",
90
+ "BirthMonth",
91
+ "BirthState",
92
+ "BirthYear",
93
+ "City",
94
+ "Country",
95
+ "GivenName",
96
+ "HonorificPrefix",
97
+ "HonorificSuffix",
98
+ "HouseNumber",
99
+ "MiddleName",
100
+ "State",
101
+ "Street",
102
+ "Surname",
103
+ "ZipCode"
104
+ ];
105
+ Uneditable.TYPE_NAMES_STRINGIFIED = JSON.stringify(Uneditable.TYPE_NAMES);
106
+ })(Uneditable = Identity.Uneditable || (Identity.Uneditable = {}));
107
+ Identity.CLASSES = [...Editable.CLASSES, ...Uneditable.CLASSES];
108
+ Identity.TYPE_NAMES = [...Editable.TYPE_NAMES, ...Uneditable.TYPE_NAMES];
109
+ Identity.TYPE_NAMES_STRINGIFIED = JSON.stringify(Identity.TYPE_NAMES);
110
+ })(Identity = AttributeValues.Identity || (AttributeValues.Identity = {}));
111
+ let Relationship;
112
+ (function (Relationship) {
113
+ Relationship.CLASSES = [
114
+ types_1.ProprietaryBoolean,
115
+ types_1.ProprietaryCountry,
116
+ types_1.ProprietaryEMailAddress,
117
+ types_1.ProprietaryFileReference,
118
+ types_1.ProprietaryFloat,
119
+ types_1.ProprietaryHEXColor,
120
+ types_1.ProprietaryInteger,
121
+ types_1.ProprietaryLanguage,
122
+ types_1.ProprietaryPhoneNumber,
123
+ types_1.ProprietaryString,
124
+ types_1.ProprietaryURL
125
+ ];
126
+ Relationship.TYPE_NAMES = [
127
+ "ProprietaryBoolean",
128
+ "ProprietaryCountry",
129
+ "ProprietaryEMailAddress",
130
+ "ProprietaryFileReference",
131
+ "ProprietaryFloat",
132
+ "ProprietaryHEXColor",
133
+ "ProprietaryInteger",
134
+ "ProprietaryLanguage",
135
+ "ProprietaryPhoneNumber",
136
+ "ProprietaryString",
137
+ "ProprietaryURL"
138
+ ];
139
+ Relationship.TYPE_NAMES_STRINGIFIED = JSON.stringify(Relationship.TYPE_NAMES);
140
+ })(Relationship = AttributeValues.Relationship || (AttributeValues.Relationship = {}));
141
+ AttributeValues.CLASSES = [...Identity.CLASSES, ...Relationship.CLASSES];
142
+ AttributeValues.TYPE_NAMES = [...Identity.TYPE_NAMES, ...Relationship.TYPE_NAMES];
143
+ AttributeValues.TYPE_NAMES_STRINGIFIED = JSON.stringify(AttributeValues.TYPE_NAMES);
144
+ })(AttributeValues = exports.AttributeValues || (exports.AttributeValues = {}));
145
+ //# sourceMappingURL=AttributeValueTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeValueTypes.js","sourceRoot":"","sources":["../../src/attributes/AttributeValueTypes.ts"],"names":[],"mappings":";;;AAAA,gDAAgE;AAChE,mCAwJgB;AAEhB,+JAA+J;AAE/J,IAAc,eAAe,CAoU5B;AApUD,WAAc,eAAe;IACzB,IAAc,QAAQ,CAkPrB;IAlPD,WAAc,QAAQ;QAClB,IAAc,QAAQ,CAmHrB;QAnHD,WAAc,QAAQ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BAAU,GAAG,CAAC,GAAG,QAAQ,CAAC,UAAU,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;IACjE,sCAAsB,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAA,UAAU,CAAC,CAAA;AACpE,CAAC,EApUa,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAoU5B"}
@@ -1,16 +1,17 @@
1
1
  import { AbstractAttribute, AbstractAttributeJSON, IAbstractAttribute } from "./AbstractAttribute";
2
- import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "./AbstractAttributeValue";
3
- export interface IdentityAttributeJSON<TValueJSONInterface extends AbstractAttributeValueJSON = AbstractAttributeValueJSON> extends AbstractAttributeJSON {
2
+ import { AttributeValues } from "./AttributeValueTypes";
3
+ export interface IdentityAttributeJSON<TValueJSONInterface extends AttributeValues.Identity.Json = AttributeValues.Identity.Json> extends AbstractAttributeJSON {
4
+ "@type": "IdentityAttribute";
4
5
  value: TValueJSONInterface;
5
6
  tags?: string[];
6
7
  }
7
- export interface IIdentityAttribute<TValueInterface extends IAbstractAttributeValue = IAbstractAttributeValue> extends IAbstractAttribute {
8
+ export interface IIdentityAttribute<TValueInterface extends AttributeValues.Identity.Interface = AttributeValues.Identity.Interface> extends IAbstractAttribute {
8
9
  value: TValueInterface;
9
10
  tags?: string[];
10
11
  }
11
- export declare class IdentityAttribute<TValueClass extends AbstractAttributeValue = AbstractAttributeValue> extends AbstractAttribute implements IIdentityAttribute<TValueClass> {
12
+ export declare class IdentityAttribute<TValueClass extends AttributeValues.Identity.Class = AttributeValues.Identity.Class> extends AbstractAttribute implements IIdentityAttribute<TValueClass> {
12
13
  value: TValueClass;
13
14
  tags?: string[];
14
- static from<TValueClass extends AbstractAttributeValue = AbstractAttributeValue, TValueInterface extends IAbstractAttributeValue = IAbstractAttributeValue, TValueJSONInterface extends AbstractAttributeValueJSON = AbstractAttributeValueJSON>(value: IIdentityAttribute<TValueInterface> | IdentityAttributeJSON<TValueJSONInterface>): IdentityAttribute<TValueClass>;
15
- toJSON(): IdentityAttributeJSON;
15
+ static from<TValueClass extends AttributeValues.Identity.Class = AttributeValues.Identity.Class, TValueInterface extends AttributeValues.Identity.Interface = AttributeValues.Identity.Interface, TValueJSONInterface extends AttributeValues.Identity.Json = AttributeValues.Identity.Json>(value: IIdentityAttribute<TValueInterface> | IdentityAttributeJSON<TValueJSONInterface>): IdentityAttribute<TValueClass>;
16
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): IdentityAttributeJSON;
16
17
  }
@@ -12,17 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IdentityAttribute = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const AbstractAttribute_1 = require("./AbstractAttribute");
15
- const AbstractAttributeValue_1 = require("./AbstractAttributeValue");
15
+ const AttributeValueTypes_1 = require("./AttributeValueTypes");
16
16
  let IdentityAttribute = class IdentityAttribute extends AbstractAttribute_1.AbstractAttribute {
17
17
  static from(value) {
18
18
  return this.fromAny(value);
19
19
  }
20
- toJSON() {
21
- return super.toJSON();
20
+ toJSON(verbose, serializeAsString) {
21
+ return super.toJSON(verbose, serializeAsString);
22
22
  }
23
23
  };
24
24
  __decorate([
25
- (0, ts_serval_1.serialize)({ unionTypes: [AbstractAttributeValue_1.AbstractAttributeValue] }),
25
+ (0, ts_serval_1.serialize)({ unionTypes: AttributeValueTypes_1.AttributeValues.Identity.CLASSES }),
26
26
  (0, ts_serval_1.validate)(),
27
27
  __metadata("design:type", Object)
28
28
  ], IdentityAttribute.prototype, "value", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityAttribute.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG,qEAAsH;AAgBtH,IAAa,iBAAiB,GAA9B,MAAa,iBACT,SAAQ,qCAAiB;IAYlB,MAAM,CAAC,IAAI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Vb,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CA4B7B;AA5BY,8CAAiB"}
@@ -1,12 +1,17 @@
1
1
  import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
2
+ import { AttributeValues } from "./AttributeValueTypes";
2
3
  export interface IdentityAttributeQueryJSON extends AbstractAttributeQueryJSON {
4
+ "@type": "IdentityAttributeQuery";
5
+ valueType: AttributeValues.Identity.TypeName;
3
6
  tags?: string[];
4
7
  }
5
8
  export interface IIdentityAttributeQuery extends IAbstractAttributeQuery {
9
+ valueType: AttributeValues.Identity.TypeName;
6
10
  tags?: string[];
7
11
  }
8
12
  export declare class IdentityAttributeQuery extends AbstractAttributeQuery implements IIdentityAttributeQuery {
13
+ valueType: AttributeValues.Identity.TypeName;
9
14
  tags?: string[];
10
15
  static from(value: IIdentityAttributeQuery | IdentityAttributeQueryJSON): IdentityAttributeQuery;
11
- toJSON(): IdentityAttributeQueryJSON;
16
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): IdentityAttributeQueryJSON;
12
17
  }
@@ -12,14 +12,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IdentityAttributeQuery = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const AbstractAttributeQuery_1 = require("./AbstractAttributeQuery");
15
+ const AttributeValueTypes_1 = require("./AttributeValueTypes");
15
16
  let IdentityAttributeQuery = class IdentityAttributeQuery extends AbstractAttributeQuery_1.AbstractAttributeQuery {
16
17
  static from(value) {
17
18
  return this.fromAny(value);
18
19
  }
19
- toJSON() {
20
- return super.toJSON();
20
+ toJSON(verbose, serializeAsString) {
21
+ return super.toJSON(verbose, serializeAsString);
21
22
  }
22
23
  };
24
+ __decorate([
25
+ (0, ts_serval_1.serialize)(),
26
+ (0, ts_serval_1.validate)({
27
+ customValidator: (v) => !AttributeValueTypes_1.AttributeValues.Identity.TYPE_NAMES.includes(v)
28
+ ? `must be one of: ${AttributeValueTypes_1.AttributeValues.Identity.TYPE_NAMES_STRINGIFIED}`
29
+ : undefined
30
+ }),
31
+ __metadata("design:type", String)
32
+ ], IdentityAttributeQuery.prototype, "valueType", void 0);
23
33
  __decorate([
24
34
  (0, ts_serval_1.serialize)({ type: String }),
25
35
  (0, ts_serval_1.validate)({ nullable: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qEAAsH;AAWtH,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,+CAAsB;IAKvD,MAAM,CAAC,IAAI,CAAC,KAA2D;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAgC,CAAA;IACvD,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAHb,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CAYlC;AAZY,wDAAsB"}
1
+ {"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qEAAsH;AACtH,+DAAuD;AAchD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,+CAAsB;IAcvD,MAAM,CAAC,IAAI,CAAC,KAA2D;QAC1E,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,CAA+B,CAAA;IACjF,CAAC;CACJ,CAAA;AAvBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,qCAAe,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5C,CAAC,CAAC,mBAAmB,qCAAe,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YACtE,CAAC,CAAC,SAAS;KACtB,CAAC;;yDACiD;AAEnD;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAZb,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CAwBlC;AAxBY,wDAAsB"}
@@ -1,53 +1,25 @@
1
1
  import { AbstractAttribute, AbstractAttributeJSON, IAbstractAttribute } from "./AbstractAttribute";
2
- import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "./AbstractAttributeValue";
3
- export declare enum RelationshipAttributeConfidentiality {
4
- /**
5
- * If a third party queries a public RelationshipAttribute from an Identity, there is no
6
- * warning message for a user that possibly sensitive information from within a Relationship
7
- * is shared to a third party. However, this does not mean that the request for such an
8
- * Attribute can or is automatically accepted, as the user might not want to share it with
9
- * this third party - nevertheless it is public.
10
- *
11
- * Good examples for public RelationshipAttributes are bonus membership ids or social network
12
- * account names/channels.
13
- */
14
- Public = "public",
15
- /**
16
- * A private Attribute may never be queried by a third party. Even if queried, a user cannot
17
- * "override" this rule and accept such a sharing request. Querying such an Attribute will
18
- * result in an error.
19
- *
20
- * An example would be a telephone PIN with a bank which is used as the authentication factor.
21
- */
22
- Private = "private",
23
- /**
24
- * A protected RelationshipAttribute may be queried by a third party, but the user is
25
- * specifically warned about this query and needs to give consent.
26
- *
27
- * This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
28
- * is a "common real-world edge case". For example given out a car insurance id to the
29
- * other party once you had an accident.
30
- */
31
- Protected = "protected"
32
- }
33
- export interface RelationshipAttributeJSON<TValueJSONInterface extends AbstractAttributeValueJSON = AbstractAttributeValueJSON> extends AbstractAttributeJSON {
2
+ import { AttributeValues } from "./AttributeValueTypes";
3
+ import { RelationshipAttributeConfidentiality } from "./RelationshipAttributeConfidentiality";
4
+ export interface RelationshipAttributeJSON<TValueJSONInterface extends AttributeValues.Relationship.Json = AttributeValues.Relationship.Json> extends AbstractAttributeJSON {
5
+ "@type": "RelationshipAttribute";
34
6
  value: TValueJSONInterface;
35
7
  key: string;
36
8
  isTechnical?: boolean;
37
9
  confidentiality: RelationshipAttributeConfidentiality;
38
10
  }
39
- export interface IRelationshipAttribute<TValueInterface extends IAbstractAttributeValue = IAbstractAttributeValue> extends IAbstractAttribute {
11
+ export interface IRelationshipAttribute<TValueInterface extends AttributeValues.Relationship.Interface = AttributeValues.Relationship.Interface> extends IAbstractAttribute {
40
12
  value: TValueInterface;
41
13
  key: string;
42
14
  isTechnical?: boolean;
43
15
  confidentiality: RelationshipAttributeConfidentiality;
44
16
  }
45
- export declare class RelationshipAttribute<TValueClass extends AbstractAttributeValue = AbstractAttributeValue> extends AbstractAttribute implements IRelationshipAttribute<TValueClass> {
17
+ export declare class RelationshipAttribute<TValueClass extends AttributeValues.Relationship.Class = AttributeValues.Relationship.Class> extends AbstractAttribute implements IRelationshipAttribute<TValueClass> {
46
18
  value: TValueClass;
47
19
  key: string;
48
20
  isTechnical: boolean;
49
21
  confidentiality: RelationshipAttributeConfidentiality;
50
22
  protected static preFrom(value: any): any;
51
- static from<TValueClass extends AbstractAttributeValue = AbstractAttributeValue, TValueInterface extends IAbstractAttributeValue = IAbstractAttributeValue, TValueJSONInterface extends AbstractAttributeValueJSON = AbstractAttributeValueJSON>(value: IRelationshipAttribute<TValueInterface> | RelationshipAttributeJSON<TValueJSONInterface>): RelationshipAttribute<TValueClass>;
52
- toJSON(): RelationshipAttributeJSON;
23
+ static from<TValueClass extends AttributeValues.Relationship.Class = AttributeValues.Relationship.Class, TValueInterface extends AttributeValues.Relationship.Interface = AttributeValues.Relationship.Interface, TValueJSONInterface extends AttributeValues.Relationship.Json = AttributeValues.Relationship.Json>(value: IRelationshipAttribute<TValueInterface> | RelationshipAttributeJSON<TValueJSONInterface>): RelationshipAttribute<TValueClass>;
24
+ toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RelationshipAttributeJSON;
53
25
  }
@@ -9,41 +9,11 @@ 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.RelationshipAttribute = exports.RelationshipAttributeConfidentiality = void 0;
12
+ exports.RelationshipAttribute = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const AbstractAttribute_1 = require("./AbstractAttribute");
15
- const AbstractAttributeValue_1 = require("./AbstractAttributeValue");
16
- var RelationshipAttributeConfidentiality;
17
- (function (RelationshipAttributeConfidentiality) {
18
- /**
19
- * If a third party queries a public RelationshipAttribute from an Identity, there is no
20
- * warning message for a user that possibly sensitive information from within a Relationship
21
- * is shared to a third party. However, this does not mean that the request for such an
22
- * Attribute can or is automatically accepted, as the user might not want to share it with
23
- * this third party - nevertheless it is public.
24
- *
25
- * Good examples for public RelationshipAttributes are bonus membership ids or social network
26
- * account names/channels.
27
- */
28
- RelationshipAttributeConfidentiality["Public"] = "public";
29
- /**
30
- * A private Attribute may never be queried by a third party. Even if queried, a user cannot
31
- * "override" this rule and accept such a sharing request. Querying such an Attribute will
32
- * result in an error.
33
- *
34
- * An example would be a telephone PIN with a bank which is used as the authentication factor.
35
- */
36
- RelationshipAttributeConfidentiality["Private"] = "private";
37
- /**
38
- * A protected RelationshipAttribute may be queried by a third party, but the user is
39
- * specifically warned about this query and needs to give consent.
40
- *
41
- * This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
42
- * is a "common real-world edge case". For example given out a car insurance id to the
43
- * other party once you had an accident.
44
- */
45
- RelationshipAttributeConfidentiality["Protected"] = "protected";
46
- })(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
15
+ const AttributeValueTypes_1 = require("./AttributeValueTypes");
16
+ const RelationshipAttributeConfidentiality_1 = require("./RelationshipAttributeConfidentiality");
47
17
  let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribute_1.AbstractAttribute {
48
18
  static preFrom(value) {
49
19
  if (typeof value.isTechnical === "undefined")
@@ -53,12 +23,12 @@ let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribut
53
23
  static from(value) {
54
24
  return this.fromAny(value);
55
25
  }
56
- toJSON() {
57
- return super.toJSON();
26
+ toJSON(verbose, serializeAsString) {
27
+ return super.toJSON(verbose, serializeAsString);
58
28
  }
59
29
  };
60
30
  __decorate([
61
- (0, ts_serval_1.serialize)({ unionTypes: [AbstractAttributeValue_1.AbstractAttributeValue] }),
31
+ (0, ts_serval_1.serialize)({ unionTypes: AttributeValueTypes_1.AttributeValues.Relationship.CLASSES }),
62
32
  (0, ts_serval_1.validate)(),
63
33
  __metadata("design:type", Object)
64
34
  ], RelationshipAttribute.prototype, "value", void 0);
@@ -75,8 +45,8 @@ __decorate([
75
45
  __decorate([
76
46
  (0, ts_serval_1.serialize)(),
77
47
  (0, ts_serval_1.validate)({
78
- customValidator: (v) => !Object.values(RelationshipAttributeConfidentiality).includes(v)
79
- ? `must be one of: ${Object.values(RelationshipAttributeConfidentiality)}`
48
+ customValidator: (v) => !Object.values(RelationshipAttributeConfidentiality_1.RelationshipAttributeConfidentiality).includes(v)
49
+ ? `must be one of: ${Object.values(RelationshipAttributeConfidentiality_1.RelationshipAttributeConfidentiality)}`
80
50
  : undefined
81
51
  }),
82
52
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipAttribute.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG,qEAAsH;AAEtH,IAAY,oCA6BX;AA7BD,WAAY,oCAAoC;IAC5C;;;;;;;;;OASG;IACH,yDAAiB,CAAA;IACjB;;;;;;OAMG;IACH,2DAAmB,CAAA;IACnB;;;;;;;OAOG;IACH,+DAAuB,CAAA;AAC3B,CAAC,EA7BW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QA6B/C;AAoBD,IAAa,qBAAqB,GAAlC,MAAa,qBACT,SAAQ,qCAAiB;IAyBf,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,WAAW;YAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAA;QAEvE,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,IAAI,CAKd,KAA+F;QAE/F,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAuC,CAAA;IACpE,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAA+B,CAAA;IACtD,CAAC;CACJ,CAAA;AAtCG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,+CAAsB,CAAC,EAAE,CAAC;IACnD,IAAA,oBAAQ,GAAE;;oDACc;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kDACO;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACF;AAS3B;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MA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A,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,2EAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5D,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,2EAAoC,CAAC,EAAE;YAC1E,CAAC,CAAC,SAAS;KACtB,CAAC;;8DAC0D;AAzBnD,qBAAqB;IADjC,IAAA,gBAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAiDjC;AAjDY,sDAAqB"}
@@ -0,0 +1,30 @@
1
+ export declare enum RelationshipAttributeConfidentiality {
2
+ /**
3
+ * If a third party queries a public RelationshipAttribute from an Identity, there is no
4
+ * warning message for a user that possibly sensitive information from within a Relationship
5
+ * is shared to a third party. However, this does not mean that the request for such an
6
+ * Attribute can or is automatically accepted, as the user might not want to share it with
7
+ * this third party - nevertheless it is public.
8
+ *
9
+ * Good examples for public RelationshipAttributes are bonus membership ids or social network
10
+ * account names/channels.
11
+ */
12
+ Public = "public",
13
+ /**
14
+ * A private Attribute may never be queried by a third party. Even if queried, a user cannot
15
+ * "override" this rule and accept such a sharing request. Querying such an Attribute will
16
+ * result in an error.
17
+ *
18
+ * An example would be a telephone PIN with a bank which is used as the authentication factor.
19
+ */
20
+ Private = "private",
21
+ /**
22
+ * A protected RelationshipAttribute may be queried by a third party, but the user is
23
+ * specifically warned about this query and needs to give consent.
24
+ *
25
+ * This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
26
+ * is a "common real-world edge case". For example given out a car insurance id to the
27
+ * other party once you had an accident.
28
+ */
29
+ Protected = "protected"
30
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RelationshipAttributeConfidentiality = void 0;
4
+ var RelationshipAttributeConfidentiality;
5
+ (function (RelationshipAttributeConfidentiality) {
6
+ /**
7
+ * If a third party queries a public RelationshipAttribute from an Identity, there is no
8
+ * warning message for a user that possibly sensitive information from within a Relationship
9
+ * is shared to a third party. However, this does not mean that the request for such an
10
+ * Attribute can or is automatically accepted, as the user might not want to share it with
11
+ * this third party - nevertheless it is public.
12
+ *
13
+ * Good examples for public RelationshipAttributes are bonus membership ids or social network
14
+ * account names/channels.
15
+ */
16
+ RelationshipAttributeConfidentiality["Public"] = "public";
17
+ /**
18
+ * A private Attribute may never be queried by a third party. Even if queried, a user cannot
19
+ * "override" this rule and accept such a sharing request. Querying such an Attribute will
20
+ * result in an error.
21
+ *
22
+ * An example would be a telephone PIN with a bank which is used as the authentication factor.
23
+ */
24
+ RelationshipAttributeConfidentiality["Private"] = "private";
25
+ /**
26
+ * A protected RelationshipAttribute may be queried by a third party, but the user is
27
+ * specifically warned about this query and needs to give consent.
28
+ *
29
+ * This is great for all kinds of scenarios, in which giving out the RelationshipAttribute
30
+ * is a "common real-world edge case". For example given out a car insurance id to the
31
+ * other party once you had an accident.
32
+ */
33
+ RelationshipAttributeConfidentiality["Protected"] = "protected";
34
+ })(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
35
+ //# sourceMappingURL=RelationshipAttributeConfidentiality.js.map