Skip to content

Commit 3129797

Browse files
authored
Merge pull request #191 from icure/fix/missing-api-in-basic-apis
fix: Add missing APIs to BasicApis interface
2 parents e796a0a + 111c96c commit 3129797

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

icc-x-api/index.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,21 @@ export { hexPublicKeysWithSha1Of, hexPublicKeysWithSha256Of, getShaVersionForKey
138138
export { SecretIdUseOption } from './crypto/SecretIdUseOption'
139139

140140
export interface BasicApis {
141+
readonly accessLogApi: IccAccesslogApi
142+
readonly agendaApi: IccAgendaApi
141143
readonly authApi: IccAuthApi
142144
readonly codeApi: IccCodeXApi
143-
readonly userApi: IccUserXApi
144-
readonly permissionApi: IccPermissionApi
145-
readonly insuranceApi: IccInsuranceApi
145+
readonly deviceApi: IccDeviceXApi
146146
readonly entityReferenceApi: IccEntityrefApi
147-
readonly agendaApi: IccAgendaApi
148147
readonly groupApi: IccGroupApi
149148
readonly healthcarePartyApi: IccHcpartyXApi
150-
readonly deviceApi: IccDeviceXApi
149+
readonly icureApi: IccIcureApi
150+
readonly insuranceApi: IccInsuranceApi
151151
readonly patientApi: IccPatientApi
152+
readonly permissionApi: IccPermissionApi
153+
readonly pricingApi: IccTarificationApi
152154
readonly roleApi: IccRoleApi
155+
readonly userApi: IccUserXApi
153156
}
154157
export interface Apis extends BasicApis {
155158
readonly calendarItemTypeApi: IccCalendarItemTypeApi
@@ -915,6 +918,15 @@ class IcureApiImpl implements IcureApi {
915918
this.latestGroupsRequest = Promise.resolve(latestMatches)
916919
}
917920

921+
private _pricingApi: IccTarificationApi | undefined
922+
923+
get pricingApi(): IccTarificationApi {
924+
return (
925+
this._pricingApi ??
926+
(this._pricingApi = new IccTarificationApi(this.host, this.params.headers, this.groupSpecificAuthenticationProvider, this.fetch))
927+
)
928+
}
929+
918930
private _authApi: IccAuthApi | undefined
919931

920932
get recoveryApi(): IccRecoveryXApi {

0 commit comments

Comments
 (0)