@icure/api 6.0.2 → 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 (231) 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-doctemplate-x-api.d.ts +3 -1
  193. package/icc-x-api/icc-doctemplate-x-api.js +4 -3
  194. package/icc-x-api/icc-doctemplate-x-api.js.map +1 -1
  195. package/icc-x-api/icc-document-x-api.d.ts +3 -1
  196. package/icc-x-api/icc-document-x-api.js +4 -3
  197. package/icc-x-api/icc-document-x-api.js.map +1 -1
  198. package/icc-x-api/icc-form-x-api.d.ts +2 -1
  199. package/icc-x-api/icc-form-x-api.js +2 -2
  200. package/icc-x-api/icc-form-x-api.js.map +1 -1
  201. package/icc-x-api/icc-hcparty-x-api.d.ts +2 -1
  202. package/icc-x-api/icc-hcparty-x-api.js +2 -2
  203. package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
  204. package/icc-x-api/icc-helement-x-api.d.ts +2 -1
  205. package/icc-x-api/icc-helement-x-api.js +2 -2
  206. package/icc-x-api/icc-helement-x-api.js.map +1 -1
  207. package/icc-x-api/icc-invoice-x-api.d.ts +2 -1
  208. package/icc-x-api/icc-invoice-x-api.js +2 -2
  209. package/icc-x-api/icc-invoice-x-api.js.map +1 -1
  210. package/icc-x-api/icc-maintenance-task-x-api.d.ts +2 -1
  211. package/icc-x-api/icc-maintenance-task-x-api.js +2 -2
  212. package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
  213. package/icc-x-api/icc-message-x-api.d.ts +2 -1
  214. package/icc-x-api/icc-message-x-api.js +2 -2
  215. package/icc-x-api/icc-message-x-api.js.map +1 -1
  216. package/icc-x-api/icc-patient-x-api.d.ts +2 -1
  217. package/icc-x-api/icc-patient-x-api.js +2 -2
  218. package/icc-x-api/icc-patient-x-api.js.map +1 -1
  219. package/icc-x-api/icc-receipt-x-api.d.ts +2 -1
  220. package/icc-x-api/icc-receipt-x-api.js +2 -2
  221. package/icc-x-api/icc-receipt-x-api.js.map +1 -1
  222. package/icc-x-api/icc-time-table-x-api.d.ts +2 -1
  223. package/icc-x-api/icc-time-table-x-api.js +2 -2
  224. package/icc-x-api/icc-time-table-x-api.js.map +1 -1
  225. package/icc-x-api/icc-user-x-api.d.ts +2 -1
  226. package/icc-x-api/icc-user-x-api.js +2 -2
  227. package/icc-x-api/icc-user-x-api.js.map +1 -1
  228. package/icc-x-api/index.d.ts +0 -4
  229. package/icc-x-api/index.js +31 -34
  230. package/icc-x-api/index.js.map +1 -1
  231. package/package.json +1 -1
@@ -33,9 +33,10 @@ const Patient_1 = require("../model/Patient");
33
33
  const ReplicatorDocument_1 = require("../model/ReplicatorDocument");
34
34
  const Unit_1 = require("../model/Unit");
35
35
  class IccTmpApi {
36
- constructor(host, headers, fetchImpl) {
36
+ constructor(host, headers, authenticationProvider, fetchImpl) {
37
37
  this.host = host;
38
38
  this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
39
+ this.authenticationProvider = authenticationProvider;
39
40
  this.fetchImpl = fetchImpl;
40
41
  }
41
42
  setHeaders(h) {
@@ -55,7 +56,7 @@ class IccTmpApi {
55
56
  const _url = this.host + `/tmp/classification` + '?ts=' + new Date().getTime();
56
57
  let headers = this.headers;
57
58
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
58
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
59
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
59
60
  .then((doc) => new Classification_1.Classification(doc.body))
60
61
  .catch((err) => this.handleError(err));
61
62
  }
@@ -70,7 +71,7 @@ class IccTmpApi {
70
71
  const _url = this.host + `/tmp/classification/batch` + '?ts=' + new Date().getTime();
71
72
  let headers = this.headers;
72
73
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
73
- 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())
74
75
  .then((doc) => doc.body.map((it) => new Classification_1.Classification(it)))
75
76
  .catch((err) => this.handleError(err));
76
77
  }
@@ -85,7 +86,7 @@ class IccTmpApi {
85
86
  const _url = this.host + `/tmp/contact` + '?ts=' + new Date().getTime();
86
87
  let headers = this.headers;
87
88
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
88
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
89
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
89
90
  .then((doc) => new Contact_1.Contact(doc.body))
90
91
  .catch((err) => this.handleError(err));
91
92
  }
@@ -100,7 +101,7 @@ class IccTmpApi {
100
101
  const _url = this.host + `/tmp/contact/batch` + '?ts=' + new Date().getTime();
101
102
  let headers = this.headers;
102
103
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
103
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
104
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
104
105
  .then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
105
106
  .catch((err) => this.handleError(err));
106
107
  }
@@ -112,7 +113,7 @@ class IccTmpApi {
112
113
  let _body = null;
113
114
  const _url = this.host + `/tmp` + '?ts=' + new Date().getTime();
114
115
  let headers = this.headers;
115
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
116
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
116
117
  .then((doc) => new Unit_1.Unit(doc.body))
117
118
  .catch((err) => this.handleError(err));
118
119
  }
@@ -127,7 +128,7 @@ class IccTmpApi {
127
128
  const _url = this.host + `/tmp/document` + '?ts=' + new Date().getTime();
128
129
  let headers = this.headers;
129
130
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
130
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
131
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
131
132
  .then((doc) => new Document_1.Document(doc.body))
132
133
  .catch((err) => this.handleError(err));
133
134
  }
@@ -142,7 +143,7 @@ class IccTmpApi {
142
143
  const _url = this.host + `/tmp/document/batch` + '?ts=' + new Date().getTime();
143
144
  let headers = this.headers;
144
145
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
145
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
146
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
146
147
  .then((doc) => doc.body.map((it) => new Document_1.Document(it)))
147
148
  .catch((err) => this.handleError(err));
148
149
  }
@@ -157,7 +158,7 @@ class IccTmpApi {
157
158
  const _url = this.host + `/tmp/entityTemplate` + '?ts=' + new Date().getTime();
158
159
  let headers = this.headers;
159
160
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
160
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
161
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
161
162
  .then((doc) => new EntityTemplate_1.EntityTemplate(doc.body))
162
163
  .catch((err) => this.handleError(err));
163
164
  }
@@ -172,7 +173,7 @@ class IccTmpApi {
172
173
  const _url = this.host + `/tmp/entityTemplate/batch` + '?ts=' + new Date().getTime();
173
174
  let headers = this.headers;
174
175
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
175
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
176
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
176
177
  .then((doc) => doc.body.map((it) => new EntityTemplate_1.EntityTemplate(it)))
177
178
  .catch((err) => this.handleError(err));
178
179
  }
@@ -187,7 +188,7 @@ class IccTmpApi {
187
188
  const _url = this.host + `/tmp/form` + '?ts=' + new Date().getTime();
188
189
  let headers = this.headers;
189
190
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
190
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
191
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
191
192
  .then((doc) => new Form_1.Form(doc.body))
192
193
  .catch((err) => this.handleError(err));
193
194
  }
@@ -202,7 +203,7 @@ class IccTmpApi {
202
203
  const _url = this.host + `/tmp/form/batch` + '?ts=' + new Date().getTime();
203
204
  let headers = this.headers;
204
205
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
205
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
206
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
206
207
  .then((doc) => doc.body.map((it) => new Form_1.Form(it)))
207
208
  .catch((err) => this.handleError(err));
208
209
  }
@@ -217,7 +218,7 @@ class IccTmpApi {
217
218
  const _url = this.host + `/tmp/healthElement` + '?ts=' + new Date().getTime();
218
219
  let headers = this.headers;
219
220
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
220
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
221
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
221
222
  .then((doc) => new HealthElement_1.HealthElement(doc.body))
222
223
  .catch((err) => this.handleError(err));
223
224
  }
@@ -232,7 +233,7 @@ class IccTmpApi {
232
233
  const _url = this.host + `/tmp/healthElement/batch` + '?ts=' + new Date().getTime();
233
234
  let headers = this.headers;
234
235
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
235
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
236
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
236
237
  .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
237
238
  .catch((err) => this.handleError(err));
238
239
  }
@@ -247,7 +248,7 @@ class IccTmpApi {
247
248
  const _url = this.host + `/tmp/invoice` + '?ts=' + new Date().getTime();
248
249
  let headers = this.headers;
249
250
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
250
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
251
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
251
252
  .then((doc) => new Invoice_1.Invoice(doc.body))
252
253
  .catch((err) => this.handleError(err));
253
254
  }
@@ -262,7 +263,7 @@ class IccTmpApi {
262
263
  const _url = this.host + `/tmp/invoice/batch` + '?ts=' + new Date().getTime();
263
264
  let headers = this.headers;
264
265
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
265
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
266
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
266
267
  .then((doc) => doc.body.map((it) => new Invoice_1.Invoice(it)))
267
268
  .catch((err) => this.handleError(err));
268
269
  }
@@ -277,7 +278,7 @@ class IccTmpApi {
277
278
  const _url = this.host + `/tmp/message` + '?ts=' + new Date().getTime();
278
279
  let headers = this.headers;
279
280
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
280
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
281
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
281
282
  .then((doc) => new Message_1.Message(doc.body))
282
283
  .catch((err) => this.handleError(err));
283
284
  }
@@ -292,7 +293,7 @@ class IccTmpApi {
292
293
  const _url = this.host + `/tmp/message/batch` + '?ts=' + new Date().getTime();
293
294
  let headers = this.headers;
294
295
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
295
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
296
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
296
297
  .then((doc) => doc.body.map((it) => new Message_1.Message(it)))
297
298
  .catch((err) => this.handleError(err));
298
299
  }
@@ -307,7 +308,7 @@ class IccTmpApi {
307
308
  const _url = this.host + `/tmp/patient` + '?ts=' + new Date().getTime();
308
309
  let headers = this.headers;
309
310
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
310
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
311
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
311
312
  .then((doc) => new Patient_1.Patient(doc.body))
312
313
  .catch((err) => this.handleError(err));
313
314
  }
@@ -322,7 +323,7 @@ class IccTmpApi {
322
323
  const _url = this.host + `/tmp/patient/batch` + '?ts=' + new Date().getTime();
323
324
  let headers = this.headers;
324
325
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
325
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
326
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
326
327
  .then((doc) => doc.body.map((it) => new Patient_1.Patient(it)))
327
328
  .catch((err) => this.handleError(err));
328
329
  }
@@ -335,7 +336,7 @@ class IccTmpApi {
335
336
  let _body = null;
336
337
  const _url = this.host + `/tmp/document/${encodeURIComponent(String(documentId))}/attachment` + '?ts=' + new Date().getTime();
337
338
  let headers = this.headers;
338
- return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl)
339
+ return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
339
340
  .then((doc) => new Document_1.Document(doc.body))
340
341
  .catch((err) => this.handleError(err));
341
342
  }
@@ -350,7 +351,7 @@ class IccTmpApi {
350
351
  const _url = this.host + `/tmp/batch/delete` + '?ts=' + new Date().getTime();
351
352
  let headers = this.headers;
352
353
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
353
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
354
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
354
355
  .then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
355
356
  .catch((err) => this.handleError(err));
356
357
  }
@@ -362,7 +363,7 @@ class IccTmpApi {
362
363
  let _body = null;
363
364
  const _url = this.host + `/tmp` + '?ts=' + new Date().getTime();
364
365
  let headers = this.headers;
365
- return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl)
366
+ return XHR_1.XHR.sendCommand('DELETE', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
366
367
  .then((doc) => new Unit_1.Unit(doc.body))
367
368
  .catch((err) => this.handleError(err));
368
369
  }
@@ -375,7 +376,7 @@ class IccTmpApi {
375
376
  let _body = null;
376
377
  const _url = this.host + `/tmp/classification/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
377
378
  let headers = this.headers;
378
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
379
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
379
380
  .then((doc) => new Classification_1.Classification(doc.body))
380
381
  .catch((err) => this.handleError(err));
381
382
  }
@@ -390,7 +391,7 @@ class IccTmpApi {
390
391
  const _url = this.host + `/tmp/classification/get` + '?ts=' + new Date().getTime();
391
392
  let headers = this.headers;
392
393
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
393
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
394
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
394
395
  .then((doc) => doc.body.map((it) => new Classification_1.Classification(it)))
395
396
  .catch((err) => this.handleError(err));
396
397
  }
@@ -403,7 +404,7 @@ class IccTmpApi {
403
404
  let _body = null;
404
405
  const _url = this.host + `/tmp/contact/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
405
406
  let headers = this.headers;
406
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
407
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
407
408
  .then((doc) => new Contact_1.Contact(doc.body))
408
409
  .catch((err) => this.handleError(err));
409
410
  }
@@ -418,7 +419,7 @@ class IccTmpApi {
418
419
  const _url = this.host + `/tmp/contact/get` + '?ts=' + new Date().getTime();
419
420
  let headers = this.headers;
420
421
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
421
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
422
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
422
423
  .then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
423
424
  .catch((err) => this.handleError(err));
424
425
  }
@@ -431,7 +432,7 @@ class IccTmpApi {
431
432
  let _body = null;
432
433
  const _url = this.host + `/tmp/document/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
433
434
  let headers = this.headers;
434
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
435
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
435
436
  .then((doc) => new Document_1.Document(doc.body))
436
437
  .catch((err) => this.handleError(err));
437
438
  }
@@ -451,7 +452,7 @@ class IccTmpApi {
451
452
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '') +
452
453
  (fileName ? '&fileName=' + encodeURIComponent(String(fileName)) : '');
453
454
  let headers = this.headers;
454
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
455
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
455
456
  .then((doc) => true)
456
457
  .catch((err) => this.handleError(err));
457
458
  }
@@ -466,7 +467,7 @@ class IccTmpApi {
466
467
  const _url = this.host + `/tmp/document/get` + '?ts=' + new Date().getTime();
467
468
  let headers = this.headers;
468
469
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
469
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
470
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
470
471
  .then((doc) => doc.body.map((it) => new Document_1.Document(it)))
471
472
  .catch((err) => this.handleError(err));
472
473
  }
@@ -479,7 +480,7 @@ class IccTmpApi {
479
480
  let _body = null;
480
481
  const _url = this.host + `/tmp/entityTemplate/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
481
482
  let headers = this.headers;
482
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
483
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
483
484
  .then((doc) => new EntityTemplate_1.EntityTemplate(doc.body))
484
485
  .catch((err) => this.handleError(err));
485
486
  }
@@ -494,7 +495,7 @@ class IccTmpApi {
494
495
  const _url = this.host + `/tmp/entityTemplate/get` + '?ts=' + new Date().getTime();
495
496
  let headers = this.headers;
496
497
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
497
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
498
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
498
499
  .then((doc) => doc.body.map((it) => new EntityTemplate_1.EntityTemplate(it)))
499
500
  .catch((err) => this.handleError(err));
500
501
  }
@@ -507,7 +508,7 @@ class IccTmpApi {
507
508
  let _body = null;
508
509
  const _url = this.host + `/tmp/form/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
509
510
  let headers = this.headers;
510
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
511
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
511
512
  .then((doc) => new Form_1.Form(doc.body))
512
513
  .catch((err) => this.handleError(err));
513
514
  }
@@ -522,7 +523,7 @@ class IccTmpApi {
522
523
  const _url = this.host + `/tmp/form/get` + '?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 Form_1.Form(it)))
527
528
  .catch((err) => this.handleError(err));
528
529
  }
@@ -535,7 +536,7 @@ class IccTmpApi {
535
536
  let _body = null;
536
537
  const _url = this.host + `/tmp/healthElement/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
537
538
  let headers = this.headers;
538
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
539
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
539
540
  .then((doc) => new HealthElement_1.HealthElement(doc.body))
540
541
  .catch((err) => this.handleError(err));
541
542
  }
@@ -550,7 +551,7 @@ class IccTmpApi {
550
551
  const _url = this.host + `/tmp/healthElement/get` + '?ts=' + new Date().getTime();
551
552
  let headers = this.headers;
552
553
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
553
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
554
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
554
555
  .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
555
556
  .catch((err) => this.handleError(err));
556
557
  }
@@ -563,7 +564,7 @@ class IccTmpApi {
563
564
  let _body = null;
564
565
  const _url = this.host + `/tmp/invoice/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
565
566
  let headers = this.headers;
566
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
567
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
567
568
  .then((doc) => new Invoice_1.Invoice(doc.body))
568
569
  .catch((err) => this.handleError(err));
569
570
  }
@@ -578,7 +579,7 @@ class IccTmpApi {
578
579
  const _url = this.host + `/tmp/invoice/get` + '?ts=' + new Date().getTime();
579
580
  let headers = this.headers;
580
581
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
581
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
582
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
582
583
  .then((doc) => doc.body.map((it) => new Invoice_1.Invoice(it)))
583
584
  .catch((err) => this.handleError(err));
584
585
  }
@@ -591,7 +592,7 @@ class IccTmpApi {
591
592
  let _body = null;
592
593
  const _url = this.host + `/tmp/message/byId/${encodeURIComponent(String(id))}` + '?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) => new Message_1.Message(doc.body))
596
597
  .catch((err) => this.handleError(err));
597
598
  }
@@ -606,7 +607,7 @@ class IccTmpApi {
606
607
  const _url = this.host + `/tmp/message/get` + '?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 Message_1.Message(it)))
611
612
  .catch((err) => this.handleError(err));
612
613
  }
@@ -619,7 +620,7 @@ class IccTmpApi {
619
620
  let _body = null;
620
621
  const _url = this.host + `/tmp/patient/byId/${encodeURIComponent(String(id))}` + '?ts=' + new Date().getTime();
621
622
  let headers = this.headers;
622
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
623
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
623
624
  .then((doc) => new Patient_1.Patient(doc.body))
624
625
  .catch((err) => this.handleError(err));
625
626
  }
@@ -634,7 +635,7 @@ class IccTmpApi {
634
635
  const _url = this.host + `/tmp/patient/get` + '?ts=' + new Date().getTime();
635
636
  let headers = this.headers;
636
637
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
637
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
638
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
638
639
  .then((doc) => doc.body.map((it) => new Patient_1.Patient(it)))
639
640
  .catch((err) => this.handleError(err));
640
641
  }
@@ -653,7 +654,7 @@ class IccTmpApi {
653
654
  (firstClassificationId ? '&firstClassificationId=' + encodeURIComponent(String(firstClassificationId)) : '') +
654
655
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
655
656
  let headers = this.headers;
656
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
657
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
657
658
  .then((doc) => new PaginatedListClassification_1.PaginatedListClassification(doc.body))
658
659
  .catch((err) => this.handleError(err));
659
660
  }
@@ -672,7 +673,7 @@ class IccTmpApi {
672
673
  (firstContactId ? '&firstContactId=' + encodeURIComponent(String(firstContactId)) : '') +
673
674
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
674
675
  let headers = this.headers;
675
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
676
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
676
677
  .then((doc) => new PaginatedListInvoice_1.PaginatedListInvoice(doc.body))
677
678
  .catch((err) => this.handleError(err));
678
679
  }
@@ -691,7 +692,7 @@ class IccTmpApi {
691
692
  (firstDocumentId ? '&firstDocumentId=' + encodeURIComponent(String(firstDocumentId)) : '') +
692
693
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
693
694
  let headers = this.headers;
694
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
695
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
695
696
  .then((doc) => new PaginatedListDocument_1.PaginatedListDocument(doc.body))
696
697
  .catch((err) => this.handleError(err));
697
698
  }
@@ -710,7 +711,7 @@ class IccTmpApi {
710
711
  (firstEntityTemplateId ? '&firstEntityTemplateId=' + encodeURIComponent(String(firstEntityTemplateId)) : '') +
711
712
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
712
713
  let headers = this.headers;
713
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
714
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
714
715
  .then((doc) => new PaginatedListEntityTemplate_1.PaginatedListEntityTemplate(doc.body))
715
716
  .catch((err) => this.handleError(err));
716
717
  }
@@ -729,7 +730,7 @@ class IccTmpApi {
729
730
  (firstFormId ? '&firstFormId=' + encodeURIComponent(String(firstFormId)) : '') +
730
731
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
731
732
  let headers = this.headers;
732
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
733
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
733
734
  .then((doc) => new PaginatedListForm_1.PaginatedListForm(doc.body))
734
735
  .catch((err) => this.handleError(err));
735
736
  }
@@ -748,7 +749,7 @@ class IccTmpApi {
748
749
  (firstHealthElementId ? '&firstHealthElementId=' + encodeURIComponent(String(firstHealthElementId)) : '') +
749
750
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
750
751
  let headers = this.headers;
751
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
752
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
752
753
  .then((doc) => new PaginatedListHealthElement_1.PaginatedListHealthElement(doc.body))
753
754
  .catch((err) => this.handleError(err));
754
755
  }
@@ -767,7 +768,7 @@ class IccTmpApi {
767
768
  (firstInvoiceId ? '&firstInvoiceId=' + encodeURIComponent(String(firstInvoiceId)) : '') +
768
769
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
769
770
  let headers = this.headers;
770
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
771
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
771
772
  .then((doc) => new PaginatedListInvoice_1.PaginatedListInvoice(doc.body))
772
773
  .catch((err) => this.handleError(err));
773
774
  }
@@ -786,7 +787,7 @@ class IccTmpApi {
786
787
  (firstMessageId ? '&firstMessageId=' + encodeURIComponent(String(firstMessageId)) : '') +
787
788
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
788
789
  let headers = this.headers;
789
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
790
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
790
791
  .then((doc) => new PaginatedListInvoice_1.PaginatedListInvoice(doc.body))
791
792
  .catch((err) => this.handleError(err));
792
793
  }
@@ -805,7 +806,7 @@ class IccTmpApi {
805
806
  (firstPatientId ? '&firstPatientId=' + encodeURIComponent(String(firstPatientId)) : '') +
806
807
  (pageSize ? '&pageSize=' + encodeURIComponent(String(pageSize)) : '');
807
808
  let headers = this.headers;
808
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
809
+ return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
809
810
  .then((doc) => new PaginatedListPatient_1.PaginatedListPatient(doc.body))
810
811
  .catch((err) => this.handleError(err));
811
812
  }
@@ -820,7 +821,7 @@ class IccTmpApi {
820
821
  const _url = this.host + `/tmp/classification` + '?ts=' + new Date().getTime();
821
822
  let headers = this.headers;
822
823
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
823
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
824
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
824
825
  .then((doc) => new Classification_1.Classification(doc.body))
825
826
  .catch((err) => this.handleError(err));
826
827
  }
@@ -835,7 +836,7 @@ class IccTmpApi {
835
836
  const _url = this.host + `/tmp/classification/batch` + '?ts=' + new Date().getTime();
836
837
  let headers = this.headers;
837
838
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
838
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
839
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
839
840
  .then((doc) => doc.body.map((it) => new Classification_1.Classification(it)))
840
841
  .catch((err) => this.handleError(err));
841
842
  }
@@ -850,7 +851,7 @@ class IccTmpApi {
850
851
  const _url = this.host + `/tmp/contact` + '?ts=' + new Date().getTime();
851
852
  let headers = this.headers;
852
853
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
853
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
854
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
854
855
  .then((doc) => new Contact_1.Contact(doc.body))
855
856
  .catch((err) => this.handleError(err));
856
857
  }
@@ -865,7 +866,7 @@ class IccTmpApi {
865
866
  const _url = this.host + `/tmp/contact/batch` + '?ts=' + new Date().getTime();
866
867
  let headers = this.headers;
867
868
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
868
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
869
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
869
870
  .then((doc) => doc.body.map((it) => new Contact_1.Contact(it)))
870
871
  .catch((err) => this.handleError(err));
871
872
  }
@@ -880,7 +881,7 @@ class IccTmpApi {
880
881
  const _url = this.host + `/tmp/document` + '?ts=' + new Date().getTime();
881
882
  let headers = this.headers;
882
883
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
883
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
884
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
884
885
  .then((doc) => new Document_1.Document(doc.body))
885
886
  .catch((err) => this.handleError(err));
886
887
  }
@@ -895,7 +896,7 @@ class IccTmpApi {
895
896
  const _url = this.host + `/tmp/document/batch` + '?ts=' + new Date().getTime();
896
897
  let headers = this.headers;
897
898
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
898
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
899
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
899
900
  .then((doc) => doc.body.map((it) => new Document_1.Document(it)))
900
901
  .catch((err) => this.handleError(err));
901
902
  }
@@ -910,7 +911,7 @@ class IccTmpApi {
910
911
  const _url = this.host + `/tmp/entityTemplate` + '?ts=' + new Date().getTime();
911
912
  let headers = this.headers;
912
913
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
913
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
914
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
914
915
  .then((doc) => new EntityTemplate_1.EntityTemplate(doc.body))
915
916
  .catch((err) => this.handleError(err));
916
917
  }
@@ -925,7 +926,7 @@ class IccTmpApi {
925
926
  const _url = this.host + `/tmp/entityTemplate/batch` + '?ts=' + new Date().getTime();
926
927
  let headers = this.headers;
927
928
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
928
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
929
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
929
930
  .then((doc) => doc.body.map((it) => new EntityTemplate_1.EntityTemplate(it)))
930
931
  .catch((err) => this.handleError(err));
931
932
  }
@@ -940,7 +941,7 @@ class IccTmpApi {
940
941
  const _url = this.host + `/tmp/form` + '?ts=' + new Date().getTime();
941
942
  let headers = this.headers;
942
943
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
943
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
944
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
944
945
  .then((doc) => new Form_1.Form(doc.body))
945
946
  .catch((err) => this.handleError(err));
946
947
  }
@@ -955,7 +956,7 @@ class IccTmpApi {
955
956
  const _url = this.host + `/tmp/form/batch` + '?ts=' + new Date().getTime();
956
957
  let headers = this.headers;
957
958
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
958
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
959
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
959
960
  .then((doc) => doc.body.map((it) => new Form_1.Form(it)))
960
961
  .catch((err) => this.handleError(err));
961
962
  }
@@ -970,7 +971,7 @@ class IccTmpApi {
970
971
  const _url = this.host + `/tmp/healthElement` + '?ts=' + new Date().getTime();
971
972
  let headers = this.headers;
972
973
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
973
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
974
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
974
975
  .then((doc) => new HealthElement_1.HealthElement(doc.body))
975
976
  .catch((err) => this.handleError(err));
976
977
  }
@@ -985,7 +986,7 @@ class IccTmpApi {
985
986
  const _url = this.host + `/tmp/healthElement/batch` + '?ts=' + new Date().getTime();
986
987
  let headers = this.headers;
987
988
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
988
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
989
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
989
990
  .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
990
991
  .catch((err) => this.handleError(err));
991
992
  }
@@ -1000,7 +1001,7 @@ class IccTmpApi {
1000
1001
  const _url = this.host + `/tmp/invoice` + '?ts=' + new Date().getTime();
1001
1002
  let headers = this.headers;
1002
1003
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1003
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
1004
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1004
1005
  .then((doc) => new Invoice_1.Invoice(doc.body))
1005
1006
  .catch((err) => this.handleError(err));
1006
1007
  }
@@ -1015,7 +1016,7 @@ class IccTmpApi {
1015
1016
  const _url = this.host + `/tmp/invoice/batch` + '?ts=' + new Date().getTime();
1016
1017
  let headers = this.headers;
1017
1018
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1018
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
1019
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1019
1020
  .then((doc) => doc.body.map((it) => new Invoice_1.Invoice(it)))
1020
1021
  .catch((err) => this.handleError(err));
1021
1022
  }
@@ -1030,7 +1031,7 @@ class IccTmpApi {
1030
1031
  const _url = this.host + `/tmp/message` + '?ts=' + new Date().getTime();
1031
1032
  let headers = this.headers;
1032
1033
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1033
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
1034
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1034
1035
  .then((doc) => new Message_1.Message(doc.body))
1035
1036
  .catch((err) => this.handleError(err));
1036
1037
  }
@@ -1045,7 +1046,7 @@ class IccTmpApi {
1045
1046
  const _url = this.host + `/tmp/message/batch` + '?ts=' + new Date().getTime();
1046
1047
  let headers = this.headers;
1047
1048
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1048
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
1049
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1049
1050
  .then((doc) => doc.body.map((it) => new Message_1.Message(it)))
1050
1051
  .catch((err) => this.handleError(err));
1051
1052
  }
@@ -1060,7 +1061,7 @@ class IccTmpApi {
1060
1061
  const _url = this.host + `/tmp/patient` + '?ts=' + new Date().getTime();
1061
1062
  let headers = this.headers;
1062
1063
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1063
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
1064
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1064
1065
  .then((doc) => new Patient_1.Patient(doc.body))
1065
1066
  .catch((err) => this.handleError(err));
1066
1067
  }
@@ -1075,7 +1076,7 @@ class IccTmpApi {
1075
1076
  const _url = this.host + `/tmp/patient/batch` + '?ts=' + new Date().getTime();
1076
1077
  let headers = this.headers;
1077
1078
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1078
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
1079
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1079
1080
  .then((doc) => doc.body.map((it) => new Patient_1.Patient(it)))
1080
1081
  .catch((err) => this.handleError(err));
1081
1082
  }
@@ -1090,7 +1091,7 @@ class IccTmpApi {
1090
1091
  const _url = this.host + `/tmp/batch/purge` + '?ts=' + new Date().getTime();
1091
1092
  let headers = this.headers;
1092
1093
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1093
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
1094
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1094
1095
  .then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
1095
1096
  .catch((err) => this.handleError(err));
1096
1097
  }
@@ -1105,7 +1106,7 @@ class IccTmpApi {
1105
1106
  const _url = this.host + `/tmp/replicate/from/${encodeURIComponent(String(from))}` + '?ts=' + new Date().getTime();
1106
1107
  let headers = this.headers;
1107
1108
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
1108
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
1109
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1109
1110
  .then((doc) => new ReplicatorDocument_1.ReplicatorDocument(doc.body))
1110
1111
  .catch((err) => this.handleError(err));
1111
1112
  }
@@ -1126,7 +1127,7 @@ class IccTmpApi {
1126
1127
  (enckeys ? '&enckeys=' + encodeURIComponent(String(enckeys)) : '');
1127
1128
  let headers = this.headers;
1128
1129
  headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/octet-stream'));
1129
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
1130
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
1130
1131
  .then((doc) => new Document_1.Document(doc.body))
1131
1132
  .catch((err) => this.handleError(err));
1132
1133
  }