@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.
- package/.swagger-codegen/VERSION +1 -1
- package/api/fhcHubApi.ts +16 -4
- package/api/fhcRecipeApi.ts +80 -51
- package/api/fhcRnConsultApi.ts +227 -0
- package/api/fhcStsApi.ts +33 -0
- package/api/fhcVaccinnetApi.ts +198 -0
- package/dist/api/fhcHubApi.d.ts +6 -2
- package/dist/api/fhcHubApi.js +12 -4
- package/dist/api/fhcRecipeApi.d.ts +25 -15
- package/dist/api/fhcRecipeApi.js +61 -39
- package/dist/api/fhcRnConsultApi.d.ts +82 -0
- package/dist/api/fhcRnConsultApi.js +167 -0
- package/dist/api/fhcStsApi.d.ts +11 -0
- package/dist/api/fhcStsApi.js +24 -0
- package/dist/api/fhcVaccinnetApi.d.ts +69 -0
- package/dist/api/fhcVaccinnetApi.js +146 -0
- package/dist/fhcApi.d.ts +2 -0
- package/dist/fhcApi.js +2 -0
- package/dist/model/ActType.d.ts +16 -0
- package/dist/model/ActType.js +20 -0
- package/dist/model/AddVaccinationsResponseType.d.ts +19 -0
- package/dist/model/AddVaccinationsResponseType.js +9 -0
- package/dist/model/Address.d.ts +9 -5
- package/dist/model/Address.js +5 -1
- package/dist/model/AddressBaseType.d.ts +23 -0
- package/dist/model/AddressBaseType.js +9 -0
- package/dist/model/AddressCbssBaseType.d.ts +16 -0
- package/dist/model/AddressCbssBaseType.js +9 -0
- package/dist/model/AddressDeclarationType.d.ts +16 -0
- package/dist/model/AddressDeclarationType.js +9 -0
- package/dist/model/AdministratorBaseType.d.ts +19 -0
- package/dist/model/AdministratorBaseType.js +9 -0
- package/dist/model/AnomaliesType.d.ts +15 -0
- package/dist/model/AnomaliesType.js +20 -0
- package/dist/model/Appendix.d.ts +2 -2
- package/dist/model/Base64EncodedKmehr.d.ts +15 -0
- package/dist/model/Base64EncodedKmehr.js +21 -0
- package/dist/model/BestIdentifierType.d.ts +17 -0
- package/dist/model/BestIdentifierType.js +20 -0
- package/dist/model/BirthInfoBaseType.d.ts +19 -0
- package/dist/model/BirthInfoBaseType.js +9 -0
- package/dist/model/BirthInfoDeclarationType.d.ts +17 -0
- package/dist/model/BirthInfoDeclarationType.js +9 -0
- package/dist/model/BirthPlace.d.ts +3 -1
- package/dist/model/CDHEADING.d.ts +5 -5
- package/dist/model/CDITEM.d.ts +30 -30
- package/dist/model/CbssPersonRequestType.d.ts +30 -0
- package/dist/model/CbssPersonRequestType.js +9 -0
- package/dist/model/CbssPersonResponseType.d.ts +35 -0
- package/dist/model/CbssPersonResponseType.js +9 -0
- package/dist/model/CivilStateInfoBaseType.d.ts +26 -0
- package/dist/model/CivilStateInfoBaseType.js +9 -0
- package/dist/model/CivilStateInfoDeclarationType.d.ts +20 -0
- package/dist/model/CivilStateInfoDeclarationType.js +9 -0
- package/dist/model/CivilStatesBaseType.d.ts +16 -0
- package/dist/model/CivilStatesBaseType.js +9 -0
- package/dist/model/CivilStatesDeclarationType.d.ts +16 -0
- package/dist/model/CivilStatesDeclarationType.js +9 -0
- package/dist/model/ContactAddress.d.ts +22 -0
- package/dist/model/ContactAddress.js +20 -0
- package/dist/model/ContactAddressBaseType.d.ts +34 -0
- package/dist/model/ContactAddressBaseType.js +9 -0
- package/dist/model/ContactAddressDeclarationType.d.ts +28 -0
- package/dist/model/ContactAddressDeclarationType.js +9 -0
- package/dist/model/DeceaseInfoBaseType.d.ts +17 -0
- package/dist/model/DeceaseInfoBaseType.js +9 -0
- package/dist/model/DeceaseInfoDeclarationType.d.ts +17 -0
- package/dist/model/DeceaseInfoDeclarationType.js +9 -0
- package/dist/model/DiplomaticPostType.d.ts +6 -5
- package/dist/model/Exception.d.ts +21 -0
- package/dist/model/Exception.js +9 -0
- package/dist/model/ExistingPersons.d.ts +15 -0
- package/dist/model/ExistingPersons.js +20 -0
- package/dist/model/FacetDto.d.ts +1 -1
- package/dist/model/ForeignAddressDeclarationType.d.ts +24 -0
- package/dist/model/ForeignAddressDeclarationType.js +9 -0
- package/dist/model/GenderInfoBaseType.d.ts +16 -0
- package/dist/model/GenderInfoBaseType.js +20 -0
- package/dist/model/GenderInfoDeclarationType.d.ts +16 -0
- package/dist/model/GenderInfoDeclarationType.js +20 -0
- package/dist/model/GetPrescriptionStatusResult.d.ts +30 -0
- package/dist/model/GetPrescriptionStatusResult.js +19 -0
- package/dist/model/GetVaccinationsResponseType.d.ts +19 -0
- package/dist/model/GetVaccinationsResponseType.js +9 -0
- package/dist/model/GivenNameType.d.ts +16 -0
- package/dist/model/GivenNameType.js +20 -0
- package/dist/model/Id.d.ts +16 -0
- package/dist/model/Id.js +20 -0
- package/dist/model/InvoiceItem.d.ts +1 -0
- package/dist/model/JudgmentType.d.ts +17 -0
- package/dist/model/JudgmentType.js +9 -0
- package/dist/model/Kmehrmessage.d.ts +12 -4
- package/dist/model/LegalCohabitationBaseType.d.ts +19 -0
- package/dist/model/LegalCohabitationBaseType.js +9 -0
- package/dist/model/LegalCohabitationRegistrationType.d.ts +19 -0
- package/dist/model/LegalCohabitationRegistrationType.js +9 -0
- package/dist/model/LocalizedDescriptionType.d.ts +16 -0
- package/dist/model/LocalizedDescriptionType.js +20 -0
- package/dist/model/LocationDeclarationType.d.ts +20 -0
- package/dist/model/LocationDeclarationType.js +9 -0
- package/dist/model/LocationType.d.ts +20 -0
- package/dist/model/LocationType.js +9 -0
- package/dist/model/MinimalAddressType.d.ts +23 -0
- package/dist/model/MinimalAddressType.js +9 -0
- package/dist/model/MinimalAdministratorType.d.ts +19 -0
- package/dist/model/MinimalAdministratorType.js +9 -0
- package/dist/model/MinimalBirthInfoType.d.ts +15 -0
- package/dist/model/MinimalBirthInfoType.js +20 -0
- package/dist/model/MinimalGenderInfoType.d.ts +16 -0
- package/dist/model/MinimalGenderInfoType.js +20 -0
- package/dist/model/MinimalNameInfoType.d.ts +18 -0
- package/dist/model/MinimalNameInfoType.js +9 -0
- package/dist/model/MycarenetConversation.d.ts +1 -0
- package/dist/model/NameInfoBaseType.d.ts +18 -0
- package/dist/model/NameInfoBaseType.js +9 -0
- package/dist/model/NameInfoDeclarationType.d.ts +18 -0
- package/dist/model/NameInfoDeclarationType.js +9 -0
- package/dist/model/NationalitiesBaseType.d.ts +16 -0
- package/dist/model/NationalitiesBaseType.js +9 -0
- package/dist/model/NationalitiesDeclarationType.d.ts +16 -0
- package/dist/model/NationalitiesDeclarationType.js +9 -0
- package/dist/model/NationalityInfoBaseType.d.ts +17 -0
- package/dist/model/NationalityInfoBaseType.js +20 -0
- package/dist/model/NobilityTitleBaseType.d.ts +17 -0
- package/dist/model/NobilityTitleBaseType.js +20 -0
- package/dist/model/PartnerType.d.ts +3 -4
- package/dist/model/Patient.d.ts +6 -2
- package/dist/model/Patient.js +6 -2
- package/dist/model/PersonIdentificationType.d.ts +31 -0
- package/dist/model/PersonIdentificationType.js +9 -0
- package/dist/model/PersonIdentificationsResponseType.d.ts +16 -0
- package/dist/model/PersonIdentificationsResponseType.js +9 -0
- package/dist/model/PersonResponseResultsType.d.ts +16 -0
- package/dist/model/PersonResponseResultsType.js +9 -0
- package/dist/model/PlainAddressOptionalInceptionDateType.d.ts +20 -0
- package/dist/model/PlainAddressOptionalInceptionDateType.js +9 -0
- package/dist/model/PlainAddressType.d.ts +20 -0
- package/dist/model/PlainAddressType.js +9 -0
- package/dist/model/Posology.d.ts +6 -0
- package/dist/model/Prescription.d.ts +1 -0
- package/dist/model/PrescriptionFullWithFeedback.d.ts +1 -0
- package/dist/model/PutVisionResult.d.ts +17 -0
- package/dist/model/PutVisionResult.js +9 -0
- package/dist/model/RecipeCDHEADING.d.ts +5 -5
- package/dist/model/RecipeCDITEM.d.ts +30 -30
- package/dist/model/RecipeKmehrmessageType.d.ts +18 -0
- package/dist/model/RecipeKmehrmessageType.js +9 -0
- package/dist/model/RecipePosology.d.ts +16 -0
- package/dist/model/RecipePosology.js +9 -0
- package/dist/model/RecipeRegimen.d.ts +15 -0
- package/dist/model/RecipeRegimen.js +20 -0
- package/dist/model/RecipeitemType.d.ts +4 -4
- package/dist/model/RegisterPersonDeclarationType.d.ts +16 -0
- package/dist/model/RegisterPersonDeclarationType.js +9 -0
- package/dist/model/RegisterPersonResultType.d.ts +18 -0
- package/dist/model/RegisterPersonResultType.js +9 -0
- package/dist/model/RegistrationBailiffType.d.ts +17 -0
- package/dist/model/RegistrationBailiffType.js +9 -0
- package/dist/model/RemoveVaccinationResponseType.d.ts +18 -0
- package/dist/model/RemoveVaccinationResponseType.js +9 -0
- package/dist/model/ResidentialAddress.d.ts +22 -0
- package/dist/model/ResidentialAddress.js +20 -0
- package/dist/model/ResidentialAddressOptionalInceptionDateType.d.ts +32 -0
- package/dist/model/ResidentialAddressOptionalInceptionDateType.js +9 -0
- package/dist/model/ResidentialAddressType.d.ts +32 -0
- package/dist/model/ResidentialAddressType.js +9 -0
- package/dist/model/Results.d.ts +20 -0
- package/dist/model/Results.js +9 -0
- package/dist/model/RnConsultConversationDto.d.ts +16 -0
- package/dist/model/RnConsultConversationDto.js +20 -0
- package/dist/model/RnConsultDeceaseType.d.ts +18 -0
- package/dist/model/RnConsultDeceaseType.js +9 -0
- package/dist/model/RnConsultNameType.d.ts +17 -0
- package/dist/model/RnConsultNameType.js +20 -0
- package/dist/model/RnConsultPersonDto.d.ts +43 -0
- package/dist/model/RnConsultPersonDto.js +9 -0
- package/dist/model/RnConsultPersonMid.d.ts +27 -0
- package/dist/model/RnConsultPersonMid.js +9 -0
- package/dist/model/RnConsultRegisterPersonResponseDto.d.ts +27 -0
- package/dist/model/RnConsultRegisterPersonResponseDto.js +9 -0
- package/dist/model/RnConsultSearchByNissResultDto.d.ts +16 -0
- package/dist/model/RnConsultSearchByNissResultDto.js +9 -0
- package/dist/model/RnConsultSearchPersonBySsinResponseDto.d.ts +27 -0
- package/dist/model/RnConsultSearchPersonBySsinResponseDto.js +9 -0
- package/dist/model/RnConsultSearchPersonPhoneticallyResponseDto.d.ts +25 -0
- package/dist/model/RnConsultSearchPersonPhoneticallyResponseDto.js +9 -0
- package/dist/model/SpecialNotionType.d.ts +16 -0
- package/dist/model/SpecialNotionType.js +20 -0
- package/dist/model/SsinWithCanceledAndReplacesStatusType.d.ts +17 -0
- package/dist/model/SsinWithCanceledAndReplacesStatusType.js +20 -0
- package/dist/model/StackTraceElement.d.ts +19 -0
- package/dist/model/StackTraceElement.js +20 -0
- package/dist/model/StatusType.d.ts +20 -0
- package/dist/model/StatusType.js +9 -0
- package/dist/model/SubregisterBaseType.d.ts +18 -0
- package/dist/model/SubregisterBaseType.js +9 -0
- package/dist/model/Throwable.d.ts +20 -0
- package/dist/model/Throwable.js +9 -0
- package/dist/model/TokenResponse.d.ts +14 -0
- package/dist/model/TokenResponse.js +20 -0
- package/dist/model/TranscriptionType.d.ts +17 -0
- package/dist/model/TranscriptionType.js +9 -0
- package/dist/model/UpdateFeedbackFlagResult.d.ts +17 -0
- package/dist/model/UpdateFeedbackFlagResult.js +9 -0
- package/dist/model/VaccinationId.d.ts +16 -0
- package/dist/model/VaccinationId.js +20 -0
- package/dist/model/VaccinationStatusType.d.ts +16 -0
- package/dist/model/VaccinationStatusType.js +20 -0
- package/dist/model/VaccineInjection.d.ts +18 -0
- package/dist/model/VaccineInjection.js +20 -0
- package/dist/model/ValidationInfoType.d.ts +17 -0
- package/dist/model/ValidationInfoType.js +20 -0
- package/dist/model/ValidationResult.d.ts +20 -0
- package/dist/model/ValidationResult.js +9 -0
- package/dist/model/VerifyIdResponse.d.ts +21 -0
- package/dist/model/VerifyIdResponse.js +9 -0
- package/dist/model/models.d.ts +89 -0
- package/dist/model/models.js +89 -0
- package/fhcApi.ts +2 -0
- package/model/ActType.ts +22 -0
- package/model/AddVaccinationsResponseType.ts +25 -0
- package/model/Address.ts +13 -5
- package/model/AddressBaseType.ts +29 -0
- package/model/AddressCbssBaseType.ts +22 -0
- package/model/AddressDeclarationType.ts +22 -0
- package/model/AdministratorBaseType.ts +25 -0
- package/model/AnomaliesType.ts +21 -0
- package/model/Appendix.ts +2 -2
- package/model/Base64EncodedKmehr.ts +25 -0
- package/model/BestIdentifierType.ts +23 -0
- package/model/BirthInfoBaseType.ts +25 -0
- package/model/BirthInfoDeclarationType.ts +23 -0
- package/model/BirthPlace.ts +3 -1
- package/model/CbssPersonRequestType.ts +36 -0
- package/model/CbssPersonResponseType.ts +41 -0
- package/model/CivilStateInfoBaseType.ts +32 -0
- package/model/CivilStateInfoDeclarationType.ts +26 -0
- package/model/CivilStatesBaseType.ts +22 -0
- package/model/CivilStatesDeclarationType.ts +22 -0
- package/model/ContactAddress.ts +28 -0
- package/model/ContactAddressBaseType.ts +40 -0
- package/model/ContactAddressDeclarationType.ts +34 -0
- package/model/DeceaseInfoBaseType.ts +23 -0
- package/model/DeceaseInfoDeclarationType.ts +23 -0
- package/model/DiplomaticPostType.ts +6 -5
- package/model/Exception.ts +27 -0
- package/model/ExistingPersons.ts +21 -0
- package/model/FacetDto.ts +1 -1
- package/model/ForeignAddressDeclarationType.ts +30 -0
- package/model/GenderInfoBaseType.ts +22 -0
- package/model/GenderInfoDeclarationType.ts +22 -0
- package/model/GetPrescriptionStatusResult.ts +42 -0
- package/model/GetVaccinationsResponseType.ts +25 -0
- package/model/GivenNameType.ts +22 -0
- package/model/Id.ts +22 -0
- package/model/InvoiceItem.ts +1 -0
- package/model/JudgmentType.ts +23 -0
- package/model/Kmehrmessage.ts +12 -4
- package/model/LegalCohabitationBaseType.ts +25 -0
- package/model/LegalCohabitationRegistrationType.ts +25 -0
- package/model/LocalizedDescriptionType.ts +22 -0
- package/model/LocationDeclarationType.ts +26 -0
- package/model/LocationType.ts +26 -0
- package/model/MinimalAddressType.ts +29 -0
- package/model/MinimalAdministratorType.ts +25 -0
- package/model/MinimalBirthInfoType.ts +21 -0
- package/model/MinimalGenderInfoType.ts +22 -0
- package/model/MinimalNameInfoType.ts +24 -0
- package/model/MycarenetConversation.ts +1 -0
- package/model/NameInfoBaseType.ts +24 -0
- package/model/NameInfoDeclarationType.ts +24 -0
- package/model/NationalitiesBaseType.ts +22 -0
- package/model/NationalitiesDeclarationType.ts +22 -0
- package/model/NationalityInfoBaseType.ts +23 -0
- package/model/NobilityTitleBaseType.ts +23 -0
- package/model/PartnerType.ts +3 -4
- package/model/Patient.ts +11 -3
- package/model/PersonIdentificationType.ts +37 -0
- package/model/PersonIdentificationsResponseType.ts +22 -0
- package/model/PersonResponseResultsType.ts +22 -0
- package/model/PlainAddressOptionalInceptionDateType.ts +26 -0
- package/model/PlainAddressType.ts +26 -0
- package/model/Posology.ts +6 -0
- package/model/Prescription.ts +1 -0
- package/model/PrescriptionFullWithFeedback.ts +1 -0
- package/model/PutVisionResult.ts +23 -0
- package/model/RecipeKmehrmessageType.ts +24 -0
- package/model/RecipePosology.ts +22 -0
- package/model/RecipeRegimen.ts +21 -0
- package/model/RecipeitemType.ts +4 -4
- package/model/RegisterPersonDeclarationType.ts +22 -0
- package/model/RegisterPersonResultType.ts +24 -0
- package/model/RegistrationBailiffType.ts +23 -0
- package/model/RemoveVaccinationResponseType.ts +24 -0
- package/model/ResidentialAddress.ts +28 -0
- package/model/ResidentialAddressOptionalInceptionDateType.ts +38 -0
- package/model/ResidentialAddressType.ts +38 -0
- package/model/Results.ts +26 -0
- package/model/RnConsultConversationDto.ts +22 -0
- package/model/RnConsultDeceaseType.ts +24 -0
- package/model/RnConsultNameType.ts +23 -0
- package/model/RnConsultPersonDto.ts +49 -0
- package/model/RnConsultPersonMid.ts +33 -0
- package/model/RnConsultRegisterPersonResponseDto.ts +33 -0
- package/model/RnConsultSearchByNissResultDto.ts +22 -0
- package/model/RnConsultSearchPersonBySsinResponseDto.ts +33 -0
- package/model/RnConsultSearchPersonPhoneticallyResponseDto.ts +31 -0
- package/model/SpecialNotionType.ts +22 -0
- package/model/SsinWithCanceledAndReplacesStatusType.ts +23 -0
- package/model/StackTraceElement.ts +25 -0
- package/model/StatusType.ts +26 -0
- package/model/SubregisterBaseType.ts +24 -0
- package/model/Throwable.ts +26 -0
- package/model/TokenResponse.ts +19 -0
- package/model/TranscriptionType.ts +23 -0
- package/model/UpdateFeedbackFlagResult.ts +23 -0
- package/model/VaccinationId.ts +22 -0
- package/model/VaccinationStatusType.ts +22 -0
- package/model/VaccineInjection.ts +24 -0
- package/model/ValidationInfoType.ts +23 -0
- package/model/ValidationResult.ts +26 -0
- package/model/VerifyIdResponse.ts +27 -0
- package/model/models.ts +89 -0
- package/package.json +1 -1
package/.swagger-codegen/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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)))
|
package/api/fhcRecipeApi.ts
CHANGED
|
@@ -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 {
|
|
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<
|
|
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
|
|
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
|
-
(
|
|
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 =>
|
|
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
|