@icure/api 7.0.0-beta.2 → 7.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icc-api/api/IccAccesslogApi.js +2 -1
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccAgendaApi.js +2 -1
- package/icc-api/api/IccAgendaApi.js.map +1 -1
- package/icc-api/api/IccAnonymousAccessApi.js +2 -1
- package/icc-api/api/IccAnonymousAccessApi.js.map +1 -1
- package/icc-api/api/IccApplicationsettingsApi.js +2 -1
- package/icc-api/api/IccApplicationsettingsApi.js.map +1 -1
- package/icc-api/api/IccArticleApi.js +2 -1
- package/icc-api/api/IccArticleApi.js.map +1 -1
- package/icc-api/api/IccAuthApi.d.ts +23 -0
- package/icc-api/api/IccAuthApi.js +59 -2
- package/icc-api/api/IccAuthApi.js.map +1 -1
- package/icc-api/api/IccBeefactApi.js +2 -1
- package/icc-api/api/IccBeefactApi.js.map +1 -1
- package/icc-api/api/IccBekmehrApi.js +2 -1
- package/icc-api/api/IccBekmehrApi.js.map +1 -1
- package/icc-api/api/IccBeresultexportApi.js +2 -1
- package/icc-api/api/IccBeresultexportApi.js.map +1 -1
- package/icc-api/api/IccBeresultimportApi.js +2 -1
- package/icc-api/api/IccBeresultimportApi.js.map +1 -1
- package/icc-api/api/IccBesamv2Api.d.ts +6 -0
- package/icc-api/api/IccBesamv2Api.js +15 -1
- package/icc-api/api/IccBesamv2Api.js.map +1 -1
- package/icc-api/api/IccCalendarItemApi.js +2 -1
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemTypeApi.js +2 -1
- package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
- package/icc-api/api/IccClassificationApi.js +2 -1
- package/icc-api/api/IccClassificationApi.js.map +1 -1
- package/icc-api/api/IccClassificationTemplateApi.js +2 -1
- package/icc-api/api/IccClassificationTemplateApi.js.map +1 -1
- package/icc-api/api/IccCodeApi.js +2 -1
- package/icc-api/api/IccCodeApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +6 -0
- package/icc-api/api/IccContactApi.js +26 -1
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDataownerApi.d.ts +13 -2
- package/icc-api/api/IccDataownerApi.js +32 -5
- package/icc-api/api/IccDataownerApi.js.map +1 -1
- package/icc-api/api/IccDeviceApi.js +2 -1
- package/icc-api/api/IccDeviceApi.js.map +1 -1
- package/icc-api/api/IccDoctemplateApi.js +2 -1
- package/icc-api/api/IccDoctemplateApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.js +2 -1
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccDocumentTemplateApi.js +2 -1
- package/icc-api/api/IccDocumentTemplateApi.js.map +1 -1
- package/icc-api/api/IccEntityrefApi.js +2 -1
- package/icc-api/api/IccEntityrefApi.js.map +1 -1
- package/icc-api/api/IccEntitytemplateApi.js +2 -1
- package/icc-api/api/IccEntitytemplateApi.js.map +1 -1
- package/icc-api/api/IccFormApi.js +2 -1
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccFrontendmigrationApi.js +2 -1
- package/icc-api/api/IccFrontendmigrationApi.js.map +1 -1
- package/icc-api/api/IccGroupApi.d.ts +6 -0
- package/icc-api/api/IccGroupApi.js +15 -1
- package/icc-api/api/IccGroupApi.js.map +1 -1
- package/icc-api/api/IccHcpartyApi.js +2 -1
- package/icc-api/api/IccHcpartyApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.js +2 -1
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccIcureApi.js +2 -1
- package/icc-api/api/IccIcureApi.js.map +1 -1
- package/icc-api/api/IccInsuranceApi.js +2 -1
- package/icc-api/api/IccInsuranceApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.js +2 -1
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccKeywordApi.js +2 -1
- package/icc-api/api/IccKeywordApi.js.map +1 -1
- package/icc-api/api/IccMaintenanceTaskApi.js +2 -1
- package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
- package/icc-api/api/IccMedexApi.js +2 -1
- package/icc-api/api/IccMedexApi.js.map +1 -1
- package/icc-api/api/IccMedicallocationApi.js +2 -1
- package/icc-api/api/IccMedicallocationApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.js +2 -1
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.js +2 -1
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccPermissionApi.js +2 -1
- package/icc-api/api/IccPermissionApi.js.map +1 -1
- package/icc-api/api/IccPlaceApi.js +2 -1
- package/icc-api/api/IccPlaceApi.js.map +1 -1
- package/icc-api/api/IccPubsubApi.js +2 -1
- package/icc-api/api/IccPubsubApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.js +2 -1
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccReplicationApi.js +2 -1
- package/icc-api/api/IccReplicationApi.js.map +1 -1
- package/icc-api/api/IccRestApiPath.d.ts +1 -0
- package/icc-api/api/IccRestApiPath.js +10 -0
- package/icc-api/api/IccRestApiPath.js.map +1 -0
- package/icc-api/api/IccTarificationApi.js +2 -1
- package/icc-api/api/IccTarificationApi.js.map +1 -1
- package/icc-api/api/IccTimeTableApi.js +2 -1
- package/icc-api/api/IccTimeTableApi.js.map +1 -1
- package/icc-api/api/IccTmpApi.js +2 -1
- package/icc-api/api/IccTmpApi.js.map +1 -1
- package/icc-api/api/IccUserApi.js +2 -1
- package/icc-api/api/IccUserApi.js.map +1 -1
- package/icc-api/index.d.ts +0 -1
- package/icc-api/index.js +0 -1
- package/icc-api/index.js.map +1 -1
- package/icc-api/model/AuthenticationToken.d.ts +1 -0
- package/icc-api/model/AuthenticationToken.js.map +1 -1
- package/icc-api/model/CryptoActorStub.d.ts +55 -0
- package/icc-api/model/CryptoActorStub.js +35 -0
- package/icc-api/model/CryptoActorStub.js.map +1 -0
- package/icc-api/model/DataOwnerTypeEnum.d.ts +8 -0
- package/icc-api/model/DataOwnerTypeEnum.js +13 -0
- package/icc-api/model/DataOwnerTypeEnum.js.map +1 -0
- package/icc-api/model/DataOwnerWithType.d.ts +16 -3
- package/icc-api/model/DataOwnerWithType.js +22 -7
- package/icc-api/model/DataOwnerWithType.js.map +1 -1
- package/icc-api/model/Device.d.ts +4 -0
- package/icc-api/model/Device.js.map +1 -1
- package/icc-api/model/FlatRateTarification.d.ts +4 -1
- package/icc-api/model/FlatRateTarification.js +3 -0
- package/icc-api/model/FlatRateTarification.js.map +1 -1
- package/icc-api/model/HealthcareParty.d.ts +4 -0
- package/icc-api/model/HealthcareParty.js.map +1 -1
- package/icc-api/model/Patient.d.ts +4 -0
- package/icc-api/model/Patient.js.map +1 -1
- package/icc-api/model/UserGroup.d.ts +1 -0
- package/icc-api/model/UserGroup.js.map +1 -1
- package/icc-x-api/auth/AuthenticationProvider.d.ts +67 -6
- package/icc-x-api/auth/AuthenticationProvider.js +100 -7
- package/icc-x-api/auth/AuthenticationProvider.js.map +1 -1
- package/icc-x-api/auth/EnsembleAuthService.d.ts +7 -2
- package/icc-x-api/auth/EnsembleAuthService.js +9 -0
- package/icc-x-api/auth/EnsembleAuthService.js.map +1 -1
- package/icc-x-api/auth/JwtAuthService.d.ts +10 -5
- package/icc-x-api/auth/JwtAuthService.js +22 -26
- package/icc-x-api/auth/JwtAuthService.js.map +1 -1
- package/icc-x-api/auth/JwtBridgedAuthService.d.ts +27 -0
- package/icc-x-api/auth/JwtBridgedAuthService.js +131 -0
- package/icc-x-api/auth/JwtBridgedAuthService.js.map +1 -0
- package/icc-x-api/crypto/AES.js +9 -1
- package/icc-x-api/crypto/AES.js.map +1 -1
- package/icc-x-api/crypto/BaseExchangeKeysManager.d.ts +4 -2
- package/icc-x-api/crypto/BaseExchangeKeysManager.js +32 -31
- package/icc-x-api/crypto/BaseExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/CryptoStrategies.d.ts +5 -4
- package/icc-x-api/crypto/CryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/EntitiesEncryption.d.ts +3 -3
- package/icc-x-api/crypto/EntitiesEncryption.js +9 -7
- package/icc-x-api/crypto/EntitiesEncryption.js.map +1 -1
- package/icc-x-api/crypto/ExchangeKeysManager.d.ts +3 -2
- package/icc-x-api/crypto/ExchangeKeysManager.js +3 -3
- package/icc-x-api/crypto/ExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/KeyManager.js +4 -4
- package/icc-x-api/crypto/KeyManager.js.map +1 -1
- package/icc-x-api/crypto/KeyRecovery.d.ts +2 -1
- package/icc-x-api/crypto/KeyRecovery.js.map +1 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.d.ts +5 -4
- package/icc-x-api/crypto/LegacyCryptoStrategies.js +1 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/ShamirKeysManager.d.ts +4 -3
- package/icc-x-api/crypto/ShamirKeysManager.js +8 -7
- package/icc-x-api/crypto/ShamirKeysManager.js.map +1 -1
- package/icc-x-api/crypto/TransferKeysManager.d.ts +3 -2
- package/icc-x-api/crypto/TransferKeysManager.js +6 -6
- package/icc-x-api/crypto/TransferKeysManager.js.map +1 -1
- package/icc-x-api/crypto/utils.d.ts +7 -6
- package/icc-x-api/crypto/utils.js +4 -7
- package/icc-x-api/crypto/utils.js.map +1 -1
- package/icc-x-api/filters/ServiceByHcPartyTagCodeDateFilter.d.ts +1 -0
- package/icc-x-api/filters/ServiceByHcPartyTagCodeDateFilter.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +2 -2
- package/icc-x-api/icc-accesslog-x-api.js +9 -4
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.js +11 -3
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-classification-x-api.js +7 -2
- package/icc-x-api/icc-classification-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +1 -0
- package/icc-x-api/icc-contact-x-api.js +16 -4
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-crypto-x-api.d.ts +6 -6
- package/icc-x-api/icc-crypto-x-api.js +4 -4
- package/icc-x-api/icc-crypto-x-api.js.map +1 -1
- package/icc-x-api/icc-data-owner-x-api.d.ts +21 -52
- package/icc-x-api/icc-data-owner-x-api.js +36 -68
- package/icc-x-api/icc-data-owner-x-api.js.map +1 -1
- package/icc-x-api/icc-document-x-api.js +7 -2
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.js +7 -2
- package/icc-x-api/icc-form-x-api.js.map +1 -1
- package/icc-x-api/icc-helement-x-api.js +7 -2
- package/icc-x-api/icc-helement-x-api.js.map +1 -1
- package/icc-x-api/icc-icure-maintenance-x-api.js +8 -8
- package/icc-x-api/icc-icure-maintenance-x-api.js.map +1 -1
- package/icc-x-api/icc-invoice-x-api.js +7 -2
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-maintenance-task-x-api.js +6 -1
- package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.js +7 -2
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +4 -1
- package/icc-x-api/icc-patient-x-api.js +8 -7
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-receipt-x-api.js +6 -1
- package/icc-x-api/icc-receipt-x-api.js.map +1 -1
- package/icc-x-api/icc-time-table-x-api.js +6 -1
- package/icc-x-api/icc-time-table-x-api.js.map +1 -1
- package/icc-x-api/index.d.ts +178 -35
- package/icc-x-api/index.js +305 -81
- package/icc-x-api/index.js.map +1 -1
- package/icc-x-api/maintenance/KeyPairUpdateRequest.d.ts +12 -9
- package/icc-x-api/maintenance/KeyPairUpdateRequest.js +11 -17
- package/icc-x-api/maintenance/KeyPairUpdateRequest.js.map +1 -1
- package/package.json +1 -1
- package/icc-api/api/IccBemikronoApi.d.ts +0 -81
- package/icc-api/api/IccBemikronoApi.js +0 -162
- package/icc-api/api/IccBemikronoApi.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icc-time-table-x-api.js","sourceRoot":"","sources":["../../icc-x-api/icc-time-table-x-api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA2C;AAE3C,4BAA2B;AAC3B,wCAA4C;AAK5C,kDAAiD;AACjD,0EAAgG;AAIhG,MAAa,gBAAiB,SAAQ,yBAAe;IAKnD,YACE,IAAY,EACZ,OAAkC,EAClC,MAAqB,EACrB,YAA8B,EAC9B,yBAAiD,IAAI,iDAAwB,EAAE,EAC/E,YAA2E,OAAO,MAAM,KAAK,WAAW;QACtG,CAAC,CAAC,MAAM,CAAC,KAAK;QACd,CAAC,CAAC,OAAO,IAAI,KAAK,WAAW;YAC7B,CAAC,CAAC,IAAI,CAAC,KAAK;YACZ,CAAC,CAAC,KAAK;QAET,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,sBAAsB,EAAE,SAAS,CAAC,CAAA;QAhBzD,SAAI,GAAQ,IAAI,CAAA;QAiBd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IAClC,CAAC;IAED;;;;;;;;;;;OAWG;IACG,WAAW,CACf,IAAU,EACV,EAAa,EACb,UAEI,EAAE;;;YAEN,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CACxB;gBACE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE;gBACvC,KAAK,EAAE,qCAAqC;gBAC5C,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;gBAC7B,QAAQ,EAA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TimeTableApi } from '../icc-api'\nimport { User } from '../icc-api/model/User'\nimport { TimeTable } from '../icc-api/model/TimeTable'\nimport { IccCryptoXApi } from './icc-crypto-x-api'\nimport { IccDataOwnerXApi } from './icc-data-owner-x-api'\nimport * as models from '../icc-api/model/models'\nimport { AuthenticationProvider, NoAuthenticationProvider } from './auth/AuthenticationProvider'\nimport { ShareMetadataBehaviour } from './crypto/ShareMetadataBehaviour'\nimport { EncryptedEntityXApi } from './basexapi/EncryptedEntityXApi'\n\nexport class IccTimeTableXApi extends IccTimeTableApi implements EncryptedEntityXApi<TimeTable> {\n i18n: any = i18n\n crypto: IccCryptoXApi\n dataOwnerApi: IccDataOwnerXApi\n\n constructor(\n host: string,\n headers: { [key: string]: string },\n crypto: IccCryptoXApi,\n dataOwnerApi: IccDataOwnerXApi,\n authenticationProvider: AuthenticationProvider = new NoAuthenticationProvider(),\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch\n ) {\n super(host, headers, authenticationProvider, fetchImpl)\n this.crypto = crypto\n this.dataOwnerApi = dataOwnerApi\n }\n\n /**\n * Creates a new instance of timetable with initialised encryption metadata (not in the database).\n * @param user the current user.\n * @param tt initialised data for the timetable. Metadata such as id, creation data, etc. will be automatically initialised, but you can specify\n * other kinds of data or overwrite generated metadata with this. You can't specify encryption metadata.\n * @param options optional parameters:\n * - additionalDelegates: delegates which will have access to the entity in addition to the current data owner and delegates from the\n * auto-delegations. Must be an object which associates each data owner id with the access level to give to that data owner. May overlap with\n * auto-delegations, in such case the access level specified here will be used. Currently only WRITE access is supported, but in future also read\n * access will be possible.\n * @return a new instance of timetable.\n */\n async newInstance(\n user: User,\n tt: TimeTable,\n options: {\n additionalDelegates?: { [dataOwnerId: string]: 'WRITE' }\n } = {}\n ) {\n const timeTable = _.extend(\n {\n id: this.crypto.primitives.randomUuid(),\n _type: 'org.taktik.icure.entities.TimeTable',\n created: new Date().getTime(),\n modified: new Date().getTime(),\n responsible: this.dataOwnerApi.getDataOwnerIdOf(user),\n author: user.id,\n codes: [],\n tags: [],\n },\n tt || {}\n )\n\n const extraDelegations = [\n ...Object.keys(options.additionalDelegates ?? {}),\n ...(user.autoDelegations?.all ?? []),\n ...(user.autoDelegations?.administrativeData ?? []),\n ]\n return new models.TimeTable(\n await this.crypto.entities\n .entityWithInitialisedEncryptedMetadata(timeTable, undefined, undefined, true, extraDelegations)\n .then((x) => x.updatedEntity)\n )\n }\n\n /**\n * Share an existing time table with other data owners, allowing them to access the non-encrypted data of the time table and optionally also\n * the encrypted content, with read-only or read-write permissions.\n * @param delegateId the id of the data owner which will be granted access to the time table.\n * @param timeTable the time table to share.\n * @param options optional parameters to customize the sharing behaviour:\n * - shareEncryptionKey: specifies if the encryption key of the access log should be shared with the delegate, giving access to all encrypted\n * content of the entity, excluding other encrypted metadata (defaults to {@link ShareMetadataBehaviour.IF_AVAILABLE}). Note that by default a\n * time table does not have encrypted content.\n * @return a promise which will contain the result of the operation: the updated entity if the operation was successful or details of the error if\n * the operation failed.\n */\n async shareWith(\n delegateId: string,\n timeTable: models.TimeTable,\n options: {\n shareEncryptionKey?: ShareMetadataBehaviour // Defaults to ShareMetadataBehaviour.IF_AVAILABLE\n } = {}\n ): Promise<models.TimeTable> {\n return this.shareWithMany(timeTable, { [delegateId]: options })\n }\n\n /**\n * Share an existing time table with other data owners, allowing them to access the non-encrypted data of the time table and optionally also\n * the encrypted content, with read-only or read-write permissions.\n * @param timeTable the time table to share.\n * @param delegates sharing options for each delegate.\n * - shareEncryptionKey: specifies if the encryption key of the access log should be shared with the delegate, giving access to all encrypted\n * content of the entity, excluding other encrypted metadata (defaults to {@link ShareMetadataBehaviour.IF_AVAILABLE}). Note that by default a\n * time table does not have encrypted content.\n * @return a promise which will contain the result of the operation: the updated entity if the operation was successful or details of the error if\n * the operation failed.\n */\n async shareWithMany(\n timeTable: models.TimeTable,\n delegates: {\n [delegateId: string]: {\n shareEncryptionKey?: ShareMetadataBehaviour // Defaults to ShareMetadataBehaviour.IF_AVAILABLE\n }\n }\n ): Promise<models.TimeTable> {\n const extended = await this.crypto.entities.entityWithAutoExtendedEncryptedMetadata(timeTable, true, delegates)\n if (!!extended) {\n return await this.modifyTimeTable(extended)\n } else return timeTable\n }\n\n async getDataOwnersWithAccessTo(\n entity: models.TimeTable\n ): Promise<{ permissionsByDataOwnerId: { [p: string]: 'WRITE' }; hasUnknownAnonymousDataOwners: boolean }> {\n return await this.crypto.entities.getDataOwnersWithAccessTo(entity)\n }\n\n async getEncryptionKeysOf(entity: models.TimeTable): Promise<string[]> {\n return await this.crypto.entities.encryptionKeysOf(entity)\n }\n}\n"]}
|
package/icc-x-api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IccAgendaApi, IccAuthApi, IccCalendarItemTypeApi, IccEntityrefApi, IccGroupApi, IccInsuranceApi, IccMedicallocationApi, IccPermissionApi } from '../icc-api';
|
|
1
|
+
import { IccAgendaApi, IccAnonymousAccessApi, IccApplicationsettingsApi, IccArticleApi, IccAuthApi, IccBeefactApi, IccBeresultexportApi, IccBeresultimportApi, IccBesamv2Api, IccCalendarItemTypeApi, IccClassificationTemplateApi, IccEntityrefApi, IccEntitytemplateApi, IccFrontendmigrationApi, IccGroupApi, IccIcureApi, IccInsuranceApi, IccKeywordApi, IccMedexApi, IccMedicallocationApi, IccPermissionApi, IccPlaceApi, IccPubsubApi, IccReplicationApi, IccTarificationApi, IccTmpApi } from '../icc-api';
|
|
2
2
|
import { IccUserXApi } from './icc-user-x-api';
|
|
3
3
|
import { IccCryptoXApi } from './icc-crypto-x-api';
|
|
4
4
|
import { IccContactXApi } from './icc-contact-x-api';
|
|
@@ -14,7 +14,7 @@ import { IccMessageXApi } from './icc-message-x-api';
|
|
|
14
14
|
import { IccReceiptXApi } from './icc-receipt-x-api';
|
|
15
15
|
import { IccAccesslogXApi } from './icc-accesslog-x-api';
|
|
16
16
|
import { IccTimeTableXApi } from './icc-time-table-x-api';
|
|
17
|
-
import { IccDeviceApi } from '../icc-api
|
|
17
|
+
import { IccDeviceApi } from '../icc-api';
|
|
18
18
|
import { IccCodeXApi } from './icc-code-x-api';
|
|
19
19
|
import { IccMaintenanceTaskXApi } from './icc-maintenance-task-x-api';
|
|
20
20
|
import { IccDataOwnerXApi } from './icc-data-owner-x-api';
|
|
@@ -24,6 +24,9 @@ import { AuthenticationProvider } from './auth/AuthenticationProvider';
|
|
|
24
24
|
import { StorageEntryKeysFactory } from './storage/StorageEntryKeysFactory';
|
|
25
25
|
import { CryptoStrategies } from './crypto/CryptoStrategies';
|
|
26
26
|
import { IccIcureMaintenanceXApi } from './icc-icure-maintenance-x-api';
|
|
27
|
+
import { IccBekmehrXApi } from './icc-bekmehr-x-api';
|
|
28
|
+
import { IccDoctemplateXApi } from './icc-doctemplate-x-api';
|
|
29
|
+
import { UserGroup } from '../icc-api/model/UserGroup';
|
|
27
30
|
export * from './icc-accesslog-x-api';
|
|
28
31
|
export * from './icc-bekmehr-x-api';
|
|
29
32
|
export * from './icc-calendar-item-x-api';
|
|
@@ -47,51 +50,190 @@ export { KeyStorageFacade } from './storage/KeyStorageFacade';
|
|
|
47
50
|
export { LocalStorageImpl } from './storage/LocalStorageImpl';
|
|
48
51
|
export { StorageFacade } from './storage/StorageFacade';
|
|
49
52
|
export { KeyStorageImpl } from './storage/KeyStorageImpl';
|
|
53
|
+
export { CryptoStrategies } from './crypto/CryptoStrategies';
|
|
50
54
|
export interface Apis {
|
|
51
|
-
authApi: IccAuthApi;
|
|
52
|
-
codeApi: IccCodeXApi;
|
|
53
|
-
calendarItemTypeApi: IccCalendarItemTypeApi;
|
|
54
|
-
medicalLocationApi: IccMedicallocationApi;
|
|
55
|
-
entityReferenceApi: IccEntityrefApi;
|
|
56
|
-
userApi: IccUserXApi;
|
|
57
|
-
permissionApi: IccPermissionApi;
|
|
58
|
-
healthcarePartyApi: IccHcpartyXApi;
|
|
59
|
-
deviceApi: IccDeviceApi;
|
|
60
|
-
cryptoApi: IccCryptoXApi;
|
|
61
|
-
accessLogApi: IccAccesslogXApi;
|
|
62
|
-
agendaApi: IccAgendaApi;
|
|
63
|
-
contactApi: IccContactXApi;
|
|
64
|
-
formApi: IccFormXApi;
|
|
65
|
-
groupApi: IccGroupApi;
|
|
66
|
-
invoiceApi: IccInvoiceXApi;
|
|
67
|
-
insuranceApi: IccInsuranceApi;
|
|
68
|
-
documentApi: IccDocumentXApi;
|
|
69
|
-
healthcareElementApi: IccHelementXApi;
|
|
70
|
-
classificationApi: IccClassificationXApi;
|
|
71
|
-
calendarItemApi: IccCalendarItemXApi;
|
|
72
|
-
receiptApi: IccReceiptXApi;
|
|
73
|
-
timetableApi: IccTimeTableXApi;
|
|
74
|
-
patientApi: IccPatientXApi;
|
|
75
|
-
messageApi: IccMessageXApi;
|
|
76
|
-
maintenanceTaskApi: IccMaintenanceTaskXApi;
|
|
77
|
-
dataOwnerApi: IccDataOwnerXApi;
|
|
78
|
-
icureMaintenanceTaskApi: IccIcureMaintenanceXApi;
|
|
55
|
+
readonly authApi: IccAuthApi;
|
|
56
|
+
readonly codeApi: IccCodeXApi;
|
|
57
|
+
readonly calendarItemTypeApi: IccCalendarItemTypeApi;
|
|
58
|
+
readonly medicalLocationApi: IccMedicallocationApi;
|
|
59
|
+
readonly entityReferenceApi: IccEntityrefApi;
|
|
60
|
+
readonly userApi: IccUserXApi;
|
|
61
|
+
readonly permissionApi: IccPermissionApi;
|
|
62
|
+
readonly healthcarePartyApi: IccHcpartyXApi;
|
|
63
|
+
readonly deviceApi: IccDeviceApi;
|
|
64
|
+
readonly cryptoApi: IccCryptoXApi;
|
|
65
|
+
readonly accessLogApi: IccAccesslogXApi;
|
|
66
|
+
readonly agendaApi: IccAgendaApi;
|
|
67
|
+
readonly contactApi: IccContactXApi;
|
|
68
|
+
readonly formApi: IccFormXApi;
|
|
69
|
+
readonly groupApi: IccGroupApi;
|
|
70
|
+
readonly invoiceApi: IccInvoiceXApi;
|
|
71
|
+
readonly insuranceApi: IccInsuranceApi;
|
|
72
|
+
readonly documentApi: IccDocumentXApi;
|
|
73
|
+
readonly healthcareElementApi: IccHelementXApi;
|
|
74
|
+
readonly classificationApi: IccClassificationXApi;
|
|
75
|
+
readonly calendarItemApi: IccCalendarItemXApi;
|
|
76
|
+
readonly receiptApi: IccReceiptXApi;
|
|
77
|
+
readonly timetableApi: IccTimeTableXApi;
|
|
78
|
+
readonly patientApi: IccPatientXApi;
|
|
79
|
+
readonly messageApi: IccMessageXApi;
|
|
80
|
+
readonly maintenanceTaskApi: IccMaintenanceTaskXApi;
|
|
81
|
+
readonly dataOwnerApi: IccDataOwnerXApi;
|
|
82
|
+
readonly icureMaintenanceTaskApi: IccIcureMaintenanceXApi;
|
|
83
|
+
readonly anonymousAccessApi: IccAnonymousAccessApi;
|
|
84
|
+
readonly applicationSettingsApi: IccApplicationsettingsApi;
|
|
85
|
+
readonly articleApi: IccArticleApi;
|
|
86
|
+
readonly bekmehrApi: IccBekmehrXApi;
|
|
87
|
+
readonly beefactApi: IccBeefactApi;
|
|
88
|
+
readonly beresultexportApi: IccBeresultexportApi;
|
|
89
|
+
readonly beresultimportApi: IccBeresultimportApi;
|
|
90
|
+
readonly besamv2Api: IccBesamv2Api;
|
|
91
|
+
readonly classificationTemplateApi: IccClassificationTemplateApi;
|
|
92
|
+
readonly doctemplateApi: IccDoctemplateXApi;
|
|
93
|
+
readonly entitytemplateApi: IccEntitytemplateApi;
|
|
94
|
+
readonly frontendmigrationApi: IccFrontendmigrationApi;
|
|
95
|
+
readonly icureApi: IccIcureApi;
|
|
96
|
+
readonly keywordApi: IccKeywordApi;
|
|
97
|
+
readonly medexApi: IccMedexApi;
|
|
98
|
+
readonly placeApi: IccPlaceApi;
|
|
99
|
+
readonly pubsubApi: IccPubsubApi;
|
|
100
|
+
readonly replicationApi: IccReplicationApi;
|
|
101
|
+
readonly tarificationApi: IccTarificationApi;
|
|
102
|
+
readonly tmpApi: IccTmpApi;
|
|
79
103
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Allows to customise the behaviour of the iCure API by providing various optional parameters.
|
|
106
|
+
*/
|
|
107
|
+
export interface IcureApiOptions {
|
|
108
|
+
/**
|
|
109
|
+
* Specifies how iCure can store string values (e.g. json). In production this should be persistent storage.
|
|
110
|
+
* @default the browser's localStorage.
|
|
111
|
+
*/
|
|
83
112
|
readonly storage?: StorageFacade<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies how iCure can store cryptographic keys. Preferably this should be some ad-hoc storage key storage.
|
|
115
|
+
* @default stores the json of the jwk representation of the key in {@link storage}.
|
|
116
|
+
*/
|
|
84
117
|
readonly keyStorage?: KeyStorageFacade;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies where iCure should store his data within the {@link storage} and {@link keyStorage}.
|
|
120
|
+
* @default {@link DefaultStorageEntryKeysFactory}
|
|
121
|
+
*/
|
|
122
|
+
readonly entryKeysFactory?: StorageEntryKeysFactory;
|
|
123
|
+
/**
|
|
124
|
+
* Specifies if iCure should create maintenance tasks for requesting access back when a new key is generated at initialisation time.
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
readonly createMaintenanceTasksOnNewKey?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Additional headers to use on each request made by the iCure api.
|
|
130
|
+
* @default no additional headers
|
|
131
|
+
*/
|
|
85
132
|
readonly headers?: {
|
|
86
133
|
[headerName: string]: string;
|
|
87
134
|
};
|
|
88
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Specifies which fields should be encrypted for each kind of encryptable entity. You should make sure that every application in your environment
|
|
137
|
+
* specifies the same values for this configuration.
|
|
138
|
+
* @default see documentation for {@link EncryptedFieldsConfig}
|
|
139
|
+
*/
|
|
140
|
+
readonly encryptedFieldsConfig?: EncryptedFieldsConfig;
|
|
141
|
+
/**
|
|
142
|
+
* Each user may exist in multiple groups, but an instance of {@link IcureApi} is specialised for a single group. This function allows you to decide
|
|
143
|
+
* the group to use for a given user. This functions will be called only if a user exists in at least 2 groups, takes in input the information on
|
|
144
|
+
* the groups the user can access (in no specific order) and must return the id of one of these groups.
|
|
145
|
+
* @default takes the first group provided. The group chosen by this method may vary between different instantiations of the {@link IcureApi} even
|
|
146
|
+
* if for the same user and if the groups available for the user do not change.
|
|
147
|
+
*/
|
|
148
|
+
readonly groupSelector?: (availableGroupsInfo: UserGroup[]) => Promise<string>;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Specifies which fields should be encrypted for each kind of encryptable entity.
|
|
152
|
+
* Note that any value you specify here overrides the default values. For example if you specify `['medicalLocationId']` for `healthElement` the
|
|
153
|
+
* fields `['descr', 'note']` which are usually encrypted by default will no longer be encrypted. If you want to add fields to the default values
|
|
154
|
+
* you can use {@link EncryptedFieldsConfig.Defaults}, for example `[...EncryptedFieldsConfig.Defaults.healthElement, 'medicalLocationId'].
|
|
155
|
+
*/
|
|
156
|
+
export interface EncryptedFieldsConfig {
|
|
157
|
+
/**
|
|
158
|
+
* Fields to encrypt for entities of type {@link AccessLog}
|
|
159
|
+
* @default ['detail', 'objectId']
|
|
160
|
+
*/
|
|
161
|
+
readonly accessLog?: string[];
|
|
162
|
+
/**
|
|
163
|
+
* Fields to encrypt for entities of type {@link CalendarItem}
|
|
164
|
+
* @default ['details', 'title', 'patientId']
|
|
165
|
+
*/
|
|
166
|
+
readonly calendarItem?: string[];
|
|
167
|
+
/**
|
|
168
|
+
* Fields to encrypt for entities of type {@link HealthElement}
|
|
169
|
+
* @default ['descr', 'note']
|
|
170
|
+
*/
|
|
171
|
+
readonly healthElement?: string[];
|
|
172
|
+
/**
|
|
173
|
+
* Fields to encrypt for entities of type {@link MaintenanceTask}
|
|
174
|
+
* @default ['properties']
|
|
175
|
+
*/
|
|
176
|
+
readonly maintenanceTask?: string[];
|
|
177
|
+
/**
|
|
178
|
+
* Fields to encrypt for entities of type {@link Patient}
|
|
179
|
+
* @default ['note']
|
|
180
|
+
*/
|
|
181
|
+
readonly patient?: string[];
|
|
182
|
+
}
|
|
183
|
+
export declare namespace EncryptedFieldsConfig {
|
|
184
|
+
const Defaults: {
|
|
185
|
+
accessLog: string[];
|
|
186
|
+
calendarItem: string[];
|
|
187
|
+
healthElement: string[];
|
|
188
|
+
maintenanceTask: string[];
|
|
189
|
+
patient: string[];
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Details for the authentication of a user
|
|
194
|
+
*/
|
|
89
195
|
export type AuthenticationDetails = {
|
|
90
196
|
username: string;
|
|
91
197
|
password: string;
|
|
92
198
|
forceBasic?: boolean;
|
|
199
|
+
icureTokens?: {
|
|
200
|
+
token: string;
|
|
201
|
+
refreshToken: string;
|
|
202
|
+
};
|
|
203
|
+
thirdPartyTokens?: {
|
|
204
|
+
[thirdParty: string]: string;
|
|
205
|
+
};
|
|
93
206
|
};
|
|
94
|
-
|
|
207
|
+
/**
|
|
208
|
+
* Main entry point for the iCure API. Provides entity-specific sub-apis and some general methods which are not related to a specific entity.
|
|
209
|
+
*/
|
|
210
|
+
export interface IcureApi extends Apis {
|
|
211
|
+
/**
|
|
212
|
+
* Get the information on groups that the current user can access and the current group that this api instance is working on.
|
|
213
|
+
* Note that the values you will get for `availableGroups` may differ from the values you would get if you call {@link IccUserApi.getMatchingUsers}
|
|
214
|
+
* on {@link Apis.userApi}, since the latter is specialised on the specific instance of the user in `currentGroup`.
|
|
215
|
+
*/
|
|
216
|
+
getGroupsInfo(): Promise<{
|
|
217
|
+
currentGroup: UserGroup;
|
|
218
|
+
availableGroups: UserGroup[];
|
|
219
|
+
}>;
|
|
220
|
+
/**
|
|
221
|
+
* Switches the api to allow the user to work on a different group.
|
|
222
|
+
* @param newGroupId the id of the group to switch to.
|
|
223
|
+
* @return a new api for the specified group.
|
|
224
|
+
*/
|
|
225
|
+
switchGroup(newGroupId: string): Promise<IcureApi>;
|
|
226
|
+
}
|
|
227
|
+
export declare namespace IcureApi {
|
|
228
|
+
/**
|
|
229
|
+
* Initialises a new instance of the iCure API.
|
|
230
|
+
*/
|
|
231
|
+
function initialise(host: string, authenticationOptions: AuthenticationDetails | AuthenticationProvider, cryptoStrategies: CryptoStrategies, crypto?: Crypto, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>, options?: IcureApiOptions): Promise<IcureApi>;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* @experimental This function still needs development and will be changed
|
|
235
|
+
* Build apis which do not need crypto and can be used by non-data-owner users
|
|
236
|
+
*/
|
|
95
237
|
export declare const BasicApis: (host: string, username: string, password: string, crypto?: Crypto, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>, forceBasic?: boolean) => Promise<{
|
|
96
238
|
authApi: IccAuthApi;
|
|
97
239
|
codeApi: IccCodeXApi;
|
|
@@ -101,4 +243,5 @@ export declare const BasicApis: (host: string, username: string, password: strin
|
|
|
101
243
|
entityReferenceApi: IccEntityrefApi;
|
|
102
244
|
agendaApi: IccAgendaApi;
|
|
103
245
|
groupApi: IccGroupApi;
|
|
246
|
+
healthcarePartyApi: IccHcpartyXApi;
|
|
104
247
|
}>;
|