@icure/api 4.1.4 → 4.1.7

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 (43) hide show
  1. package/icc-api/api/IccBesamv2Api.d.ts +43 -0
  2. package/icc-api/api/IccBesamv2Api.js +100 -0
  3. package/icc-api/api/IccBesamv2Api.js.map +1 -1
  4. package/icc-api/api/IccInvoiceApi.d.ts +2 -2
  5. package/icc-api/api/IccInvoiceApi.js +2 -2
  6. package/icc-api/api/IccInvoiceApi.js.map +1 -1
  7. package/icc-api/api/IccPatientApi.d.ts +1 -1
  8. package/icc-api/api/IccPatientApi.js +1 -1
  9. package/icc-api/api/IccPatientApi.js.map +1 -1
  10. package/icc-api/model/{Authentication.d.ts → AddedDocument.d.ts} +10 -3
  11. package/icc-api/model/AddedDocument.js +21 -0
  12. package/icc-api/model/AddedDocument.js.map +1 -0
  13. package/icc-api/model/Device.d.ts +20 -0
  14. package/icc-api/model/Device.js.map +1 -1
  15. package/icc-api/model/HealthcareParty.d.ts +20 -0
  16. package/icc-api/model/HealthcareParty.js.map +1 -1
  17. package/icc-api/model/Invoice.d.ts +3 -0
  18. package/icc-api/model/Invoice.js.map +1 -1
  19. package/icc-api/model/InvoicingCode.d.ts +1 -0
  20. package/icc-api/model/InvoicingCode.js.map +1 -1
  21. package/icc-api/model/MedicationSchemeExportInfo.d.ts +1 -0
  22. package/icc-api/model/MedicationSchemeExportInfo.js.map +1 -1
  23. package/icc-api/model/Paragraph.d.ts +37 -0
  24. package/icc-api/model/Paragraph.js +21 -0
  25. package/icc-api/model/Paragraph.js.map +1 -0
  26. package/icc-api/model/Patient.d.ts +20 -0
  27. package/icc-api/model/Patient.js.map +1 -1
  28. package/icc-api/model/Suspension.d.ts +1 -0
  29. package/icc-api/model/Suspension.js.map +1 -1
  30. package/icc-api/model/Verse.d.ts +61 -0
  31. package/icc-api/model/{Authentication.js → Verse.js} +4 -4
  32. package/icc-api/model/Verse.js.map +1 -0
  33. package/icc-api/model/models.d.ts +3 -1
  34. package/icc-api/model/models.js +3 -1
  35. package/icc-api/model/models.js.map +1 -1
  36. package/icc-x-api/icc-crypto-x-api.d.ts +14 -6
  37. package/icc-x-api/icc-crypto-x-api.js +28 -44
  38. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  39. package/icc-x-api/index.d.ts +2 -0
  40. package/icc-x-api/index.js +3 -0
  41. package/icc-x-api/index.js.map +1 -1
  42. package/package.json +3 -4
  43. package/icc-api/model/Authentication.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../icc-api/model/models.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAoC;AACpC,0DAAuC;AACvC,yDAAsC;AACtC,gEAA6C;AAC7C,kEAA+C;AAC/C,0DAAuC;AACvC,0DAAuC;AACvC,0DAAuC;AACvC,uDAAoC;AACpC,8CAA2B;AAC3B,4CAAyB;AACzB,2DAAwC;AACxC,2CAAwB;AACxB,sDAAmC;AACnC,wCAAqB;AACrB,iDAA8B;AAC9B,yCAAsB;AACtB,kDAA+B;AAC/B,+CAA4B;AAC5B,wDAAqC;AACrC,gDAA6B;AAC7B,sDAAmC;AACnC,4DAAyC;AACzC,4CAAyB;AACzB,wCAAqB;AACrB,mDAAgC;AAChC,2DAAwC;AACxC,wDAAqC;AACrC,0CAAuB;AACvB,yCAAsB;AACtB,0CAAuB;AACvB,iDAA8B;AAC9B,oDAAiC;AACjC,qDAAkC;AAClC,mDAAgC;AAChC,uDAAoC;AACpC,0DAAuC;AACvC,mDAAgC;AAChC,2DAAwC;AACxC,yCAAsB;AACtB,6CAA0B;AAC1B,4DAAyC;AACzC,sDAAmC;AACnC,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,8CAA2B;AAC3B,yCAAsB;AACtB,2DAAwC;AACxC,4DAAyC;AACzC,+CAA4B;AAC5B,2CAAwB;AACxB,+CAA4B;AAC5B,wDAAqC;AACrC,yCAAsB;AAC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C/B,qDAAkC;AAClC,mDAAgC;AAChC,kDAA+B;AAC/B,+CAA4B;AAC5B,wCAAqB;AACrB,iDAA8B;AAC9B,4CAAyB;AACzB,+CAA4B;AAC5B,8CAA2B;AAC3B,kDAA+B;AAC/B,kDAA+B;AAC/B,qDAAkC;AAClC,yCAAsB;AACtB,yCAAsB;AACtB,2DAAwC;AACxC,8CAA2B;AAC3B,iDAA8B;AAC9B,gDAA6B;AAC7B,sDAAmC;AACnC,wCAAqB;AACrB,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,4CAAyB;AACzB,wCAAqB;AACrB,yCAAsB;AACtB,4CAAyB","sourcesContent":["export * from './AbstractFilterCode'\nexport * from './AbstractFilterContact'\nexport * from './AbstractFilterDevice'\nexport * from './AbstractFilterHealthElement'\nexport * from './AbstractFilterHealthcareParty'\nexport * from './AbstractFilterInvoice'\nexport * from './AbstractFilterPatient'\nexport * from './AbstractFilterService'\nexport * from './AbstractFilterUser'\nexport * from './AccessLog'\nexport * from './Address'\nexport * from './AdministrationQuantity'\nexport * from './Agenda'\nexport * from './AgreementAppendix'\nexport * from './Amp'\nexport * from './AmpComponent'\nexport * from './Ampp'\nexport * from './AmppComponent'\nexport * from './Annotation'\nexport * from './ApplicationSettings'\nexport * from './Appointment'\nexport * from './AppointmentImport'\nexport * from './AppointmentTypeAndPlace'\nexport * from './Article'\nexport * from './Atc'\nexport * from './Authentication'\nexport * from './AuthenticationResponse'\nexport * from './AuthenticationToken'\nexport * from './Basic'\nexport * from './Body'\nexport * from './Body1'\nexport * from './CalendarItem'\nexport * from './CalendarItemTag'\nexport * from './CalendarItemType'\nexport * from './CareTeamMember'\nexport * from './CareTeamMembership'\nexport * from './CheckSMFPatientResult'\nexport * from './Classification'\nexport * from './ClassificationTemplate'\nexport * from './Code'\nexport * from './CodeStub'\nexport * from './CommentedClassification'\nexport * from './Commercialization'\nexport * from './Company'\nexport * from './Contact'\nexport * from './Content'\nexport * from './Copayment'\nexport * from './Data'\nexport * from './DatabaseInitialisation'\nexport * from './DatabaseSynchronization'\nexport * from './Delegation'\nexport * from './Device'\nexport * from './DeviceType'\nexport * from './DiaryNoteExportInfo'\nexport * from './Dmpp'\nexport * from './DocIdentifier'\nexport * from './Document'\nexport * from './DocumentGroup'\nexport * from './DocumentTemplate'\nexport * from './Duration'\nexport * from './EIDItem'\nexport * from './Editor'\nexport * from './EfactInvoice'\nexport * from './EmailOrSmsMessage'\nexport * from './EmailTemplate'\nexport * from './Employer'\nexport * from './EmploymentInfo'\nexport * from './EntityReference'\nexport * from './EntityTemplate'\nexport * from './Episode'\nexport * from './FilterChainCode'\nexport * from './FilterChainContact'\nexport * from './FilterChainDevice'\nexport * from './FilterChainHealthElement'\nexport * from './FilterChainHealthcareParty'\nexport * from './FilterChainInvoice'\nexport * from './FilterChainPatient'\nexport * from './FilterChainService'\nexport * from './FilterChainUser'\nexport * from './FinancialInstitutionInformation'\nexport * from './FlatRateTarification'\nexport * from './FlowItem'\nexport * from './Form'\nexport * from './FormColumn'\nexport * from './FormDataOption'\nexport * from './FormLayout'\nexport * from './FormLayoutData'\nexport * from './FormPlanning'\nexport * from './FormSection'\nexport * from './FormTemplate'\nexport * from './FormTemplateLayout'\nexport * from './Formula'\nexport * from './FrontEndMigration'\nexport * from './Group'\nexport * from './GuiCode'\nexport * from './GuiCodeType'\nexport * from './HealthElement'\nexport * from './HealthcareParty'\nexport * from './HealthcarePartyHistoryStatus'\nexport * from './IcureStub'\nexport * from './IdWithRev'\nexport * from './Identifier'\nexport * from './IdentityDocumentReader'\nexport * from './ImportMapping'\nexport * from './ImportResult'\nexport * from './IndexedIdentifier'\nexport * from './IndexingInfo'\nexport * from './Ingredient'\nexport * from './Insurability'\nexport * from './Insurance'\nexport * from './Invoice'\nexport * from './InvoiceItem'\nexport * from './InvoiceSender'\nexport * from './InvoicesBatch'\nexport * from './InvoicingCode'\nexport * from './Keyword'\nexport * from './KeywordSubword'\nexport * from './LabelledOccurence'\nexport * from './LetterValue'\nexport * from './ListOfIds'\nexport * from './ListOfProperties'\nexport * from './LoginCredentials'\nexport * from './MapOfIds'\nexport * from './Measure'\nexport * from './MedexInfo'\nexport * from './MedicalHouseContract'\nexport * from './MedicalLocation'\nexport * from './Medication'\nexport * from './MedicationSchemeExportInfo'\nexport * from './Medicinalproduct'\nexport * from './Message'\nexport * from './MessageReadStatus'\nexport * from './MessageWithBatch'\nexport * from './MessagesReadStatusUpdate'\nexport * from './MikronoAppointmentTypeRest'\nexport * from './MikronoCredentials'\nexport * from './MimeAttachment'\nexport * from './Nmp'\nexport * from './NoGenericPrescriptionReason'\nexport * from './NoSwitchReason'\nexport * from './NumeratorRange'\nexport * from './PackagingType'\nexport * from './PaginatedDocumentKeyIdPairObject'\nexport * from './PaginatedListAccessLog'\nexport * from './PaginatedListAmp'\nexport * from './PaginatedListClassification'\nexport * from './PaginatedListClassificationTemplate'\nexport * from './PaginatedListCode'\nexport * from './PaginatedListContact'\nexport * from './PaginatedListDevice'\nexport * from './PaginatedListDocument'\nexport * from './PaginatedListEntityTemplate'\nexport * from './PaginatedListForm'\nexport * from './PaginatedListHealthElement'\nexport * from './PaginatedListHealthcareParty'\nexport * from './PaginatedListInvoice'\nexport * from './PaginatedListMessage'\nexport * from './PaginatedListNmp'\nexport * from './PaginatedListPatient'\nexport * from './PaginatedListService'\nexport * from './PaginatedListString'\nexport * from './PaginatedListTarification'\nexport * from './PaginatedListUser'\nexport * from './PaginatedListVmp'\nexport * from './PaginatedListVmpGroup'\nexport * from './ParagraphAgreement'\nexport * from './Partnership'\nexport * from './Patient'\nexport * from './PatientHealthCareParty'\nexport * from './PatientRegistrationSuccess'\nexport * from './Payment'\nexport * from './Periodicity'\nexport * from './Permission'\nexport * from './PermissionItem'\nexport * from './PersonName'\nexport * from './PharmaceuticalForm'\nexport * from './PharmaceuticalFormStub'\nexport * from './Place'\nexport * from './PlanOfAction'\nexport * from './Predicate'\nexport * from './Pricing'\nexport * from './PropertyStub'\nexport * from './PropertyTypeStub'\nexport * from './PublicKey'\nexport * from './Quantity'\nexport * from './Receipt'\nexport * from './ReferralPeriod'\nexport * from './RegimenItem'\nexport * from './RegistrationInformation'\nexport * from './RegistrationSuccess'\nexport * from './Reimbursement'\nexport * from './ReimbursementCriterion'\nexport * from './Remote'\nexport * from './RemoteAuthentication'\nexport * from './Renewal'\nexport * from './Replication'\nexport * from './ReplicateCommand'\nexport * from './ReplicationInfo'\nexport * from './ReplicationStats'\nexport * from './ReplicatorDocument'\nexport * from './ReplicatorResponse'\nexport * from './ResultInfo'\nexport * from './Right'\nexport * from './RouteOfAdministration'\nexport * from './SamText'\nexport * from './SamVersion'\nexport * from './SchoolingInfo'\nexport * from './Section'\nexport * from './Service'\nexport * from './ServiceLink'\nexport * from './SoftwareMedicalFileExport'\nexport * from './StandardSubstance'\nexport * from './StrengthRange'\nexport * from './StructureElement'\nexport * from './SubContact'\nexport * from './Substance'\nexport * from './SubstanceStub'\nexport * from './Substanceproduct'\nexport * from './Suggest'\nexport * from './SumehrContent'\nexport * from './SumehrExportInfo'\nexport * from './SumehrValidity'\nexport * from './SupplyProblem'\nexport * from './Suspension'\nexport * from './Tag'\nexport * from './Tarification'\nexport * from './Telecom'\nexport * from './TimeSeries'\nexport * from './TimeTable'\nexport * from './TimeTableHour'\nexport * from './TimeTableItem'\nexport * from './TypedValueObject'\nexport * from './Unit'\nexport * from './User'\nexport * from './UserAndHealthcareParty'\nexport * from './UserGroup'\nexport * from './Valorisation'\nexport * from './VirtualForm'\nexport * from './VirtualIngredient'\nexport * from './Vmp'\nexport * from './VmpComponent'\nexport * from './VmpGroup'\nexport * from './VmpGroupStub'\nexport * from './VmpStub'\nexport * from './Vtm'\nexport * from './Wada'\nexport * from './Weekday'\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../icc-api/model/models.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAoC;AACpC,0DAAuC;AACvC,yDAAsC;AACtC,gEAA6C;AAC7C,kEAA+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DAA4C;AAC5C,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B;AAC5B,mDAAgC;AAChC,+CAA4B;AAC5B,uDAAoC;AACpC,2DAAwC;AACxC,0CAAuB;AACvB,iDAA8B;AAC9B,8CAA2B;AAC3B,4CAAyB;AACzB,iDAA8B;AAC9B,qDAAkC;AAClC,8CAA2B;AAC3B,6CAA0B;AAC1B,4CAAyB;AACzB,mDAAgC;AAChC,gDAA6B;AAC7B,4DAAyC;AACzC,wDAAqC;AACrC,kDAA+B;AAC/B,2DAAwC;AACxC,2CAAwB;AACxB,yDAAsC;AACtC,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,+CAA4B;AAC5B,0CAAuB;AACvB,0DAAuC;AACvC,4CAAyB;AACzB,+CAA4B;AAC5B,kDAA+B;AAC/B,4CAAyB;AACzB,4CAAyB;AACzB,gDAA6B;AAC7B,8DAA2C;AAC3C,sDAAmC;AACnC,kDAA+B;AAC/B,qDAAkC;AAClC,+CAA4B;AAC5B,8CAA2B;AAC3B,kDAA+B;AAC/B,qDAAkC;AAClC,4CAAyB;AACzB,kDAA+B;AAC/B,qDAAkC;AAClC,mDAAgC;AAChC,kDAA+B;AAC/B,+CAA4B;AAC5B,wCAAqB;AACrB,iDAA8B;AAC9B,4CAAyB;AACzB,+CAA4B;AAC5B,8CAA2B;AAC3B,kDAA+B;AAC/B,kDAA+B;AAC/B,qDAAkC;AAClC,yCAAsB;AACtB,yCAAsB;AACtB,2DAAwC;AACxC,8CAA2B;AAC3B,iDAA8B;AAC9B,0CAAuB;AACvB,gDAA6B;AAC7B,sDAAmC;AACnC,wCAAqB;AACrB,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,4CAAyB;AACzB,wCAAqB;AACrB,yCAAsB;AACtB,4CAAyB","sourcesContent":["export * from './AbstractFilterCode'\nexport * from './AbstractFilterContact'\nexport * from './AbstractFilterDevice'\nexport * from './AbstractFilterHealthElement'\nexport * from './AbstractFilterHealthcareParty'\nexport * from './AbstractFilterInvoice'\nexport * from './AbstractFilterPatient'\nexport * from './AbstractFilterService'\nexport * from './AbstractFilterUser'\nexport * from './AccessLog'\nexport * from './AddedDocument'\nexport * from './Address'\nexport * from './AdministrationQuantity'\nexport * from './Agenda'\nexport * from './AgreementAppendix'\nexport * from './Amp'\nexport * from './AmpComponent'\nexport * from './Ampp'\nexport * from './AmppComponent'\nexport * from './Annotation'\nexport * from './ApplicationSettings'\nexport * from './Appointment'\nexport * from './AppointmentImport'\nexport * from './AppointmentTypeAndPlace'\nexport * from './Article'\nexport * from './Atc'\nexport * from './AuthenticationResponse'\nexport * from './AuthenticationToken'\nexport * from './Basic'\nexport * from './Body'\nexport * from './Body1'\nexport * from './CalendarItem'\nexport * from './CalendarItemTag'\nexport * from './CalendarItemType'\nexport * from './CareTeamMember'\nexport * from './CareTeamMembership'\nexport * from './CheckSMFPatientResult'\nexport * from './Classification'\nexport * from './ClassificationTemplate'\nexport * from './Code'\nexport * from './CodeStub'\nexport * from './CommentedClassification'\nexport * from './Commercialization'\nexport * from './Company'\nexport * from './Contact'\nexport * from './Content'\nexport * from './Copayment'\nexport * from './Data'\nexport * from './DatabaseInitialisation'\nexport * from './DatabaseSynchronization'\nexport * from './Delegation'\nexport * from './Device'\nexport * from './DeviceType'\nexport * from './DiaryNoteExportInfo'\nexport * from './Dmpp'\nexport * from './DocIdentifier'\nexport * from './Document'\nexport * from './DocumentGroup'\nexport * from './DocumentTemplate'\nexport * from './Duration'\nexport * from './EIDItem'\nexport * from './Editor'\nexport * from './EfactInvoice'\nexport * from './EmailOrSmsMessage'\nexport * from './EmailTemplate'\nexport * from './Employer'\nexport * from './EmploymentInfo'\nexport * from './EntityReference'\nexport * from './EntityTemplate'\nexport * from './Episode'\nexport * from './FilterChainCode'\nexport * from './FilterChainContact'\nexport * from './FilterChainDevice'\nexport * from './FilterChainHealthElement'\nexport * from './FilterChainHealthcareParty'\nexport * from './FilterChainInvoice'\nexport * from './FilterChainPatient'\nexport * from './FilterChainService'\nexport * from './FilterChainUser'\nexport * from './FinancialInstitutionInformation'\nexport * from './FlatRateTarification'\nexport * from './FlowItem'\nexport * from './Form'\nexport * from './FormColumn'\nexport * from './FormDataOption'\nexport * from './FormLayout'\nexport * from './FormLayoutData'\nexport * from './FormPlanning'\nexport * from './FormSection'\nexport * from './FormTemplate'\nexport * from './FormTemplateLayout'\nexport * from './Formula'\nexport * from './FrontEndMigration'\nexport * from './Group'\nexport * from './GuiCode'\nexport * from './GuiCodeType'\nexport * from './HealthElement'\nexport * from './HealthcareParty'\nexport * from './HealthcarePartyHistoryStatus'\nexport * from './IcureStub'\nexport * from './IdWithRev'\nexport * from './Identifier'\nexport * from './IdentityDocumentReader'\nexport * from './ImportMapping'\nexport * from './ImportResult'\nexport * from './IndexedIdentifier'\nexport * from './IndexingInfo'\nexport * from './Ingredient'\nexport * from './Insurability'\nexport * from './Insurance'\nexport * from './Invoice'\nexport * from './InvoiceItem'\nexport * from './InvoiceSender'\nexport * from './InvoicesBatch'\nexport * from './InvoicingCode'\nexport * from './Keyword'\nexport * from './KeywordSubword'\nexport * from './LabelledOccurence'\nexport * from './LetterValue'\nexport * from './ListOfIds'\nexport * from './ListOfProperties'\nexport * from './LoginCredentials'\nexport * from './MapOfIds'\nexport * from './Measure'\nexport * from './MedexInfo'\nexport * from './MedicalHouseContract'\nexport * from './MedicalLocation'\nexport * from './Medication'\nexport * from './MedicationSchemeExportInfo'\nexport * from './Medicinalproduct'\nexport * from './Message'\nexport * from './MessageReadStatus'\nexport * from './MessageWithBatch'\nexport * from './MessagesReadStatusUpdate'\nexport * from './MikronoAppointmentTypeRest'\nexport * from './MikronoCredentials'\nexport * from './MimeAttachment'\nexport * from './Nmp'\nexport * from './NoGenericPrescriptionReason'\nexport * from './NoSwitchReason'\nexport * from './NumeratorRange'\nexport * from './PackagingType'\nexport * from './PaginatedDocumentKeyIdPairObject'\nexport * from './PaginatedListAccessLog'\nexport * from './PaginatedListAmp'\nexport * from './PaginatedListClassification'\nexport * from './PaginatedListClassificationTemplate'\nexport * from './PaginatedListCode'\nexport * from './PaginatedListContact'\nexport * from './PaginatedListDevice'\nexport * from './PaginatedListDocument'\nexport * from './PaginatedListEntityTemplate'\nexport * from './PaginatedListForm'\nexport * from './PaginatedListHealthElement'\nexport * from './PaginatedListHealthcareParty'\nexport * from './PaginatedListInvoice'\nexport * from './PaginatedListMessage'\nexport * from './PaginatedListNmp'\nexport * from './PaginatedListPatient'\nexport * from './PaginatedListService'\nexport * from './PaginatedListString'\nexport * from './PaginatedListTarification'\nexport * from './PaginatedListUser'\nexport * from './PaginatedListVmp'\nexport * from './PaginatedListVmpGroup'\nexport * from './Paragraph'\nexport * from './ParagraphAgreement'\nexport * from './Partnership'\nexport * from './Patient'\nexport * from './PatientHealthCareParty'\nexport * from './PatientRegistrationSuccess'\nexport * from './Payment'\nexport * from './Periodicity'\nexport * from './Permission'\nexport * from './PermissionItem'\nexport * from './PersonName'\nexport * from './PharmaceuticalForm'\nexport * from './PharmaceuticalFormStub'\nexport * from './Place'\nexport * from './PlanOfAction'\nexport * from './Predicate'\nexport * from './Pricing'\nexport * from './PropertyStub'\nexport * from './PropertyTypeStub'\nexport * from './PublicKey'\nexport * from './Quantity'\nexport * from './Receipt'\nexport * from './ReferralPeriod'\nexport * from './RegimenItem'\nexport * from './RegistrationInformation'\nexport * from './RegistrationSuccess'\nexport * from './Reimbursement'\nexport * from './ReimbursementCriterion'\nexport * from './Remote'\nexport * from './RemoteAuthentication'\nexport * from './Renewal'\nexport * from './Replication'\nexport * from './ReplicateCommand'\nexport * from './ReplicationInfo'\nexport * from './ReplicationStats'\nexport * from './ReplicatorDocument'\nexport * from './ReplicatorResponse'\nexport * from './ResultInfo'\nexport * from './Right'\nexport * from './RouteOfAdministration'\nexport * from './SamText'\nexport * from './SamVersion'\nexport * from './SchoolingInfo'\nexport * from './Section'\nexport * from './Service'\nexport * from './ServiceLink'\nexport * from './SoftwareMedicalFileExport'\nexport * from './StandardSubstance'\nexport * from './StrengthRange'\nexport * from './StructureElement'\nexport * from './SubContact'\nexport * from './Substance'\nexport * from './SubstanceStub'\nexport * from './Substanceproduct'\nexport * from './Suggest'\nexport * from './SumehrContent'\nexport * from './SumehrExportInfo'\nexport * from './SumehrValidity'\nexport * from './SupplyProblem'\nexport * from './Suspension'\nexport * from './Tag'\nexport * from './Tarification'\nexport * from './Telecom'\nexport * from './TimeSeries'\nexport * from './TimeTable'\nexport * from './TimeTableHour'\nexport * from './TimeTableItem'\nexport * from './TypedValueObject'\nexport * from './Unit'\nexport * from './User'\nexport * from './UserAndHealthcareParty'\nexport * from './UserGroup'\nexport * from './Valorisation'\nexport * from './Verse'\nexport * from './VirtualForm'\nexport * from './VirtualIngredient'\nexport * from './Vmp'\nexport * from './VmpComponent'\nexport * from './VmpGroup'\nexport * from './VmpGroupStub'\nexport * from './VmpStub'\nexport * from './Vtm'\nexport * from './Wada'\nexport * from './Weekday'\n"]}
@@ -11,7 +11,18 @@ interface DelegatorAndKeys {
11
11
  key: CryptoKey;
12
12
  rawKey: string;
13
13
  }
14
+ declare type CachedDataOwner = {
15
+ type: 'patient';
16
+ dataOwner: Patient;
17
+ } | {
18
+ type: 'device';
19
+ dataOwner: Device;
20
+ } | {
21
+ type: 'hcp';
22
+ dataOwner: HealthcareParty;
23
+ };
14
24
  export declare class IccCryptoXApi {
25
+ get crypto(): Crypto;
15
26
  get shamir(): ShamirClass;
16
27
  get utils(): UtilsClass;
17
28
  get RSA(): RSAUtils;
@@ -24,11 +35,8 @@ export declare class IccCryptoXApi {
24
35
  [delegatorId: string]: string;
25
36
  }>;
26
37
  };
27
- patientCache: {
28
- [key: string]: Promise<Patient>;
29
- };
30
- deviceCache: {
31
- [key: string]: Promise<Device>;
38
+ dataOwnerCache: {
39
+ [key: string]: Promise<CachedDataOwner>;
32
40
  };
33
41
  emptyHcpCache(hcpartyId: string): void;
34
42
  /**
@@ -47,7 +55,7 @@ export declare class IccCryptoXApi {
47
55
  private hcpartyBaseApi;
48
56
  private patientBaseApi;
49
57
  private deviceBaseApi;
50
- private crypto;
58
+ private _crypto;
51
59
  private generateKeyConcurrencyMap;
52
60
  private _AES;
53
61
  private _RSA;
@@ -23,8 +23,7 @@ class IccCryptoXApi {
23
23
  //[delegateId][delegatorId] = delegateEncryptedHcPartyKey
24
24
  //for each delegate, it stores the list of delegators and the corresponding delegateEncryptedHcPartyKey (shared HcPartyKey, from delegator to delegate, encrypted with the RSA key of the delegate)
25
25
  this.hcPartyKeysRequestsCache = {};
26
- this.patientCache = {};
27
- this.deviceCache = {};
26
+ this.dataOwnerCache = {};
28
27
  this.keychainLocalStoreIdPrefix = 'org.taktik.icure.ehealth.keychain.';
29
28
  this.keychainValidityDateLocalStoreIdPrefix = 'org.taktik.icure.ehealth.keychain-date.';
30
29
  this.hcpPreferenceKeyEhealthCert = 'eHealthCRTCrypt';
@@ -32,13 +31,16 @@ class IccCryptoXApi {
32
31
  this.hcpartyBaseApi = hcpartyBaseApi;
33
32
  this.patientBaseApi = patientBaseApi;
34
33
  this.deviceBaseApi = deviceBaseApi;
35
- this.crypto = crypto;
34
+ this._crypto = crypto;
36
35
  this.generateKeyConcurrencyMap = {};
37
36
  this._AES = new AES_1.AESUtils(crypto);
38
37
  this._RSA = new RSA_1.RSAUtils(crypto);
39
38
  this._utils = new utils_1.UtilsClass();
40
39
  this._shamir = new shamir_1.ShamirClass(crypto);
41
40
  }
41
+ get crypto() {
42
+ return this._crypto;
43
+ }
42
44
  get shamir() {
43
45
  return this._shamir;
44
46
  }
@@ -53,8 +55,8 @@ class IccCryptoXApi {
53
55
  }
54
56
  emptyHcpCache(hcpartyId) {
55
57
  delete this.hcPartyKeysRequestsCache[hcpartyId];
56
- delete this.patientCache[hcpartyId];
57
- delete this.deviceCache[hcpartyId];
58
+ delete this.dataOwnerCache[hcpartyId];
59
+ delete this.dataOwnerCache[hcpartyId];
58
60
  }
59
61
  /**
60
62
  * Gets all delegate encrypted HcParty keys of the delegate with the given `delegateHcPartyId`, and for each key the delegator id
@@ -76,11 +78,11 @@ class IccCryptoXApi {
76
78
  ]).then(([a, b]) => Object.assign({}, a, b));
77
79
  }
78
80
  randomUuid() {
79
- return ((1e7).toString() + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (c) => (Number(c) ^ (this.crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (Number(c) / 4)))).toString(16) //Keep that inlined or you will loose the random
81
+ return ((1e7).toString() + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (c) => (Number(c) ^ (this._crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (Number(c) / 4)))).toString(16) //Keep that inlined or you will loose the random
80
82
  );
81
83
  }
82
84
  sha256(data) {
83
- return this.crypto.subtle.digest('SHA-256', data);
85
+ return this._crypto.subtle.digest('SHA-256', data);
84
86
  }
85
87
  encryptedShamirRSAKey(hcp, notaries, threshold) {
86
88
  return this._RSA.loadKeyPairImported(hcp.id).then((keyPair) => this._RSA.exportKey(keyPair.privateKey, 'pkcs8').then((exportedKey) => {
@@ -545,7 +547,6 @@ class IccCryptoXApi {
545
547
  addDelegationsAndEncryptionKeys(
546
548
  //TODO: suggested name: updateChildGenericDelegationsFromDelegatorToDelegate
547
549
  parent, child, ownerId, delegateId, secretDelegationKey, secretEncryptionKey) {
548
- debugger;
549
550
  if (parent)
550
551
  this.throwDetailedExceptionForInvalidParameter('parent.id', parent.id, 'addDelegationsAndEncryptionKeys', arguments);
551
552
  this.throwDetailedExceptionForInvalidParameter('child.id', child.id, 'addDelegationsAndEncryptionKeys', arguments);
@@ -953,14 +954,16 @@ class IccCryptoXApi {
953
954
  .then(([ownerKey, delegateKey]) => (owner.hcPartyKeys[delegateId] = [binary_utils_1.ua2hex(ownerKey), binary_utils_1.ua2hex(delegateKey)]))
954
955
  .then(() => {
955
956
  return ownerType === 'hcp'
956
- ? this.hcpartyBaseApi.modifyHealthcareParty(owner).then((hcp) => resolve(['hcp', hcp]))
957
+ ? (this.dataOwnerCache[owner.id] = this.hcpartyBaseApi
958
+ .modifyHealthcareParty(owner)
959
+ .then((x) => ({ type: 'hcp', dataOwner: x }))).then((x) => resolve(['hcp', x.dataOwner]))
957
960
  : ownerType === 'patient'
958
- ? (this.patientCache[owner.id] = this.patientBaseApi.modifyPatient(owner)).then((patient) => {
959
- resolve(['patient', patient]);
960
- })
961
- : (this.deviceCache[owner.id] = this.deviceBaseApi.updateDevice(owner)).then((dev) => {
962
- resolve(['device', dev]);
963
- });
961
+ ? (this.dataOwnerCache[owner.id] = this.patientBaseApi
962
+ .modifyPatient(owner)
963
+ .then((x) => ({ type: 'patient', dataOwner: x }))).then((x) => resolve(['patient', x.dataOwner]))
964
+ : (this.dataOwnerCache[owner.id] = this.deviceBaseApi
965
+ .updateDevice(owner)
966
+ .then((x) => ({ type: 'device', dataOwner: x }))).then((x) => resolve(['device', x.dataOwner]));
964
967
  })
965
968
  .catch((e) => reject(e))
966
969
  : reject(new Error(`Missing public key for delegate ${delegateId}`));
@@ -976,35 +979,16 @@ class IccCryptoXApi {
976
979
  }));
977
980
  }
978
981
  getDataOwner(ownerId) {
979
- var _a, _b, _c, _d, _e;
980
- return __awaiter(this, void 0, void 0, function* () {
981
- const prom = (_e = (_b = (_a = this.patientCache[ownerId]) === null || _a === void 0 ? void 0 : _a.then((x) => ({ type: 'patient', dataOwner: x }))) !== null && _b !== void 0 ? _b : (_d = (_c = this.deviceCache[ownerId]) === null || _c === void 0 ? void 0 : _c.then((x) => ({ type: 'device', dataOwner: x }))) === null || _d === void 0 ? void 0 : _d.catch(() => null)) !== null && _e !== void 0 ? _e : this.hcpartyBaseApi.getHealthcareParty(ownerId).then((x) => ({ type: 'hcp', dataOwner: x }));
982
- try {
983
- return yield prom;
984
- }
985
- catch (e) { }
986
- try {
987
- return yield (this.deviceCache[ownerId] = this.deviceBaseApi.getDevice(ownerId))
988
- .then((x) => ({ type: 'device', dataOwner: x }))
989
- .catch((e) => {
990
- delete this.deviceCache[ownerId];
991
- throw e;
992
- });
993
- }
994
- catch (e) { }
995
- try {
996
- return (this.patientCache[ownerId] = this.patientBaseApi.getPatient(ownerId))
997
- .then((x) => ({ type: 'patient', dataOwner: x }))
998
- .catch((e) => {
999
- delete this.patientCache[ownerId];
1000
- throw e;
1001
- });
1002
- }
1003
- catch (e) {
1004
- console.error('Cannot load data owner with id ' + ownerId);
1005
- throw e;
1006
- }
1007
- });
982
+ var _a;
983
+ return ((_a = this.dataOwnerCache[ownerId]) !== null && _a !== void 0 ? _a : (this.dataOwnerCache[ownerId] = this.patientBaseApi
984
+ .getPatient(ownerId)
985
+ .then((x) => ({ type: 'patient', dataOwner: x }))
986
+ .catch(() => this.deviceBaseApi.getDevice(ownerId).then((x) => ({ type: 'device', dataOwner: x })))
987
+ .catch(() => this.hcpartyBaseApi.getHealthcareParty(ownerId).then((x) => ({ type: 'hcp', dataOwner: x })))
988
+ .catch((e) => {
989
+ delete this.dataOwnerCache[ownerId];
990
+ throw e;
991
+ })));
1008
992
  }
1009
993
  // noinspection JSUnusedGlobalSymbols
1010
994
  checkPrivateKeyValidity(hcp) {