@icure/api 6.0.1 → 6.0.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 (241) hide show
  1. package/icc-api/api/IccAccesslogApi.d.ts +3 -1
  2. package/icc-api/api/IccAccesslogApi.js +9 -8
  3. package/icc-api/api/IccAccesslogApi.js.map +1 -1
  4. package/icc-api/api/IccAgendaApi.d.ts +3 -1
  5. package/icc-api/api/IccAgendaApi.js +9 -8
  6. package/icc-api/api/IccAgendaApi.js.map +1 -1
  7. package/icc-api/api/IccAnonymousAccessApi.d.ts +3 -1
  8. package/icc-api/api/IccAnonymousAccessApi.js +5 -4
  9. package/icc-api/api/IccAnonymousAccessApi.js.map +1 -1
  10. package/icc-api/api/IccApplicationsettingsApi.d.ts +3 -1
  11. package/icc-api/api/IccApplicationsettingsApi.js +5 -4
  12. package/icc-api/api/IccApplicationsettingsApi.js.map +1 -1
  13. package/icc-api/api/IccArticleApi.d.ts +3 -1
  14. package/icc-api/api/IccArticleApi.js +7 -6
  15. package/icc-api/api/IccArticleApi.js.map +1 -1
  16. package/icc-api/api/IccAuthApi.d.ts +10 -0
  17. package/icc-api/api/IccAuthApi.js +25 -1
  18. package/icc-api/api/IccAuthApi.js.map +1 -1
  19. package/icc-api/api/IccBeefactApi.d.ts +3 -1
  20. package/icc-api/api/IccBeefactApi.js +3 -2
  21. package/icc-api/api/IccBeefactApi.js.map +1 -1
  22. package/icc-api/api/IccBekmehrApi.d.ts +3 -1
  23. package/icc-api/api/IccBekmehrApi.js +29 -28
  24. package/icc-api/api/IccBekmehrApi.js.map +1 -1
  25. package/icc-api/api/IccBemikronoApi.d.ts +3 -1
  26. package/icc-api/api/IccBemikronoApi.js +10 -9
  27. package/icc-api/api/IccBemikronoApi.js.map +1 -1
  28. package/icc-api/api/IccBeresultexportApi.d.ts +3 -1
  29. package/icc-api/api/IccBeresultexportApi.js +5 -4
  30. package/icc-api/api/IccBeresultexportApi.js.map +1 -1
  31. package/icc-api/api/IccBeresultimportApi.d.ts +3 -1
  32. package/icc-api/api/IccBeresultimportApi.js +5 -4
  33. package/icc-api/api/IccBeresultimportApi.js.map +1 -1
  34. package/icc-api/api/IccBesamv2Api.d.ts +3 -1
  35. package/icc-api/api/IccBesamv2Api.js +35 -34
  36. package/icc-api/api/IccBesamv2Api.js.map +1 -1
  37. package/icc-api/api/IccCalendarItemApi.d.ts +3 -1
  38. package/icc-api/api/IccCalendarItemApi.js +14 -13
  39. package/icc-api/api/IccCalendarItemApi.js.map +1 -1
  40. package/icc-api/api/IccCalendarItemTypeApi.d.ts +3 -1
  41. package/icc-api/api/IccCalendarItemTypeApi.js +8 -7
  42. package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
  43. package/icc-api/api/IccClassificationApi.d.ts +3 -1
  44. package/icc-api/api/IccClassificationApi.js +10 -9
  45. package/icc-api/api/IccClassificationApi.js.map +1 -1
  46. package/icc-api/api/IccClassificationTemplateApi.d.ts +3 -1
  47. package/icc-api/api/IccClassificationTemplateApi.js +10 -9
  48. package/icc-api/api/IccClassificationTemplateApi.js.map +1 -1
  49. package/icc-api/api/IccCodeApi.d.ts +3 -1
  50. package/icc-api/api/IccCodeApi.js +18 -17
  51. package/icc-api/api/IccCodeApi.js.map +1 -1
  52. package/icc-api/api/IccContactApi.d.ts +3 -2
  53. package/icc-api/api/IccContactApi.js +30 -32
  54. package/icc-api/api/IccContactApi.js.map +1 -1
  55. package/icc-api/api/IccDeviceApi.d.ts +3 -1
  56. package/icc-api/api/IccDeviceApi.js +20 -19
  57. package/icc-api/api/IccDeviceApi.js.map +1 -1
  58. package/icc-api/api/IccDoctemplateApi.d.ts +3 -1
  59. package/icc-api/api/IccDoctemplateApi.js +15 -14
  60. package/icc-api/api/IccDoctemplateApi.js.map +1 -1
  61. package/icc-api/api/IccDocumentApi.d.ts +3 -1
  62. package/icc-api/api/IccDocumentApi.js +22 -21
  63. package/icc-api/api/IccDocumentApi.js.map +1 -1
  64. package/icc-api/api/IccDocumentTemplateApi.d.ts +3 -1
  65. package/icc-api/api/IccDocumentTemplateApi.js +15 -14
  66. package/icc-api/api/IccDocumentTemplateApi.js.map +1 -1
  67. package/icc-api/api/IccEntityrefApi.d.ts +3 -1
  68. package/icc-api/api/IccEntityrefApi.js +4 -3
  69. package/icc-api/api/IccEntityrefApi.js.map +1 -1
  70. package/icc-api/api/IccEntitytemplateApi.d.ts +3 -1
  71. package/icc-api/api/IccEntitytemplateApi.js +13 -12
  72. package/icc-api/api/IccEntitytemplateApi.js.map +1 -1
  73. package/icc-api/api/IccFormApi.d.ts +3 -1
  74. package/icc-api/api/IccFormApi.js +26 -25
  75. package/icc-api/api/IccFormApi.js.map +1 -1
  76. package/icc-api/api/IccFrontendmigrationApi.d.ts +3 -1
  77. package/icc-api/api/IccFrontendmigrationApi.js +8 -7
  78. package/icc-api/api/IccFrontendmigrationApi.js.map +1 -1
  79. package/icc-api/api/IccGroupApi.d.ts +3 -1
  80. package/icc-api/api/IccGroupApi.js +18 -17
  81. package/icc-api/api/IccGroupApi.js.map +1 -1
  82. package/icc-api/api/IccHcpartyApi.d.ts +3 -1
  83. package/icc-api/api/IccHcpartyApi.js +24 -23
  84. package/icc-api/api/IccHcpartyApi.js.map +1 -1
  85. package/icc-api/api/IccHelementApi.d.ts +3 -1
  86. package/icc-api/api/IccHelementApi.js +15 -14
  87. package/icc-api/api/IccHelementApi.js.map +1 -1
  88. package/icc-api/api/IccIcureApi.d.ts +3 -1
  89. package/icc-api/api/IccIcureApi.js +18 -17
  90. package/icc-api/api/IccIcureApi.js.map +1 -1
  91. package/icc-api/api/IccInsuranceApi.d.ts +3 -1
  92. package/icc-api/api/IccInsuranceApi.js +9 -8
  93. package/icc-api/api/IccInsuranceApi.js.map +1 -1
  94. package/icc-api/api/IccInvoiceApi.d.ts +3 -1
  95. package/icc-api/api/IccInvoiceApi.js +33 -32
  96. package/icc-api/api/IccInvoiceApi.js.map +1 -1
  97. package/icc-api/api/IccKeywordApi.d.ts +3 -1
  98. package/icc-api/api/IccKeywordApi.js +8 -7
  99. package/icc-api/api/IccKeywordApi.js.map +1 -1
  100. package/icc-api/api/IccMaintenanceTaskApi.d.ts +3 -1
  101. package/icc-api/api/IccMaintenanceTaskApi.js +7 -6
  102. package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
  103. package/icc-api/api/IccMedexApi.d.ts +3 -1
  104. package/icc-api/api/IccMedexApi.js +3 -2
  105. package/icc-api/api/IccMedexApi.js.map +1 -1
  106. package/icc-api/api/IccMedicallocationApi.d.ts +3 -1
  107. package/icc-api/api/IccMedicallocationApi.js +7 -6
  108. package/icc-api/api/IccMedicallocationApi.js.map +1 -1
  109. package/icc-api/api/IccMessageApi.d.ts +3 -1
  110. package/icc-api/api/IccMessageApi.js +21 -20
  111. package/icc-api/api/IccMessageApi.js.map +1 -1
  112. package/icc-api/api/IccPatientApi.d.ts +3 -1
  113. package/icc-api/api/IccPatientApi.js +36 -35
  114. package/icc-api/api/IccPatientApi.js.map +1 -1
  115. package/icc-api/api/IccPermissionApi.d.ts +3 -1
  116. package/icc-api/api/IccPermissionApi.js +3 -2
  117. package/icc-api/api/IccPermissionApi.js.map +1 -1
  118. package/icc-api/api/IccPlaceApi.d.ts +3 -1
  119. package/icc-api/api/IccPlaceApi.js +7 -6
  120. package/icc-api/api/IccPlaceApi.js.map +1 -1
  121. package/icc-api/api/IccPubsubApi.d.ts +3 -1
  122. package/icc-api/api/IccPubsubApi.js +6 -5
  123. package/icc-api/api/IccPubsubApi.js.map +1 -1
  124. package/icc-api/api/IccReceiptApi.d.ts +3 -1
  125. package/icc-api/api/IccReceiptApi.js +9 -8
  126. package/icc-api/api/IccReceiptApi.js.map +1 -1
  127. package/icc-api/api/IccReplicationApi.d.ts +3 -1
  128. package/icc-api/api/IccReplicationApi.js +6 -5
  129. package/icc-api/api/IccReplicationApi.js.map +1 -1
  130. package/icc-api/api/IccTarificationApi.d.ts +3 -1
  131. package/icc-api/api/IccTarificationApi.js +10 -9
  132. package/icc-api/api/IccTarificationApi.js.map +1 -1
  133. package/icc-api/api/IccTimeTableApi.d.ts +3 -1
  134. package/icc-api/api/IccTimeTableApi.js +8 -7
  135. package/icc-api/api/IccTimeTableApi.js.map +1 -1
  136. package/icc-api/api/IccTmpApi.d.ts +3 -1
  137. package/icc-api/api/IccTmpApi.js +73 -72
  138. package/icc-api/api/IccTmpApi.js.map +1 -1
  139. package/icc-api/api/IccUserApi.d.ts +3 -1
  140. package/icc-api/api/IccUserApi.js +28 -27
  141. package/icc-api/api/IccUserApi.js.map +1 -1
  142. package/icc-api/api/XHR.d.ts +2 -1
  143. package/icc-api/api/XHR.js +45 -59
  144. package/icc-api/api/XHR.js.map +1 -1
  145. package/icc-api/model/AuthenticationResponse.d.ts +2 -0
  146. package/icc-api/model/AuthenticationResponse.js.map +1 -1
  147. package/icc-api/model/Group.d.ts +6 -0
  148. package/icc-api/model/Group.js.map +1 -1
  149. package/icc-api/model/RefreshTokenExpiredError.d.ts +3 -0
  150. package/icc-api/model/RefreshTokenExpiredError.js +10 -0
  151. package/icc-api/model/RefreshTokenExpiredError.js.map +1 -0
  152. package/icc-api/model/RegistrationInformation.d.ts +1 -0
  153. package/icc-api/model/RegistrationInformation.js.map +1 -1
  154. package/icc-api/model/TimeTableItem.d.ts +2 -1
  155. package/icc-api/model/TimeTableItem.js.map +1 -1
  156. package/icc-x-api/auth/AuthService.d.ts +16 -0
  157. package/icc-x-api/auth/AuthService.js +3 -0
  158. package/icc-x-api/auth/AuthService.js.map +1 -0
  159. package/icc-x-api/auth/AuthenticationProvider.d.ts +22 -0
  160. package/icc-x-api/auth/AuthenticationProvider.js +41 -0
  161. package/icc-x-api/auth/AuthenticationProvider.js.map +1 -0
  162. package/icc-x-api/auth/BasicAuthService.d.ts +12 -0
  163. package/icc-x-api/auth/BasicAuthService.js +27 -0
  164. package/icc-x-api/auth/BasicAuthService.js.map +1 -0
  165. package/icc-x-api/auth/EnsembleAuthService.d.ts +17 -0
  166. package/icc-x-api/auth/EnsembleAuthService.js +60 -0
  167. package/icc-x-api/auth/EnsembleAuthService.js.map +1 -0
  168. package/icc-x-api/auth/JwtAuthService.d.ts +19 -0
  169. package/icc-x-api/auth/JwtAuthService.js +97 -0
  170. package/icc-x-api/auth/JwtAuthService.js.map +1 -0
  171. package/icc-x-api/auth/NoAuthService.d.ts +8 -0
  172. package/icc-x-api/auth/NoAuthService.js +30 -0
  173. package/icc-x-api/auth/NoAuthService.js.map +1 -0
  174. package/icc-x-api/icc-accesslog-x-api.d.ts +2 -1
  175. package/icc-x-api/icc-accesslog-x-api.js +2 -2
  176. package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
  177. package/icc-x-api/icc-bekmehr-x-api.d.ts +2 -1
  178. package/icc-x-api/icc-bekmehr-x-api.js +2 -2
  179. package/icc-x-api/icc-bekmehr-x-api.js.map +1 -1
  180. package/icc-x-api/icc-calendar-item-x-api.d.ts +2 -1
  181. package/icc-x-api/icc-calendar-item-x-api.js +2 -2
  182. package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
  183. package/icc-x-api/icc-classification-x-api.d.ts +2 -1
  184. package/icc-x-api/icc-classification-x-api.js +2 -2
  185. package/icc-x-api/icc-classification-x-api.js.map +1 -1
  186. package/icc-x-api/icc-code-x-api.d.ts +2 -1
  187. package/icc-x-api/icc-code-x-api.js +2 -2
  188. package/icc-x-api/icc-code-x-api.js.map +1 -1
  189. package/icc-x-api/icc-contact-x-api.d.ts +2 -1
  190. package/icc-x-api/icc-contact-x-api.js +2 -2
  191. package/icc-x-api/icc-contact-x-api.js.map +1 -1
  192. package/icc-x-api/icc-crypto-x-api.d.ts +1 -1
  193. package/icc-x-api/icc-crypto-x-api.js +10 -12
  194. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  195. package/icc-x-api/icc-doctemplate-x-api.d.ts +3 -1
  196. package/icc-x-api/icc-doctemplate-x-api.js +4 -3
  197. package/icc-x-api/icc-doctemplate-x-api.js.map +1 -1
  198. package/icc-x-api/icc-document-x-api.d.ts +3 -1
  199. package/icc-x-api/icc-document-x-api.js +4 -3
  200. package/icc-x-api/icc-document-x-api.js.map +1 -1
  201. package/icc-x-api/icc-form-x-api.d.ts +2 -1
  202. package/icc-x-api/icc-form-x-api.js +2 -2
  203. package/icc-x-api/icc-form-x-api.js.map +1 -1
  204. package/icc-x-api/icc-hcparty-x-api.d.ts +2 -1
  205. package/icc-x-api/icc-hcparty-x-api.js +2 -2
  206. package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
  207. package/icc-x-api/icc-helement-x-api.d.ts +2 -1
  208. package/icc-x-api/icc-helement-x-api.js +2 -2
  209. package/icc-x-api/icc-helement-x-api.js.map +1 -1
  210. package/icc-x-api/icc-invoice-x-api.d.ts +2 -1
  211. package/icc-x-api/icc-invoice-x-api.js +2 -2
  212. package/icc-x-api/icc-invoice-x-api.js.map +1 -1
  213. package/icc-x-api/icc-maintenance-task-x-api.d.ts +2 -1
  214. package/icc-x-api/icc-maintenance-task-x-api.js +2 -2
  215. package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
  216. package/icc-x-api/icc-message-x-api.d.ts +2 -1
  217. package/icc-x-api/icc-message-x-api.js +2 -2
  218. package/icc-x-api/icc-message-x-api.js.map +1 -1
  219. package/icc-x-api/icc-patient-x-api.d.ts +2 -1
  220. package/icc-x-api/icc-patient-x-api.js +2 -2
  221. package/icc-x-api/icc-patient-x-api.js.map +1 -1
  222. package/icc-x-api/icc-receipt-x-api.d.ts +2 -1
  223. package/icc-x-api/icc-receipt-x-api.js +2 -2
  224. package/icc-x-api/icc-receipt-x-api.js.map +1 -1
  225. package/icc-x-api/icc-time-table-x-api.d.ts +2 -1
  226. package/icc-x-api/icc-time-table-x-api.js +2 -2
  227. package/icc-x-api/icc-time-table-x-api.js.map +1 -1
  228. package/icc-x-api/icc-user-x-api.d.ts +2 -1
  229. package/icc-x-api/icc-user-x-api.js +2 -2
  230. package/icc-x-api/icc-user-x-api.js.map +1 -1
  231. package/icc-x-api/index.d.ts +0 -4
  232. package/icc-x-api/index.js +31 -34
  233. package/icc-x-api/index.js.map +1 -1
  234. package/icc-x-api/storage/KeyStorageImpl.js +3 -1
  235. package/icc-x-api/storage/KeyStorageImpl.js.map +1 -1
  236. package/icc-x-api/storage/LocalStorageImpl.d.ts +1 -1
  237. package/icc-x-api/storage/LocalStorageImpl.js +10 -2
  238. package/icc-x-api/storage/LocalStorageImpl.js.map +1 -1
  239. package/icc-x-api/storage/StorageFacade.d.ts +1 -1
  240. package/icc-x-api/storage/StorageFacade.js.map +1 -1
  241. package/package.json +1 -1
@@ -16,9 +16,10 @@ const XHR_1 = require("./XHR");
16
16
  const Contact_1 = require("../model/Contact");
17
17
  const ResultInfo_1 = require("../model/ResultInfo");
18
18
  class IccBeresultimportApi {
19
- constructor(host, headers, fetchImpl) {
19
+ constructor(host, headers, authenticationProvider, fetchImpl) {
20
20
  this.host = host;
21
21
  this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
22
+ this.authenticationProvider = authenticationProvider;
22
23
  this.fetchImpl = fetchImpl;
23
24
  }
24
25
  setHeaders(h) {
@@ -41,7 +42,7 @@ class IccBeresultimportApi {
41
42
  new Date().getTime() +
42
43
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '');
43
44
  let headers = this.headers;
44
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
45
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
45
46
  .then((doc) => JSON.parse(JSON.stringify(doc.body)))
46
47
  .catch((err) => this.handleError(err));
47
48
  }
@@ -69,7 +70,7 @@ class IccBeresultimportApi {
69
70
  (planOfActionId ? '&planOfActionId=' + encodeURIComponent(String(planOfActionId)) : '') +
70
71
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '');
71
72
  let headers = this.headers;
72
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
73
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
73
74
  .then((doc) => new Contact_1.Contact(doc.body))
74
75
  .catch((err) => this.handleError(err));
75
76
  }
@@ -91,7 +92,7 @@ class IccBeresultimportApi {
91
92
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '') +
92
93
  (full ? '&full=' + encodeURIComponent(String(full)) : '');
93
94
  let headers = this.headers;
94
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
95
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
95
96
  .then((doc) => doc.body.map((it) => new ResultInfo_1.ResultInfo(it)))
96
97
  .catch((err) => this.handleError(err));
97
98
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IccBeresultimportApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccBeresultimportApi.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,8CAA0C;AAC1C,oDAAgD;AAEhD,MAAa,oBAAoB;IAK/B,YAAY,IAAY,EAAE,OAAY,EAAE,SAAyE;QAC/G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7E,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED,UAAU,CAAC,CAAoB;QAC7B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAA;IAClB,CAAC;IAED,WAAW,CAAC,CAAe;QACzB,MAAM,CAAC,CAAA;IACT,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,EAAU,EAAE,O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C,OAAO,CAAC,CAAC,CAAC,WAAW,GAAG,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAClE,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QAC3D,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC1B,OAAO,SAAG,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC;aAChE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,uBAAU,CAAC,EAAE,CAAC,CAAC,CAAC;aACxE,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AA1GD,oDA0GC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { XHR } from './XHR'\nimport { Contact } from '../model/Contact'\nimport { ResultInfo } from '../model/ResultInfo'\n\nexport class IccBeresultimportApi {\n host: string\n headers: Array<XHR.Header>\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>) {\n this.host = host\n this.headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this.headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n *\n * @summary Can we handle this document\n * @param id\n * @param enckeys\n */\n canHandle(id: string, enckeys: string): Promise<boolean> {\n let _body = null\n\n const _url =\n this.host +\n `/be_result_import/canhandle/${encodeURIComponent(String(id))}` +\n '?ts=' +\n new Date().getTime() +\n (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => JSON.parse(JSON.stringify(doc.body)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary import document\n * @param documentId\n * @param hcpId\n * @param language\n * @param protocolIds\n * @param formIds\n * @param planOfActionId\n * @param enckeys\n * @param ctc\n */\n doImport(\n documentId: string,\n hcpId: string,\n language: string,\n protocolIds: string,\n formIds: string,\n planOfActionId: string,\n enckeys: string,\n ctc: Contact\n ): Promise<Contact> {\n let _body = null\n _body = ctc\n\n const _url =\n this.host +\n `/be_result_import/import/${encodeURIComponent(String(documentId))}/${encodeURIComponent(String(hcpId))}/${encodeURIComponent(\n String(language)\n )}` +\n '?ts=' +\n new Date().getTime() +\n (protocolIds ? '&protocolIds=' + encodeURIComponent(String(protocolIds)) : '') +\n (formIds ? '&formIds=' + encodeURIComponent(String(formIds)) : '') +\n (planOfActionId ? '&planOfActionId=' + encodeURIComponent(String(planOfActionId)) : '') +\n (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '')\n let headers = this.headers\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => new Contact(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Extract general infos from document\n * @param id\n * @param language\n * @param enckeys\n * @param full\n */\n getInfos(id: string, language: string, enckeys: string, full?: boolean): Promise<Array<ResultInfo>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_result_import/infos/${encodeURIComponent(String(id))}` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '') +\n (full ? '&full=' + encodeURIComponent(String(full)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new ResultInfo(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
1
+ {"version":3,"file":"IccBeresultimportApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccBeresultimportApi.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,8CAA0C;AAC1C,oDAAgD;AAGhD,MAAa,oBAAoB;IAM/B,YACE,IAAY,EACZ,OAAY,EACZ,sBAA8C,EAC9C,SAAyE;QAEzE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7E,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAA;QACpD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED,UAAU,CAAC,CAAoB;QAC7B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAA;IAClB,CAAC;IAED,WAAW,CAAC,CAAe;QACzB,MAAM,CAAC,CAAA;IACT,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,EAAU,EAAE,OAAe;QACnC,IAAI,KAAK,GAAG,IAAI,CAAA;QAEhB,MAAM,IAAI,GACR,IAAI,CAAC,IAAI;YACT,+BAA+B,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE;YAC/D,MAAM;YACN,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;YACpB,CAAC,OAAO,CAAC,CAAC,CA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CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QAC3D,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC1B,OAAO,SAAG,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;aACzH,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,uBAAU,CAAC,EAAE,CAAC,CAAC,CAAC;aACxE,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AAjHD,oDAiHC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { XHR } from './XHR'\nimport { Contact } from '../model/Contact'\nimport { ResultInfo } from '../model/ResultInfo'\nimport { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\n\nexport class IccBeresultimportApi {\n host: string\n headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = host\n this.headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = authenticationProvider\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this.headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n *\n * @summary Can we handle this document\n * @param id\n * @param enckeys\n */\n canHandle(id: string, enckeys: string): Promise<boolean> {\n let _body = null\n\n const _url =\n this.host +\n `/be_result_import/canhandle/${encodeURIComponent(String(id))}` +\n '?ts=' +\n new Date().getTime() +\n (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => JSON.parse(JSON.stringify(doc.body)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary import document\n * @param documentId\n * @param hcpId\n * @param language\n * @param protocolIds\n * @param formIds\n * @param planOfActionId\n * @param enckeys\n * @param ctc\n */\n doImport(\n documentId: string,\n hcpId: string,\n language: string,\n protocolIds: string,\n formIds: string,\n planOfActionId: string,\n enckeys: string,\n ctc: Contact\n ): Promise<Contact> {\n let _body = null\n _body = ctc\n\n const _url =\n this.host +\n `/be_result_import/import/${encodeURIComponent(String(documentId))}/${encodeURIComponent(String(hcpId))}/${encodeURIComponent(\n String(language)\n )}` +\n '?ts=' +\n new Date().getTime() +\n (protocolIds ? '&protocolIds=' + encodeURIComponent(String(protocolIds)) : '') +\n (formIds ? '&formIds=' + encodeURIComponent(String(formIds)) : '') +\n (planOfActionId ? '&planOfActionId=' + encodeURIComponent(String(planOfActionId)) : '') +\n (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '')\n let headers = this.headers\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Contact(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Extract general infos from document\n * @param id\n * @param language\n * @param enckeys\n * @param full\n */\n getInfos(id: string, language: string, enckeys: string, full?: boolean): Promise<Array<ResultInfo>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_result_import/infos/${encodeURIComponent(String(id))}` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '') +\n (full ? '&full=' + encodeURIComponent(String(full)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new ResultInfo(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
@@ -24,11 +24,13 @@ import { Substance } from '../model/Substance';
24
24
  import { Verse } from '../model/Verse';
25
25
  import { Vmp } from '../model/Vmp';
26
26
  import { VmpGroup } from '../model/VmpGroup';
27
+ import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider';
27
28
  export declare class IccBesamv2Api {
28
29
  host: string;
29
30
  headers: Array<XHR.Header>;
31
+ authenticationProvider: AuthenticationProvider;
30
32
  fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
31
- constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
33
+ constructor(host: string, headers: any, authenticationProvider: AuthenticationProvider, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
32
34
  setHeaders(h: Array<XHR.Header>): void;
33
35
  handleError(e: XHR.XHRError): never;
34
36
  /**
@@ -27,9 +27,10 @@ const Verse_1 = require("../model/Verse");
27
27
  const Vmp_1 = require("../model/Vmp");
28
28
  const VmpGroup_1 = require("../model/VmpGroup");
29
29
  class IccBesamv2Api {
30
- constructor(host, headers, fetchImpl) {
30
+ constructor(host, headers, authenticationProvider, fetchImpl) {
31
31
  this.host = host;
32
32
  this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
33
+ this.authenticationProvider = authenticationProvider;
33
34
  this.fetchImpl = fetchImpl;
34
35
  }
35
36
  setHeaders(h) {
@@ -47,7 +48,7 @@ class IccBesamv2Api {
47
48
  let _body = null;
48
49
  const _url = this.host + `/be_samv2/amp/byDmppCode/${encodeURIComponent(String(dmppCode))}` + '?ts=' + new Date().getTime();
49
50
  let headers = this.headers;
50
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
51
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
51
52
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
52
53
  .catch((err) => this.handleError(err));
53
54
  }
@@ -69,7 +70,7 @@ class IccBesamv2Api {
69
70
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
70
71
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
71
72
  let headers = this.headers;
72
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
73
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
73
74
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
74
75
  .catch((err) => this.handleError(err));
75
76
  }
@@ -91,7 +92,7 @@ class IccBesamv2Api {
91
92
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
92
93
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
93
94
  let headers = this.headers;
94
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
95
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
95
96
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
96
97
  .catch((err) => this.handleError(err));
97
98
  }
@@ -113,7 +114,7 @@ class IccBesamv2Api {
113
114
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
114
115
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
115
116
  let headers = this.headers;
116
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
117
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
117
118
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
118
119
  .catch((err) => this.handleError(err));
119
120
  }
@@ -135,7 +136,7 @@ class IccBesamv2Api {
135
136
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
136
137
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
137
138
  let headers = this.headers;
138
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
139
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
139
140
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
140
141
  .catch((err) => this.handleError(err));
141
142
  }
@@ -160,7 +161,7 @@ class IccBesamv2Api {
160
161
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
161
162
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
162
163
  let headers = this.headers;
163
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
164
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
164
165
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
165
166
  .catch((err) => this.handleError(err));
166
167
  }
@@ -182,7 +183,7 @@ class IccBesamv2Api {
182
183
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
183
184
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
184
185
  let headers = this.headers;
185
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
186
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
186
187
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
187
188
  .catch((err) => this.handleError(err));
188
189
  }
@@ -204,7 +205,7 @@ class IccBesamv2Api {
204
205
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
205
206
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
206
207
  let headers = this.headers;
207
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
208
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
208
209
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
209
210
  .catch((err) => this.handleError(err));
210
211
  }
@@ -229,7 +230,7 @@ class IccBesamv2Api {
229
230
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
230
231
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
231
232
  let headers = this.headers;
232
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
233
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
233
234
  .then((doc) => new PaginatedListNmp_1.PaginatedListNmp(doc.body))
234
235
  .catch((err) => this.handleError(err));
235
236
  }
@@ -254,7 +255,7 @@ class IccBesamv2Api {
254
255
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
255
256
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
256
257
  let headers = this.headers;
257
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
258
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
258
259
  .then((doc) => new PaginatedListVmpGroup_1.PaginatedListVmpGroup(doc.body))
259
260
  .catch((err) => this.handleError(err));
260
261
  }
@@ -276,7 +277,7 @@ class IccBesamv2Api {
276
277
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
277
278
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
278
279
  let headers = this.headers;
279
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
280
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
280
281
  .then((doc) => new PaginatedListVmpGroup_1.PaginatedListVmpGroup(doc.body))
281
282
  .catch((err) => this.handleError(err));
282
283
  }
@@ -298,7 +299,7 @@ class IccBesamv2Api {
298
299
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
299
300
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
300
301
  let headers = this.headers;
301
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
302
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
302
303
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
303
304
  .catch((err) => this.handleError(err));
304
305
  }
@@ -320,7 +321,7 @@ class IccBesamv2Api {
320
321
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
321
322
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
322
323
  let headers = this.headers;
323
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
324
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
324
325
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
325
326
  .catch((err) => this.handleError(err));
326
327
  }
@@ -345,7 +346,7 @@ class IccBesamv2Api {
345
346
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
346
347
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
347
348
  let headers = this.headers;
348
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
349
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
349
350
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
350
351
  .catch((err) => this.handleError(err));
351
352
  }
@@ -367,7 +368,7 @@ class IccBesamv2Api {
367
368
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
368
369
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
369
370
  let headers = this.headers;
370
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
371
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
371
372
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
372
373
  .catch((err) => this.handleError(err));
373
374
  }
@@ -383,7 +384,7 @@ class IccBesamv2Api {
383
384
  '?ts=' +
384
385
  new Date().getTime();
385
386
  let headers = this.headers;
386
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
387
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
387
388
  .then((doc) => doc.body.map((it) => new Paragraph_1.Paragraph(it)))
388
389
  .catch((err) => this.handleError(err));
389
390
  }
@@ -396,7 +397,7 @@ class IccBesamv2Api {
396
397
  let _body = null;
397
398
  const _url = this.host + `/be_samv2/chap/bycnk/${encodeURIComponent(String(cnk))}/${encodeURIComponent(String(language))}` + '?ts=' + new Date().getTime();
398
399
  let headers = this.headers;
399
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
400
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
400
401
  .then((doc) => doc.body.map((it) => new Paragraph_1.Paragraph(it)))
401
402
  .catch((err) => this.handleError(err));
402
403
  }
@@ -416,7 +417,7 @@ class IccBesamv2Api {
416
417
  '?ts=' +
417
418
  new Date().getTime();
418
419
  let headers = this.headers;
419
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
420
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
420
421
  .then((doc) => doc.body)
421
422
  .catch((err) => this.handleError(err));
422
423
  }
@@ -432,7 +433,7 @@ class IccBesamv2Api {
432
433
  '?ts=' +
433
434
  new Date().getTime();
434
435
  let headers = this.headers;
435
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
436
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
436
437
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
437
438
  .catch((err) => this.handleError(err));
438
439
  }
@@ -444,7 +445,7 @@ class IccBesamv2Api {
444
445
  let _body = null;
445
446
  const _url = this.host + `/be_samv2/v` + '?ts=' + new Date().getTime();
446
447
  let headers = this.headers;
447
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
448
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
448
449
  .then((doc) => new SamVersion_1.SamVersion(doc.body))
449
450
  .catch((err) => this.handleError(err));
450
451
  }
@@ -460,7 +461,7 @@ class IccBesamv2Api {
460
461
  '?ts=' +
461
462
  new Date().getTime();
462
463
  let headers = this.headers;
463
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
464
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
464
465
  .then((doc) => new Verse_1.Verse(doc.body))
465
466
  .catch((err) => this.handleError(err));
466
467
  }
@@ -477,7 +478,7 @@ class IccBesamv2Api {
477
478
  '?ts=' +
478
479
  new Date().getTime();
479
480
  let headers = this.headers;
480
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
481
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
481
482
  .then((doc) => doc.body.map((it) => JSON.parse(JSON.stringify(it))))
482
483
  .catch((err) => this.handleError(err));
483
484
  }
@@ -492,7 +493,7 @@ class IccBesamv2Api {
492
493
  const _url = this.host + `/be_samv2/amp/byDmppCodes` + '?ts=' + new Date().getTime();
493
494
  let headers = this.headers;
494
495
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
495
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
496
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
496
497
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
497
498
  .catch((err) => this.handleError(err));
498
499
  }
@@ -507,7 +508,7 @@ class IccBesamv2Api {
507
508
  const _url = this.host + `/be_samv2/amp/byGroupCodes` + '?ts=' + new Date().getTime();
508
509
  let headers = this.headers;
509
510
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
510
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
511
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
511
512
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
512
513
  .catch((err) => this.handleError(err));
513
514
  }
@@ -522,7 +523,7 @@ class IccBesamv2Api {
522
523
  const _url = this.host + `/be_samv2/amp/byGroupIds` + '?ts=' + new Date().getTime();
523
524
  let headers = this.headers;
524
525
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
525
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
526
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
526
527
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
527
528
  .catch((err) => this.handleError(err));
528
529
  }
@@ -537,7 +538,7 @@ class IccBesamv2Api {
537
538
  const _url = this.host + `/be_samv2/amp/byVmpCodes` + '?ts=' + new Date().getTime();
538
539
  let headers = this.headers;
539
540
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
540
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
541
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
541
542
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
542
543
  .catch((err) => this.handleError(err));
543
544
  }
@@ -552,7 +553,7 @@ class IccBesamv2Api {
552
553
  const _url = this.host + `/be_samv2/amp/byVmpIds` + '?ts=' + new Date().getTime();
553
554
  let headers = this.headers;
554
555
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
555
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
556
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
556
557
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
557
558
  .catch((err) => this.handleError(err));
558
559
  }
@@ -567,7 +568,7 @@ class IccBesamv2Api {
567
568
  const _url = this.host + `/be_samv2/nmp/byCnks` + '?ts=' + new Date().getTime();
568
569
  let headers = this.headers;
569
570
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
570
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
571
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
571
572
  .then((doc) => doc.body.map((it) => new Nmp_1.Nmp(it)))
572
573
  .catch((err) => this.handleError(err));
573
574
  }
@@ -579,7 +580,7 @@ class IccBesamv2Api {
579
580
  let _body = null;
580
581
  const _url = this.host + `/be_samv2/pharmaform` + '?ts=' + new Date().getTime();
581
582
  let headers = this.headers;
582
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
583
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
583
584
  .then((doc) => doc.body.map((it) => new PharmaceuticalForm_1.PharmaceuticalForm(it)))
584
585
  .catch((err) => this.handleError(err));
585
586
  }
@@ -591,7 +592,7 @@ class IccBesamv2Api {
591
592
  let _body = null;
592
593
  const _url = this.host + `/be_samv2/substance` + '?ts=' + new Date().getTime();
593
594
  let headers = this.headers;
594
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
595
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
595
596
  .then((doc) => doc.body.map((it) => new Substance_1.Substance(it)))
596
597
  .catch((err) => this.handleError(err));
597
598
  }
@@ -606,7 +607,7 @@ class IccBesamv2Api {
606
607
  const _url = this.host + `/be_samv2/vmpgroup/byGroupCodes` + '?ts=' + new Date().getTime();
607
608
  let headers = this.headers;
608
609
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
609
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
610
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
610
611
  .then((doc) => doc.body.map((it) => new VmpGroup_1.VmpGroup(it)))
611
612
  .catch((err) => this.handleError(err));
612
613
  }
@@ -621,7 +622,7 @@ class IccBesamv2Api {
621
622
  const _url = this.host + `/be_samv2/vmp/byGroupIds` + '?ts=' + new Date().getTime();
622
623
  let headers = this.headers;
623
624
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
624
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
625
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
625
626
  .then((doc) => doc.body.map((it) => new Vmp_1.Vmp(it)))
626
627
  .catch((err) => this.handleError(err));
627
628
  }
@@ -636,7 +637,7 @@ class IccBesamv2Api {
636
637
  const _url = this.host + `/be_samv2/vmp/byVmpCodes` + '?ts=' + new Date().getTime();
637
638
  let headers = this.headers;
638
639
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
639
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
640
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
640
641
  .then((doc) => doc.body.map((it) => new Vmp_1.Vmp(it)))
641
642
  .catch((err) => this.handleError(err));
642
643
  }