@icure/api 8.0.0-RC.1 → 8.0.0-RC.3

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 (345) hide show
  1. package/icc-api/api/IccAccesslogApi.d.ts +12 -4
  2. package/icc-api/api/IccAccesslogApi.js +23 -18
  3. package/icc-api/api/IccAccesslogApi.js.map +1 -1
  4. package/icc-api/api/IccAgendaApi.d.ts +13 -4
  5. package/icc-api/api/IccAgendaApi.js +42 -19
  6. package/icc-api/api/IccAgendaApi.js.map +1 -1
  7. package/icc-api/api/IccApplicationsettingsApi.d.ts +1 -1
  8. package/icc-api/api/IccApplicationsettingsApi.js +2 -2
  9. package/icc-api/api/IccApplicationsettingsApi.js.map +1 -1
  10. package/icc-api/api/IccArticleApi.d.ts +13 -4
  11. package/icc-api/api/IccArticleApi.js +50 -26
  12. package/icc-api/api/IccArticleApi.js.map +1 -1
  13. package/icc-api/api/IccAuthApi.d.ts +1 -1
  14. package/icc-api/api/IccAuthApi.js +2 -2
  15. package/icc-api/api/IccAuthApi.js.map +1 -1
  16. package/icc-api/api/IccCalendarItemApi.d.ts +8 -4
  17. package/icc-api/api/IccCalendarItemApi.js +15 -22
  18. package/icc-api/api/IccCalendarItemApi.js.map +1 -1
  19. package/icc-api/api/IccCalendarItemTypeApi.d.ts +6 -4
  20. package/icc-api/api/IccCalendarItemTypeApi.js +60 -45
  21. package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
  22. package/icc-api/api/IccClassificationApi.d.ts +14 -5
  23. package/icc-api/api/IccClassificationApi.js +22 -12
  24. package/icc-api/api/IccClassificationApi.js.map +1 -1
  25. package/icc-api/api/IccClassificationTemplateApi.d.ts +14 -5
  26. package/icc-api/api/IccClassificationTemplateApi.js +102 -70
  27. package/icc-api/api/IccClassificationTemplateApi.js.map +1 -1
  28. package/icc-api/api/IccCodeApi.d.ts +1 -1
  29. package/icc-api/api/IccCodeApi.js +2 -2
  30. package/icc-api/api/IccCodeApi.js.map +1 -1
  31. package/icc-api/api/IccContactApi.d.ts +11 -4
  32. package/icc-api/api/IccContactApi.js +20 -13
  33. package/icc-api/api/IccContactApi.js.map +1 -1
  34. package/icc-api/api/IccDataownerApi.d.ts +1 -1
  35. package/icc-api/api/IccDataownerApi.js +44 -27
  36. package/icc-api/api/IccDataownerApi.js.map +1 -1
  37. package/icc-api/api/IccDeviceApi.d.ts +1 -1
  38. package/icc-api/api/IccDeviceApi.js +43 -32
  39. package/icc-api/api/IccDeviceApi.js.map +1 -1
  40. package/icc-api/api/IccDoctemplateApi.d.ts +10 -8
  41. package/icc-api/api/IccDoctemplateApi.js +121 -101
  42. package/icc-api/api/IccDoctemplateApi.js.map +1 -1
  43. package/icc-api/api/IccDocumentApi.d.ts +19 -5
  44. package/icc-api/api/IccDocumentApi.js +38 -13
  45. package/icc-api/api/IccDocumentApi.js.map +1 -1
  46. package/icc-api/api/IccEntityrefApi.d.ts +1 -1
  47. package/icc-api/api/IccEntityrefApi.js +27 -16
  48. package/icc-api/api/IccEntityrefApi.js.map +1 -1
  49. package/icc-api/api/IccEntitytemplateApi.d.ts +6 -4
  50. package/icc-api/api/IccEntitytemplateApi.js +118 -97
  51. package/icc-api/api/IccEntitytemplateApi.js.map +1 -1
  52. package/icc-api/api/IccExchangeDataApi.d.ts +2 -2
  53. package/icc-api/api/IccExchangeDataApi.js +73 -52
  54. package/icc-api/api/IccExchangeDataApi.js.map +1 -1
  55. package/icc-api/api/IccExchangeDataMapApi.d.ts +2 -2
  56. package/icc-api/api/IccExchangeDataMapApi.js +53 -34
  57. package/icc-api/api/IccExchangeDataMapApi.js.map +1 -1
  58. package/icc-api/api/IccFormApi.d.ts +13 -5
  59. package/icc-api/api/IccFormApi.js +24 -18
  60. package/icc-api/api/IccFormApi.js.map +1 -1
  61. package/icc-api/api/IccFrontendmigrationApi.d.ts +1 -1
  62. package/icc-api/api/IccFrontendmigrationApi.js +19 -10
  63. package/icc-api/api/IccFrontendmigrationApi.js.map +1 -1
  64. package/icc-api/api/IccGroupApi.d.ts +16 -2
  65. package/icc-api/api/IccGroupApi.js +29 -3
  66. package/icc-api/api/IccGroupApi.js.map +1 -1
  67. package/icc-api/api/IccHcpartyApi.d.ts +25 -10
  68. package/icc-api/api/IccHcpartyApi.js +84 -53
  69. package/icc-api/api/IccHcpartyApi.js.map +1 -1
  70. package/icc-api/api/IccHelementApi.d.ts +13 -5
  71. package/icc-api/api/IccHelementApi.js +25 -21
  72. package/icc-api/api/IccHelementApi.js.map +1 -1
  73. package/icc-api/api/IccIcureApi.d.ts +1 -1
  74. package/icc-api/api/IccIcureApi.js +2 -2
  75. package/icc-api/api/IccIcureApi.js.map +1 -1
  76. package/icc-api/api/IccInsuranceApi.d.ts +1 -1
  77. package/icc-api/api/IccInsuranceApi.js +67 -50
  78. package/icc-api/api/IccInsuranceApi.js.map +1 -1
  79. package/icc-api/api/IccInvoiceApi.d.ts +1 -1
  80. package/icc-api/api/IccInvoiceApi.js +5 -11
  81. package/icc-api/api/IccInvoiceApi.js.map +1 -1
  82. package/icc-api/api/IccKeywordApi.d.ts +6 -5
  83. package/icc-api/api/IccKeywordApi.js +59 -45
  84. package/icc-api/api/IccKeywordApi.js.map +1 -1
  85. package/icc-api/api/IccMaintenanceTaskApi.d.ts +13 -4
  86. package/icc-api/api/IccMaintenanceTaskApi.js +22 -12
  87. package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
  88. package/icc-api/api/IccMedexApi.d.ts +1 -1
  89. package/icc-api/api/IccMedexApi.js +19 -10
  90. package/icc-api/api/IccMedexApi.js.map +1 -1
  91. package/icc-api/api/IccMedicallocationApi.d.ts +6 -4
  92. package/icc-api/api/IccMedicallocationApi.js +52 -39
  93. package/icc-api/api/IccMedicallocationApi.js.map +1 -1
  94. package/icc-api/api/IccMessageApi.d.ts +25 -7
  95. package/icc-api/api/IccMessageApi.js +52 -22
  96. package/icc-api/api/IccMessageApi.js.map +1 -1
  97. package/icc-api/api/IccPatientApi.d.ts +13 -5
  98. package/icc-api/api/IccPatientApi.js +23 -13
  99. package/icc-api/api/IccPatientApi.js.map +1 -1
  100. package/icc-api/api/IccPermissionApi.d.ts +1 -1
  101. package/icc-api/api/IccPermissionApi.js +19 -10
  102. package/icc-api/api/IccPermissionApi.js.map +1 -1
  103. package/icc-api/api/IccPlaceApi.d.ts +7 -5
  104. package/icc-api/api/IccPlaceApi.js +53 -40
  105. package/icc-api/api/IccPlaceApi.js.map +1 -1
  106. package/icc-api/api/IccReceiptApi.d.ts +13 -4
  107. package/icc-api/api/IccReceiptApi.js +23 -13
  108. package/icc-api/api/IccReceiptApi.js.map +1 -1
  109. package/icc-api/api/IccReplicationApi.d.ts +1 -1
  110. package/icc-api/api/IccReplicationApi.js +3 -5
  111. package/icc-api/api/IccReplicationApi.js.map +1 -1
  112. package/icc-api/api/IccRoleApi.d.ts +16 -0
  113. package/icc-api/api/IccRoleApi.js +42 -0
  114. package/icc-api/api/IccRoleApi.js.map +1 -0
  115. package/icc-api/api/IccSecureDelegationKeyMapApi.d.ts +26 -0
  116. package/icc-api/api/IccSecureDelegationKeyMapApi.js +71 -0
  117. package/icc-api/api/IccSecureDelegationKeyMapApi.js.map +1 -0
  118. package/icc-api/api/IccTarificationApi.d.ts +1 -1
  119. package/icc-api/api/IccTarificationApi.js +19 -10
  120. package/icc-api/api/IccTarificationApi.js.map +1 -1
  121. package/icc-api/api/IccTimeTableApi.d.ts +13 -4
  122. package/icc-api/api/IccTimeTableApi.js +21 -9
  123. package/icc-api/api/IccTimeTableApi.js.map +1 -1
  124. package/icc-api/api/IccTopicApi.d.ts +97 -0
  125. package/icc-api/api/IccTopicApi.js +208 -0
  126. package/icc-api/api/IccTopicApi.js.map +1 -0
  127. package/icc-api/api/IccUserApi.d.ts +31 -1
  128. package/icc-api/api/IccUserApi.js +65 -2
  129. package/icc-api/api/IccUserApi.js.map +1 -1
  130. package/icc-api/index.d.ts +1 -0
  131. package/icc-api/index.js +1 -0
  132. package/icc-api/index.js.map +1 -1
  133. package/icc-api/model/AbstractFilterMessage.d.ts +15 -0
  134. package/icc-api/model/AbstractFilterMessage.js +21 -0
  135. package/icc-api/model/AbstractFilterMessage.js.map +1 -0
  136. package/icc-api/model/AbstractFilterTopic.d.ts +15 -0
  137. package/icc-api/model/AbstractFilterTopic.js +21 -0
  138. package/icc-api/model/AbstractFilterTopic.js.map +1 -0
  139. package/icc-api/model/AccessLog.d.ts +0 -2
  140. package/icc-api/model/AccessLog.js +0 -1
  141. package/icc-api/model/AccessLog.js.map +1 -1
  142. package/icc-api/model/Article.d.ts +0 -2
  143. package/icc-api/model/Article.js +0 -1
  144. package/icc-api/model/Article.js.map +1 -1
  145. package/icc-api/model/CalendarItem.d.ts +0 -2
  146. package/icc-api/model/CalendarItem.js +0 -1
  147. package/icc-api/model/CalendarItem.js.map +1 -1
  148. package/icc-api/model/Classification.d.ts +0 -2
  149. package/icc-api/model/Classification.js +0 -1
  150. package/icc-api/model/Classification.js.map +1 -1
  151. package/icc-api/model/Connection.d.ts +1 -1
  152. package/icc-api/model/Connection.js.map +1 -1
  153. package/icc-api/model/Contact.d.ts +0 -2
  154. package/icc-api/model/Contact.js +0 -1
  155. package/icc-api/model/Contact.js.map +1 -1
  156. package/icc-api/model/Document.d.ts +0 -2
  157. package/icc-api/model/Document.js +0 -1
  158. package/icc-api/model/Document.js.map +1 -1
  159. package/icc-api/model/FilterChainMessage.d.ts +19 -0
  160. package/icc-api/model/FilterChainMessage.js +11 -0
  161. package/icc-api/model/FilterChainMessage.js.map +1 -0
  162. package/icc-api/model/FilterChainTopic.d.ts +19 -0
  163. package/icc-api/model/FilterChainTopic.js +11 -0
  164. package/icc-api/model/FilterChainTopic.js.map +1 -0
  165. package/icc-api/model/Form.d.ts +0 -2
  166. package/icc-api/model/Form.js +0 -1
  167. package/icc-api/model/Form.js.map +1 -1
  168. package/icc-api/model/Group.d.ts +4 -0
  169. package/icc-api/model/Group.js.map +1 -1
  170. package/icc-api/model/HealthElement.d.ts +0 -2
  171. package/icc-api/model/HealthElement.js +0 -1
  172. package/icc-api/model/HealthElement.js.map +1 -1
  173. package/icc-api/model/HealthcareParty.js +13 -1
  174. package/icc-api/model/HealthcareParty.js.map +1 -1
  175. package/icc-api/model/Invoice.d.ts +0 -2
  176. package/icc-api/model/Invoice.js +0 -1
  177. package/icc-api/model/Invoice.js.map +1 -1
  178. package/icc-api/model/MaintenanceTask.d.ts +11 -10
  179. package/icc-api/model/MaintenanceTask.js +13 -12
  180. package/icc-api/model/MaintenanceTask.js.map +1 -1
  181. package/icc-api/model/Message.d.ts +5 -2
  182. package/icc-api/model/Message.js +0 -1
  183. package/icc-api/model/Message.js.map +1 -1
  184. package/icc-api/model/MessageAttachment.d.ts +10 -0
  185. package/icc-api/model/MessageAttachment.js +10 -0
  186. package/icc-api/model/MessageAttachment.js.map +1 -0
  187. package/icc-api/model/PaginatedListExchangeData.d.ts +1 -1
  188. package/icc-api/model/PaginatedListExchangeData.js.map +1 -1
  189. package/icc-api/model/PaginatedListTopic.d.ts +20 -0
  190. package/icc-api/model/PaginatedListTopic.js +10 -0
  191. package/icc-api/model/PaginatedListTopic.js.map +1 -0
  192. package/icc-api/model/Patient.d.ts +0 -2
  193. package/icc-api/model/Patient.js +0 -1
  194. package/icc-api/model/Patient.js.map +1 -1
  195. package/icc-api/model/Receipt.d.ts +0 -2
  196. package/icc-api/model/Receipt.js +0 -1
  197. package/icc-api/model/Receipt.js.map +1 -1
  198. package/icc-api/model/Role.d.ts +11 -0
  199. package/icc-api/model/Role.js +10 -0
  200. package/icc-api/model/Role.js.map +1 -0
  201. package/icc-api/model/RoleConfiguration.d.ts +6 -0
  202. package/icc-api/model/RoleConfiguration.js +10 -0
  203. package/icc-api/model/RoleConfiguration.js.map +1 -0
  204. package/icc-api/model/RoleSourceEnum.d.ts +11 -0
  205. package/icc-api/model/RoleSourceEnum.js +16 -0
  206. package/icc-api/model/RoleSourceEnum.js.map +1 -0
  207. package/icc-api/model/TimeTable.d.ts +0 -2
  208. package/icc-api/model/TimeTable.js +0 -1
  209. package/icc-api/model/TimeTable.js.map +1 -1
  210. package/icc-api/model/Topic.d.ts +95 -0
  211. package/icc-api/model/Topic.js +16 -0
  212. package/icc-api/model/Topic.js.map +1 -0
  213. package/icc-api/model/UserTypeEnum.d.ts +9 -0
  214. package/icc-api/model/UserTypeEnum.js +14 -0
  215. package/icc-api/model/UserTypeEnum.js.map +1 -0
  216. package/icc-api/model/{ExchangeData.d.ts → internal/ExchangeData.d.ts} +3 -0
  217. package/icc-api/model/{ExchangeData.js → internal/ExchangeData.js} +3 -0
  218. package/icc-api/model/internal/ExchangeData.js.map +1 -0
  219. package/icc-api/model/{ExchangeDataMap.d.ts → internal/ExchangeDataMap.d.ts} +3 -0
  220. package/icc-api/model/{ExchangeDataMap.js → internal/ExchangeDataMap.js} +3 -0
  221. package/icc-api/model/internal/ExchangeDataMap.js.map +1 -0
  222. package/icc-api/model/internal/SecureDelegationKeyMap.d.ts +14 -0
  223. package/icc-api/model/internal/SecureDelegationKeyMap.js +13 -0
  224. package/icc-api/model/internal/SecureDelegationKeyMap.js.map +1 -0
  225. package/icc-api/model/models.d.ts +11 -1
  226. package/icc-api/model/models.js +9 -0
  227. package/icc-api/model/models.js.map +1 -1
  228. package/icc-x-api/basexapi/EncryptedEntityXApi.d.ts +52 -4
  229. package/icc-x-api/basexapi/EncryptedEntityXApi.js.map +1 -1
  230. package/icc-x-api/crypto/AccessControlKeysHeadersProvider.d.ts +2 -0
  231. package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js +13 -4
  232. package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js.map +1 -1
  233. package/icc-x-api/crypto/AccessControlSecretUtils.d.ts +1 -0
  234. package/icc-x-api/crypto/AccessControlSecretUtils.js +11 -0
  235. package/icc-x-api/crypto/AccessControlSecretUtils.js.map +1 -1
  236. package/icc-x-api/crypto/BaseExchangeDataManager.d.ts +1 -1
  237. package/icc-x-api/crypto/BaseExchangeDataManager.js +1 -1
  238. package/icc-x-api/crypto/BaseExchangeDataManager.js.map +1 -1
  239. package/icc-x-api/crypto/DelegationsDeAnonymization.d.ts +44 -0
  240. package/icc-x-api/crypto/DelegationsDeAnonymization.js +235 -0
  241. package/icc-x-api/crypto/DelegationsDeAnonymization.js.map +1 -0
  242. package/icc-x-api/crypto/ExchangeDataManager.d.ts +3 -1
  243. package/icc-x-api/crypto/ExchangeDataManager.js +27 -19
  244. package/icc-x-api/crypto/ExchangeDataManager.js.map +1 -1
  245. package/icc-x-api/crypto/ExchangeDataMapManager.d.ts +1 -1
  246. package/icc-x-api/crypto/ExchangeDataMapManager.js.map +1 -1
  247. package/icc-x-api/crypto/ExtendedApisUtils.d.ts +0 -10
  248. package/icc-x-api/crypto/ExtendedApisUtils.js.map +1 -1
  249. package/icc-x-api/crypto/ExtendedApisUtilsImpl.d.ts +0 -7
  250. package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +4 -7
  251. package/icc-x-api/crypto/ExtendedApisUtilsImpl.js.map +1 -1
  252. package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.d.ts +0 -6
  253. package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js +0 -9
  254. package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js.map +1 -1
  255. package/icc-x-api/crypto/SecureDelegationsManager.js.map +1 -1
  256. package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.d.ts +14 -5
  257. package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js +44 -26
  258. package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js.map +1 -1
  259. package/icc-x-api/crypto/SecurityMetadataDecryptor.d.ts +1 -18
  260. package/icc-x-api/crypto/SecurityMetadataDecryptor.js +4 -23
  261. package/icc-x-api/crypto/SecurityMetadataDecryptor.js.map +1 -1
  262. package/icc-x-api/crypto/UserSignatureKeysManager.d.ts +1 -1
  263. package/icc-x-api/crypto/UserSignatureKeysManager.js +2 -2
  264. package/icc-x-api/crypto/UserSignatureKeysManager.js.map +1 -1
  265. package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.d.ts +8 -0
  266. package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js +13 -0
  267. package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js.map +1 -0
  268. package/icc-x-api/filters/MessageByHcPartyFilter.d.ts +7 -0
  269. package/icc-x-api/filters/MessageByHcPartyFilter.js +13 -0
  270. package/icc-x-api/filters/MessageByHcPartyFilter.js.map +1 -0
  271. package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.d.ts +8 -0
  272. package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js +13 -0
  273. package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js.map +1 -0
  274. package/icc-x-api/filters/TopicByHcPartyFilter.d.ts +7 -0
  275. package/icc-x-api/filters/TopicByHcPartyFilter.js +13 -0
  276. package/icc-x-api/filters/TopicByHcPartyFilter.js.map +1 -0
  277. package/icc-x-api/filters/TopicByParticipantFilter.d.ts +7 -0
  278. package/icc-x-api/filters/TopicByParticipantFilter.js +13 -0
  279. package/icc-x-api/filters/TopicByParticipantFilter.js.map +1 -0
  280. package/icc-x-api/filters/filters.d.ts +5 -0
  281. package/icc-x-api/filters/filters.js +5 -0
  282. package/icc-x-api/filters/filters.js.map +1 -1
  283. package/icc-x-api/icc-accesslog-x-api.d.ts +3 -1
  284. package/icc-x-api/icc-accesslog-x-api.js +7 -3
  285. package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
  286. package/icc-x-api/icc-calendar-item-x-api.d.ts +3 -1
  287. package/icc-x-api/icc-calendar-item-x-api.js +7 -3
  288. package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
  289. package/icc-x-api/icc-classification-x-api.d.ts +3 -1
  290. package/icc-x-api/icc-classification-x-api.js +7 -3
  291. package/icc-x-api/icc-classification-x-api.js.map +1 -1
  292. package/icc-x-api/icc-contact-x-api.d.ts +3 -1
  293. package/icc-x-api/icc-contact-x-api.js +8 -4
  294. package/icc-x-api/icc-contact-x-api.js.map +1 -1
  295. package/icc-x-api/icc-crypto-x-api.d.ts +7 -1
  296. package/icc-x-api/icc-crypto-x-api.js +8 -1
  297. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  298. package/icc-x-api/icc-document-x-api.d.ts +3 -1
  299. package/icc-x-api/icc-document-x-api.js +8 -4
  300. package/icc-x-api/icc-document-x-api.js.map +1 -1
  301. package/icc-x-api/icc-form-x-api.d.ts +3 -1
  302. package/icc-x-api/icc-form-x-api.js +7 -3
  303. package/icc-x-api/icc-form-x-api.js.map +1 -1
  304. package/icc-x-api/icc-helement-x-api.d.ts +4 -2
  305. package/icc-x-api/icc-helement-x-api.js +8 -8
  306. package/icc-x-api/icc-helement-x-api.js.map +1 -1
  307. package/icc-x-api/icc-invoice-x-api.d.ts +3 -1
  308. package/icc-x-api/icc-invoice-x-api.js +7 -3
  309. package/icc-x-api/icc-invoice-x-api.js.map +1 -1
  310. package/icc-x-api/icc-maintenance-task-x-api.d.ts +8 -4
  311. package/icc-x-api/icc-maintenance-task-x-api.js +14 -4
  312. package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
  313. package/icc-x-api/icc-message-x-api.d.ts +24 -6
  314. package/icc-x-api/icc-message-x-api.js +66 -6
  315. package/icc-x-api/icc-message-x-api.js.map +1 -1
  316. package/icc-x-api/icc-patient-x-api.d.ts +3 -1
  317. package/icc-x-api/icc-patient-x-api.js +7 -3
  318. package/icc-x-api/icc-patient-x-api.js.map +1 -1
  319. package/icc-x-api/icc-receipt-x-api.d.ts +3 -1
  320. package/icc-x-api/icc-receipt-x-api.js +7 -3
  321. package/icc-x-api/icc-receipt-x-api.js.map +1 -1
  322. package/icc-x-api/icc-time-table-x-api.d.ts +3 -1
  323. package/icc-x-api/icc-time-table-x-api.js +7 -3
  324. package/icc-x-api/icc-time-table-x-api.js.map +1 -1
  325. package/icc-x-api/icc-topic-x-api.d.ts +191 -0
  326. package/icc-x-api/icc-topic-x-api.js +307 -0
  327. package/icc-x-api/icc-topic-x-api.js.map +1 -0
  328. package/icc-x-api/index.d.ts +17 -0
  329. package/icc-x-api/index.js +104 -70
  330. package/icc-x-api/index.js.map +1 -1
  331. package/icc-x-api/maintenance/KeyPairUpdateRequest.d.ts +1 -1
  332. package/icc-x-api/storage/KeyStorageImpl.d.ts +1 -0
  333. package/icc-x-api/storage/KeyStorageImpl.js +20 -12
  334. package/icc-x-api/storage/KeyStorageImpl.js.map +1 -1
  335. package/icc-x-api/utils/EntityWithDelegationTypeName.d.ts +1 -1
  336. package/icc-x-api/utils/EntityWithDelegationTypeName.js.map +1 -1
  337. package/icc-x-api/utils/websocket.d.ts +4 -0
  338. package/icc-x-api/utils/websocket.js +8 -0
  339. package/icc-x-api/utils/websocket.js.map +1 -1
  340. package/package.json +1 -1
  341. package/icc-api/api/IccDocumentTemplateApi.d.ts +0 -106
  342. package/icc-api/api/IccDocumentTemplateApi.js +0 -223
  343. package/icc-api/api/IccDocumentTemplateApi.js.map +0 -1
  344. package/icc-api/model/ExchangeData.js.map +0 -1
  345. package/icc-api/model/ExchangeDataMap.js.map +0 -1
@@ -74,6 +74,10 @@ const ExchangeDataMapManager_1 = require("./crypto/ExchangeDataMapManager");
74
74
  const icc_device_x_api_1 = require("./icc-device-x-api");
75
75
  const icc_bekmehr_x_api_1 = require("./icc-bekmehr-x-api");
76
76
  const icc_doctemplate_x_api_1 = require("./icc-doctemplate-x-api");
77
+ const icc_topic_x_api_1 = require("./icc-topic-x-api");
78
+ const IccRoleApi_1 = require("../icc-api/api/IccRoleApi");
79
+ const DataOwnerTypeEnum_1 = require("../icc-api/model/DataOwnerTypeEnum");
80
+ const DelegationsDeAnonymization_1 = require("./crypto/DelegationsDeAnonymization");
77
81
  __exportStar(require("./icc-accesslog-x-api"), exports);
78
82
  __exportStar(require("./icc-bekmehr-x-api"), exports);
79
83
  __exportStar(require("./icc-calendar-item-x-api"), exports);
@@ -98,6 +102,7 @@ __exportStar(require("./icc-maintenance-task-x-api"), exports);
98
102
  __exportStar(require("./utils"), exports);
99
103
  __exportStar(require("./crypto/RSA"), exports);
100
104
  __exportStar(require("./crypto/CryptoPrimitives"), exports);
105
+ __exportStar(require("./crypto/ShareMetadataBehaviour"), exports);
101
106
  __exportStar(require("./auth/AuthenticationProvider"), exports);
102
107
  var LocalStorageImpl_2 = require("./storage/LocalStorageImpl");
103
108
  Object.defineProperty(exports, "LocalStorageImpl", { enumerable: true, get: function () { return LocalStorageImpl_2.LocalStorageImpl; } });
@@ -119,7 +124,7 @@ var IcureApiOptions;
119
124
  this.storage = (_c = custom.storage) !== null && _c !== void 0 ? _c : new LocalStorageImpl_1.LocalStorageImpl();
120
125
  this.keyStorage = (_d = custom.keyStorage) !== null && _d !== void 0 ? _d : new KeyStorageImpl_1.KeyStorageImpl(this.storage);
121
126
  this.headers = (_e = custom.headers) !== null && _e !== void 0 ? _e : Defaults.headers;
122
- this.encryptedFieldsConfig = (_f = custom.encryptedFieldsConfig) !== null && _f !== void 0 ? _f : EncryptedFieldsConfig.Defaults;
127
+ this.encryptedFieldsConfig = (_f = custom.encryptedFieldsConfig) !== null && _f !== void 0 ? _f : {};
123
128
  this.groupSelector = (_g = custom.groupSelector) !== null && _g !== void 0 ? _g : ((groups) => Promise.resolve(groups[0].groupId));
124
129
  this.disableParentKeysInitialisation = (_h = custom.disableParentKeysInitialisation) !== null && _h !== void 0 ? _h : false;
125
130
  }
@@ -136,6 +141,8 @@ var EncryptedFieldsConfig;
136
141
  healthElement: ['descr', 'note', 'notes[].markdown'],
137
142
  maintenanceTask: ['properties'],
138
143
  patient: ['note', 'notes[].markdown'],
144
+ message: [],
145
+ topic: ['description', 'linkedServices', 'linkedHealthElements'],
139
146
  };
140
147
  })(EncryptedFieldsConfig = exports.EncryptedFieldsConfig || (exports.EncryptedFieldsConfig = {}));
141
148
  var IcureApi;
@@ -177,28 +184,43 @@ var IcureApi;
177
184
  * probably linked to replication of the user in the fallback database.
178
185
  */
179
186
  const groupSpecificAuthenticationProvider = matches.length > 1 ? yield grouplessAuthenticationProvider.switchGroup(chosenGroupId, matches) : grouplessAuthenticationProvider;
180
- const cryptoApis = yield initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticationProvider, params, cryptoStrategies, crypto);
181
- return new IcureApiImpl(cryptoApis, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, matches, matches.find((match) => match.groupId === chosenGroupId), params, cryptoStrategies);
187
+ const cryptoInitInfo = yield initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticationProvider, params, cryptoStrategies, crypto);
188
+ return new IcureApiImpl(cryptoInitInfo, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, matches, matches.find((match) => match.groupId === chosenGroupId), params, cryptoStrategies);
182
189
  });
183
190
  }
184
191
  IcureApi.initialise = initialise;
185
192
  })(IcureApi = exports.IcureApi || (exports.IcureApi = {}));
193
+ const REQUEST_AUTOFIX_ANONYMITY_HEADER = 'Icure-Request-Autofix-Anonymity';
186
194
  function initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticationProvider, params, cryptoStrategies, crypto) {
187
195
  var _a;
188
196
  return __awaiter(this, void 0, void 0, function* () {
189
- // Here I instantiate a separate instance of the AuthApi that can call also login-protected methods (logout)
190
- const authApi = new icc_api_1.IccAuthApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
191
- const userApi = new icc_user_x_api_1.IccUserXApi(host, params.headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
192
- const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, params.headers, groupSpecificAuthenticationProvider, authApi, fetchImpl);
193
- const deviceApi = new icc_device_x_api_1.IccDeviceXApi(host, params.headers, groupSpecificAuthenticationProvider, userApi, authApi, fetchImpl);
194
- const basePatientApi = new icc_api_1.IccPatientApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
195
- const dataOwnerApi = new icc_data_owner_x_api_1.IccDataOwnerXApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
196
- const exchangeDataApi = new IccExchangeDataApi_1.IccExchangeDataApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl);
197
+ const initialDataOwnerStub = yield new icc_data_owner_x_api_1.IccDataOwnerXApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl).getCurrentDataOwnerStub();
198
+ const dataOwnerRequiresAnonymousDelegation = cryptoStrategies.dataOwnerRequiresAnonymousDelegation(initialDataOwnerStub);
199
+ let updatedHeaders = params.headers;
200
+ if (!Object.keys(updatedHeaders).includes(REQUEST_AUTOFIX_ANONYMITY_HEADER)) {
201
+ if (initialDataOwnerStub.type == DataOwnerTypeEnum_1.DataOwnerTypeEnum.Patient || initialDataOwnerStub.type == DataOwnerTypeEnum_1.DataOwnerTypeEnum.Device) {
202
+ if (!dataOwnerRequiresAnonymousDelegation) {
203
+ updatedHeaders = Object.assign(Object.assign({}, updatedHeaders), { [REQUEST_AUTOFIX_ANONYMITY_HEADER]: 'false' });
204
+ }
205
+ }
206
+ else {
207
+ if (dataOwnerRequiresAnonymousDelegation) {
208
+ updatedHeaders = Object.assign(Object.assign({}, updatedHeaders), { [REQUEST_AUTOFIX_ANONYMITY_HEADER]: 'true' });
209
+ }
210
+ }
211
+ }
212
+ const authApi = new icc_api_1.IccAuthApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
213
+ const userApi = new icc_user_x_api_1.IccUserXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, authApi, fetchImpl);
214
+ const healthcarePartyApi = new icc_hcparty_x_api_1.IccHcpartyXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, authApi, fetchImpl);
215
+ const deviceApi = new icc_device_x_api_1.IccDeviceXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, userApi, authApi, fetchImpl);
216
+ const basePatientApi = new icc_api_1.IccPatientApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
217
+ const dataOwnerApi = new icc_data_owner_x_api_1.IccDataOwnerXApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
218
+ const exchangeDataApi = new IccExchangeDataApi_1.IccExchangeDataApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl);
197
219
  // Crypto initialisation
198
220
  const icureStorage = new IcureStorageFacade_1.IcureStorageFacade(params.keyStorage, params.storage, params.entryKeysFactory);
199
221
  const cryptoPrimitives = new CryptoPrimitives_1.CryptoPrimitives(crypto);
200
222
  const baseExchangeKeysManager = new BaseExchangeKeysManager_1.BaseExchangeKeysManager(cryptoPrimitives, dataOwnerApi, healthcarePartyApi, basePatientApi, deviceApi);
201
- const baseExchangeDataManager = new BaseExchangeDataManager_1.BaseExchangeDataManager(exchangeDataApi, dataOwnerApi, cryptoPrimitives, cryptoStrategies.dataOwnerRequiresAnonymousDelegation(yield dataOwnerApi.getCurrentDataOwnerStub()));
223
+ const baseExchangeDataManager = new BaseExchangeDataManager_1.BaseExchangeDataManager(exchangeDataApi, dataOwnerApi, cryptoPrimitives, dataOwnerRequiresAnonymousDelegation);
202
224
  const keyRecovery = new KeyRecovery_1.KeyRecovery(cryptoPrimitives, dataOwnerApi, baseExchangeKeysManager, baseExchangeDataManager);
203
225
  const userEncryptionKeysManager = new UserEncryptionKeysManager_1.UserEncryptionKeysManager(cryptoPrimitives, dataOwnerApi, icureStorage, keyRecovery, cryptoStrategies, !params.disableParentKeysInitialisation);
204
226
  const userSignatureKeysManager = new UserSignatureKeysManager_1.UserSignatureKeysManager(icureStorage, dataOwnerApi, cryptoPrimitives);
@@ -208,14 +230,17 @@ function initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticati
208
230
  const exchangeKeysManager = new ExchangeKeysManager_1.ExchangeKeysManager(100, 500, 600000, 60000, cryptoStrategies, cryptoPrimitives, userEncryptionKeysManager, baseExchangeKeysManager, dataOwnerApi, !params.disableParentKeysInitialisation, icureStorage);
209
231
  const accessControlSecretUtils = new AccessControlSecretUtils_1.AccessControlSecretUtils(cryptoPrimitives);
210
232
  const exchangeDataManager = yield (0, ExchangeDataManager_1.initialiseExchangeDataManagerForCurrentDataOwner)(baseExchangeDataManager, userEncryptionKeysManager, userSignatureKeysManager, accessControlSecretUtils, cryptoStrategies, dataOwnerApi, cryptoPrimitives, !params.disableParentKeysInitialisation);
211
- const exchangeDataMapManager = new ExchangeDataMapManager_1.ExchangeDataMapManager(new IccExchangeDataMapApi_1.IccExchangeDataMapApi(host, params.headers, groupSpecificAuthenticationProvider, fetchImpl));
233
+ const exchangeDataMapManager = new ExchangeDataMapManager_1.ExchangeDataMapManager(new IccExchangeDataMapApi_1.IccExchangeDataMapApi(host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl));
212
234
  const secureDelegationsEncryption = new SecureDelegationsEncryption_1.SecureDelegationsEncryption(userEncryptionKeysManager, cryptoPrimitives);
213
- const xApiUtils = new ExtendedApisUtilsImpl_1.ExtendedApisUtilsImpl(cryptoPrimitives, dataOwnerApi, new LegacyDelegationSecurityMetadataDecryptor_1.LegacyDelegationSecurityMetadataDecryptor(exchangeKeysManager, cryptoPrimitives), new SecureDelegationsSecurityMetadataDecryptor_1.SecureDelegationsSecurityMetadataDecryptor(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, dataOwnerApi), new SecureDelegationsManager_1.SecureDelegationsManager(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, accessControlSecretUtils, userEncryptionKeysManager, cryptoPrimitives, dataOwnerApi, cryptoStrategies, cryptoStrategies.dataOwnerRequiresAnonymousDelegation(yield dataOwnerApi.getCurrentDataOwnerStub())), userApi, !params.disableParentKeysInitialisation);
235
+ const secureDelegationsSecurityMetadataEncryption = new SecureDelegationsSecurityMetadataDecryptor_1.SecureDelegationsSecurityMetadataDecryptor(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, dataOwnerApi);
236
+ const xApiUtils = new ExtendedApisUtilsImpl_1.ExtendedApisUtilsImpl(cryptoPrimitives, dataOwnerApi, new LegacyDelegationSecurityMetadataDecryptor_1.LegacyDelegationSecurityMetadataDecryptor(exchangeKeysManager, cryptoPrimitives), secureDelegationsSecurityMetadataEncryption, new SecureDelegationsManager_1.SecureDelegationsManager(exchangeDataManager, exchangeDataMapManager, secureDelegationsEncryption, accessControlSecretUtils, userEncryptionKeysManager, cryptoPrimitives, dataOwnerApi, cryptoStrategies, dataOwnerRequiresAnonymousDelegation), userApi, !params.disableParentKeysInitialisation);
214
237
  const shamirManager = new ShamirKeysManager_1.ShamirKeysManager(cryptoPrimitives, dataOwnerApi, userEncryptionKeysManager, exchangeDataManager);
215
238
  const confidentialEntitites = new ConfidentialEntities_1.ConfidentialEntities(xApiUtils, cryptoPrimitives, dataOwnerApi);
216
239
  yield (0, utils_1.ensureDelegationForSelf)(dataOwnerApi, xApiUtils, basePatientApi, cryptoPrimitives);
217
- const cryptoApi = new icc_crypto_x_api_1.IccCryptoXApi(exchangeKeysManager, cryptoPrimitives, userEncryptionKeysManager, dataOwnerApi, xApiUtils, shamirManager, params.storage, params.keyStorage, confidentialEntitites, exchangeDataManager, new AccessControlKeysHeadersProvider_1.AccessControlKeysHeadersProvider(exchangeDataManager));
218
- const maintenanceTaskApi = new icc_maintenance_task_x_api_1.IccMaintenanceTaskXApi(host, params.headers, cryptoApi, healthcarePartyApi, dataOwnerApi, userApi, authApi, (_a = params.encryptedFieldsConfig.maintenanceTask) !== null && _a !== void 0 ? _a : EncryptedFieldsConfig.Defaults.maintenanceTask, groupSpecificAuthenticationProvider, fetchImpl);
240
+ const accessControlKeysHeadersProvider = new AccessControlKeysHeadersProvider_1.AccessControlKeysHeadersProvider(exchangeDataManager);
241
+ const delegationsDeAnonymisation = new DelegationsDeAnonymization_1.DelegationsDeAnonymization(dataOwnerApi, secureDelegationsSecurityMetadataEncryption, xApiUtils, cryptoPrimitives, accessControlSecretUtils, host, updatedHeaders, groupSpecificAuthenticationProvider, fetchImpl, accessControlKeysHeadersProvider);
242
+ const cryptoApi = new icc_crypto_x_api_1.IccCryptoXApi(exchangeKeysManager, cryptoPrimitives, userEncryptionKeysManager, dataOwnerApi, xApiUtils, shamirManager, params.storage, params.keyStorage, confidentialEntitites, exchangeDataManager, accessControlKeysHeadersProvider, delegationsDeAnonymisation);
243
+ const maintenanceTaskApi = new icc_maintenance_task_x_api_1.IccMaintenanceTaskXApi(host, updatedHeaders, cryptoApi, healthcarePartyApi, dataOwnerApi, userApi, authApi, !dataOwnerRequiresAnonymousDelegation, (_a = params.encryptedFieldsConfig.maintenanceTask) !== null && _a !== void 0 ? _a : EncryptedFieldsConfig.Defaults.maintenanceTask, groupSpecificAuthenticationProvider, fetchImpl);
219
244
  const icureMaintenanceTaskApi = new icc_icure_maintenance_x_api_1.IccIcureMaintenanceXApi(cryptoApi, maintenanceTaskApi, dataOwnerApi, exchangeDataApi);
220
245
  if (newKey && params.createMaintenanceTasksOnNewKey) {
221
246
  yield icureMaintenanceTaskApi.createMaintenanceTasksForNewKeypair(yield userApi.getCurrentUser(), newKey.newKeyPair);
@@ -228,17 +253,18 @@ function initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticati
228
253
  maintenanceTaskApi,
229
254
  dataOwnerApi,
230
255
  icureMaintenanceTaskApi,
256
+ headers: updatedHeaders,
257
+ dataOwnerRequiresAnonymousDelegation,
231
258
  };
232
259
  });
233
260
  }
234
261
  class IcureApiImpl {
235
- constructor(cryptoInitApis, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, latestMatches, currentGroupInfo, params, cryptoStrategies) {
236
- this.cryptoInitApis = cryptoInitApis;
262
+ constructor(cryptoInitInfos, host, groupSpecificAuthenticationProvider, fetch, grouplessUserApi, latestMatches, currentGroupInfo, params, cryptoStrategies) {
263
+ this.cryptoInitInfos = cryptoInitInfos;
237
264
  this.host = host;
238
265
  this.groupSpecificAuthenticationProvider = groupSpecificAuthenticationProvider;
239
266
  this.fetch = fetch;
240
267
  this.grouplessUserApi = grouplessUserApi;
241
- this.latestMatches = latestMatches;
242
268
  this.currentGroupInfo = currentGroupInfo;
243
269
  this.params = params;
244
270
  this.cryptoStrategies = cryptoStrategies;
@@ -246,188 +272,196 @@ class IcureApiImpl {
246
272
  }
247
273
  get authApi() {
248
274
  var _a;
249
- return (_a = this._authApi) !== null && _a !== void 0 ? _a : (this._authApi = new icc_api_1.IccAuthApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
275
+ return ((_a = this._authApi) !== null && _a !== void 0 ? _a : (this._authApi = new icc_api_1.IccAuthApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
250
276
  }
251
277
  get codeApi() {
252
278
  var _a;
253
- return (_a = this._codeApi) !== null && _a !== void 0 ? _a : (this._codeApi = new icc_code_x_api_1.IccCodeXApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
279
+ return ((_a = this._codeApi) !== null && _a !== void 0 ? _a : (this._codeApi = new icc_code_x_api_1.IccCodeXApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
254
280
  }
255
281
  get calendarItemTypeApi() {
256
282
  var _a;
257
- return ((_a = this._calendarItemTypeApi) !== null && _a !== void 0 ? _a : (this._calendarItemTypeApi = new icc_api_1.IccCalendarItemTypeApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
283
+ return ((_a = this._calendarItemTypeApi) !== null && _a !== void 0 ? _a : (this._calendarItemTypeApi = new icc_api_1.IccCalendarItemTypeApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
258
284
  }
259
285
  get medicalLocationApi() {
260
286
  var _a;
261
- return ((_a = this._medicalLocationApi) !== null && _a !== void 0 ? _a : (this._medicalLocationApi = new icc_api_1.IccMedicallocationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
287
+ return ((_a = this._medicalLocationApi) !== null && _a !== void 0 ? _a : (this._medicalLocationApi = new icc_api_1.IccMedicallocationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
288
+ }
289
+ get roleApi() {
290
+ var _a;
291
+ return (_a = this._roleApi) !== null && _a !== void 0 ? _a : (this._roleApi = new IccRoleApi_1.IccRoleApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
262
292
  }
263
293
  get entityReferenceApi() {
264
294
  var _a;
265
- return ((_a = this._entityReferenceApi) !== null && _a !== void 0 ? _a : (this._entityReferenceApi = new icc_api_1.IccEntityrefApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
295
+ return ((_a = this._entityReferenceApi) !== null && _a !== void 0 ? _a : (this._entityReferenceApi = new icc_api_1.IccEntityrefApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
266
296
  }
267
297
  get permissionApi() {
268
298
  var _a;
269
- return ((_a = this._permissionApi) !== null && _a !== void 0 ? _a : (this._permissionApi = new icc_api_1.IccPermissionApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
299
+ return ((_a = this._permissionApi) !== null && _a !== void 0 ? _a : (this._permissionApi = new icc_api_1.IccPermissionApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
270
300
  }
271
301
  get accessLogApi() {
272
302
  var _a, _b;
273
- return ((_a = this._accessLogApi) !== null && _a !== void 0 ? _a : (this._accessLogApi = new icc_accesslog_x_api_1.IccAccesslogXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, (_b = this.params.encryptedFieldsConfig.accessLog) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.accessLog, this.groupSpecificAuthenticationProvider, this.fetch)));
303
+ return ((_a = this._accessLogApi) !== null && _a !== void 0 ? _a : (this._accessLogApi = new icc_accesslog_x_api_1.IccAccesslogXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.accessLog) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.accessLog, this.groupSpecificAuthenticationProvider, this.fetch)));
274
304
  }
275
305
  get agendaApi() {
276
306
  var _a;
277
- return ((_a = this._agendaApi) !== null && _a !== void 0 ? _a : (this._agendaApi = new icc_api_1.IccAgendaApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
307
+ return ((_a = this._agendaApi) !== null && _a !== void 0 ? _a : (this._agendaApi = new icc_api_1.IccAgendaApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
278
308
  }
279
309
  get contactApi() {
280
310
  var _a, _b, _c;
281
- return ((_a = this._contactApi) !== null && _a !== void 0 ? _a : (this._contactApi = new icc_contact_x_api_1.IccContactXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, this.groupSpecificAuthenticationProvider, this.fetch, (_b = this.params.encryptedFieldsConfig.contact) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.contact, (_c = this.params.encryptedFieldsConfig.service) !== null && _c !== void 0 ? _c : EncryptedFieldsConfig.Defaults.service)));
311
+ return ((_a = this._contactApi) !== null && _a !== void 0 ? _a : (this._contactApi = new icc_contact_x_api_1.IccContactXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch, (_b = this.params.encryptedFieldsConfig.contact) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.contact, (_c = this.params.encryptedFieldsConfig.service) !== null && _c !== void 0 ? _c : EncryptedFieldsConfig.Defaults.service)));
282
312
  }
283
313
  get formApi() {
284
314
  var _a;
285
- return ((_a = this._formApi) !== null && _a !== void 0 ? _a : (this._formApi = new icc_form_x_api_1.IccFormXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
315
+ return ((_a = this._formApi) !== null && _a !== void 0 ? _a : (this._formApi = new icc_form_x_api_1.IccFormXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
286
316
  }
287
317
  get groupApi() {
288
318
  var _a;
289
- return (_a = this._groupApi) !== null && _a !== void 0 ? _a : (this._groupApi = new icc_api_1.IccGroupApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
319
+ return ((_a = this._groupApi) !== null && _a !== void 0 ? _a : (this._groupApi = new icc_api_1.IccGroupApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
290
320
  }
291
321
  get invoiceApi() {
292
322
  var _a;
293
- return ((_a = this._invoiceApi) !== null && _a !== void 0 ? _a : (this._invoiceApi = new icc_invoice_x_api_1.IccInvoiceXApi(this.host, this.params.headers, this.cryptoApi, this.entityReferenceApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
323
+ return ((_a = this._invoiceApi) !== null && _a !== void 0 ? _a : (this._invoiceApi = new icc_invoice_x_api_1.IccInvoiceXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.entityReferenceApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
294
324
  }
295
325
  get insuranceApi() {
296
326
  var _a;
297
- return ((_a = this._insuranceApi) !== null && _a !== void 0 ? _a : (this._insuranceApi = new icc_api_1.IccInsuranceApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
327
+ return ((_a = this._insuranceApi) !== null && _a !== void 0 ? _a : (this._insuranceApi = new icc_api_1.IccInsuranceApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
298
328
  }
299
329
  get documentApi() {
300
330
  var _a;
301
- return ((_a = this._documentApi) !== null && _a !== void 0 ? _a : (this._documentApi = new icc_document_x_api_1.IccDocumentXApi(this.host, this.params.headers, this.cryptoApi, this.authApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
331
+ return ((_a = this._documentApi) !== null && _a !== void 0 ? _a : (this._documentApi = new icc_document_x_api_1.IccDocumentXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.authApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
302
332
  }
303
333
  get healthcareElementApi() {
304
334
  var _a, _b;
305
- return ((_a = this._healthcareElementApi) !== null && _a !== void 0 ? _a : (this._healthcareElementApi = new icc_helement_x_api_1.IccHelementXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, (_b = this.params.encryptedFieldsConfig.healthElement) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.healthElement, this.groupSpecificAuthenticationProvider, this.fetch)));
335
+ return ((_a = this._healthcareElementApi) !== null && _a !== void 0 ? _a : (this._healthcareElementApi = new icc_helement_x_api_1.IccHelementXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.userApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.healthElement) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.healthElement, this.groupSpecificAuthenticationProvider, this.fetch)));
306
336
  }
307
337
  get classificationApi() {
308
338
  var _a;
309
- return ((_a = this._classificationApi) !== null && _a !== void 0 ? _a : (this._classificationApi = new icc_classification_x_api_1.IccClassificationXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
339
+ return ((_a = this._classificationApi) !== null && _a !== void 0 ? _a : (this._classificationApi = new icc_classification_x_api_1.IccClassificationXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
310
340
  }
311
341
  get calendarItemApi() {
312
342
  var _a, _b;
313
- return ((_a = this._calendarItemApi) !== null && _a !== void 0 ? _a : (this._calendarItemApi = new icc_calendar_item_x_api_1.IccCalendarItemXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, (_b = this.params.encryptedFieldsConfig.calendarItem) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.calendarItem, this.groupSpecificAuthenticationProvider, this.fetch)));
343
+ return ((_a = this._calendarItemApi) !== null && _a !== void 0 ? _a : (this._calendarItemApi = new icc_calendar_item_x_api_1.IccCalendarItemXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.calendarItem) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.calendarItem, this.groupSpecificAuthenticationProvider, this.fetch)));
314
344
  }
315
345
  get receiptApi() {
316
346
  var _a;
317
- return ((_a = this._receiptApi) !== null && _a !== void 0 ? _a : (this._receiptApi = new icc_receipt_x_api_1.IccReceiptXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
347
+ return ((_a = this._receiptApi) !== null && _a !== void 0 ? _a : (this._receiptApi = new icc_receipt_x_api_1.IccReceiptXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
318
348
  }
319
349
  get timetableApi() {
320
350
  var _a;
321
- return ((_a = this._timetableApi) !== null && _a !== void 0 ? _a : (this._timetableApi = new icc_time_table_x_api_1.IccTimeTableXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
351
+ return ((_a = this._timetableApi) !== null && _a !== void 0 ? _a : (this._timetableApi = new icc_time_table_x_api_1.IccTimeTableXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, this.fetch)));
322
352
  }
323
353
  get patientApi() {
324
354
  var _a, _b;
325
- return ((_a = this._patientApi) !== null && _a !== void 0 ? _a : (this._patientApi = new icc_patient_x_api_1.IccPatientXApi(this.host, this.params.headers, this.cryptoApi, this.contactApi, this.formApi, this.healthcareElementApi, this.invoiceApi, this.documentApi, this.healthcarePartyApi, this.classificationApi, this.dataOwnerApi, this.calendarItemApi, this.userApi, this.authApi, (_b = this.params.encryptedFieldsConfig.patient) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.patient, this.groupSpecificAuthenticationProvider, this.fetch)));
355
+ return ((_a = this._patientApi) !== null && _a !== void 0 ? _a : (this._patientApi = new icc_patient_x_api_1.IccPatientXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.contactApi, this.formApi, this.healthcareElementApi, this.invoiceApi, this.documentApi, this.healthcarePartyApi, this.classificationApi, this.dataOwnerApi, this.calendarItemApi, this.userApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, (_b = this.params.encryptedFieldsConfig.patient) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.patient, this.groupSpecificAuthenticationProvider, this.fetch)));
326
356
  }
327
357
  get messageApi() {
328
- var _a;
329
- return ((_a = this._messageApi) !== null && _a !== void 0 ? _a : (this._messageApi = new icc_message_x_api_1.IccMessageXApi(this.host, this.params.headers, this.cryptoApi, this.dataOwnerApi, this.groupSpecificAuthenticationProvider, this.fetch)));
358
+ var _a, _b;
359
+ return ((_a = this._messageApi) !== null && _a !== void 0 ? _a : (this._messageApi = new icc_message_x_api_1.IccMessageXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, (_b = this.params.encryptedFieldsConfig.message) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.message, this.fetch)));
360
+ }
361
+ get topicApi() {
362
+ var _a, _b;
363
+ return ((_a = this._topicApi) !== null && _a !== void 0 ? _a : (this._topicApi = new icc_topic_x_api_1.IccTopicXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.dataOwnerApi, this.authApi, !this.cryptoInitInfos.dataOwnerRequiresAnonymousDelegation, this.groupSpecificAuthenticationProvider, (_b = this.params.encryptedFieldsConfig.topic) !== null && _b !== void 0 ? _b : EncryptedFieldsConfig.Defaults.topic, this.fetch)));
330
364
  }
331
365
  get anonymousAccessApi() {
332
366
  var _a;
333
- return ((_a = this._anonymousAccessApi) !== null && _a !== void 0 ? _a : (this._anonymousAccessApi = new icc_api_1.IccAnonymousAccessApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
367
+ return ((_a = this._anonymousAccessApi) !== null && _a !== void 0 ? _a : (this._anonymousAccessApi = new icc_api_1.IccAnonymousAccessApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
334
368
  }
335
369
  get applicationSettingsApi() {
336
370
  var _a;
337
- return ((_a = this._applicationSettingsApi) !== null && _a !== void 0 ? _a : (this._applicationSettingsApi = new icc_api_1.IccApplicationsettingsApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
371
+ return ((_a = this._applicationSettingsApi) !== null && _a !== void 0 ? _a : (this._applicationSettingsApi = new icc_api_1.IccApplicationsettingsApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
338
372
  }
339
373
  get articleApi() {
340
374
  var _a;
341
- return ((_a = this._articleApi) !== null && _a !== void 0 ? _a : (this._articleApi = new icc_api_1.IccArticleApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
375
+ return ((_a = this._articleApi) !== null && _a !== void 0 ? _a : (this._articleApi = new icc_api_1.IccArticleApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
342
376
  }
343
377
  get bekmehrApi() {
344
378
  var _a;
345
- return ((_a = this._bekmehrApi) !== null && _a !== void 0 ? _a : (this._bekmehrApi = new icc_bekmehr_x_api_1.IccBekmehrXApi(this.host, this.params.headers, this.authApi, this.contactApi, this.healthcareElementApi, this.documentApi, this.groupSpecificAuthenticationProvider, this.fetch)));
379
+ return ((_a = this._bekmehrApi) !== null && _a !== void 0 ? _a : (this._bekmehrApi = new icc_bekmehr_x_api_1.IccBekmehrXApi(this.host, this.cryptoInitInfos.headers, this.authApi, this.contactApi, this.healthcareElementApi, this.documentApi, this.groupSpecificAuthenticationProvider, this.fetch)));
346
380
  }
347
381
  get beefactApi() {
348
382
  var _a;
349
- return ((_a = this._beefactApi) !== null && _a !== void 0 ? _a : (this._beefactApi = new icc_api_1.IccBeefactApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
383
+ return ((_a = this._beefactApi) !== null && _a !== void 0 ? _a : (this._beefactApi = new icc_api_1.IccBeefactApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
350
384
  }
351
385
  get beresultexportApi() {
352
386
  var _a;
353
- return ((_a = this._beresultexportApi) !== null && _a !== void 0 ? _a : (this._beresultexportApi = new icc_api_1.IccBeresultexportApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
387
+ return ((_a = this._beresultexportApi) !== null && _a !== void 0 ? _a : (this._beresultexportApi = new icc_api_1.IccBeresultexportApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
354
388
  }
355
389
  get beresultimportApi() {
356
390
  var _a;
357
- return ((_a = this._beresultimportApi) !== null && _a !== void 0 ? _a : (this._beresultimportApi = new icc_api_1.IccBeresultimportApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
391
+ return ((_a = this._beresultimportApi) !== null && _a !== void 0 ? _a : (this._beresultimportApi = new icc_api_1.IccBeresultimportApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
358
392
  }
359
393
  get besamv2Api() {
360
394
  var _a;
361
- return ((_a = this._besamv2Api) !== null && _a !== void 0 ? _a : (this._besamv2Api = new icc_api_1.IccBesamv2Api(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
395
+ return ((_a = this._besamv2Api) !== null && _a !== void 0 ? _a : (this._besamv2Api = new icc_api_1.IccBesamv2Api(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
362
396
  }
363
397
  get classificationTemplateApi() {
364
398
  var _a;
365
- return ((_a = this._classificationTemplateApi) !== null && _a !== void 0 ? _a : (this._classificationTemplateApi = new icc_api_1.IccClassificationTemplateApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
399
+ return ((_a = this._classificationTemplateApi) !== null && _a !== void 0 ? _a : (this._classificationTemplateApi = new icc_api_1.IccClassificationTemplateApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
366
400
  }
367
401
  get doctemplateApi() {
368
402
  var _a;
369
- return ((_a = this._doctemplateApi) !== null && _a !== void 0 ? _a : (this._doctemplateApi = new icc_doctemplate_x_api_1.IccDoctemplateXApi(this.host, this.params.headers, this.cryptoApi, this.groupSpecificAuthenticationProvider, this.fetch)));
403
+ return ((_a = this._doctemplateApi) !== null && _a !== void 0 ? _a : (this._doctemplateApi = new icc_doctemplate_x_api_1.IccDoctemplateXApi(this.host, this.cryptoInitInfos.headers, this.cryptoApi, this.groupSpecificAuthenticationProvider, this.fetch)));
370
404
  }
371
405
  get entitytemplateApi() {
372
406
  var _a;
373
- return ((_a = this._entitytemplateApi) !== null && _a !== void 0 ? _a : (this._entitytemplateApi = new icc_api_1.IccEntitytemplateApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
407
+ return ((_a = this._entitytemplateApi) !== null && _a !== void 0 ? _a : (this._entitytemplateApi = new icc_api_1.IccEntitytemplateApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
374
408
  }
375
409
  get frontendmigrationApi() {
376
410
  var _a;
377
- return ((_a = this._frontendmigrationApi) !== null && _a !== void 0 ? _a : (this._frontendmigrationApi = new icc_api_1.IccFrontendmigrationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
411
+ return ((_a = this._frontendmigrationApi) !== null && _a !== void 0 ? _a : (this._frontendmigrationApi = new icc_api_1.IccFrontendmigrationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
378
412
  }
379
413
  get icureApi() {
380
414
  var _a;
381
- return (_a = this._icureApi) !== null && _a !== void 0 ? _a : (this._icureApi = new icc_api_1.IccIcureApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
415
+ return ((_a = this._icureApi) !== null && _a !== void 0 ? _a : (this._icureApi = new icc_api_1.IccIcureApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
382
416
  }
383
417
  get keywordApi() {
384
418
  var _a;
385
- return ((_a = this._keywordApi) !== null && _a !== void 0 ? _a : (this._keywordApi = new icc_api_1.IccKeywordApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
419
+ return ((_a = this._keywordApi) !== null && _a !== void 0 ? _a : (this._keywordApi = new icc_api_1.IccKeywordApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
386
420
  }
387
421
  get medexApi() {
388
422
  var _a;
389
- return (_a = this._medexApi) !== null && _a !== void 0 ? _a : (this._medexApi = new icc_api_1.IccMedexApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
423
+ return ((_a = this._medexApi) !== null && _a !== void 0 ? _a : (this._medexApi = new icc_api_1.IccMedexApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
390
424
  }
391
425
  get placeApi() {
392
426
  var _a;
393
- return (_a = this._placeApi) !== null && _a !== void 0 ? _a : (this._placeApi = new icc_api_1.IccPlaceApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
427
+ return ((_a = this._placeApi) !== null && _a !== void 0 ? _a : (this._placeApi = new icc_api_1.IccPlaceApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
394
428
  }
395
429
  get pubsubApi() {
396
430
  var _a;
397
- return ((_a = this._pubsubApi) !== null && _a !== void 0 ? _a : (this._pubsubApi = new icc_api_1.IccPubsubApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
431
+ return ((_a = this._pubsubApi) !== null && _a !== void 0 ? _a : (this._pubsubApi = new icc_api_1.IccPubsubApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
398
432
  }
399
433
  get replicationApi() {
400
434
  var _a;
401
- return ((_a = this._replicationApi) !== null && _a !== void 0 ? _a : (this._replicationApi = new icc_api_1.IccReplicationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
435
+ return ((_a = this._replicationApi) !== null && _a !== void 0 ? _a : (this._replicationApi = new icc_api_1.IccReplicationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
402
436
  }
403
437
  get tarificationApi() {
404
438
  var _a;
405
- return ((_a = this._tarificationApi) !== null && _a !== void 0 ? _a : (this._tarificationApi = new icc_api_1.IccTarificationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
439
+ return ((_a = this._tarificationApi) !== null && _a !== void 0 ? _a : (this._tarificationApi = new icc_api_1.IccTarificationApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
406
440
  }
407
441
  get tmpApi() {
408
442
  var _a;
409
- return (_a = this._tmpApi) !== null && _a !== void 0 ? _a : (this._tmpApi = new icc_api_1.IccTmpApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch));
443
+ return ((_a = this._tmpApi) !== null && _a !== void 0 ? _a : (this._tmpApi = new icc_api_1.IccTmpApi(this.host, this.cryptoInitInfos.headers, this.groupSpecificAuthenticationProvider, this.fetch)));
410
444
  }
411
445
  get cryptoApi() {
412
- return this.cryptoInitApis.cryptoApi;
446
+ return this.cryptoInitInfos.cryptoApi;
413
447
  }
414
448
  get dataOwnerApi() {
415
- return this.cryptoInitApis.dataOwnerApi;
449
+ return this.cryptoInitInfos.dataOwnerApi;
416
450
  }
417
451
  get deviceApi() {
418
- return this.cryptoInitApis.deviceApi;
452
+ return this.cryptoInitInfos.deviceApi;
419
453
  }
420
454
  get healthcarePartyApi() {
421
- return this.cryptoInitApis.healthcarePartyApi;
455
+ return this.cryptoInitInfos.healthcarePartyApi;
422
456
  }
423
457
  get icureMaintenanceTaskApi() {
424
- return this.cryptoInitApis.icureMaintenanceTaskApi;
458
+ return this.cryptoInitInfos.icureMaintenanceTaskApi;
425
459
  }
426
460
  get maintenanceTaskApi() {
427
- return this.cryptoInitApis.maintenanceTaskApi;
461
+ return this.cryptoInitInfos.maintenanceTaskApi;
428
462
  }
429
463
  get userApi() {
430
- return this.cryptoInitApis.userApi;
464
+ return this.cryptoInitInfos.userApi;
431
465
  }
432
466
  getGroupsInfo() {
433
467
  return __awaiter(this, void 0, void 0, function* () {
@@ -439,8 +473,8 @@ class IcureApiImpl {
439
473
  return __awaiter(this, void 0, void 0, function* () {
440
474
  const availableGroups = yield this.latestGroupsRequest;
441
475
  const switchedProvider = yield this.groupSpecificAuthenticationProvider.switchGroup(newGroupId, availableGroups);
442
- const cryptoInitApis = yield initialiseCryptoWithProvider(this.host, this.fetch, switchedProvider, this.params, this.cryptoStrategies, this.cryptoApi.primitives.crypto);
443
- return new IcureApiImpl(cryptoInitApis, this.host, switchedProvider, this.fetch, this.grouplessUserApi, availableGroups, availableGroups.find((x) => x.groupId === newGroupId), this.params, this.cryptoStrategies);
476
+ const cryptoInitInfos = yield initialiseCryptoWithProvider(this.host, this.fetch, switchedProvider, this.params, this.cryptoStrategies, this.cryptoApi.primitives.crypto);
477
+ return new IcureApiImpl(cryptoInitInfos, this.host, switchedProvider, this.fetch, this.grouplessUserApi, availableGroups, availableGroups.find((x) => x.groupId === newGroupId), this.params, this.cryptoStrategies);
444
478
  });
445
479
  }
446
480
  }