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

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 (402) 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/{AbstractStringValue.js → proprietary/ProprietaryFloat.js} +15 -7
  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/{person/PersonHeight.js → proprietary/ProprietaryString.js} +15 -13
  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 +10 -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/createAttribute/CreateAttributeAcceptResponseItem.d.ts +12 -0
  313. package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js +30 -0
  314. package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js.map +1 -0
  315. package/dist/requests/items/createAttribute/CreateAttributeRequestItem.d.ts +17 -0
  316. package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js +36 -0
  317. package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js.map +1 -0
  318. package/dist/requests/items/index.d.ts +7 -0
  319. package/dist/requests/items/index.js +24 -0
  320. package/dist/requests/items/index.js.map +1 -0
  321. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.d.ts +16 -0
  322. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js +36 -0
  323. package/dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js.map +1 -0
  324. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.d.ts +17 -0
  325. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +53 -0
  326. package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js.map +1 -0
  327. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.d.ts +16 -0
  328. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js +36 -0
  329. package/dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js.map +1 -0
  330. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +12 -0
  331. package/dist/{relationships/RelationshipExistsMessageAction.js → requests/items/readAttribute/ReadAttributeRequestItem.js} +14 -10
  332. package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -0
  333. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.d.ts +15 -0
  334. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js +35 -0
  335. package/dist/requests/items/shareAttribute/ShareAttributeRequestItem.js.map +1 -0
  336. package/dist/requests/response/AcceptResponseItem.d.ts +5 -0
  337. package/dist/requests/response/AcceptResponseItem.js +3 -0
  338. package/dist/requests/response/AcceptResponseItem.js.map +1 -1
  339. package/dist/requests/response/ErrorResponseItem.d.ts +4 -0
  340. package/dist/requests/response/ErrorResponseItem.js +3 -0
  341. package/dist/requests/response/ErrorResponseItem.js.map +1 -1
  342. package/dist/requests/response/RejectResponseItem.d.ts +4 -0
  343. package/dist/requests/response/RejectResponseItem.js +3 -0
  344. package/dist/requests/response/RejectResponseItem.js.map +1 -1
  345. package/dist/requests/response/Response.d.ts +5 -4
  346. package/dist/requests/response/Response.js +3 -0
  347. package/dist/requests/response/Response.js.map +1 -1
  348. package/dist/requests/response/ResponseItem.d.ts +7 -3
  349. package/dist/requests/response/ResponseItem.js +3 -5
  350. package/dist/requests/response/ResponseItem.js.map +1 -1
  351. package/dist/requests/response/ResponseItemGroup.d.ts +5 -7
  352. package/dist/requests/response/ResponseItemGroup.js +3 -5
  353. package/dist/requests/response/ResponseItemGroup.js.map +1 -1
  354. package/lib-web/nmshd.content.js +5299 -1395
  355. package/lib-web/nmshd.content.min.js +1 -1
  356. package/package.json +16 -15
  357. package/dist/attributes/AttributeQuery.d.ts +0 -12
  358. package/dist/attributes/AttributeQuery.js.map +0 -1
  359. package/dist/attributes/AttributeV2.d.ts +0 -25
  360. package/dist/attributes/AttributeV2.js.map +0 -1
  361. package/dist/attributes/types/AbstractDateString.d.ts +0 -5
  362. package/dist/attributes/types/AbstractDateString.js.map +0 -1
  363. package/dist/attributes/types/AbstractDay.d.ts +0 -7
  364. package/dist/attributes/types/AbstractDay.js.map +0 -1
  365. package/dist/attributes/types/AbstractFloatValue.d.ts +0 -4
  366. package/dist/attributes/types/AbstractFloatValue.js.map +0 -1
  367. package/dist/attributes/types/AbstractIntegerValue.d.ts +0 -4
  368. package/dist/attributes/types/AbstractIntegerValue.js.map +0 -1
  369. package/dist/attributes/types/AbstractMonth.js.map +0 -1
  370. package/dist/attributes/types/AbstractStringValue.d.ts +0 -4
  371. package/dist/attributes/types/AbstractStringValue.js.map +0 -1
  372. package/dist/attributes/types/AbstractYear.d.ts +0 -3
  373. package/dist/attributes/types/AbstractYear.js +0 -8
  374. package/dist/attributes/types/AbstractYear.js.map +0 -1
  375. package/dist/attributes/types/idcard/AbstractIDCard.d.ts +0 -3
  376. package/dist/attributes/types/idcard/AbstractIDCard.js +0 -8
  377. package/dist/attributes/types/idcard/AbstractIDCard.js.map +0 -1
  378. package/dist/attributes/types/idcard/IDCardAuthorityName.d.ts +0 -3
  379. package/dist/attributes/types/idcard/IDCardAuthorityName.js +0 -18
  380. package/dist/attributes/types/idcard/IDCardAuthorityName.js.map +0 -1
  381. package/dist/attributes/types/idcard/IDCardDE.d.ts +0 -13
  382. package/dist/attributes/types/idcard/IDCardDE.js +0 -51
  383. package/dist/attributes/types/idcard/IDCardDE.js.map +0 -1
  384. package/dist/attributes/types/idcard/IDCardIssuingDate.d.ts +0 -3
  385. package/dist/attributes/types/idcard/IDCardIssuingDate.js.map +0 -1
  386. package/dist/attributes/types/idcard/index.d.ts +0 -4
  387. package/dist/attributes/types/idcard/index.js.map +0 -1
  388. package/dist/attributes/types/measurements/LengthMeasurement.js.map +0 -1
  389. package/dist/attributes/types/name/Title.d.ts +0 -3
  390. package/dist/attributes/types/name/Title.js.map +0 -1
  391. package/dist/attributes/types/person/Gender.d.ts +0 -6
  392. package/dist/attributes/types/person/Gender.js.map +0 -1
  393. package/dist/attributes/types/person/PersonEyeColor.d.ts +0 -3
  394. package/dist/attributes/types/person/PersonEyeColor.js.map +0 -1
  395. package/dist/attributes/types/person/PersonHeight.d.ts +0 -4
  396. package/dist/attributes/types/person/PersonHeight.js.map +0 -1
  397. package/dist/authorizations/Authorization.d.ts +0 -14
  398. package/dist/authorizations/Authorization.js.map +0 -1
  399. package/dist/relationships/RelationshipExistsAction.d.ts +0 -7
  400. package/dist/relationships/RelationshipExistsAction.js.map +0 -1
  401. package/dist/relationships/RelationshipExistsMessageAction.d.ts +0 -11
  402. package/dist/relationships/RelationshipExistsMessageAction.js.map +0 -1
@@ -0,0 +1,41 @@
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.AbstractEMailAddress = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const hints_1 = require("../../../attributes/hints");
15
+ const AbstractString_1 = require("../AbstractString");
16
+ class AbstractEMailAddress extends AbstractString_1.AbstractString {
17
+ static get valueHints() {
18
+ return super.valueHints.copyWith({
19
+ min: 3,
20
+ max: 200,
21
+ pattern: "/^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$/i"
22
+ });
23
+ }
24
+ static get renderHints() {
25
+ return super.renderHints.copyWith({
26
+ editType: hints_1.RenderHintsEditType.InputLike,
27
+ dataType: hints_1.RenderHintsDataType.EMailAddress
28
+ });
29
+ }
30
+ }
31
+ __decorate([
32
+ (0, ts_serval_1.serialize)(),
33
+ (0, ts_serval_1.validate)({
34
+ min: 3,
35
+ max: 200,
36
+ regExp: new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$", "i")
37
+ }),
38
+ __metadata("design:type", String)
39
+ ], AbstractEMailAddress.prototype, "value", void 0);
40
+ exports.AbstractEMailAddress = AbstractEMailAddress;
41
+ //# sourceMappingURL=AbstractEMailAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractEMailAddress.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractEMailAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,oBAAqB,SAAQ,+BAAc;IAUtD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,GAAG;YACR,OAAO,EAAE,2CAA2C;SACvD,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,YAAY;SAC7C,CAAC,CAAA;IACN,CAAC;CACJ;AAhBG;IANC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,GAAG;QACR,MAAM,EAAE,IAAI,MAAM,CAAC,wCAAwC,EAAE,GAAG,CAAC;KACpE,CAAC;;mDAC2B;AARjC,oDAwBC"}
@@ -0,0 +1,7 @@
1
+ import { RenderHints, ValueHints } from "../../../attributes/hints";
2
+ import { AbstractString } from "../AbstractString";
3
+ export declare class AbstractFileReference extends AbstractString {
4
+ value: string;
5
+ static get valueHints(): ValueHints;
6
+ static get renderHints(): RenderHints;
7
+ }
@@ -0,0 +1,39 @@
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.AbstractFileReference = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const hints_1 = require("../../../attributes/hints");
15
+ const AbstractString_1 = require("../AbstractString");
16
+ class AbstractFileReference extends AbstractString_1.AbstractString {
17
+ static get valueHints() {
18
+ return super.valueHints.copyWith({
19
+ min: 30,
20
+ max: 100
21
+ });
22
+ }
23
+ static get renderHints() {
24
+ return super.renderHints.copyWith({
25
+ editType: hints_1.RenderHintsEditType.SelectLike,
26
+ dataType: hints_1.RenderHintsDataType.FileReference
27
+ });
28
+ }
29
+ }
30
+ __decorate([
31
+ (0, ts_serval_1.serialize)(),
32
+ (0, ts_serval_1.validate)({
33
+ min: 30,
34
+ max: 100
35
+ }),
36
+ __metadata("design:type", String)
37
+ ], AbstractFileReference.prototype, "value", void 0);
38
+ exports.AbstractFileReference = AbstractFileReference;
39
+ //# sourceMappingURL=AbstractFileReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractFileReference.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractFileReference.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAa,qBAAsB,SAAQ,+BAAc;IAQ9C,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,EAAE;YACP,GAAG,EAAE,GAAG;SACX,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,UAAU;YACxC,QAAQ,EAAE,2BAAmB,CAAC,aAAa;SAC9C,CAAC,CAAA;IACN,CAAC;CACJ;AAfG;IALC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,GAAG;KACX,CAAC;;oDAC2B;AANjC,sDAqBC"}
@@ -0,0 +1,7 @@
1
+ import { RenderHints, ValueHints } from "../../../attributes/hints";
2
+ import { AbstractString } from "../AbstractString";
3
+ export declare abstract class AbstractHEXColor extends AbstractString {
4
+ value: string;
5
+ static get valueHints(): ValueHints;
6
+ static get renderHints(): RenderHints;
7
+ }
@@ -0,0 +1,37 @@
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.AbstractHEXColor = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const hints_1 = require("../../../attributes/hints");
15
+ const AbstractString_1 = require("../AbstractString");
16
+ class AbstractHEXColor extends AbstractString_1.AbstractString {
17
+ static get valueHints() {
18
+ return super.valueHints.copyWith({
19
+ min: 4,
20
+ max: 9,
21
+ pattern: "^#([0-9A-F]{3}){1,2}$/i"
22
+ });
23
+ }
24
+ static get renderHints() {
25
+ return super.renderHints.copyWith({
26
+ editType: hints_1.RenderHintsEditType.InputLike,
27
+ dataType: hints_1.RenderHintsDataType.HEXColor
28
+ });
29
+ }
30
+ }
31
+ __decorate([
32
+ (0, ts_serval_1.serialize)(),
33
+ (0, ts_serval_1.validate)({ min: 4, max: 9, regExp: new RegExp("^#([0-9A-F]{3}){1,2}$", "i") }),
34
+ __metadata("design:type", String)
35
+ ], AbstractHEXColor.prototype, "value", void 0);
36
+ exports.AbstractHEXColor = AbstractHEXColor;
37
+ //# sourceMappingURL=AbstractHEXColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractHEXColor.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractHEXColor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,gBAAiB,SAAQ,+BAAc;IAKlD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;YACN,OAAO,EAAE,yBAAyB;SACrC,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,QAAQ;SACzC,CAAC,CAAA;IACN,CAAC;CACJ;AAhBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,MAAM,CAAC,uBAAuB,EAAE,GAAG,CAAC,EAAE,CAAC;;+CAClD;AAHjC,4CAmBC"}
@@ -0,0 +1,8 @@
1
+ import { RenderHints, ValueHints } from "../../../attributes/hints";
2
+ import { LanguageISO639 } from "../../constants/LanguagesISO639";
3
+ import { AbstractString } from "../AbstractString";
4
+ export declare abstract class AbstractLanguage extends AbstractString {
5
+ value: LanguageISO639;
6
+ static get valueHints(): ValueHints;
7
+ static get renderHints(): RenderHints;
8
+ }
@@ -0,0 +1,42 @@
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.AbstractLanguage = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const hints_1 = require("../../../attributes/hints");
15
+ const LanguagesISO639_1 = require("../../constants/LanguagesISO639");
16
+ const AbstractString_1 = require("../AbstractString");
17
+ class AbstractLanguage extends AbstractString_1.AbstractString {
18
+ static get valueHints() {
19
+ return super.valueHints.copyWith({
20
+ min: 2,
21
+ max: 2,
22
+ values: Object.values(LanguagesISO639_1.LanguageISO639).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.languages.${value}` }))
23
+ });
24
+ }
25
+ static get renderHints() {
26
+ return super.renderHints.copyWith({
27
+ editType: hints_1.RenderHintsEditType.SelectLike,
28
+ dataType: hints_1.RenderHintsDataType.Language
29
+ });
30
+ }
31
+ }
32
+ __decorate([
33
+ (0, ts_serval_1.serialize)(),
34
+ (0, ts_serval_1.validate)({
35
+ min: 2,
36
+ max: 2,
37
+ customValidator: (v) => !Object.values(LanguagesISO639_1.LanguageISO639).includes(v) ? `must be one of: ${Object.values(LanguagesISO639_1.LanguageISO639)}` : undefined
38
+ }),
39
+ __metadata("design:type", String)
40
+ ], AbstractLanguage.prototype, "value", void 0);
41
+ exports.AbstractLanguage = AbstractLanguage;
42
+ //# sourceMappingURL=AbstractLanguage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractLanguage.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractLanguage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAMkC;AAClC,qEAAgE;AAChE,sDAAkD;AAElD,MAAsB,gBAAiB,SAAQ,+BAAc;IAUlD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;YACN,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,gCAAc,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAChD,uBAAe,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,sCAAsC,KAAK,EAAE,EAAE,CAAC,CACnG;SACJ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,UAAU;YACxC,QAAQ,EAAE,2BAAmB,CAAC,QAAQ;SACzC,CAAC,CAAA;IACN,CAAC;CACJ;AAlBG;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,CAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,gCAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,gCAAc,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;KAClH,CAAC;;+CACmC;AARzC,4CA0BC"}
@@ -0,0 +1,7 @@
1
+ import { RenderHints, ValueHints } from "../../../attributes/hints";
2
+ import { AbstractString } from "../AbstractString";
3
+ export declare abstract class AbstractPhoneNumber extends AbstractString {
4
+ value: string;
5
+ static get valueHints(): ValueHints;
6
+ static get renderHints(): RenderHints;
7
+ }
@@ -0,0 +1,37 @@
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.AbstractPhoneNumber = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const hints_1 = require("../../../attributes/hints");
15
+ const AbstractString_1 = require("../AbstractString");
16
+ class AbstractPhoneNumber extends AbstractString_1.AbstractString {
17
+ static get valueHints() {
18
+ return super.valueHints.copyWith({
19
+ min: 3,
20
+ max: 100,
21
+ pattern: "/^[d+-x#*()/[] ]{3,100}$/"
22
+ });
23
+ }
24
+ static get renderHints() {
25
+ return super.renderHints.copyWith({
26
+ editType: hints_1.RenderHintsEditType.InputLike,
27
+ dataType: hints_1.RenderHintsDataType.PhoneNumber
28
+ });
29
+ }
30
+ }
31
+ __decorate([
32
+ (0, ts_serval_1.serialize)(),
33
+ (0, ts_serval_1.validate)({ min: 3, max: 100, regExp: new RegExp(/^[\d+\-x#*()/[\] ]{3,100}$/) }),
34
+ __metadata("design:type", String)
35
+ ], AbstractPhoneNumber.prototype, "value", void 0);
36
+ exports.AbstractPhoneNumber = AbstractPhoneNumber;
37
+ //# sourceMappingURL=AbstractPhoneNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractPhoneNumber.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractPhoneNumber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,mBAAoB,SAAQ,+BAAc;IAKrD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,GAAG;YACR,OAAO,EAAE,2BAA2B;SACvC,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,WAAW;SAC5C,CAAC,CAAA;IACN,CAAC;CACJ;AAhBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,MAAM,CAAC,4BAA4B,CAAC,EAAE,CAAC;;kDACpD;AAHjC,kDAmBC"}
@@ -0,0 +1,7 @@
1
+ import { RenderHints, ValueHints } from "../../../attributes/hints";
2
+ import { AbstractString } from "../AbstractString";
3
+ export declare abstract class AbstractURL extends AbstractString {
4
+ value: string;
5
+ static get valueHints(): ValueHints;
6
+ static get renderHints(): RenderHints;
7
+ }
@@ -0,0 +1,42 @@
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.AbstractURL = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const hints_1 = require("../../../attributes/hints");
15
+ const AbstractString_1 = require("../AbstractString");
16
+ class AbstractURL extends AbstractString_1.AbstractString {
17
+ static get valueHints() {
18
+ return super.valueHints.copyWith({
19
+ min: 3,
20
+ max: 1024
21
+ });
22
+ }
23
+ static get renderHints() {
24
+ return super.renderHints.copyWith({
25
+ editType: hints_1.RenderHintsEditType.InputLike,
26
+ dataType: hints_1.RenderHintsDataType.URL
27
+ });
28
+ }
29
+ }
30
+ __decorate([
31
+ (0, ts_serval_1.serialize)(),
32
+ (0, ts_serval_1.validate)({
33
+ min: 3,
34
+ max: 1024,
35
+ regExp: new RegExp(
36
+ // eslint-disable-next-line no-useless-escape
37
+ /^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)$/i)
38
+ }),
39
+ __metadata("design:type", String)
40
+ ], AbstractURL.prototype, "value", void 0);
41
+ exports.AbstractURL = AbstractURL;
42
+ //# sourceMappingURL=AbstractURL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbstractURL.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractURL.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,WAAY,SAAQ,+BAAc;IAY7C,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,IAAI;SACZ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,GAAG;SACpC,CAAC,CAAA;IACN,CAAC;CACJ;AAfG;IATC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,IAAI;QACT,MAAM,EAAE,IAAI,MAAM;QACd,6CAA6C;QAC7C,yLAAyL,CAC5L;KACJ,CAAC;;0CAC2B;AAVjC,kCAyBC"}
@@ -0,0 +1,8 @@
1
+ export * from "./AbstractCountry";
2
+ export * from "./AbstractDataURL";
3
+ export * from "./AbstractEMailAddress";
4
+ export * from "./AbstractFileReference";
5
+ export * from "./AbstractHEXColor";
6
+ export * from "./AbstractLanguage";
7
+ export * from "./AbstractPhoneNumber";
8
+ export * from "./AbstractURL";
@@ -0,0 +1,25 @@
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("./AbstractCountry"), exports);
18
+ __exportStar(require("./AbstractDataURL"), exports);
19
+ __exportStar(require("./AbstractEMailAddress"), exports);
20
+ __exportStar(require("./AbstractFileReference"), exports);
21
+ __exportStar(require("./AbstractHEXColor"), exports);
22
+ __exportStar(require("./AbstractLanguage"), exports);
23
+ __exportStar(require("./AbstractPhoneNumber"), exports);
24
+ __exportStar(require("./AbstractURL"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,oDAAiC;AACjC,yDAAsC;AACtC,0DAAuC;AACvC,qDAAkC;AAClC,qDAAkC;AAClC,wDAAqC;AACrC,gDAA6B"}
@@ -5,11 +5,11 @@ const ts_serval_1 = require("@js-soft/ts-serval");
5
5
  const crypto_1 = require("@nmshd/crypto");
6
6
  const transport_1 = require("@nmshd/transport");
7
7
  exports.buildInformation = {
8
- version: "2.0.0-alpha.8",
9
- build: "37",
10
- date: "2022-04-22T14:39:29+00:00",
11
- commit: "4dc5974e84591fc036fed8f8924ab7fce2bce1d2",
12
- dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
8
+ version: "2.0.0-beta.2",
9
+ build: "79",
10
+ date: "2022-07-28T14:49:49+00:00",
11
+ commit: "2480c7735e3065723f3f0c9f69512b95388986dc",
12
+ dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6"},
13
13
  libraries: {
14
14
  serval: ts_serval_1.buildInformation,
15
15
  crypto: crypto_1.buildInformation,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from "./attributes";
2
- export * from "./authorizations/Authorization";
3
2
  export * from "./buildInformation";
4
3
  export * from "./ContentJSON";
5
4
  export * from "./forms";
package/dist/index.js CHANGED
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./attributes"), exports);
18
- __exportStar(require("./authorizations/Authorization"), exports);
19
18
  __exportStar(require("./buildInformation"), exports);
20
19
  __exportStar(require("./ContentJSON"), exports);
21
20
  __exportStar(require("./forms"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,iEAA8C;AAC9C,qDAAkC;AAClC,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,yDAAsC;AACtC,kDAA+B;AAC/B,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,qDAAkC;AAClC,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,yDAAsC;AACtC,kDAA+B;AAC/B,6CAA0B"}
@@ -1,29 +1,16 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
- import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
3
- import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
4
2
  import { ContentJSON } from "../ContentJSON";
3
+ import { IResponse, Response, ResponseJSON } from "../requests/response/Response";
5
4
  export interface RelationshipCreationChangeRequestBodyJSON extends ContentJSON {
6
- title?: string;
7
- sessionIdentifier?: string;
8
- metadata?: any;
9
- sharedAttributes?: AttributeJSON[];
10
- sharedCertificates?: any[];
11
- sharedAuthorizations?: AuthorizationJSON[];
5
+ templateContentMetadata?: object;
6
+ response: ResponseJSON;
12
7
  }
13
8
  export interface IRelationshipCreationChangeRequestBody extends ISerializable {
14
- title?: string;
15
- sessionIdentifier?: string;
16
- metadata?: any;
17
- sharedAttributes?: IAttribute[];
18
- sharedCertificates?: any[];
19
- sharedAuthorizations?: IAuthorization[];
9
+ templateContentMetadata?: object;
10
+ response: IResponse;
20
11
  }
21
12
  export declare class RelationshipCreationChangeRequestBody extends Serializable implements IRelationshipCreationChangeRequestBody {
22
- title?: string;
23
- sessionIdentifier?: string;
24
- metadata?: any;
25
- sharedAttributes?: Attribute[];
26
- sharedCertificates?: any[];
27
- sharedAuthorizations?: Authorization[];
28
- static from(value: IRelationshipCreationChangeRequestBody): RelationshipCreationChangeRequestBody;
13
+ templateContentMetadata?: object;
14
+ response: Response;
15
+ static from(value: IRelationshipCreationChangeRequestBody | RelationshipCreationChangeRequestBodyJSON): RelationshipCreationChangeRequestBody;
29
16
  }
@@ -11,8 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RelationshipCreationChangeRequestBody = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- const Attribute_1 = require("../attributes/Attribute");
15
- const Authorization_1 = require("../authorizations/Authorization");
14
+ const Response_1 = require("../requests/response/Response");
16
15
  let RelationshipCreationChangeRequestBody = class RelationshipCreationChangeRequestBody extends ts_serval_1.Serializable {
17
16
  static from(value) {
18
17
  return this.fromAny(value);
@@ -21,33 +20,13 @@ let RelationshipCreationChangeRequestBody = class RelationshipCreationChangeRequ
21
20
  __decorate([
22
21
  (0, ts_serval_1.serialize)(),
23
22
  (0, ts_serval_1.validate)({ nullable: true }),
24
- __metadata("design:type", String)
25
- ], RelationshipCreationChangeRequestBody.prototype, "title", void 0);
26
- __decorate([
27
- (0, ts_serval_1.serialize)(),
28
- (0, ts_serval_1.validate)({ nullable: true }),
29
- __metadata("design:type", String)
30
- ], RelationshipCreationChangeRequestBody.prototype, "sessionIdentifier", void 0);
31
- __decorate([
32
- (0, ts_serval_1.serialize)({ any: true }),
33
- (0, ts_serval_1.validate)({ nullable: true }),
34
23
  __metadata("design:type", Object)
35
- ], RelationshipCreationChangeRequestBody.prototype, "metadata", void 0);
36
- __decorate([
37
- (0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
38
- (0, ts_serval_1.validate)({ nullable: true }),
39
- __metadata("design:type", Array)
40
- ], RelationshipCreationChangeRequestBody.prototype, "sharedAttributes", void 0);
24
+ ], RelationshipCreationChangeRequestBody.prototype, "templateContentMetadata", void 0);
41
25
  __decorate([
42
26
  (0, ts_serval_1.serialize)(),
43
- (0, ts_serval_1.validate)({ nullable: true }),
44
- __metadata("design:type", Array)
45
- ], RelationshipCreationChangeRequestBody.prototype, "sharedCertificates", void 0);
46
- __decorate([
47
- (0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
48
- (0, ts_serval_1.validate)({ nullable: true }),
49
- __metadata("design:type", Array)
50
- ], RelationshipCreationChangeRequestBody.prototype, "sharedAuthorizations", void 0);
27
+ (0, ts_serval_1.validate)(),
28
+ __metadata("design:type", Response_1.Response)
29
+ ], RelationshipCreationChangeRequestBody.prototype, "response", void 0);
51
30
  RelationshipCreationChangeRequestBody = __decorate([
52
31
  (0, ts_serval_1.type)("RelationshipCreationChangeRequestBody")
53
32
  ], RelationshipCreationChangeRequestBody);
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,uDAA8E;AAC9E,mEAAkG;AAsBlG,IAAa,qCAAqC,GAAlD,MAAa,qCACT,SAAQ,wBAAY;IA2Bb,MAAM,CAAC,IAAI,CAAC,KAA6C;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAzBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mFACgB;AA1BpC,qCAAqC;IADjD,IAAA,gBAAI,EAAC,uCAAuC,CAAC;GACjC,qCAAqC,CA+BjD;AA/BY,sFAAqC"}
1
+ {"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,4DAAiF;AAajF,IAAa,qCAAqC,GAAlD,MAAa,qCACT,SAAQ,wBAAY;IAWb,MAAM,CAAC,IAAI,CACd,KAAyF;QAEzF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sFACU;AAIvC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,mBAAQ;uEAAA;AAVhB,qCAAqC;IADjD,IAAA,gBAAI,EAAC,uCAAuC,CAAC;GACjC,qCAAqC,CAiBjD;AAjBY,sFAAqC"}
@@ -1,42 +1,22 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
- import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
3
- import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
4
2
  import { ContentJSON } from "../ContentJSON";
5
- import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/old/AttributesChangeRequest";
6
- import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/old/AttributesRequest";
7
- import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
3
+ import { IRequest, Request, RequestJSON } from "../requests/Request";
8
4
  export interface RelationshipTemplateBodyJSON extends ContentJSON {
9
5
  title?: string;
10
- sessionIdentifier?: string;
11
- metadata?: any;
12
- sharedAttributes?: AttributeJSON[];
13
- sharedCertificates?: any[];
14
- sharedAuthorizations?: AuthorizationJSON[];
15
- requestedAttributesChanges?: AttributesChangeRequestJSON[];
16
- requestedAttributes?: AttributesRequestJSON[];
17
- requestedCertificates?: any[];
18
- relationshipExistsAction?: RelationshipExistsActionJSON;
6
+ metadata?: object;
7
+ onNewRelationship: RequestJSON;
8
+ onExistingRelationship?: RequestJSON;
19
9
  }
20
10
  export interface IRelationshipTemplateBody extends ISerializable {
21
11
  title?: string;
22
- sessionIdentifier?: string;
23
- metadata?: any;
24
- sharedAttributes?: IAttribute[];
25
- sharedCertificates?: any[];
26
- sharedAuthorizations?: IAuthorization[];
27
- requestedAttributesChanges?: IAttributesChangeRequest[];
28
- requestedAttributes?: IAttributesRequest[];
29
- relationshipExistsAction?: IRelationshipExistsAction;
12
+ metadata?: object;
13
+ onNewRelationship: IRequest;
14
+ onExistingRelationship?: IRequest;
30
15
  }
31
16
  export declare class RelationshipTemplateBody extends Serializable implements IRelationshipTemplateBody {
32
17
  title?: string;
33
- sessionIdentifier?: string;
34
- metadata?: any;
35
- sharedAttributes?: Attribute[];
36
- sharedCertificates?: any[];
37
- sharedAuthorizations?: Authorization[];
38
- requestedAttributesChanges?: AttributesChangeRequest[];
39
- requestedAttributes?: AttributesRequest[];
40
- relationshipExistsAction?: RelationshipExistsAction;
41
- static from(value: IRelationshipTemplateBody): RelationshipTemplateBody;
18
+ metadata?: object;
19
+ onNewRelationship: Request;
20
+ onExistingRelationship?: Request;
21
+ static from(value: IRelationshipTemplateBody | RelationshipTemplateBodyJSON): RelationshipTemplateBody;
42
22
  }
@@ -11,10 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RelationshipTemplateBody = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- const Attribute_1 = require("../attributes/Attribute");
15
- const Authorization_1 = require("../authorizations/Authorization");
16
- const AttributesRequest_1 = require("../requests/old/AttributesRequest");
17
- const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
14
+ const Request_1 = require("../requests/Request");
18
15
  let RelationshipTemplateBody = class RelationshipTemplateBody extends ts_serval_1.Serializable {
19
16
  static from(value) {
20
17
  return this.fromAny(value);
@@ -28,43 +25,18 @@ __decorate([
28
25
  __decorate([
29
26
  (0, ts_serval_1.serialize)(),
30
27
  (0, ts_serval_1.validate)({ nullable: true }),
31
- __metadata("design:type", String)
32
- ], RelationshipTemplateBody.prototype, "sessionIdentifier", void 0);
33
- __decorate([
34
- (0, ts_serval_1.serialize)({ any: true }),
35
- (0, ts_serval_1.validate)({ nullable: true }),
36
28
  __metadata("design:type", Object)
37
29
  ], RelationshipTemplateBody.prototype, "metadata", void 0);
38
- __decorate([
39
- (0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
40
- (0, ts_serval_1.validate)({ nullable: true }),
41
- __metadata("design:type", Array)
42
- ], RelationshipTemplateBody.prototype, "sharedAttributes", void 0);
43
30
  __decorate([
44
31
  (0, ts_serval_1.serialize)(),
45
- (0, ts_serval_1.validate)({ nullable: true }),
46
- __metadata("design:type", Array)
47
- ], RelationshipTemplateBody.prototype, "sharedCertificates", void 0);
48
- __decorate([
49
- (0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
50
- (0, ts_serval_1.validate)({ nullable: true }),
51
- __metadata("design:type", Array)
52
- ], RelationshipTemplateBody.prototype, "sharedAuthorizations", void 0);
53
- __decorate([
54
- (0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
55
- (0, ts_serval_1.validate)({ nullable: true }),
56
- __metadata("design:type", Array)
57
- ], RelationshipTemplateBody.prototype, "requestedAttributesChanges", void 0);
58
- __decorate([
59
- (0, ts_serval_1.serialize)({ type: AttributesRequest_1.AttributesRequest }),
60
- (0, ts_serval_1.validate)({ nullable: true }),
61
- __metadata("design:type", Array)
62
- ], RelationshipTemplateBody.prototype, "requestedAttributes", void 0);
32
+ (0, ts_serval_1.validate)(),
33
+ __metadata("design:type", Request_1.Request)
34
+ ], RelationshipTemplateBody.prototype, "onNewRelationship", void 0);
63
35
  __decorate([
64
36
  (0, ts_serval_1.serialize)(),
65
37
  (0, ts_serval_1.validate)({ nullable: true }),
66
- __metadata("design:type", RelationshipExistsAction_1.RelationshipExistsAction)
67
- ], RelationshipTemplateBody.prototype, "relationshipExistsAction", void 0);
38
+ __metadata("design:type", Request_1.Request)
39
+ ], RelationshipTemplateBody.prototype, "onExistingRelationship", void 0);
68
40
  RelationshipTemplateBody = __decorate([
69
41
  (0, ts_serval_1.type)("RelationshipTemplateBody")
70
42
  ], RelationshipTemplateBody);
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,uDAA8E;AAC9E,mEAAkG;AAOlG,yEAAgH;AAChH,yEAImC;AA4BnC,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAY;IAqC/C,MAAM,CAAC,IAAI,CAAC,KAAgC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AArCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACgB;AAI7C;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4EACgC;AAI7D;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qCAAiB,EAAE,CAAC;IACtC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACmB;AAIhD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACK,mDAAwB;0EAAA;AAnCjD,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAwCpC;AAxCY,4DAAwB"}
1
+ {"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,iDAAoE;AAiBpE,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAY;IAiB/C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACL;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACe,iBAAO;mEAAA;AAIjC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACG,iBAAO;wEAAA;AAf9B,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAoBpC;AApBY,4DAAwB"}
@@ -1,4 +1,2 @@
1
1
  export * from "./RelationshipCreationChangeRequestBody";
2
- export * from "./RelationshipExistsAction";
3
- export * from "./RelationshipExistsMessageAction";
4
2
  export * from "./RelationshipTemplateBody";