@icure/cardinal-sdk 2.0.0-PREVIEW-18.1 → 2.0.0-PREVIEW-21
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/Kermit-kermit-core.mjs +45 -40
- package/Kermit-kermit.mjs +6 -6
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1577 -1577
- package/api/HealthcarePartyApi.d.mts +2 -0
- package/api/HealthcarePartyApiInGroup.d.mts +5 -0
- package/api/HealthcarePartyApiInGroup.mjs +1 -0
- package/api/RecoveryApi.d.mts +5 -1
- package/api.d.mts +1 -0
- package/api.mjs +1 -0
- package/bitops-library-bits.mjs +197 -0
- package/bitops-library-endian.mjs +117 -0
- package/cardinal-sdk-ts.d.mts +2 -2
- package/cardinal-sdk-ts.mjs +57007 -56794
- package/cardinal-sdk.mjs +120895 -120501
- package/core-library-digest.mjs +186 -0
- package/crypto/CryptoService.d.mts +17 -7
- package/error-library-error.mjs +42 -0
- package/hash-library-sha2.mjs +183 -0
- package/internal/BytesEncoding.d.mts +3 -0
- package/internal/BytesEncoding.mjs +99 -0
- package/internal/JsonDecodeUtils.d.mts +20 -0
- package/internal/JsonDecodeUtils.mjs +99 -0
- package/kerberus.mjs +557 -389
- package/kotlin-kotlin-stdlib.mjs +2445 -2713
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2455 -2450
- package/kotlinx-io-kotlinx-io-bytestring.mjs +36 -36
- package/kotlinx-io-kotlinx-io-core.mjs +459 -459
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2029 -2029
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1952 -1952
- package/kryptom-lib.mjs +3263 -1967
- package/ktor-ktor-client-content-negotiation.mjs +184 -184
- package/ktor-ktor-client-core.mjs +2713 -2713
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +481 -481
- package/ktor-ktor-http.mjs +693 -693
- package/ktor-ktor-io.mjs +963 -963
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +238 -238
- package/ktor-ktor-serialization.mjs +109 -109
- package/ktor-ktor-utils.mjs +557 -557
- package/ktor-ktor-websockets.mjs +673 -673
- package/model/AccessLog.d.mts +5 -0
- package/model/AccessLog.mjs +168 -0
- package/model/Agenda.d.mts +2 -0
- package/model/Agenda.mjs +82 -0
- package/model/ApplicationSettings.d.mts +5 -0
- package/model/ApplicationSettings.mjs +140 -0
- package/model/BooleanResponse.d.mts +2 -0
- package/model/BooleanResponse.mjs +20 -0
- package/model/CalendarItem.d.mts +5 -0
- package/model/CalendarItem.mjs +290 -0
- package/model/CalendarItemType.d.mts +7 -0
- package/model/CalendarItemType.mjs +117 -0
- package/model/Classification.d.mts +5 -0
- package/model/Classification.mjs +148 -0
- package/model/Code.d.mts +2 -0
- package/model/Code.mjs +69 -0
- package/model/Contact.d.mts +5 -0
- package/model/Contact.mjs +218 -0
- package/model/CryptoActorStub.d.mts +2 -0
- package/model/CryptoActorStub.mjs +45 -0
- package/model/CryptoActorStubWithType.d.mts +2 -0
- package/model/CryptoActorStubWithType.mjs +25 -0
- package/model/DataOwnerRegistrationSuccess.d.mts +2 -0
- package/model/DataOwnerRegistrationSuccess.mjs +24 -0
- package/model/DataOwnerWithType.d.mts +7 -0
- package/model/DataOwnerWithType.mjs +80 -0
- package/model/DatabaseInitialisation.d.mts +2 -0
- package/model/DatabaseInitialisation.mjs +34 -0
- package/model/Device.d.mts +2 -0
- package/model/Device.mjs +99 -0
- package/model/Document.d.mts +5 -0
- package/model/Document.mjs +246 -0
- package/model/DocumentTemplate.d.mts +2 -0
- package/model/DocumentTemplate.mjs +91 -0
- package/model/EntityReference.d.mts +2 -0
- package/model/EntityReference.mjs +29 -0
- package/model/EntityReferenceInGroup.d.mts +2 -0
- package/model/EntityReferenceInGroup.mjs +23 -0
- package/model/EntityTemplate.d.mts +2 -0
- package/model/EntityTemplate.mjs +46 -0
- package/model/Form.d.mts +5 -0
- package/model/Form.mjs +204 -0
- package/model/FormTemplate.d.mts +2 -0
- package/model/FormTemplate.mjs +82 -0
- package/model/FrontEndMigration.d.mts +2 -0
- package/model/FrontEndMigration.mjs +57 -0
- package/model/Group.d.mts +2 -0
- package/model/Group.mjs +68 -0
- package/model/GroupDeletionReport.d.mts +2 -0
- package/model/GroupDeletionReport.mjs +24 -0
- package/model/HealthElement.d.mts +5 -0
- package/model/HealthElement.mjs +226 -0
- package/model/HealthcareParty.d.mts +2 -0
- package/model/HealthcareParty.mjs +182 -0
- package/model/IdWithRev.d.mts +2 -0
- package/model/IdWithRev.mjs +23 -0
- package/model/IndexingInfo.d.mts +2 -0
- package/model/IndexingInfo.mjs +21 -0
- package/model/Insurance.d.mts +2 -0
- package/model/Insurance.mjs +46 -0
- package/model/Invoice.d.mts +5 -0
- package/model/Invoice.mjs +468 -0
- package/model/Keyword.d.mts +2 -0
- package/model/Keyword.mjs +58 -0
- package/model/ListOfIds.d.mts +2 -0
- package/model/ListOfIds.mjs +20 -0
- package/model/ListOfProperties.d.mts +2 -0
- package/model/ListOfProperties.mjs +22 -0
- package/model/MaintenanceTask.d.mts +5 -0
- package/model/MaintenanceTask.mjs +152 -0
- package/model/MedicalLocation.d.mts +2 -0
- package/model/MedicalLocation.mjs +63 -0
- package/model/Message.d.mts +5 -0
- package/model/Message.mjs +248 -0
- package/model/PaginatedDocumentKeyIdPair.d.mts +2 -0
- package/model/PaginatedDocumentKeyIdPair.mjs +24 -0
- package/model/Patient.d.mts +5 -0
- package/model/Patient.mjs +491 -0
- package/model/Place.d.mts +2 -0
- package/model/Place.mjs +33 -0
- package/model/PropertyStub.d.mts +5 -0
- package/model/PropertyStub.mjs +74 -0
- package/model/PropertyTypeStub.d.mts +2 -0
- package/model/PropertyTypeStub.mjs +26 -0
- package/model/PublicAgendasAndCalendarItemTypes.d.mts +2 -0
- package/model/PublicAgendasAndCalendarItemTypes.mjs +25 -0
- package/model/PublicKey.d.mts +2 -0
- package/model/PublicKey.mjs +24 -0
- package/model/Receipt.d.mts +5 -0
- package/model/Receipt.mjs +159 -0
- package/model/RegistrationInformation.d.mts +2 -0
- package/model/RegistrationInformation.mjs +43 -0
- package/model/RegistrationSuccess.d.mts +2 -0
- package/model/RegistrationSuccess.mjs +24 -0
- package/model/Replication.d.mts +2 -0
- package/model/Replication.mjs +35 -0
- package/model/ReplicationInfo.d.mts +2 -0
- package/model/ReplicationInfo.mjs +28 -0
- package/model/Role.d.mts +2 -0
- package/model/Role.mjs +34 -0
- package/model/StoredDocumentIdentifier.d.mts +2 -0
- package/model/StoredDocumentIdentifier.mjs +22 -0
- package/model/Tarification.d.mts +2 -0
- package/model/Tarification.mjs +92 -0
- package/model/TimeTable.d.mts +2 -0
- package/model/TimeTable.mjs +64 -0
- package/model/Topic.d.mts +5 -0
- package/model/Topic.mjs +163 -0
- package/model/User.d.mts +4 -0
- package/model/User.mjs +118 -0
- package/model/UserGroup.d.mts +2 -0
- package/model/UserGroup.mjs +55 -0
- package/model/base/CodeStub.d.mts +2 -0
- package/model/base/CodeStub.mjs +40 -0
- package/model/base/CryptoActor.d.mts +3 -0
- package/model/base/CryptoActor.mjs +19 -1
- package/model/base/Identifier.d.mts +2 -0
- package/model/base/Identifier.mjs +44 -0
- package/model/couchdb/Basic.d.mts +2 -0
- package/model/couchdb/Basic.mjs +22 -0
- package/model/couchdb/DatabaseInfo.d.mts +2 -0
- package/model/couchdb/DatabaseInfo.mjs +47 -0
- package/model/couchdb/DesignDocument.d.mts +2 -0
- package/model/couchdb/DesignDocument.mjs +40 -0
- package/model/couchdb/DocIdentifier.d.mts +2 -0
- package/model/couchdb/DocIdentifier.mjs +24 -0
- package/model/couchdb/GroupDatabasesInfo.d.mts +2 -0
- package/model/couchdb/GroupDatabasesInfo.mjs +26 -0
- package/model/couchdb/Remote.d.mts +2 -0
- package/model/couchdb/Remote.mjs +25 -0
- package/model/couchdb/RemoteAuthentication.d.mts +2 -0
- package/model/couchdb/RemoteAuthentication.mjs +23 -0
- package/model/couchdb/ReplicationStats.d.mts +2 -0
- package/model/couchdb/ReplicationStats.mjs +45 -0
- package/model/couchdb/ReplicatorDocument.d.mts +2 -0
- package/model/couchdb/ReplicatorDocument.mjs +61 -0
- package/model/couchdb/View.d.mts +2 -0
- package/model/couchdb/View.mjs +23 -0
- package/model/data/LabelledOccurence.d.mts +2 -0
- package/model/data/LabelledOccurence.mjs +22 -0
- package/model/embed/Address.d.mts +5 -0
- package/model/embed/Address.mjs +133 -0
- package/model/embed/AdministrationQuantity.d.mts +2 -0
- package/model/embed/AdministrationQuantity.mjs +29 -0
- package/model/embed/AgendaSlottingAlgorithm.d.mts +3 -0
- package/model/embed/AgendaSlottingAlgorithm.mjs +30 -0
- package/model/embed/AgreementAppendix.d.mts +2 -0
- package/model/embed/AgreementAppendix.mjs +30 -0
- package/model/embed/Annotation.d.mts +2 -0
- package/model/embed/Annotation.mjs +46 -0
- package/model/embed/CalendarItemTag.d.mts +5 -0
- package/model/embed/CalendarItemTag.mjs +72 -0
- package/model/embed/CareTeamMember.d.mts +5 -0
- package/model/embed/CareTeamMember.mjs +71 -0
- package/model/embed/CareTeamMembership.d.mts +5 -0
- package/model/embed/CareTeamMembership.mjs +73 -0
- package/model/embed/Content.d.mts +5 -0
- package/model/embed/Content.mjs +125 -0
- package/model/embed/DataAttachment.d.mts +2 -0
- package/model/embed/DataAttachment.mjs +26 -0
- package/model/embed/DatabaseSynchronization.d.mts +2 -0
- package/model/embed/DatabaseSynchronization.mjs +30 -0
- package/model/embed/Delegation.d.mts +2 -0
- package/model/embed/Delegation.mjs +30 -0
- package/model/embed/DeletedAttachment.d.mts +2 -0
- package/model/embed/DeletedAttachment.mjs +30 -0
- package/model/embed/DocumentGroup.d.mts +2 -0
- package/model/embed/DocumentGroup.mjs +24 -0
- package/model/embed/Duration.d.mts +2 -0
- package/model/embed/Duration.mjs +26 -0
- package/model/embed/EmbeddedTimeTableHour.d.mts +2 -0
- package/model/embed/EmbeddedTimeTableHour.mjs +22 -0
- package/model/embed/EmbeddedTimeTableItem.d.mts +2 -0
- package/model/embed/EmbeddedTimeTableItem.mjs +41 -0
- package/model/embed/Employer.d.mts +2 -0
- package/model/embed/Employer.mjs +26 -0
- package/model/embed/EmploymentInfo.d.mts +5 -0
- package/model/embed/EmploymentInfo.mjs +74 -0
- package/model/embed/Episode.d.mts +5 -0
- package/model/embed/Episode.mjs +75 -0
- package/model/embed/FinancialInstitutionInformation.d.mts +5 -0
- package/model/embed/FinancialInstitutionInformation.mjs +88 -0
- package/model/embed/FlatRateTarification.d.mts +5 -0
- package/model/embed/FlatRateTarification.mjs +72 -0
- package/model/embed/FlowItem.d.mts +2 -0
- package/model/embed/FlowItem.mjs +117 -0
- package/model/embed/HealthcarePartyHistoryStatus.d.mts +2 -0
- package/model/embed/HealthcarePartyHistoryStatus.mjs +28 -0
- package/model/embed/IdentityDocumentReader.d.mts +2 -0
- package/model/embed/IdentityDocumentReader.mjs +33 -0
- package/model/embed/Insurability.d.mts +5 -0
- package/model/embed/Insurability.mjs +100 -0
- package/model/embed/InvoicingCode.d.mts +5 -0
- package/model/embed/InvoicingCode.mjs +377 -0
- package/model/embed/KeywordSubword.d.mts +2 -0
- package/model/embed/KeywordSubword.mjs +25 -0
- package/model/embed/LetterValue.d.mts +2 -0
- package/model/embed/LetterValue.mjs +30 -0
- package/model/embed/Measure.d.mts +2 -0
- package/model/embed/Measure.mjs +57 -0
- package/model/embed/MedicalHouseContract.d.mts +5 -0
- package/model/embed/MedicalHouseContract.mjs +223 -0
- package/model/embed/Medication.d.mts +2 -0
- package/model/embed/Medication.mjs +157 -0
- package/model/embed/Medicinalproduct.d.mts +2 -0
- package/model/embed/Medicinalproduct.mjs +33 -0
- package/model/embed/MessageAttachment.d.mts +2 -0
- package/model/embed/MessageAttachment.mjs +25 -0
- package/model/embed/MessageReadStatus.d.mts +2 -0
- package/model/embed/MessageReadStatus.mjs +23 -0
- package/model/embed/ParagraphAgreement.d.mts +2 -0
- package/model/embed/ParagraphAgreement.mjs +86 -0
- package/model/embed/Partnership.d.mts +2 -0
- package/model/embed/Partnership.mjs +36 -0
- package/model/embed/PatientHealthCareParty.d.mts +9 -0
- package/model/embed/PatientHealthCareParty.mjs +88 -0
- package/model/embed/Payment.d.mts +2 -0
- package/model/embed/Payment.mjs +28 -0
- package/model/embed/Periodicity.d.mts +2 -0
- package/model/embed/Periodicity.mjs +26 -0
- package/model/embed/PersonName.d.mts +2 -0
- package/model/embed/PersonName.mjs +41 -0
- package/model/embed/PlanOfAction.d.mts +8 -3
- package/model/embed/PlanOfAction.mjs +179 -0
- package/model/embed/Range.d.mts +2 -0
- package/model/embed/Range.mjs +24 -0
- package/model/embed/ReferenceRange.d.mts +2 -0
- package/model/embed/ReferenceRange.mjs +40 -0
- package/model/embed/ReferralPeriod.d.mts +2 -0
- package/model/embed/ReferralPeriod.mjs +27 -0
- package/model/embed/RegimenItem.d.mts +2 -0
- package/model/embed/RegimenItem.mjs +40 -0
- package/model/embed/Renewal.d.mts +2 -0
- package/model/embed/Renewal.mjs +26 -0
- package/model/embed/ResourceGroupAllocationSchedule.d.mts +2 -0
- package/model/embed/ResourceGroupAllocationSchedule.mjs +39 -0
- package/model/embed/Right.d.mts +2 -0
- package/model/embed/Right.mjs +27 -0
- package/model/embed/RoleConfiguration.d.mts +2 -0
- package/model/embed/RoleConfiguration.mjs +22 -0
- package/model/embed/SchoolingInfo.d.mts +5 -0
- package/model/embed/SchoolingInfo.mjs +73 -0
- package/model/embed/SecureDelegation.d.mts +2 -0
- package/model/embed/SecureDelegation.mjs +39 -0
- package/model/embed/SecurityMetadata.d.mts +2 -0
- package/model/embed/SecurityMetadata.mjs +22 -0
- package/model/embed/Service.d.mts +5 -0
- package/model/embed/Service.mjs +240 -0
- package/model/embed/ServiceLink.d.mts +2 -0
- package/model/embed/ServiceLink.mjs +21 -0
- package/model/embed/SubContact.d.mts +5 -0
- package/model/embed/SubContact.mjs +146 -0
- package/model/embed/Substanceproduct.d.mts +2 -0
- package/model/embed/Substanceproduct.mjs +33 -0
- package/model/embed/Suspension.d.mts +2 -0
- package/model/embed/Suspension.mjs +30 -0
- package/model/embed/Telecom.d.mts +5 -0
- package/model/embed/Telecom.mjs +67 -0
- package/model/embed/TimeSeries.d.mts +2 -0
- package/model/embed/TimeSeries.mjs +32 -0
- package/model/embed/TimeTableHour.d.mts +2 -0
- package/model/embed/TimeTableHour.mjs +24 -0
- package/model/embed/TimeTableItem.d.mts +2 -0
- package/model/embed/TimeTableItem.mjs +57 -0
- package/model/embed/TypedValue.d.mts +5 -0
- package/model/embed/TypedValue.mjs +85 -0
- package/model/embed/Valorisation.d.mts +5 -0
- package/model/embed/Valorisation.mjs +108 -0
- package/model/embed/ValueWithPrecision.d.mts +2 -0
- package/model/embed/ValueWithPrecision.mjs +22 -0
- package/model/embed/Weekday.d.mts +2 -0
- package/model/embed/Weekday.mjs +26 -0
- package/model/embed/form/template/Action.d.mts +2 -0
- package/model/embed/form/template/Action.mjs +30 -0
- package/model/embed/form/template/CheckBox.d.mts +2 -0
- package/model/embed/form/template/CheckBox.mjs +71 -0
- package/model/embed/form/template/DatePicker.d.mts +2 -0
- package/model/embed/form/template/DatePicker.mjs +71 -0
- package/model/embed/form/template/DateTimePicker.d.mts +2 -0
- package/model/embed/form/template/DateTimePicker.mjs +71 -0
- package/model/embed/form/template/DropdownField.d.mts +2 -0
- package/model/embed/form/template/DropdownField.mjs +71 -0
- package/model/embed/form/template/FieldsGroup.d.mts +2 -0
- package/model/embed/form/template/FieldsGroup.mjs +28 -0
- package/model/embed/form/template/FormTemplateLayout.d.mts +2 -0
- package/model/embed/form/template/FormTemplateLayout.mjs +33 -0
- package/model/embed/form/template/Launcher.d.mts +2 -0
- package/model/embed/form/template/Launcher.mjs +26 -0
- package/model/embed/form/template/MeasureField.d.mts +2 -0
- package/model/embed/form/template/MeasureField.mjs +71 -0
- package/model/embed/form/template/MultipleChoice.d.mts +2 -0
- package/model/embed/form/template/MultipleChoice.mjs +71 -0
- package/model/embed/form/template/NumberField.d.mts +2 -0
- package/model/embed/form/template/NumberField.mjs +71 -0
- package/model/embed/form/template/RadioButton.d.mts +2 -0
- package/model/embed/form/template/RadioButton.mjs +71 -0
- package/model/embed/form/template/Section.d.mts +2 -0
- package/model/embed/form/template/Section.mjs +30 -0
- package/model/embed/form/template/State.d.mts +2 -0
- package/model/embed/form/template/State.mjs +26 -0
- package/model/embed/form/template/StructureElement.d.mts +3 -0
- package/model/embed/form/template/StructureElement.mjs +32 -1
- package/model/embed/form/template/TextField.d.mts +2 -0
- package/model/embed/form/template/TextField.mjs +71 -0
- package/model/embed/form/template/TimePicker.d.mts +2 -0
- package/model/embed/form/template/TimePicker.mjs +71 -0
- package/model/filter/predicate/AlwaysPredicate.d.mts +2 -0
- package/model/filter/predicate/AlwaysPredicate.mjs +20 -0
- package/model/filter/predicate/AndPredicate.d.mts +2 -0
- package/model/filter/predicate/AndPredicate.mjs +25 -0
- package/model/filter/predicate/KeyValuePredicate.d.mts +2 -0
- package/model/filter/predicate/KeyValuePredicate.mjs +32 -0
- package/model/filter/predicate/NotPredicate.d.mts +2 -0
- package/model/filter/predicate/NotPredicate.mjs +25 -0
- package/model/filter/predicate/OrPredicate.d.mts +2 -0
- package/model/filter/predicate/OrPredicate.mjs +25 -0
- package/model/filter/predicate/Predicate.d.mts +3 -0
- package/model/filter/predicate/Predicate.mjs +20 -1
- package/model/security/AlwaysPermissionItem.d.mts +2 -0
- package/model/security/AlwaysPermissionItem.mjs +25 -0
- package/model/security/AuthenticationToken.d.mts +2 -0
- package/model/security/AuthenticationToken.mjs +28 -0
- package/model/security/Enable2faRequest.d.mts +2 -0
- package/model/security/Enable2faRequest.mjs +22 -0
- package/model/security/ExternalJwtConfig.d.mts +18 -0
- package/model/security/ExternalJwtConfig.mjs +199 -0
- package/model/security/LoginIdentifier.d.mts +2 -0
- package/model/security/LoginIdentifier.mjs +22 -0
- package/model/security/OperationToken.d.mts +2 -0
- package/model/security/OperationToken.mjs +31 -0
- package/model/security/Permission.d.mts +2 -0
- package/model/security/Permission.mjs +24 -0
- package/model/security/PermissionItem.d.mts +3 -0
- package/model/security/PermissionItem.mjs +12 -1
- package/model/security/TokenWithGroup.d.mts +2 -0
- package/model/security/TokenWithGroup.mjs +25 -0
- package/options/SdkOptions.d.mts +3 -23
- package/package.json +1 -1
- package/utils/Id.d.mts +5 -0
- package/utils/Id.mjs +19 -10
- package/KotlinBigInteger-bignum.mjs +0 -5902
- /package/{KotlinBigInteger-bignum-serialization-kotlinx.mjs → core-library-core.mjs} +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectArray, expectMap, expectObject, expectString, expectStringEnum, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
import { FlatRateType } from './FlatRateType.mjs';
|
|
4
|
+
import { DecryptedValorisation, EncryptedValorisation } from './Valorisation.mjs';
|
|
1
5
|
export class DecryptedFlatRateTarification {
|
|
2
6
|
constructor(partial) {
|
|
3
7
|
this.code = undefined;
|
|
@@ -19,6 +23,40 @@ export class DecryptedFlatRateTarification {
|
|
|
19
23
|
if ('encryptedSelf' in partial)
|
|
20
24
|
this.encryptedSelf = partial.encryptedSelf;
|
|
21
25
|
}
|
|
26
|
+
toJSON() {
|
|
27
|
+
const res = {};
|
|
28
|
+
if (this.code != undefined)
|
|
29
|
+
res['code'] = this.code;
|
|
30
|
+
if (this.flatRateType != undefined)
|
|
31
|
+
res['flatRateType'] = this.flatRateType;
|
|
32
|
+
if (this.label != undefined)
|
|
33
|
+
res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
|
|
34
|
+
res['valorisations'] = this.valorisations.map((x0) => x0.toJSON());
|
|
35
|
+
if (this.encryptedSelf != undefined)
|
|
36
|
+
res['encryptedSelf'] = this.encryptedSelf;
|
|
37
|
+
res['isEncrypted'] = false;
|
|
38
|
+
return res;
|
|
39
|
+
}
|
|
40
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['DecryptedFlatRateTarification']) {
|
|
41
|
+
if (typeof json != 'object')
|
|
42
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
43
|
+
const jCpy = Object.assign({}, json);
|
|
44
|
+
if (extractEntry(jCpy, "isEncrypted", true, path) !== false)
|
|
45
|
+
throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be false. The provided json doesn't represent a DecryptedFlatRateTarification`);
|
|
46
|
+
const res = new DecryptedFlatRateTarification({
|
|
47
|
+
code: expectString(extractEntry(jCpy, 'code', false, path), true, [...path, ".code"]),
|
|
48
|
+
flatRateType: expectStringEnum(extractEntry(jCpy, 'flatRateType', false, path), true, [...path, ".flatRateType"], FlatRateType, 'FlatRateType'),
|
|
49
|
+
label: expectMap(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|
|
50
|
+
valorisations: expectArray(extractEntry(jCpy, 'valorisations', false, path), false, [...path, ".valorisations"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, DecryptedValorisation.fromJSON)),
|
|
51
|
+
encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
|
|
52
|
+
});
|
|
53
|
+
if (!ignoreUnknownKeys) {
|
|
54
|
+
const unused = Object.keys(jCpy);
|
|
55
|
+
if (unused.length > 0)
|
|
56
|
+
throw new Error(`Unexpected key(s) for json object DecryptedFlatRateTarification at path ${path.join("")}: ${unused}`);
|
|
57
|
+
}
|
|
58
|
+
return res;
|
|
59
|
+
}
|
|
22
60
|
}
|
|
23
61
|
export class EncryptedFlatRateTarification {
|
|
24
62
|
constructor(partial) {
|
|
@@ -41,4 +79,38 @@ export class EncryptedFlatRateTarification {
|
|
|
41
79
|
if ('encryptedSelf' in partial)
|
|
42
80
|
this.encryptedSelf = partial.encryptedSelf;
|
|
43
81
|
}
|
|
82
|
+
toJSON() {
|
|
83
|
+
const res = {};
|
|
84
|
+
if (this.code != undefined)
|
|
85
|
+
res['code'] = this.code;
|
|
86
|
+
if (this.flatRateType != undefined)
|
|
87
|
+
res['flatRateType'] = this.flatRateType;
|
|
88
|
+
if (this.label != undefined)
|
|
89
|
+
res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
|
|
90
|
+
res['valorisations'] = this.valorisations.map((x0) => x0.toJSON());
|
|
91
|
+
if (this.encryptedSelf != undefined)
|
|
92
|
+
res['encryptedSelf'] = this.encryptedSelf;
|
|
93
|
+
res['isEncrypted'] = true;
|
|
94
|
+
return res;
|
|
95
|
+
}
|
|
96
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['EncryptedFlatRateTarification']) {
|
|
97
|
+
if (typeof json != 'object')
|
|
98
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
99
|
+
const jCpy = Object.assign({}, json);
|
|
100
|
+
if (extractEntry(jCpy, "isEncrypted", true, path) !== true)
|
|
101
|
+
throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be true. The provided json doesn't represent a EncryptedFlatRateTarification`);
|
|
102
|
+
const res = new EncryptedFlatRateTarification({
|
|
103
|
+
code: expectString(extractEntry(jCpy, 'code', false, path), true, [...path, ".code"]),
|
|
104
|
+
flatRateType: expectStringEnum(extractEntry(jCpy, 'flatRateType', false, path), true, [...path, ".flatRateType"], FlatRateType, 'FlatRateType'),
|
|
105
|
+
label: expectMap(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|
|
106
|
+
valorisations: expectArray(extractEntry(jCpy, 'valorisations', false, path), false, [...path, ".valorisations"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, EncryptedValorisation.fromJSON)),
|
|
107
|
+
encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
|
|
108
|
+
});
|
|
109
|
+
if (!ignoreUnknownKeys) {
|
|
110
|
+
const unused = Object.keys(jCpy);
|
|
111
|
+
if (unused.length > 0)
|
|
112
|
+
throw new Error(`Unexpected key(s) for json object EncryptedFlatRateTarification at path ${path.join("")}: ${unused}`);
|
|
113
|
+
}
|
|
114
|
+
return res;
|
|
115
|
+
}
|
|
44
116
|
}
|
|
@@ -33,4 +33,6 @@ export declare class FlowItem {
|
|
|
33
33
|
description: string | undefined;
|
|
34
34
|
interventionCode: string | undefined;
|
|
35
35
|
constructor(partial: Partial<FlowItem>);
|
|
36
|
+
toJSON(): object;
|
|
37
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): FlowItem;
|
|
36
38
|
}
|
package/model/embed/FlowItem.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// auto-generated file
|
|
2
|
+
import { expectBoolean, expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
2
3
|
export class FlowItem {
|
|
3
4
|
constructor(partial) {
|
|
4
5
|
this.id = undefined;
|
|
@@ -101,4 +102,120 @@ export class FlowItem {
|
|
|
101
102
|
if ('interventionCode' in partial)
|
|
102
103
|
this.interventionCode = partial.interventionCode;
|
|
103
104
|
}
|
|
105
|
+
toJSON() {
|
|
106
|
+
const res = {};
|
|
107
|
+
if (this.id != undefined)
|
|
108
|
+
res['id'] = this.id;
|
|
109
|
+
if (this.title != undefined)
|
|
110
|
+
res['title'] = this.title;
|
|
111
|
+
if (this.comment != undefined)
|
|
112
|
+
res['comment'] = this.comment;
|
|
113
|
+
if (this.receptionDate != undefined)
|
|
114
|
+
res['receptionDate'] = this.receptionDate;
|
|
115
|
+
if (this.processingDate != undefined)
|
|
116
|
+
res['processingDate'] = this.processingDate;
|
|
117
|
+
if (this.processer != undefined)
|
|
118
|
+
res['processer'] = this.processer;
|
|
119
|
+
if (this.cancellationDate != undefined)
|
|
120
|
+
res['cancellationDate'] = this.cancellationDate;
|
|
121
|
+
if (this.canceller != undefined)
|
|
122
|
+
res['canceller'] = this.canceller;
|
|
123
|
+
if (this.cancellationReason != undefined)
|
|
124
|
+
res['cancellationReason'] = this.cancellationReason;
|
|
125
|
+
if (this.cancellationNote != undefined)
|
|
126
|
+
res['cancellationNote'] = this.cancellationNote;
|
|
127
|
+
if (this.status != undefined)
|
|
128
|
+
res['status'] = this.status;
|
|
129
|
+
if (this.homeVisit != undefined)
|
|
130
|
+
res['homeVisit'] = this.homeVisit;
|
|
131
|
+
if (this.municipality != undefined)
|
|
132
|
+
res['municipality'] = this.municipality;
|
|
133
|
+
if (this.town != undefined)
|
|
134
|
+
res['town'] = this.town;
|
|
135
|
+
if (this.zipCode != undefined)
|
|
136
|
+
res['zipCode'] = this.zipCode;
|
|
137
|
+
if (this.street != undefined)
|
|
138
|
+
res['street'] = this.street;
|
|
139
|
+
if (this.building != undefined)
|
|
140
|
+
res['building'] = this.building;
|
|
141
|
+
if (this.buildingNumber != undefined)
|
|
142
|
+
res['buildingNumber'] = this.buildingNumber;
|
|
143
|
+
if (this.doorbellName != undefined)
|
|
144
|
+
res['doorbellName'] = this.doorbellName;
|
|
145
|
+
if (this.floor != undefined)
|
|
146
|
+
res['floor'] = this.floor;
|
|
147
|
+
if (this.letterBox != undefined)
|
|
148
|
+
res['letterBox'] = this.letterBox;
|
|
149
|
+
if (this.notesOps != undefined)
|
|
150
|
+
res['notesOps'] = this.notesOps;
|
|
151
|
+
if (this.notesContact != undefined)
|
|
152
|
+
res['notesContact'] = this.notesContact;
|
|
153
|
+
if (this.latitude != undefined)
|
|
154
|
+
res['latitude'] = this.latitude;
|
|
155
|
+
if (this.longitude != undefined)
|
|
156
|
+
res['longitude'] = this.longitude;
|
|
157
|
+
if (this.type != undefined)
|
|
158
|
+
res['type'] = this.type;
|
|
159
|
+
if (this.emergency != undefined)
|
|
160
|
+
res['emergency'] = this.emergency;
|
|
161
|
+
if (this.phoneNumber != undefined)
|
|
162
|
+
res['phoneNumber'] = this.phoneNumber;
|
|
163
|
+
if (this.patientId != undefined)
|
|
164
|
+
res['patientId'] = this.patientId;
|
|
165
|
+
if (this.patientLastName != undefined)
|
|
166
|
+
res['patientLastName'] = this.patientLastName;
|
|
167
|
+
if (this.patientFirstName != undefined)
|
|
168
|
+
res['patientFirstName'] = this.patientFirstName;
|
|
169
|
+
if (this.description != undefined)
|
|
170
|
+
res['description'] = this.description;
|
|
171
|
+
if (this.interventionCode != undefined)
|
|
172
|
+
res['interventionCode'] = this.interventionCode;
|
|
173
|
+
return res;
|
|
174
|
+
}
|
|
175
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['FlowItem']) {
|
|
176
|
+
if (typeof json != 'object')
|
|
177
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
178
|
+
const jCpy = Object.assign({}, json);
|
|
179
|
+
const res = new FlowItem({
|
|
180
|
+
id: expectString(extractEntry(jCpy, 'id', false, path), true, [...path, ".id"]),
|
|
181
|
+
title: expectString(extractEntry(jCpy, 'title', false, path), true, [...path, ".title"]),
|
|
182
|
+
comment: expectString(extractEntry(jCpy, 'comment', false, path), true, [...path, ".comment"]),
|
|
183
|
+
receptionDate: expectNumber(extractEntry(jCpy, 'receptionDate', false, path), true, true, [...path, ".receptionDate"]),
|
|
184
|
+
processingDate: expectNumber(extractEntry(jCpy, 'processingDate', false, path), true, true, [...path, ".processingDate"]),
|
|
185
|
+
processer: expectString(extractEntry(jCpy, 'processer', false, path), true, [...path, ".processer"]),
|
|
186
|
+
cancellationDate: expectNumber(extractEntry(jCpy, 'cancellationDate', false, path), true, true, [...path, ".cancellationDate"]),
|
|
187
|
+
canceller: expectString(extractEntry(jCpy, 'canceller', false, path), true, [...path, ".canceller"]),
|
|
188
|
+
cancellationReason: expectString(extractEntry(jCpy, 'cancellationReason', false, path), true, [...path, ".cancellationReason"]),
|
|
189
|
+
cancellationNote: expectString(extractEntry(jCpy, 'cancellationNote', false, path), true, [...path, ".cancellationNote"]),
|
|
190
|
+
status: expectString(extractEntry(jCpy, 'status', false, path), true, [...path, ".status"]),
|
|
191
|
+
homeVisit: expectBoolean(extractEntry(jCpy, 'homeVisit', false, path), true, [...path, ".homeVisit"]),
|
|
192
|
+
municipality: expectString(extractEntry(jCpy, 'municipality', false, path), true, [...path, ".municipality"]),
|
|
193
|
+
town: expectString(extractEntry(jCpy, 'town', false, path), true, [...path, ".town"]),
|
|
194
|
+
zipCode: expectString(extractEntry(jCpy, 'zipCode', false, path), true, [...path, ".zipCode"]),
|
|
195
|
+
street: expectString(extractEntry(jCpy, 'street', false, path), true, [...path, ".street"]),
|
|
196
|
+
building: expectString(extractEntry(jCpy, 'building', false, path), true, [...path, ".building"]),
|
|
197
|
+
buildingNumber: expectString(extractEntry(jCpy, 'buildingNumber', false, path), true, [...path, ".buildingNumber"]),
|
|
198
|
+
doorbellName: expectString(extractEntry(jCpy, 'doorbellName', false, path), true, [...path, ".doorbellName"]),
|
|
199
|
+
floor: expectString(extractEntry(jCpy, 'floor', false, path), true, [...path, ".floor"]),
|
|
200
|
+
letterBox: expectString(extractEntry(jCpy, 'letterBox', false, path), true, [...path, ".letterBox"]),
|
|
201
|
+
notesOps: expectString(extractEntry(jCpy, 'notesOps', false, path), true, [...path, ".notesOps"]),
|
|
202
|
+
notesContact: expectString(extractEntry(jCpy, 'notesContact', false, path), true, [...path, ".notesContact"]),
|
|
203
|
+
latitude: expectString(extractEntry(jCpy, 'latitude', false, path), true, [...path, ".latitude"]),
|
|
204
|
+
longitude: expectString(extractEntry(jCpy, 'longitude', false, path), true, [...path, ".longitude"]),
|
|
205
|
+
type: expectString(extractEntry(jCpy, 'type', false, path), true, [...path, ".type"]),
|
|
206
|
+
emergency: expectBoolean(extractEntry(jCpy, 'emergency', false, path), true, [...path, ".emergency"]),
|
|
207
|
+
phoneNumber: expectString(extractEntry(jCpy, 'phoneNumber', false, path), true, [...path, ".phoneNumber"]),
|
|
208
|
+
patientId: expectString(extractEntry(jCpy, 'patientId', false, path), true, [...path, ".patientId"]),
|
|
209
|
+
patientLastName: expectString(extractEntry(jCpy, 'patientLastName', false, path), true, [...path, ".patientLastName"]),
|
|
210
|
+
patientFirstName: expectString(extractEntry(jCpy, 'patientFirstName', false, path), true, [...path, ".patientFirstName"]),
|
|
211
|
+
description: expectString(extractEntry(jCpy, 'description', false, path), true, [...path, ".description"]),
|
|
212
|
+
interventionCode: expectString(extractEntry(jCpy, 'interventionCode', false, path), true, [...path, ".interventionCode"]),
|
|
213
|
+
});
|
|
214
|
+
if (!ignoreUnknownKeys) {
|
|
215
|
+
const unused = Object.keys(jCpy);
|
|
216
|
+
if (unused.length > 0)
|
|
217
|
+
throw new Error(`Unexpected key(s) for json object FlowItem at path ${path.join("")}: ${unused}`);
|
|
218
|
+
}
|
|
219
|
+
return res;
|
|
220
|
+
}
|
|
104
221
|
}
|
|
@@ -5,4 +5,6 @@ export declare class HealthcarePartyHistoryStatus {
|
|
|
5
5
|
startDate: number;
|
|
6
6
|
active: boolean;
|
|
7
7
|
constructor(partial: Partial<HealthcarePartyHistoryStatus> & Pick<HealthcarePartyHistoryStatus, "status" | "specialisationCode" | "startDate" | "active">);
|
|
8
|
+
toJSON(): object;
|
|
9
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): HealthcarePartyHistoryStatus;
|
|
8
10
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectBoolean, expectNumber, expectString, expectStringEnum, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
import { HealthcarePartyStatus } from './HealthcarePartyStatus.mjs';
|
|
1
4
|
export class HealthcarePartyHistoryStatus {
|
|
2
5
|
constructor(partial) {
|
|
3
6
|
this.status = partial.status;
|
|
@@ -5,4 +8,29 @@ export class HealthcarePartyHistoryStatus {
|
|
|
5
8
|
this.startDate = partial.startDate;
|
|
6
9
|
this.active = partial.active;
|
|
7
10
|
}
|
|
11
|
+
toJSON() {
|
|
12
|
+
const res = {};
|
|
13
|
+
res['status'] = this.status;
|
|
14
|
+
res['specialisationCode'] = this.specialisationCode;
|
|
15
|
+
res['startDate'] = this.startDate;
|
|
16
|
+
res['active'] = this.active;
|
|
17
|
+
return res;
|
|
18
|
+
}
|
|
19
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['HealthcarePartyHistoryStatus']) {
|
|
20
|
+
if (typeof json != 'object')
|
|
21
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
22
|
+
const jCpy = Object.assign({}, json);
|
|
23
|
+
const res = new HealthcarePartyHistoryStatus({
|
|
24
|
+
status: expectStringEnum(extractEntry(jCpy, 'status', true, path), false, [...path, ".status"], HealthcarePartyStatus, 'HealthcarePartyStatus'),
|
|
25
|
+
specialisationCode: expectString(extractEntry(jCpy, 'specialisationCode', true, path), false, [...path, ".specialisationCode"]),
|
|
26
|
+
startDate: expectNumber(extractEntry(jCpy, 'startDate', true, path), false, true, [...path, ".startDate"]),
|
|
27
|
+
active: expectBoolean(extractEntry(jCpy, 'active', true, path), false, [...path, ".active"]),
|
|
28
|
+
});
|
|
29
|
+
if (!ignoreUnknownKeys) {
|
|
30
|
+
const unused = Object.keys(jCpy);
|
|
31
|
+
if (unused.length > 0)
|
|
32
|
+
throw new Error(`Unexpected key(s) for json object HealthcarePartyHistoryStatus at path ${path.join("")}: ${unused}`);
|
|
33
|
+
}
|
|
34
|
+
return res;
|
|
35
|
+
}
|
|
8
36
|
}
|
|
@@ -6,4 +6,6 @@ export declare class IdentityDocumentReader {
|
|
|
6
6
|
reasonManualEncoding: number;
|
|
7
7
|
reasonUsingVignette: number;
|
|
8
8
|
constructor(partial: Partial<IdentityDocumentReader>);
|
|
9
|
+
toJSON(): object;
|
|
10
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): IdentityDocumentReader;
|
|
9
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// auto-generated file
|
|
2
|
+
import { expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
2
3
|
export class IdentityDocumentReader {
|
|
3
4
|
constructor(partial) {
|
|
4
5
|
this.justificatifDocumentNumber = undefined;
|
|
@@ -20,4 +21,36 @@ export class IdentityDocumentReader {
|
|
|
20
21
|
if ('reasonUsingVignette' in partial && partial.reasonUsingVignette !== undefined)
|
|
21
22
|
this.reasonUsingVignette = partial.reasonUsingVignette;
|
|
22
23
|
}
|
|
24
|
+
toJSON() {
|
|
25
|
+
const res = {};
|
|
26
|
+
if (this.justificatifDocumentNumber != undefined)
|
|
27
|
+
res['justificatifDocumentNumber'] = this.justificatifDocumentNumber;
|
|
28
|
+
if (this.supportSerialNumber != undefined)
|
|
29
|
+
res['supportSerialNumber'] = this.supportSerialNumber;
|
|
30
|
+
if (this.timeReadingEIdDocument != undefined)
|
|
31
|
+
res['timeReadingEIdDocument'] = this.timeReadingEIdDocument;
|
|
32
|
+
res['eidDocumentSupportType'] = this.eidDocumentSupportType;
|
|
33
|
+
res['reasonManualEncoding'] = this.reasonManualEncoding;
|
|
34
|
+
res['reasonUsingVignette'] = this.reasonUsingVignette;
|
|
35
|
+
return res;
|
|
36
|
+
}
|
|
37
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['IdentityDocumentReader']) {
|
|
38
|
+
if (typeof json != 'object')
|
|
39
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
40
|
+
const jCpy = Object.assign({}, json);
|
|
41
|
+
const res = new IdentityDocumentReader({
|
|
42
|
+
justificatifDocumentNumber: expectString(extractEntry(jCpy, 'justificatifDocumentNumber', false, path), true, [...path, ".justificatifDocumentNumber"]),
|
|
43
|
+
supportSerialNumber: expectString(extractEntry(jCpy, 'supportSerialNumber', false, path), true, [...path, ".supportSerialNumber"]),
|
|
44
|
+
timeReadingEIdDocument: expectNumber(extractEntry(jCpy, 'timeReadingEIdDocument', false, path), true, true, [...path, ".timeReadingEIdDocument"]),
|
|
45
|
+
eidDocumentSupportType: expectNumber(extractEntry(jCpy, 'eidDocumentSupportType', false, path), false, true, [...path, ".eidDocumentSupportType"]),
|
|
46
|
+
reasonManualEncoding: expectNumber(extractEntry(jCpy, 'reasonManualEncoding', false, path), false, true, [...path, ".reasonManualEncoding"]),
|
|
47
|
+
reasonUsingVignette: expectNumber(extractEntry(jCpy, 'reasonUsingVignette', false, path), false, true, [...path, ".reasonUsingVignette"]),
|
|
48
|
+
});
|
|
49
|
+
if (!ignoreUnknownKeys) {
|
|
50
|
+
const unused = Object.keys(jCpy);
|
|
51
|
+
if (unused.length > 0)
|
|
52
|
+
throw new Error(`Unexpected key(s) for json object IdentityDocumentReader at path ${path.join("")}: ${unused}`);
|
|
53
|
+
}
|
|
54
|
+
return res;
|
|
55
|
+
}
|
|
23
56
|
}
|
|
@@ -13,6 +13,7 @@ export interface Insurability extends Encryptable {
|
|
|
13
13
|
endDate: number | undefined;
|
|
14
14
|
titularyId: string | undefined;
|
|
15
15
|
readonly isEncrypted: boolean;
|
|
16
|
+
toJSON(): object;
|
|
16
17
|
}
|
|
17
18
|
export declare class DecryptedInsurability {
|
|
18
19
|
parameters: {
|
|
@@ -29,6 +30,8 @@ export declare class DecryptedInsurability {
|
|
|
29
30
|
encryptedSelf: Base64String | undefined;
|
|
30
31
|
readonly isEncrypted: false;
|
|
31
32
|
constructor(partial: Partial<DecryptedInsurability>);
|
|
33
|
+
toJSON(): object;
|
|
34
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): DecryptedInsurability;
|
|
32
35
|
}
|
|
33
36
|
export declare class EncryptedInsurability {
|
|
34
37
|
parameters: {
|
|
@@ -45,4 +48,6 @@ export declare class EncryptedInsurability {
|
|
|
45
48
|
encryptedSelf: Base64String | undefined;
|
|
46
49
|
readonly isEncrypted: true;
|
|
47
50
|
constructor(partial: Partial<EncryptedInsurability>);
|
|
51
|
+
toJSON(): object;
|
|
52
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): EncryptedInsurability;
|
|
48
53
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectBoolean, expectMap, expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
1
3
|
export class DecryptedInsurability {
|
|
2
4
|
constructor(partial) {
|
|
3
5
|
this.parameters = {};
|
|
@@ -34,6 +36,55 @@ export class DecryptedInsurability {
|
|
|
34
36
|
if ('encryptedSelf' in partial)
|
|
35
37
|
this.encryptedSelf = partial.encryptedSelf;
|
|
36
38
|
}
|
|
39
|
+
toJSON() {
|
|
40
|
+
const res = {};
|
|
41
|
+
res['parameters'] = Object.fromEntries(Object.entries(this.parameters).map(([k0, v0]) => [k0, v0]));
|
|
42
|
+
if (this.hospitalisation != undefined)
|
|
43
|
+
res['hospitalisation'] = this.hospitalisation;
|
|
44
|
+
if (this.ambulatory != undefined)
|
|
45
|
+
res['ambulatory'] = this.ambulatory;
|
|
46
|
+
if (this.dental != undefined)
|
|
47
|
+
res['dental'] = this.dental;
|
|
48
|
+
if (this.identificationNumber != undefined)
|
|
49
|
+
res['identificationNumber'] = this.identificationNumber;
|
|
50
|
+
if (this.insuranceId != undefined)
|
|
51
|
+
res['insuranceId'] = this.insuranceId;
|
|
52
|
+
if (this.startDate != undefined)
|
|
53
|
+
res['startDate'] = this.startDate;
|
|
54
|
+
if (this.endDate != undefined)
|
|
55
|
+
res['endDate'] = this.endDate;
|
|
56
|
+
if (this.titularyId != undefined)
|
|
57
|
+
res['titularyId'] = this.titularyId;
|
|
58
|
+
if (this.encryptedSelf != undefined)
|
|
59
|
+
res['encryptedSelf'] = this.encryptedSelf;
|
|
60
|
+
res['isEncrypted'] = false;
|
|
61
|
+
return res;
|
|
62
|
+
}
|
|
63
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['DecryptedInsurability']) {
|
|
64
|
+
if (typeof json != 'object')
|
|
65
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
66
|
+
const jCpy = Object.assign({}, json);
|
|
67
|
+
if (extractEntry(jCpy, "isEncrypted", true, path) !== false)
|
|
68
|
+
throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be false. The provided json doesn't represent a DecryptedInsurability`);
|
|
69
|
+
const res = new DecryptedInsurability({
|
|
70
|
+
parameters: expectMap(extractEntry(jCpy, 'parameters', false, path), false, [...path, ".parameters"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|
|
71
|
+
hospitalisation: expectBoolean(extractEntry(jCpy, 'hospitalisation', false, path), true, [...path, ".hospitalisation"]),
|
|
72
|
+
ambulatory: expectBoolean(extractEntry(jCpy, 'ambulatory', false, path), true, [...path, ".ambulatory"]),
|
|
73
|
+
dental: expectBoolean(extractEntry(jCpy, 'dental', false, path), true, [...path, ".dental"]),
|
|
74
|
+
identificationNumber: expectString(extractEntry(jCpy, 'identificationNumber', false, path), true, [...path, ".identificationNumber"]),
|
|
75
|
+
insuranceId: expectString(extractEntry(jCpy, 'insuranceId', false, path), true, [...path, ".insuranceId"]),
|
|
76
|
+
startDate: expectNumber(extractEntry(jCpy, 'startDate', false, path), true, true, [...path, ".startDate"]),
|
|
77
|
+
endDate: expectNumber(extractEntry(jCpy, 'endDate', false, path), true, true, [...path, ".endDate"]),
|
|
78
|
+
titularyId: expectString(extractEntry(jCpy, 'titularyId', false, path), true, [...path, ".titularyId"]),
|
|
79
|
+
encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
|
|
80
|
+
});
|
|
81
|
+
if (!ignoreUnknownKeys) {
|
|
82
|
+
const unused = Object.keys(jCpy);
|
|
83
|
+
if (unused.length > 0)
|
|
84
|
+
throw new Error(`Unexpected key(s) for json object DecryptedInsurability at path ${path.join("")}: ${unused}`);
|
|
85
|
+
}
|
|
86
|
+
return res;
|
|
87
|
+
}
|
|
37
88
|
}
|
|
38
89
|
export class EncryptedInsurability {
|
|
39
90
|
constructor(partial) {
|
|
@@ -71,4 +122,53 @@ export class EncryptedInsurability {
|
|
|
71
122
|
if ('encryptedSelf' in partial)
|
|
72
123
|
this.encryptedSelf = partial.encryptedSelf;
|
|
73
124
|
}
|
|
125
|
+
toJSON() {
|
|
126
|
+
const res = {};
|
|
127
|
+
res['parameters'] = Object.fromEntries(Object.entries(this.parameters).map(([k0, v0]) => [k0, v0]));
|
|
128
|
+
if (this.hospitalisation != undefined)
|
|
129
|
+
res['hospitalisation'] = this.hospitalisation;
|
|
130
|
+
if (this.ambulatory != undefined)
|
|
131
|
+
res['ambulatory'] = this.ambulatory;
|
|
132
|
+
if (this.dental != undefined)
|
|
133
|
+
res['dental'] = this.dental;
|
|
134
|
+
if (this.identificationNumber != undefined)
|
|
135
|
+
res['identificationNumber'] = this.identificationNumber;
|
|
136
|
+
if (this.insuranceId != undefined)
|
|
137
|
+
res['insuranceId'] = this.insuranceId;
|
|
138
|
+
if (this.startDate != undefined)
|
|
139
|
+
res['startDate'] = this.startDate;
|
|
140
|
+
if (this.endDate != undefined)
|
|
141
|
+
res['endDate'] = this.endDate;
|
|
142
|
+
if (this.titularyId != undefined)
|
|
143
|
+
res['titularyId'] = this.titularyId;
|
|
144
|
+
if (this.encryptedSelf != undefined)
|
|
145
|
+
res['encryptedSelf'] = this.encryptedSelf;
|
|
146
|
+
res['isEncrypted'] = true;
|
|
147
|
+
return res;
|
|
148
|
+
}
|
|
149
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['EncryptedInsurability']) {
|
|
150
|
+
if (typeof json != 'object')
|
|
151
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
152
|
+
const jCpy = Object.assign({}, json);
|
|
153
|
+
if (extractEntry(jCpy, "isEncrypted", true, path) !== true)
|
|
154
|
+
throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be true. The provided json doesn't represent a EncryptedInsurability`);
|
|
155
|
+
const res = new EncryptedInsurability({
|
|
156
|
+
parameters: expectMap(extractEntry(jCpy, 'parameters', false, path), false, [...path, ".parameters"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
|
|
157
|
+
hospitalisation: expectBoolean(extractEntry(jCpy, 'hospitalisation', false, path), true, [...path, ".hospitalisation"]),
|
|
158
|
+
ambulatory: expectBoolean(extractEntry(jCpy, 'ambulatory', false, path), true, [...path, ".ambulatory"]),
|
|
159
|
+
dental: expectBoolean(extractEntry(jCpy, 'dental', false, path), true, [...path, ".dental"]),
|
|
160
|
+
identificationNumber: expectString(extractEntry(jCpy, 'identificationNumber', false, path), true, [...path, ".identificationNumber"]),
|
|
161
|
+
insuranceId: expectString(extractEntry(jCpy, 'insuranceId', false, path), true, [...path, ".insuranceId"]),
|
|
162
|
+
startDate: expectNumber(extractEntry(jCpy, 'startDate', false, path), true, true, [...path, ".startDate"]),
|
|
163
|
+
endDate: expectNumber(extractEntry(jCpy, 'endDate', false, path), true, true, [...path, ".endDate"]),
|
|
164
|
+
titularyId: expectString(extractEntry(jCpy, 'titularyId', false, path), true, [...path, ".titularyId"]),
|
|
165
|
+
encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
|
|
166
|
+
});
|
|
167
|
+
if (!ignoreUnknownKeys) {
|
|
168
|
+
const unused = Object.keys(jCpy);
|
|
169
|
+
if (unused.length > 0)
|
|
170
|
+
throw new Error(`Unexpected key(s) for json object EncryptedInsurability at path ${path.join("")}: ${unused}`);
|
|
171
|
+
}
|
|
172
|
+
return res;
|
|
173
|
+
}
|
|
74
174
|
}
|
|
@@ -60,6 +60,7 @@ export interface InvoicingCode extends Encryptable {
|
|
|
60
60
|
[key: string]: string;
|
|
61
61
|
};
|
|
62
62
|
readonly isEncrypted: boolean;
|
|
63
|
+
toJSON(): object;
|
|
63
64
|
}
|
|
64
65
|
export declare class DecryptedInvoicingCode {
|
|
65
66
|
id: string | undefined;
|
|
@@ -122,6 +123,8 @@ export declare class DecryptedInvoicingCode {
|
|
|
122
123
|
encryptedSelf: Base64String | undefined;
|
|
123
124
|
readonly isEncrypted: false;
|
|
124
125
|
constructor(partial: Partial<DecryptedInvoicingCode> & Pick<DecryptedInvoicingCode, "id">);
|
|
126
|
+
toJSON(): object;
|
|
127
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): DecryptedInvoicingCode;
|
|
125
128
|
}
|
|
126
129
|
export declare class EncryptedInvoicingCode {
|
|
127
130
|
id: string | undefined;
|
|
@@ -184,4 +187,6 @@ export declare class EncryptedInvoicingCode {
|
|
|
184
187
|
encryptedSelf: Base64String | undefined;
|
|
185
188
|
readonly isEncrypted: true;
|
|
186
189
|
constructor(partial: Partial<EncryptedInvoicingCode> & Pick<EncryptedInvoicingCode, "id">);
|
|
190
|
+
toJSON(): object;
|
|
191
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): EncryptedInvoicingCode;
|
|
187
192
|
}
|