@icure/api 6.0.2 → 6.0.4

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 (238) hide show
  1. package/icc-api/api/IccAccesslogApi.d.ts +3 -1
  2. package/icc-api/api/IccAccesslogApi.js +10 -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 +10 -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 +6 -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 +6 -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 +8 -6
  15. package/icc-api/api/IccArticleApi.js.map +1 -1
  16. package/icc-api/api/IccAuthApi.d.ts +13 -1
  17. package/icc-api/api/IccAuthApi.js +30 -4
  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 +4 -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 +30 -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 +11 -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 +6 -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 +6 -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 +36 -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 +15 -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 +9 -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 +11 -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 +11 -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 +19 -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 +31 -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 +21 -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 +16 -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 +23 -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 +16 -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 +5 -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 +14 -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 +27 -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 +9 -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 +19 -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 +25 -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 +16 -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 +19 -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 +10 -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 +34 -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 +9 -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 +8 -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 +4 -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 +8 -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 +22 -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 +37 -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 +4 -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 +8 -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 +7 -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 +10 -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 +7 -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 +11 -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 +9 -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 +74 -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 +29 -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 +30 -0
  160. package/icc-x-api/auth/AuthenticationProvider.js +56 -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/filters/MaintenanceTaskAfterDateFilter.d.ts +1 -0
  175. package/icc-x-api/filters/MaintenanceTaskAfterDateFilter.js.map +1 -1
  176. package/icc-x-api/icc-accesslog-x-api.d.ts +2 -1
  177. package/icc-x-api/icc-accesslog-x-api.js +3 -2
  178. package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
  179. package/icc-x-api/icc-bekmehr-x-api.d.ts +2 -1
  180. package/icc-x-api/icc-bekmehr-x-api.js +3 -2
  181. package/icc-x-api/icc-bekmehr-x-api.js.map +1 -1
  182. package/icc-x-api/icc-calendar-item-x-api.d.ts +2 -1
  183. package/icc-x-api/icc-calendar-item-x-api.js +3 -2
  184. package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
  185. package/icc-x-api/icc-classification-x-api.d.ts +2 -1
  186. package/icc-x-api/icc-classification-x-api.js +3 -2
  187. package/icc-x-api/icc-classification-x-api.js.map +1 -1
  188. package/icc-x-api/icc-code-x-api.d.ts +2 -1
  189. package/icc-x-api/icc-code-x-api.js +3 -2
  190. package/icc-x-api/icc-code-x-api.js.map +1 -1
  191. package/icc-x-api/icc-contact-x-api.d.ts +2 -1
  192. package/icc-x-api/icc-contact-x-api.js +3 -2
  193. package/icc-x-api/icc-contact-x-api.js.map +1 -1
  194. package/icc-x-api/icc-crypto-x-api.d.ts +13 -0
  195. package/icc-x-api/icc-crypto-x-api.js +22 -0
  196. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  197. package/icc-x-api/icc-doctemplate-x-api.d.ts +3 -1
  198. package/icc-x-api/icc-doctemplate-x-api.js +5 -3
  199. package/icc-x-api/icc-doctemplate-x-api.js.map +1 -1
  200. package/icc-x-api/icc-document-x-api.d.ts +3 -1
  201. package/icc-x-api/icc-document-x-api.js +5 -3
  202. package/icc-x-api/icc-document-x-api.js.map +1 -1
  203. package/icc-x-api/icc-form-x-api.d.ts +2 -1
  204. package/icc-x-api/icc-form-x-api.js +3 -2
  205. package/icc-x-api/icc-form-x-api.js.map +1 -1
  206. package/icc-x-api/icc-hcparty-x-api.d.ts +2 -1
  207. package/icc-x-api/icc-hcparty-x-api.js +3 -2
  208. package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
  209. package/icc-x-api/icc-helement-x-api.d.ts +2 -1
  210. package/icc-x-api/icc-helement-x-api.js +3 -2
  211. package/icc-x-api/icc-helement-x-api.js.map +1 -1
  212. package/icc-x-api/icc-invoice-x-api.d.ts +2 -1
  213. package/icc-x-api/icc-invoice-x-api.js +3 -2
  214. package/icc-x-api/icc-invoice-x-api.js.map +1 -1
  215. package/icc-x-api/icc-maintenance-task-x-api.d.ts +2 -1
  216. package/icc-x-api/icc-maintenance-task-x-api.js +3 -2
  217. package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
  218. package/icc-x-api/icc-message-x-api.d.ts +2 -1
  219. package/icc-x-api/icc-message-x-api.js +3 -2
  220. package/icc-x-api/icc-message-x-api.js.map +1 -1
  221. package/icc-x-api/icc-patient-x-api.d.ts +2 -1
  222. package/icc-x-api/icc-patient-x-api.js +3 -2
  223. package/icc-x-api/icc-patient-x-api.js.map +1 -1
  224. package/icc-x-api/icc-receipt-x-api.d.ts +2 -1
  225. package/icc-x-api/icc-receipt-x-api.js +3 -2
  226. package/icc-x-api/icc-receipt-x-api.js.map +1 -1
  227. package/icc-x-api/icc-time-table-x-api.d.ts +2 -1
  228. package/icc-x-api/icc-time-table-x-api.js +3 -2
  229. package/icc-x-api/icc-time-table-x-api.js.map +1 -1
  230. package/icc-x-api/icc-user-x-api.d.ts +2 -1
  231. package/icc-x-api/icc-user-x-api.js +3 -2
  232. package/icc-x-api/icc-user-x-api.js.map +1 -1
  233. package/icc-x-api/index.d.ts +0 -4
  234. package/icc-x-api/index.js +34 -35
  235. package/icc-x-api/index.js.map +1 -1
  236. package/icc-x-api/storage/StorageFacade.d.ts +1 -1
  237. package/icc-x-api/storage/StorageFacade.js.map +1 -1
  238. package/package.json +1 -1
@@ -12,11 +12,13 @@
12
12
  import { XHR } from './XHR';
13
13
  import { Contact } from '../model/Contact';
14
14
  import { ResultInfo } from '../model/ResultInfo';
15
+ import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider';
15
16
  export declare class IccBeresultimportApi {
16
17
  host: string;
17
18
  headers: Array<XHR.Header>;
19
+ authenticationProvider: AuthenticationProvider;
18
20
  fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
19
- constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
21
+ constructor(host: string, headers: any, authenticationProvider?: AuthenticationProvider, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
20
22
  setHeaders(h: Array<XHR.Header>): void;
21
23
  handleError(e: XHR.XHRError): never;
22
24
  /**
@@ -15,10 +15,12 @@ exports.IccBeresultimportApi = void 0;
15
15
  const XHR_1 = require("./XHR");
16
16
  const Contact_1 = require("../model/Contact");
17
17
  const ResultInfo_1 = require("../model/ResultInfo");
18
+ const AuthenticationProvider_1 = require("../../icc-x-api/auth/AuthenticationProvider");
18
19
  class IccBeresultimportApi {
19
- constructor(host, headers, fetchImpl) {
20
+ constructor(host, headers, authenticationProvider, fetchImpl) {
20
21
  this.host = host;
21
22
  this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
23
+ this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new AuthenticationProvider_1.NoAuthenticationProvider();
22
24
  this.fetchImpl = fetchImpl;
23
25
  }
24
26
  setHeaders(h) {
@@ -41,7 +43,7 @@ class IccBeresultimportApi {
41
43
  new Date().getTime() +
42
44
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '');
43
45
  let headers = this.headers;
44
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
46
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
45
47
  .then((doc) => JSON.parse(JSON.stringify(doc.body)))
46
48
  .catch((err) => this.handleError(err));
47
49
  }
@@ -69,7 +71,7 @@ class IccBeresultimportApi {
69
71
  (planOfActionId ? '&planOfActionId=' + encodeURIComponent(String(planOfActionId)) : '') +
70
72
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '');
71
73
  let headers = this.headers;
72
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
74
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
73
75
  .then((doc) => new Contact_1.Contact(doc.body))
74
76
  .catch((err) => this.handleError(err));
75
77
  }
@@ -91,7 +93,7 @@ class IccBeresultimportApi {
91
93
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '') +
92
94
  (full ? '&full=' + encodeURIComponent(String(full)) : '');
93
95
  let headers = this.headers;
94
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
96
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
95
97
  .then((doc) => doc.body.map((it) => new ResultInfo_1.ResultInfo(it)))
96
98
  .catch((err) => this.handleError(err));
97
99
  }
@@ -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,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":["/**\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;AAChD,wFAA8G;AAE9G,MAAa,oBAAoB;IAM/B,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,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,C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;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, NoAuthenticationProvider } 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 ? authenticationProvider : new NoAuthenticationProvider()\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
  /**
@@ -26,10 +26,12 @@ const Substance_1 = require("../model/Substance");
26
26
  const Verse_1 = require("../model/Verse");
27
27
  const Vmp_1 = require("../model/Vmp");
28
28
  const VmpGroup_1 = require("../model/VmpGroup");
29
+ const AuthenticationProvider_1 = require("../../icc-x-api/auth/AuthenticationProvider");
29
30
  class IccBesamv2Api {
30
- constructor(host, headers, fetchImpl) {
31
+ constructor(host, headers, authenticationProvider, fetchImpl) {
31
32
  this.host = host;
32
33
  this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
34
+ this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new AuthenticationProvider_1.NoAuthenticationProvider();
33
35
  this.fetchImpl = fetchImpl;
34
36
  }
35
37
  setHeaders(h) {
@@ -47,7 +49,7 @@ class IccBesamv2Api {
47
49
  let _body = null;
48
50
  const _url = this.host + `/be_samv2/amp/byDmppCode/${encodeURIComponent(String(dmppCode))}` + '?ts=' + new Date().getTime();
49
51
  let headers = this.headers;
50
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
52
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
51
53
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
52
54
  .catch((err) => this.handleError(err));
53
55
  }
@@ -69,7 +71,7 @@ class IccBesamv2Api {
69
71
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
70
72
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
71
73
  let headers = this.headers;
72
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
74
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
73
75
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
74
76
  .catch((err) => this.handleError(err));
75
77
  }
@@ -91,7 +93,7 @@ class IccBesamv2Api {
91
93
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
92
94
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
93
95
  let headers = this.headers;
94
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
96
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
95
97
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
96
98
  .catch((err) => this.handleError(err));
97
99
  }
@@ -113,7 +115,7 @@ class IccBesamv2Api {
113
115
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
114
116
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
115
117
  let headers = this.headers;
116
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
118
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
117
119
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
118
120
  .catch((err) => this.handleError(err));
119
121
  }
@@ -135,7 +137,7 @@ class IccBesamv2Api {
135
137
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
136
138
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
137
139
  let headers = this.headers;
138
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
140
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
139
141
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
140
142
  .catch((err) => this.handleError(err));
141
143
  }
@@ -160,7 +162,7 @@ class IccBesamv2Api {
160
162
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
161
163
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
162
164
  let headers = this.headers;
163
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
165
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
164
166
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
165
167
  .catch((err) => this.handleError(err));
166
168
  }
@@ -182,7 +184,7 @@ class IccBesamv2Api {
182
184
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
183
185
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
184
186
  let headers = this.headers;
185
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
187
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
186
188
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
187
189
  .catch((err) => this.handleError(err));
188
190
  }
@@ -204,7 +206,7 @@ class IccBesamv2Api {
204
206
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
205
207
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
206
208
  let headers = this.headers;
207
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
209
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
208
210
  .then((doc) => new PaginatedListAmp_1.PaginatedListAmp(doc.body))
209
211
  .catch((err) => this.handleError(err));
210
212
  }
@@ -229,7 +231,7 @@ class IccBesamv2Api {
229
231
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
230
232
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
231
233
  let headers = this.headers;
232
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
234
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
233
235
  .then((doc) => new PaginatedListNmp_1.PaginatedListNmp(doc.body))
234
236
  .catch((err) => this.handleError(err));
235
237
  }
@@ -254,7 +256,7 @@ class IccBesamv2Api {
254
256
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
255
257
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
256
258
  let headers = this.headers;
257
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
259
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
258
260
  .then((doc) => new PaginatedListVmpGroup_1.PaginatedListVmpGroup(doc.body))
259
261
  .catch((err) => this.handleError(err));
260
262
  }
@@ -276,7 +278,7 @@ class IccBesamv2Api {
276
278
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
277
279
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
278
280
  let headers = this.headers;
279
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
281
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
280
282
  .then((doc) => new PaginatedListVmpGroup_1.PaginatedListVmpGroup(doc.body))
281
283
  .catch((err) => this.handleError(err));
282
284
  }
@@ -298,7 +300,7 @@ class IccBesamv2Api {
298
300
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
299
301
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
300
302
  let headers = this.headers;
301
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
303
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
302
304
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
303
305
  .catch((err) => this.handleError(err));
304
306
  }
@@ -320,7 +322,7 @@ class IccBesamv2Api {
320
322
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
321
323
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
322
324
  let headers = this.headers;
323
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
325
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
324
326
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
325
327
  .catch((err) => this.handleError(err));
326
328
  }
@@ -345,7 +347,7 @@ class IccBesamv2Api {
345
347
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
346
348
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
347
349
  let headers = this.headers;
348
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
350
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
349
351
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
350
352
  .catch((err) => this.handleError(err));
351
353
  }
@@ -367,7 +369,7 @@ class IccBesamv2Api {
367
369
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
368
370
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
369
371
  let headers = this.headers;
370
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
372
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
371
373
  .then((doc) => new PaginatedListVmp_1.PaginatedListVmp(doc.body))
372
374
  .catch((err) => this.handleError(err));
373
375
  }
@@ -383,7 +385,7 @@ class IccBesamv2Api {
383
385
  '?ts=' +
384
386
  new Date().getTime();
385
387
  let headers = this.headers;
386
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
388
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
387
389
  .then((doc) => doc.body.map((it) => new Paragraph_1.Paragraph(it)))
388
390
  .catch((err) => this.handleError(err));
389
391
  }
@@ -396,7 +398,7 @@ class IccBesamv2Api {
396
398
  let _body = null;
397
399
  const _url = this.host + `/be_samv2/chap/bycnk/${encodeURIComponent(String(cnk))}/${encodeURIComponent(String(language))}` + '?ts=' + new Date().getTime();
398
400
  let headers = this.headers;
399
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
401
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
400
402
  .then((doc) => doc.body.map((it) => new Paragraph_1.Paragraph(it)))
401
403
  .catch((err) => this.handleError(err));
402
404
  }
@@ -416,7 +418,7 @@ class IccBesamv2Api {
416
418
  '?ts=' +
417
419
  new Date().getTime();
418
420
  let headers = this.headers;
419
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
421
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
420
422
  .then((doc) => doc.body)
421
423
  .catch((err) => this.handleError(err));
422
424
  }
@@ -432,7 +434,7 @@ class IccBesamv2Api {
432
434
  '?ts=' +
433
435
  new Date().getTime();
434
436
  let headers = this.headers;
435
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
437
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
436
438
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
437
439
  .catch((err) => this.handleError(err));
438
440
  }
@@ -444,7 +446,7 @@ class IccBesamv2Api {
444
446
  let _body = null;
445
447
  const _url = this.host + `/be_samv2/v` + '?ts=' + new Date().getTime();
446
448
  let headers = this.headers;
447
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
449
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
448
450
  .then((doc) => new SamVersion_1.SamVersion(doc.body))
449
451
  .catch((err) => this.handleError(err));
450
452
  }
@@ -460,7 +462,7 @@ class IccBesamv2Api {
460
462
  '?ts=' +
461
463
  new Date().getTime();
462
464
  let headers = this.headers;
463
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
465
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
464
466
  .then((doc) => new Verse_1.Verse(doc.body))
465
467
  .catch((err) => this.handleError(err));
466
468
  }
@@ -477,7 +479,7 @@ class IccBesamv2Api {
477
479
  '?ts=' +
478
480
  new Date().getTime();
479
481
  let headers = this.headers;
480
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
482
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
481
483
  .then((doc) => doc.body.map((it) => JSON.parse(JSON.stringify(it))))
482
484
  .catch((err) => this.handleError(err));
483
485
  }
@@ -492,7 +494,7 @@ class IccBesamv2Api {
492
494
  const _url = this.host + `/be_samv2/amp/byDmppCodes` + '?ts=' + new Date().getTime();
493
495
  let headers = this.headers;
494
496
  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)
497
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
496
498
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
497
499
  .catch((err) => this.handleError(err));
498
500
  }
@@ -507,7 +509,7 @@ class IccBesamv2Api {
507
509
  const _url = this.host + `/be_samv2/amp/byGroupCodes` + '?ts=' + new Date().getTime();
508
510
  let headers = this.headers;
509
511
  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)
512
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
511
513
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
512
514
  .catch((err) => this.handleError(err));
513
515
  }
@@ -522,7 +524,7 @@ class IccBesamv2Api {
522
524
  const _url = this.host + `/be_samv2/amp/byGroupIds` + '?ts=' + new Date().getTime();
523
525
  let headers = this.headers;
524
526
  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)
527
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
526
528
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
527
529
  .catch((err) => this.handleError(err));
528
530
  }
@@ -537,7 +539,7 @@ class IccBesamv2Api {
537
539
  const _url = this.host + `/be_samv2/amp/byVmpCodes` + '?ts=' + new Date().getTime();
538
540
  let headers = this.headers;
539
541
  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)
542
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
541
543
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
542
544
  .catch((err) => this.handleError(err));
543
545
  }
@@ -552,7 +554,7 @@ class IccBesamv2Api {
552
554
  const _url = this.host + `/be_samv2/amp/byVmpIds` + '?ts=' + new Date().getTime();
553
555
  let headers = this.headers;
554
556
  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)
557
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
556
558
  .then((doc) => doc.body.map((it) => new Amp_1.Amp(it)))
557
559
  .catch((err) => this.handleError(err));
558
560
  }
@@ -567,7 +569,7 @@ class IccBesamv2Api {
567
569
  const _url = this.host + `/be_samv2/nmp/byCnks` + '?ts=' + new Date().getTime();
568
570
  let headers = this.headers;
569
571
  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)
572
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
571
573
  .then((doc) => doc.body.map((it) => new Nmp_1.Nmp(it)))
572
574
  .catch((err) => this.handleError(err));
573
575
  }
@@ -579,7 +581,7 @@ class IccBesamv2Api {
579
581
  let _body = null;
580
582
  const _url = this.host + `/be_samv2/pharmaform` + '?ts=' + new Date().getTime();
581
583
  let headers = this.headers;
582
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
584
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
583
585
  .then((doc) => doc.body.map((it) => new PharmaceuticalForm_1.PharmaceuticalForm(it)))
584
586
  .catch((err) => this.handleError(err));
585
587
  }
@@ -591,7 +593,7 @@ class IccBesamv2Api {
591
593
  let _body = null;
592
594
  const _url = this.host + `/be_samv2/substance` + '?ts=' + new Date().getTime();
593
595
  let headers = this.headers;
594
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
596
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
595
597
  .then((doc) => doc.body.map((it) => new Substance_1.Substance(it)))
596
598
  .catch((err) => this.handleError(err));
597
599
  }
@@ -606,7 +608,7 @@ class IccBesamv2Api {
606
608
  const _url = this.host + `/be_samv2/vmpgroup/byGroupCodes` + '?ts=' + new Date().getTime();
607
609
  let headers = this.headers;
608
610
  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)
611
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
610
612
  .then((doc) => doc.body.map((it) => new VmpGroup_1.VmpGroup(it)))
611
613
  .catch((err) => this.handleError(err));
612
614
  }
@@ -621,7 +623,7 @@ class IccBesamv2Api {
621
623
  const _url = this.host + `/be_samv2/vmp/byGroupIds` + '?ts=' + new Date().getTime();
622
624
  let headers = this.headers;
623
625
  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)
626
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
625
627
  .then((doc) => doc.body.map((it) => new Vmp_1.Vmp(it)))
626
628
  .catch((err) => this.handleError(err));
627
629
  }
@@ -636,7 +638,7 @@ class IccBesamv2Api {
636
638
  const _url = this.host + `/be_samv2/vmp/byVmpCodes` + '?ts=' + new Date().getTime();
637
639
  let headers = this.headers;
638
640
  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)
641
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
640
642
  .then((doc) => doc.body.map((it) => new Vmp_1.Vmp(it)))
641
643
  .catch((err) => this.handleError(err));
642
644
  }