@icure/be-fhc-api 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/.swagger-codegen/VERSION +1 -1
  2. package/api/fhcHubApi.ts +16 -4
  3. package/api/fhcRecipeApi.ts +80 -51
  4. package/api/fhcRnConsultApi.ts +227 -0
  5. package/api/fhcStsApi.ts +33 -0
  6. package/api/fhcVaccinnetApi.ts +198 -0
  7. package/dist/api/fhcHubApi.d.ts +6 -2
  8. package/dist/api/fhcHubApi.js +12 -4
  9. package/dist/api/fhcRecipeApi.d.ts +25 -15
  10. package/dist/api/fhcRecipeApi.js +61 -39
  11. package/dist/api/fhcRnConsultApi.d.ts +82 -0
  12. package/dist/api/fhcRnConsultApi.js +167 -0
  13. package/dist/api/fhcStsApi.d.ts +11 -0
  14. package/dist/api/fhcStsApi.js +24 -0
  15. package/dist/api/fhcVaccinnetApi.d.ts +69 -0
  16. package/dist/api/fhcVaccinnetApi.js +146 -0
  17. package/dist/fhcApi.d.ts +2 -0
  18. package/dist/fhcApi.js +2 -0
  19. package/dist/model/ActType.d.ts +16 -0
  20. package/dist/model/ActType.js +20 -0
  21. package/dist/model/AddVaccinationsResponseType.d.ts +19 -0
  22. package/dist/model/AddVaccinationsResponseType.js +9 -0
  23. package/dist/model/Address.d.ts +9 -5
  24. package/dist/model/Address.js +5 -1
  25. package/dist/model/AddressBaseType.d.ts +23 -0
  26. package/dist/model/AddressBaseType.js +9 -0
  27. package/dist/model/AddressCbssBaseType.d.ts +16 -0
  28. package/dist/model/AddressCbssBaseType.js +9 -0
  29. package/dist/model/AddressDeclarationType.d.ts +16 -0
  30. package/dist/model/AddressDeclarationType.js +9 -0
  31. package/dist/model/AdministratorBaseType.d.ts +19 -0
  32. package/dist/model/AdministratorBaseType.js +9 -0
  33. package/dist/model/AnomaliesType.d.ts +15 -0
  34. package/dist/model/AnomaliesType.js +20 -0
  35. package/dist/model/Appendix.d.ts +2 -2
  36. package/dist/model/Base64EncodedKmehr.d.ts +15 -0
  37. package/dist/model/Base64EncodedKmehr.js +21 -0
  38. package/dist/model/BestIdentifierType.d.ts +17 -0
  39. package/dist/model/BestIdentifierType.js +20 -0
  40. package/dist/model/BirthInfoBaseType.d.ts +19 -0
  41. package/dist/model/BirthInfoBaseType.js +9 -0
  42. package/dist/model/BirthInfoDeclarationType.d.ts +17 -0
  43. package/dist/model/BirthInfoDeclarationType.js +9 -0
  44. package/dist/model/BirthPlace.d.ts +3 -1
  45. package/dist/model/CDHEADING.d.ts +5 -5
  46. package/dist/model/CDITEM.d.ts +30 -30
  47. package/dist/model/CbssPersonRequestType.d.ts +30 -0
  48. package/dist/model/CbssPersonRequestType.js +9 -0
  49. package/dist/model/CbssPersonResponseType.d.ts +35 -0
  50. package/dist/model/CbssPersonResponseType.js +9 -0
  51. package/dist/model/CivilStateInfoBaseType.d.ts +26 -0
  52. package/dist/model/CivilStateInfoBaseType.js +9 -0
  53. package/dist/model/CivilStateInfoDeclarationType.d.ts +20 -0
  54. package/dist/model/CivilStateInfoDeclarationType.js +9 -0
  55. package/dist/model/CivilStatesBaseType.d.ts +16 -0
  56. package/dist/model/CivilStatesBaseType.js +9 -0
  57. package/dist/model/CivilStatesDeclarationType.d.ts +16 -0
  58. package/dist/model/CivilStatesDeclarationType.js +9 -0
  59. package/dist/model/ContactAddress.d.ts +22 -0
  60. package/dist/model/ContactAddress.js +20 -0
  61. package/dist/model/ContactAddressBaseType.d.ts +34 -0
  62. package/dist/model/ContactAddressBaseType.js +9 -0
  63. package/dist/model/ContactAddressDeclarationType.d.ts +28 -0
  64. package/dist/model/ContactAddressDeclarationType.js +9 -0
  65. package/dist/model/DeceaseInfoBaseType.d.ts +17 -0
  66. package/dist/model/DeceaseInfoBaseType.js +9 -0
  67. package/dist/model/DeceaseInfoDeclarationType.d.ts +17 -0
  68. package/dist/model/DeceaseInfoDeclarationType.js +9 -0
  69. package/dist/model/DiplomaticPostType.d.ts +6 -5
  70. package/dist/model/Exception.d.ts +21 -0
  71. package/dist/model/Exception.js +9 -0
  72. package/dist/model/ExistingPersons.d.ts +15 -0
  73. package/dist/model/ExistingPersons.js +20 -0
  74. package/dist/model/FacetDto.d.ts +1 -1
  75. package/dist/model/ForeignAddressDeclarationType.d.ts +24 -0
  76. package/dist/model/ForeignAddressDeclarationType.js +9 -0
  77. package/dist/model/GenderInfoBaseType.d.ts +16 -0
  78. package/dist/model/GenderInfoBaseType.js +20 -0
  79. package/dist/model/GenderInfoDeclarationType.d.ts +16 -0
  80. package/dist/model/GenderInfoDeclarationType.js +20 -0
  81. package/dist/model/GetPrescriptionStatusResult.d.ts +30 -0
  82. package/dist/model/GetPrescriptionStatusResult.js +19 -0
  83. package/dist/model/GetVaccinationsResponseType.d.ts +19 -0
  84. package/dist/model/GetVaccinationsResponseType.js +9 -0
  85. package/dist/model/GivenNameType.d.ts +16 -0
  86. package/dist/model/GivenNameType.js +20 -0
  87. package/dist/model/Id.d.ts +16 -0
  88. package/dist/model/Id.js +20 -0
  89. package/dist/model/InvoiceItem.d.ts +1 -0
  90. package/dist/model/JudgmentType.d.ts +17 -0
  91. package/dist/model/JudgmentType.js +9 -0
  92. package/dist/model/Kmehrmessage.d.ts +12 -4
  93. package/dist/model/LegalCohabitationBaseType.d.ts +19 -0
  94. package/dist/model/LegalCohabitationBaseType.js +9 -0
  95. package/dist/model/LegalCohabitationRegistrationType.d.ts +19 -0
  96. package/dist/model/LegalCohabitationRegistrationType.js +9 -0
  97. package/dist/model/LocalizedDescriptionType.d.ts +16 -0
  98. package/dist/model/LocalizedDescriptionType.js +20 -0
  99. package/dist/model/LocationDeclarationType.d.ts +20 -0
  100. package/dist/model/LocationDeclarationType.js +9 -0
  101. package/dist/model/LocationType.d.ts +20 -0
  102. package/dist/model/LocationType.js +9 -0
  103. package/dist/model/MinimalAddressType.d.ts +23 -0
  104. package/dist/model/MinimalAddressType.js +9 -0
  105. package/dist/model/MinimalAdministratorType.d.ts +19 -0
  106. package/dist/model/MinimalAdministratorType.js +9 -0
  107. package/dist/model/MinimalBirthInfoType.d.ts +15 -0
  108. package/dist/model/MinimalBirthInfoType.js +20 -0
  109. package/dist/model/MinimalGenderInfoType.d.ts +16 -0
  110. package/dist/model/MinimalGenderInfoType.js +20 -0
  111. package/dist/model/MinimalNameInfoType.d.ts +18 -0
  112. package/dist/model/MinimalNameInfoType.js +9 -0
  113. package/dist/model/MycarenetConversation.d.ts +1 -0
  114. package/dist/model/NameInfoBaseType.d.ts +18 -0
  115. package/dist/model/NameInfoBaseType.js +9 -0
  116. package/dist/model/NameInfoDeclarationType.d.ts +18 -0
  117. package/dist/model/NameInfoDeclarationType.js +9 -0
  118. package/dist/model/NationalitiesBaseType.d.ts +16 -0
  119. package/dist/model/NationalitiesBaseType.js +9 -0
  120. package/dist/model/NationalitiesDeclarationType.d.ts +16 -0
  121. package/dist/model/NationalitiesDeclarationType.js +9 -0
  122. package/dist/model/NationalityInfoBaseType.d.ts +17 -0
  123. package/dist/model/NationalityInfoBaseType.js +20 -0
  124. package/dist/model/NobilityTitleBaseType.d.ts +17 -0
  125. package/dist/model/NobilityTitleBaseType.js +20 -0
  126. package/dist/model/PartnerType.d.ts +3 -4
  127. package/dist/model/Patient.d.ts +6 -2
  128. package/dist/model/Patient.js +6 -2
  129. package/dist/model/PersonIdentificationType.d.ts +31 -0
  130. package/dist/model/PersonIdentificationType.js +9 -0
  131. package/dist/model/PersonIdentificationsResponseType.d.ts +16 -0
  132. package/dist/model/PersonIdentificationsResponseType.js +9 -0
  133. package/dist/model/PersonResponseResultsType.d.ts +16 -0
  134. package/dist/model/PersonResponseResultsType.js +9 -0
  135. package/dist/model/PlainAddressOptionalInceptionDateType.d.ts +20 -0
  136. package/dist/model/PlainAddressOptionalInceptionDateType.js +9 -0
  137. package/dist/model/PlainAddressType.d.ts +20 -0
  138. package/dist/model/PlainAddressType.js +9 -0
  139. package/dist/model/Posology.d.ts +6 -0
  140. package/dist/model/Prescription.d.ts +1 -0
  141. package/dist/model/PrescriptionFullWithFeedback.d.ts +1 -0
  142. package/dist/model/PutVisionResult.d.ts +17 -0
  143. package/dist/model/PutVisionResult.js +9 -0
  144. package/dist/model/RecipeCDHEADING.d.ts +5 -5
  145. package/dist/model/RecipeCDITEM.d.ts +30 -30
  146. package/dist/model/RecipeKmehrmessageType.d.ts +18 -0
  147. package/dist/model/RecipeKmehrmessageType.js +9 -0
  148. package/dist/model/RecipePosology.d.ts +16 -0
  149. package/dist/model/RecipePosology.js +9 -0
  150. package/dist/model/RecipeRegimen.d.ts +15 -0
  151. package/dist/model/RecipeRegimen.js +20 -0
  152. package/dist/model/RecipeitemType.d.ts +4 -4
  153. package/dist/model/RegisterPersonDeclarationType.d.ts +16 -0
  154. package/dist/model/RegisterPersonDeclarationType.js +9 -0
  155. package/dist/model/RegisterPersonResultType.d.ts +18 -0
  156. package/dist/model/RegisterPersonResultType.js +9 -0
  157. package/dist/model/RegistrationBailiffType.d.ts +17 -0
  158. package/dist/model/RegistrationBailiffType.js +9 -0
  159. package/dist/model/RemoveVaccinationResponseType.d.ts +18 -0
  160. package/dist/model/RemoveVaccinationResponseType.js +9 -0
  161. package/dist/model/ResidentialAddress.d.ts +22 -0
  162. package/dist/model/ResidentialAddress.js +20 -0
  163. package/dist/model/ResidentialAddressOptionalInceptionDateType.d.ts +32 -0
  164. package/dist/model/ResidentialAddressOptionalInceptionDateType.js +9 -0
  165. package/dist/model/ResidentialAddressType.d.ts +32 -0
  166. package/dist/model/ResidentialAddressType.js +9 -0
  167. package/dist/model/Results.d.ts +20 -0
  168. package/dist/model/Results.js +9 -0
  169. package/dist/model/RnConsultConversationDto.d.ts +16 -0
  170. package/dist/model/RnConsultConversationDto.js +20 -0
  171. package/dist/model/RnConsultDeceaseType.d.ts +18 -0
  172. package/dist/model/RnConsultDeceaseType.js +9 -0
  173. package/dist/model/RnConsultNameType.d.ts +17 -0
  174. package/dist/model/RnConsultNameType.js +20 -0
  175. package/dist/model/RnConsultPersonDto.d.ts +43 -0
  176. package/dist/model/RnConsultPersonDto.js +9 -0
  177. package/dist/model/RnConsultPersonMid.d.ts +27 -0
  178. package/dist/model/RnConsultPersonMid.js +9 -0
  179. package/dist/model/RnConsultRegisterPersonResponseDto.d.ts +27 -0
  180. package/dist/model/RnConsultRegisterPersonResponseDto.js +9 -0
  181. package/dist/model/RnConsultSearchByNissResultDto.d.ts +16 -0
  182. package/dist/model/RnConsultSearchByNissResultDto.js +9 -0
  183. package/dist/model/RnConsultSearchPersonBySsinResponseDto.d.ts +27 -0
  184. package/dist/model/RnConsultSearchPersonBySsinResponseDto.js +9 -0
  185. package/dist/model/RnConsultSearchPersonPhoneticallyResponseDto.d.ts +25 -0
  186. package/dist/model/RnConsultSearchPersonPhoneticallyResponseDto.js +9 -0
  187. package/dist/model/SpecialNotionType.d.ts +16 -0
  188. package/dist/model/SpecialNotionType.js +20 -0
  189. package/dist/model/SsinWithCanceledAndReplacesStatusType.d.ts +17 -0
  190. package/dist/model/SsinWithCanceledAndReplacesStatusType.js +20 -0
  191. package/dist/model/StackTraceElement.d.ts +19 -0
  192. package/dist/model/StackTraceElement.js +20 -0
  193. package/dist/model/StatusType.d.ts +20 -0
  194. package/dist/model/StatusType.js +9 -0
  195. package/dist/model/SubregisterBaseType.d.ts +18 -0
  196. package/dist/model/SubregisterBaseType.js +9 -0
  197. package/dist/model/Throwable.d.ts +20 -0
  198. package/dist/model/Throwable.js +9 -0
  199. package/dist/model/TokenResponse.d.ts +14 -0
  200. package/dist/model/TokenResponse.js +20 -0
  201. package/dist/model/TranscriptionType.d.ts +17 -0
  202. package/dist/model/TranscriptionType.js +9 -0
  203. package/dist/model/UpdateFeedbackFlagResult.d.ts +17 -0
  204. package/dist/model/UpdateFeedbackFlagResult.js +9 -0
  205. package/dist/model/VaccinationId.d.ts +16 -0
  206. package/dist/model/VaccinationId.js +20 -0
  207. package/dist/model/VaccinationStatusType.d.ts +16 -0
  208. package/dist/model/VaccinationStatusType.js +20 -0
  209. package/dist/model/VaccineInjection.d.ts +18 -0
  210. package/dist/model/VaccineInjection.js +20 -0
  211. package/dist/model/ValidationInfoType.d.ts +17 -0
  212. package/dist/model/ValidationInfoType.js +20 -0
  213. package/dist/model/ValidationResult.d.ts +20 -0
  214. package/dist/model/ValidationResult.js +9 -0
  215. package/dist/model/VerifyIdResponse.d.ts +21 -0
  216. package/dist/model/VerifyIdResponse.js +9 -0
  217. package/dist/model/models.d.ts +89 -0
  218. package/dist/model/models.js +89 -0
  219. package/fhcApi.ts +2 -0
  220. package/model/ActType.ts +22 -0
  221. package/model/AddVaccinationsResponseType.ts +25 -0
  222. package/model/Address.ts +13 -5
  223. package/model/AddressBaseType.ts +29 -0
  224. package/model/AddressCbssBaseType.ts +22 -0
  225. package/model/AddressDeclarationType.ts +22 -0
  226. package/model/AdministratorBaseType.ts +25 -0
  227. package/model/AnomaliesType.ts +21 -0
  228. package/model/Appendix.ts +2 -2
  229. package/model/Base64EncodedKmehr.ts +25 -0
  230. package/model/BestIdentifierType.ts +23 -0
  231. package/model/BirthInfoBaseType.ts +25 -0
  232. package/model/BirthInfoDeclarationType.ts +23 -0
  233. package/model/BirthPlace.ts +3 -1
  234. package/model/CbssPersonRequestType.ts +36 -0
  235. package/model/CbssPersonResponseType.ts +41 -0
  236. package/model/CivilStateInfoBaseType.ts +32 -0
  237. package/model/CivilStateInfoDeclarationType.ts +26 -0
  238. package/model/CivilStatesBaseType.ts +22 -0
  239. package/model/CivilStatesDeclarationType.ts +22 -0
  240. package/model/ContactAddress.ts +28 -0
  241. package/model/ContactAddressBaseType.ts +40 -0
  242. package/model/ContactAddressDeclarationType.ts +34 -0
  243. package/model/DeceaseInfoBaseType.ts +23 -0
  244. package/model/DeceaseInfoDeclarationType.ts +23 -0
  245. package/model/DiplomaticPostType.ts +6 -5
  246. package/model/Exception.ts +27 -0
  247. package/model/ExistingPersons.ts +21 -0
  248. package/model/FacetDto.ts +1 -1
  249. package/model/ForeignAddressDeclarationType.ts +30 -0
  250. package/model/GenderInfoBaseType.ts +22 -0
  251. package/model/GenderInfoDeclarationType.ts +22 -0
  252. package/model/GetPrescriptionStatusResult.ts +42 -0
  253. package/model/GetVaccinationsResponseType.ts +25 -0
  254. package/model/GivenNameType.ts +22 -0
  255. package/model/Id.ts +22 -0
  256. package/model/InvoiceItem.ts +1 -0
  257. package/model/JudgmentType.ts +23 -0
  258. package/model/Kmehrmessage.ts +12 -4
  259. package/model/LegalCohabitationBaseType.ts +25 -0
  260. package/model/LegalCohabitationRegistrationType.ts +25 -0
  261. package/model/LocalizedDescriptionType.ts +22 -0
  262. package/model/LocationDeclarationType.ts +26 -0
  263. package/model/LocationType.ts +26 -0
  264. package/model/MinimalAddressType.ts +29 -0
  265. package/model/MinimalAdministratorType.ts +25 -0
  266. package/model/MinimalBirthInfoType.ts +21 -0
  267. package/model/MinimalGenderInfoType.ts +22 -0
  268. package/model/MinimalNameInfoType.ts +24 -0
  269. package/model/MycarenetConversation.ts +1 -0
  270. package/model/NameInfoBaseType.ts +24 -0
  271. package/model/NameInfoDeclarationType.ts +24 -0
  272. package/model/NationalitiesBaseType.ts +22 -0
  273. package/model/NationalitiesDeclarationType.ts +22 -0
  274. package/model/NationalityInfoBaseType.ts +23 -0
  275. package/model/NobilityTitleBaseType.ts +23 -0
  276. package/model/PartnerType.ts +3 -4
  277. package/model/Patient.ts +11 -3
  278. package/model/PersonIdentificationType.ts +37 -0
  279. package/model/PersonIdentificationsResponseType.ts +22 -0
  280. package/model/PersonResponseResultsType.ts +22 -0
  281. package/model/PlainAddressOptionalInceptionDateType.ts +26 -0
  282. package/model/PlainAddressType.ts +26 -0
  283. package/model/Posology.ts +6 -0
  284. package/model/Prescription.ts +1 -0
  285. package/model/PrescriptionFullWithFeedback.ts +1 -0
  286. package/model/PutVisionResult.ts +23 -0
  287. package/model/RecipeKmehrmessageType.ts +24 -0
  288. package/model/RecipePosology.ts +22 -0
  289. package/model/RecipeRegimen.ts +21 -0
  290. package/model/RecipeitemType.ts +4 -4
  291. package/model/RegisterPersonDeclarationType.ts +22 -0
  292. package/model/RegisterPersonResultType.ts +24 -0
  293. package/model/RegistrationBailiffType.ts +23 -0
  294. package/model/RemoveVaccinationResponseType.ts +24 -0
  295. package/model/ResidentialAddress.ts +28 -0
  296. package/model/ResidentialAddressOptionalInceptionDateType.ts +38 -0
  297. package/model/ResidentialAddressType.ts +38 -0
  298. package/model/Results.ts +26 -0
  299. package/model/RnConsultConversationDto.ts +22 -0
  300. package/model/RnConsultDeceaseType.ts +24 -0
  301. package/model/RnConsultNameType.ts +23 -0
  302. package/model/RnConsultPersonDto.ts +49 -0
  303. package/model/RnConsultPersonMid.ts +33 -0
  304. package/model/RnConsultRegisterPersonResponseDto.ts +33 -0
  305. package/model/RnConsultSearchByNissResultDto.ts +22 -0
  306. package/model/RnConsultSearchPersonBySsinResponseDto.ts +33 -0
  307. package/model/RnConsultSearchPersonPhoneticallyResponseDto.ts +31 -0
  308. package/model/SpecialNotionType.ts +22 -0
  309. package/model/SsinWithCanceledAndReplacesStatusType.ts +23 -0
  310. package/model/StackTraceElement.ts +25 -0
  311. package/model/StatusType.ts +26 -0
  312. package/model/SubregisterBaseType.ts +24 -0
  313. package/model/Throwable.ts +26 -0
  314. package/model/TokenResponse.ts +19 -0
  315. package/model/TranscriptionType.ts +23 -0
  316. package/model/UpdateFeedbackFlagResult.ts +23 -0
  317. package/model/VaccinationId.ts +22 -0
  318. package/model/VaccinationStatusType.ts +22 -0
  319. package/model/VaccineInjection.ts +24 -0
  320. package/model/ValidationInfoType.ts +23 -0
  321. package/model/ValidationResult.ts +26 -0
  322. package/model/VerifyIdResponse.ts +27 -0
  323. package/model/models.ts +89 -0
  324. package/package.json +1 -1
@@ -1 +1 @@
1
- 3.0.18
1
+ 1.4.3
package/api/fhcHubApi.ts CHANGED
@@ -508,6 +508,8 @@ export class fhcHubApi {
508
508
  * @param id id
509
509
  * @param hubPackageId hubPackageId
510
510
  * @param breakTheGlassReason breakTheGlassReason
511
+ * @param externalHubId externalHubId
512
+ * @param externalHubName externalHubName
511
513
  */
512
514
  getTransactionSetMessageUsingGET(
513
515
  endpoint: string,
@@ -524,7 +526,9 @@ export class fhcHubApi {
524
526
  sl: string,
525
527
  id: string,
526
528
  hubPackageId?: string,
527
- breakTheGlassReason?: string
529
+ breakTheGlassReason?: string,
530
+ externalHubId?: string,
531
+ externalHubName?: string
528
532
  ): Promise<Kmehrmessage> {
529
533
  let _body = null
530
534
 
@@ -545,7 +549,9 @@ export class fhcHubApi {
545
549
  (hubPackageId ? "&hubPackageId=" + encodeURIComponent(String(hubPackageId)) : "") +
546
550
  (breakTheGlassReason
547
551
  ? "&breakTheGlassReason=" + encodeURIComponent(String(breakTheGlassReason))
548
- : "")
552
+ : "") +
553
+ (externalHubId ? "&externalHubId=" + encodeURIComponent(String(externalHubId)) : "") +
554
+ (externalHubName ? "&externalHubName=" + encodeURIComponent(String(externalHubName)) : "")
549
555
  let headers = this.headers
550
556
  xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
551
557
  xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
@@ -573,6 +579,8 @@ export class fhcHubApi {
573
579
  * @param id id
574
580
  * @param hubPackageId hubPackageId
575
581
  * @param breakTheGlassReason breakTheGlassReason
582
+ * @param externalHubId externalHubId
583
+ * @param externalHubName externalHubName
576
584
  */
577
585
  getTransactionSetUsingGET(
578
586
  endpoint: string,
@@ -589,7 +597,9 @@ export class fhcHubApi {
589
597
  sl: string,
590
598
  id: string,
591
599
  hubPackageId?: string,
592
- breakTheGlassReason?: string
600
+ breakTheGlassReason?: string,
601
+ externalHubId?: string,
602
+ externalHubName?: string
593
603
  ): Promise<Kmehrmessage> {
594
604
  let _body = null
595
605
 
@@ -610,7 +620,9 @@ export class fhcHubApi {
610
620
  (hubPackageId ? "&hubPackageId=" + encodeURIComponent(String(hubPackageId)) : "") +
611
621
  (breakTheGlassReason
612
622
  ? "&breakTheGlassReason=" + encodeURIComponent(String(breakTheGlassReason))
613
- : "")
623
+ : "") +
624
+ (externalHubId ? "&externalHubId=" + encodeURIComponent(String(externalHubId)) : "") +
625
+ (externalHubName ? "&externalHubName=" + encodeURIComponent(String(externalHubName)) : "")
614
626
  let headers = this.headers
615
627
  xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
616
628
  xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
@@ -12,10 +12,13 @@
12
12
  import { XHR } from "./XHR"
13
13
  import { Code } from "../model/Code"
14
14
  import { Feedback } from "../model/Feedback"
15
- import { Kmehrmessage } from "../model/Kmehrmessage"
15
+ import { GetPrescriptionStatusResult } from "../model/GetPrescriptionStatusResult"
16
16
  import { Prescription } from "../model/Prescription"
17
17
  import { PrescriptionFullWithFeedback } from "../model/PrescriptionFullWithFeedback"
18
18
  import { PrescriptionRequest } from "../model/PrescriptionRequest"
19
+ import { PutVisionResult } from "../model/PutVisionResult"
20
+ import { RecipeKmehrmessageType } from "../model/RecipeKmehrmessageType"
21
+ import { UpdateFeedbackFlagResult } from "../model/UpdateFeedbackFlagResult"
19
22
 
20
23
  export class fhcRecipeApi {
21
24
  host: string
@@ -46,11 +49,11 @@ export class fhcRecipeApi {
46
49
  * @param body prescription
47
50
  * @param xFHCKeystoreId X-FHC-keystoreId
48
51
  * @param xFHCTokenId X-FHC-tokenId
52
+ * @param xFHCPassPhrase X-FHC-passPhrase
49
53
  * @param hcpQuality hcpQuality
50
54
  * @param hcpNihii hcpNihii
51
55
  * @param hcpSsin hcpSsin
52
56
  * @param hcpName hcpName
53
- * @param xFHCPassPhrase X-FHC-passPhrase
54
57
  */
55
58
  createPrescriptionUsingPOST(
56
59
  xFHCKeystoreId: string,
@@ -169,7 +172,7 @@ export class fhcRecipeApi {
169
172
  hcpName: string,
170
173
  xFHCPassPhrase: string,
171
174
  rid: string
172
- ): Promise<Kmehrmessage> {
175
+ ): Promise<RecipeKmehrmessageType> {
173
176
  let _body = null
174
177
 
175
178
  const _url =
@@ -177,8 +180,8 @@ export class fhcRecipeApi {
177
180
  `/recipe/prescription/${encodeURIComponent(String(rid))}` +
178
181
  "?ts=" +
179
182
  new Date().getTime() +
180
- (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
181
183
  (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
184
+ (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
182
185
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
183
186
  (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "")
184
187
  let headers = this.headers
@@ -186,7 +189,40 @@ export class fhcRecipeApi {
186
189
  xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
187
190
  xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
188
191
  return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
189
- .then(doc => new Kmehrmessage(doc.body as JSON))
192
+ .then(doc => new RecipeKmehrmessageType(doc.body as JSON))
193
+ .catch(err => this.handleError(err))
194
+ }
195
+
196
+ /**
197
+ *
198
+ * @summary getPrescriptionStatus
199
+ * @param xFHCKeystoreId X-FHC-keystoreId
200
+ * @param xFHCTokenId X-FHC-tokenId
201
+ * @param xFHCPassPhrase X-FHC-passPhrase
202
+ * @param hcpNihii hcpNihii
203
+ * @param rid rid
204
+ */
205
+ getPrescriptionStatusUsingGET(
206
+ xFHCKeystoreId: string,
207
+ xFHCTokenId: string,
208
+ xFHCPassPhrase: string,
209
+ hcpNihii: string,
210
+ rid: string
211
+ ): Promise<GetPrescriptionStatusResult> {
212
+ let _body = null
213
+
214
+ const _url =
215
+ this.host +
216
+ `/recipe/${encodeURIComponent(String(rid))}/status` +
217
+ "?ts=" +
218
+ new Date().getTime() +
219
+ (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "")
220
+ let headers = this.headers
221
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
222
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
223
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
224
+ return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
225
+ .then(doc => new GetPrescriptionStatusResult(doc.body as JSON))
190
226
  .catch(err => this.handleError(err))
191
227
  }
192
228
 
@@ -275,49 +311,9 @@ export class fhcRecipeApi {
275
311
  `/recipe/patient` +
276
312
  "?ts=" +
277
313
  new Date().getTime() +
278
- (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
279
314
  (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
280
- (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
281
- (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
282
- (patientId ? "&patientId=" + encodeURIComponent(String(patientId)) : "")
283
- let headers = this.headers
284
- xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
285
- xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
286
- xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
287
- return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
288
- .then(doc => (doc.body as Array<JSON>).map(it => new Prescription(it)))
289
- .catch(err => this.handleError(err))
290
- }
291
-
292
- /**
293
- *
294
- * @summary listOpenPrescriptions
295
- * @param xFHCKeystoreId X-FHC-keystoreId
296
- * @param xFHCTokenId X-FHC-tokenId
297
- * @param hcpQuality hcpQuality
298
- * @param hcpNihii hcpNihii
299
- * @param hcpSsin hcpSsin
300
- * @param hcpName hcpName
301
- * @param xFHCPassPhrase X-FHC-passPhrase
302
- */
303
- listOpenPrescriptionsUsingGET(
304
- xFHCKeystoreId: string,
305
- xFHCTokenId: string,
306
- hcpQuality: string,
307
- hcpNihii: string,
308
- hcpSsin: string,
309
- hcpName: string,
310
- xFHCPassPhrase: string
311
- ): Promise<Array<Prescription>> {
312
- let _body = null
313
-
314
- const _url =
315
- this.host +
316
- `/recipe` +
317
- "?ts=" +
318
- new Date().getTime() +
315
+ (patientId ? "&patientId=" + encodeURIComponent(String(patientId)) : "") +
319
316
  (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
320
- (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
321
317
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
322
318
  (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "")
323
319
  let headers = this.headers
@@ -360,11 +356,11 @@ export class fhcRecipeApi {
360
356
  `/recipe/${encodeURIComponent(String(rid))}` +
361
357
  "?ts=" +
362
358
  new Date().getTime() +
363
- (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
364
359
  (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
360
+ (reason ? "&reason=" + encodeURIComponent(String(reason)) : "") +
361
+ (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
365
362
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
366
- (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
367
- (reason ? "&reason=" + encodeURIComponent(String(reason)) : "")
363
+ (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "")
368
364
  let headers = this.headers
369
365
  xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
370
366
  xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
@@ -425,6 +421,39 @@ export class fhcRecipeApi {
425
421
  .catch(err => this.handleError(err))
426
422
  }
427
423
 
424
+ /**
425
+ *
426
+ * @summary setVision
427
+ * @param xFHCKeystoreId X-FHC-keystoreId
428
+ * @param xFHCTokenId X-FHC-tokenId
429
+ * @param xFHCPassPhrase X-FHC-passPhrase
430
+ * @param rid rid
431
+ * @param vision vision
432
+ */
433
+ setVisionUsingPUT(
434
+ xFHCKeystoreId: string,
435
+ xFHCTokenId: string,
436
+ xFHCPassPhrase: string,
437
+ rid: string,
438
+ vision: string
439
+ ): Promise<PutVisionResult> {
440
+ let _body = null
441
+
442
+ const _url =
443
+ this.host +
444
+ `/recipe/${encodeURIComponent(String(rid))}/vision` +
445
+ "?ts=" +
446
+ new Date().getTime() +
447
+ (vision ? "&vision=" + encodeURIComponent(String(vision)) : "")
448
+ let headers = this.headers
449
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
450
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
451
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
452
+ return XHR.sendCommand("PUT", _url, headers, _body, this.fetchImpl)
453
+ .then(doc => new PutVisionResult(doc.body as JSON))
454
+ .catch(err => this.handleError(err))
455
+ }
456
+
428
457
  /**
429
458
  *
430
459
  * @summary updateFeedbackFlag
@@ -458,8 +487,8 @@ export class fhcRecipeApi {
458
487
  )}` +
459
488
  "?ts=" +
460
489
  new Date().getTime() +
461
- (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
462
490
  (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
491
+ (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
463
492
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
464
493
  (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "")
465
494
  let headers = this.headers
@@ -467,7 +496,7 @@ export class fhcRecipeApi {
467
496
  xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
468
497
  xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
469
498
  return XHR.sendCommand("PUT", _url, headers, _body, this.fetchImpl)
470
- .then(doc => true)
499
+ .then(doc => new UpdateFeedbackFlagResult(doc.body as JSON))
471
500
  .catch(err => this.handleError(err))
472
501
  }
473
502
  }
@@ -0,0 +1,227 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { XHR } from "./XHR"
13
+ import { ConsultCurrentSsinResponse } from "../model/ConsultCurrentSsinResponse"
14
+ import { RnConsultPersonMid } from "../model/RnConsultPersonMid"
15
+ import { RnConsultRegisterPersonResponseDto } from "../model/RnConsultRegisterPersonResponseDto"
16
+ import { RnConsultSearchPersonBySsinResponseDto } from "../model/RnConsultSearchPersonBySsinResponseDto"
17
+ import { RnConsultSearchPersonPhoneticallyResponseDto } from "../model/RnConsultSearchPersonPhoneticallyResponseDto"
18
+ import { VerifyIdResponse } from "../model/VerifyIdResponse"
19
+
20
+ export class fhcRnConsultApi {
21
+ host: string
22
+ headers: Array<XHR.Header>
23
+ fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>
24
+
25
+ constructor(
26
+ host: string,
27
+ headers: any,
28
+ fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>
29
+ ) {
30
+ this.host = host
31
+ this.headers = Object.keys(headers).map(k => new XHR.Header(k, headers[k]))
32
+ this.fetchImpl = fetchImpl
33
+ }
34
+
35
+ setHeaders(h: Array<XHR.Header>) {
36
+ this.headers = h
37
+ }
38
+
39
+ handleError(e: XHR.XHRError): never {
40
+ throw e
41
+ }
42
+
43
+ /**
44
+ *
45
+ * @summary consultCurrentSsin
46
+ * @param xFHCKeystoreId X-FHC-keystoreId
47
+ * @param xFHCTokenId X-FHC-tokenId
48
+ * @param xFHCPassPhrase X-FHC-passPhrase
49
+ * @param ssin ssin
50
+ */
51
+ consultCurrentSsinUsingGET(
52
+ xFHCKeystoreId: string,
53
+ xFHCTokenId: string,
54
+ xFHCPassPhrase: string,
55
+ ssin: string
56
+ ): Promise<ConsultCurrentSsinResponse> {
57
+ let _body = null
58
+
59
+ const _url =
60
+ this.host +
61
+ `/rnconsult/history/${encodeURIComponent(String(ssin))}` +
62
+ "?ts=" +
63
+ new Date().getTime()
64
+ let headers = this.headers
65
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
66
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
67
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
68
+ return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
69
+ .then(doc => new ConsultCurrentSsinResponse(doc.body as JSON))
70
+ .catch(err => this.handleError(err))
71
+ }
72
+
73
+ /**
74
+ *
75
+ * @summary registerPerson
76
+ * @param body mid
77
+ * @param xFHCKeystoreId X-FHC-keystoreId
78
+ * @param xFHCTokenId X-FHC-tokenId
79
+ * @param xFHCPassPhrase X-FHC-passPhrase
80
+ */
81
+ registerPersonUsingPOST1(
82
+ xFHCKeystoreId: string,
83
+ xFHCTokenId: string,
84
+ xFHCPassPhrase: string,
85
+ body?: RnConsultPersonMid
86
+ ): Promise<RnConsultRegisterPersonResponseDto> {
87
+ let _body = null
88
+ _body = body
89
+
90
+ const _url = this.host + `/rnconsult` + "?ts=" + new Date().getTime()
91
+ let headers = this.headers
92
+ headers = headers
93
+ .filter(h => h.header !== "Content-Type")
94
+ .concat(new XHR.Header("Content-Type", "application/json"))
95
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
96
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
97
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
98
+ return XHR.sendCommand("POST", _url, headers, _body, this.fetchImpl)
99
+ .then(doc => new RnConsultRegisterPersonResponseDto(doc.body as JSON))
100
+ .catch(err => this.handleError(err))
101
+ }
102
+
103
+ /**
104
+ *
105
+ * @summary searchPersonBySsin
106
+ * @param xFHCKeystoreId X-FHC-keystoreId
107
+ * @param xFHCTokenId X-FHC-tokenId
108
+ * @param xFHCPassPhrase X-FHC-passPhrase
109
+ * @param ssin ssin
110
+ */
111
+ searchPersonBySsinUsingGET(
112
+ xFHCKeystoreId: string,
113
+ xFHCTokenId: string,
114
+ xFHCPassPhrase: string,
115
+ ssin: string
116
+ ): Promise<RnConsultSearchPersonBySsinResponseDto> {
117
+ let _body = null
118
+
119
+ const _url =
120
+ this.host +
121
+ `/rnconsult/bySsin/${encodeURIComponent(String(ssin))}` +
122
+ "?ts=" +
123
+ new Date().getTime()
124
+ let headers = this.headers
125
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
126
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
127
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
128
+ return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
129
+ .then(doc => new RnConsultSearchPersonBySsinResponseDto(doc.body as JSON))
130
+ .catch(err => this.handleError(err))
131
+ }
132
+
133
+ /**
134
+ *
135
+ * @summary searchPersonPhonetically
136
+ * @param xFHCKeystoreId X-FHC-keystoreId
137
+ * @param xFHCTokenId X-FHC-tokenId
138
+ * @param xFHCPassPhrase X-FHC-passPhrase
139
+ * @param dateOfBirth dateOfBirth
140
+ * @param lastName lastName
141
+ * @param firstName firstName
142
+ * @param middleName middleName
143
+ * @param matchingType matchingType
144
+ * @param gender gender
145
+ * @param countryCode countryCode
146
+ * @param cityCode cityCode
147
+ * @param tolerance tolerance
148
+ * @param limit limit
149
+ */
150
+ searchPersonPhoneticallyUsingGET(
151
+ xFHCKeystoreId: string,
152
+ xFHCTokenId: string,
153
+ xFHCPassPhrase: string,
154
+ dateOfBirth: number,
155
+ lastName: string,
156
+ firstName?: string,
157
+ middleName?: string,
158
+ matchingType?: string,
159
+ gender?: string,
160
+ countryCode?: number,
161
+ cityCode?: string,
162
+ tolerance?: number,
163
+ limit?: number
164
+ ): Promise<RnConsultSearchPersonPhoneticallyResponseDto> {
165
+ let _body = null
166
+
167
+ const _url =
168
+ this.host +
169
+ `/rnconsult/phonetically/${encodeURIComponent(String(dateOfBirth))}/${encodeURIComponent(
170
+ String(lastName)
171
+ )}` +
172
+ "?ts=" +
173
+ new Date().getTime() +
174
+ (firstName ? "&firstName=" + encodeURIComponent(String(firstName)) : "") +
175
+ (middleName ? "&middleName=" + encodeURIComponent(String(middleName)) : "") +
176
+ (matchingType ? "&matchingType=" + encodeURIComponent(String(matchingType)) : "") +
177
+ (gender ? "&gender=" + encodeURIComponent(String(gender)) : "") +
178
+ (countryCode ? "&countryCode=" + encodeURIComponent(String(countryCode)) : "") +
179
+ (cityCode ? "&cityCode=" + encodeURIComponent(String(cityCode)) : "") +
180
+ (tolerance ? "&tolerance=" + encodeURIComponent(String(tolerance)) : "") +
181
+ (limit ? "&limit=" + encodeURIComponent(String(limit)) : "")
182
+ let headers = this.headers
183
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
184
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
185
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
186
+ return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
187
+ .then(doc => new RnConsultSearchPersonPhoneticallyResponseDto(doc.body as JSON))
188
+ .catch(err => this.handleError(err))
189
+ }
190
+
191
+ /**
192
+ *
193
+ * @summary verifyId
194
+ * @param xFHCKeystoreId X-FHC-keystoreId
195
+ * @param xFHCTokenId X-FHC-tokenId
196
+ * @param xFHCPassPhrase X-FHC-passPhrase
197
+ * @param ssin ssin
198
+ * @param cardNumber cardNumber
199
+ * @param barCoded barCoded
200
+ */
201
+ verifyIdUsingGET(
202
+ xFHCKeystoreId: string,
203
+ xFHCTokenId: string,
204
+ xFHCPassPhrase: string,
205
+ ssin?: string,
206
+ cardNumber?: string,
207
+ barCoded?: string
208
+ ): Promise<VerifyIdResponse> {
209
+ let _body = null
210
+
211
+ const _url =
212
+ this.host +
213
+ `/rnconsult/verifyId` +
214
+ "?ts=" +
215
+ new Date().getTime() +
216
+ (ssin ? "&ssin=" + encodeURIComponent(String(ssin)) : "") +
217
+ (cardNumber ? "&cardNumber=" + encodeURIComponent(String(cardNumber)) : "") +
218
+ (barCoded ? "&barCoded=" + encodeURIComponent(String(barCoded)) : "")
219
+ let headers = this.headers
220
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
221
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
222
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
223
+ return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
224
+ .then(doc => new VerifyIdResponse(doc.body as JSON))
225
+ .catch(err => this.handleError(err))
226
+ }
227
+ }
package/api/fhcStsApi.ts CHANGED
@@ -13,6 +13,7 @@ import { XHR } from "./XHR"
13
13
  import { BearerToken } from "../model/BearerToken"
14
14
  import { CertificateInfo } from "../model/CertificateInfo"
15
15
  import { SamlTokenResult } from "../model/SamlTokenResult"
16
+ import { TokenResponse } from "../model/TokenResponse"
16
17
  import { UUIDType } from "../model/UUIDType"
17
18
 
18
19
  export class fhcStsApi {
@@ -122,6 +123,38 @@ export class fhcStsApi {
122
123
  .catch(err => this.handleError(err))
123
124
  }
124
125
 
126
+ /**
127
+ *
128
+ * @summary getOauth2Token
129
+ * @param xFHCTokenId X-FHC-tokenId
130
+ * @param xFHCPassPhrase X-FHC-passPhrase
131
+ * @param xFHCKeystoreId X-FHC-keystoreId
132
+ * @param cbe cbe
133
+ * @param kid kid
134
+ */
135
+ getOauth2TokenUsingGET(
136
+ xFHCTokenId: string,
137
+ xFHCPassPhrase: string,
138
+ xFHCKeystoreId: string,
139
+ cbe: string,
140
+ kid: string
141
+ ): Promise<TokenResponse> {
142
+ let _body = null
143
+
144
+ const _url =
145
+ this.host +
146
+ `/sts/token/oauth2/${encodeURIComponent(String(cbe))}/${encodeURIComponent(String(kid))}` +
147
+ "?ts=" +
148
+ new Date().getTime()
149
+ let headers = this.headers
150
+ xFHCTokenId && (headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)))
151
+ xFHCPassPhrase && (headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)))
152
+ xFHCKeystoreId && (headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)))
153
+ return XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
154
+ .then(doc => new TokenResponse(doc.body as JSON))
155
+ .catch(err => this.handleError(err))
156
+ }
157
+
125
158
  /**
126
159
  *
127
160
  * @summary registerToken