@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
|
@@ -107,35 +107,35 @@ function get_ContentNegotiation() {
|
|
|
107
107
|
}
|
|
108
108
|
var ContentNegotiation;
|
|
109
109
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
110
|
+
this.y6q_1 = converter;
|
|
111
|
+
this.z6q_1 = contentTypeToSend;
|
|
112
|
+
this.a6r_1 = contentTypeMatcher;
|
|
113
113
|
}
|
|
114
114
|
function defaultMatcher($this, pattern) {
|
|
115
115
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
116
116
|
}
|
|
117
117
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
118
|
-
this.
|
|
118
|
+
this.b6r_1 = $pattern;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
121
|
-
return contentType.
|
|
120
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).c6r = function (contentType) {
|
|
121
|
+
return contentType.o4w(this.b6r_1);
|
|
122
122
|
};
|
|
123
123
|
function ContentNegotiationConfig() {
|
|
124
|
-
this.
|
|
124
|
+
this.d6r_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
125
125
|
var tmp = this;
|
|
126
126
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
127
|
-
tmp.
|
|
128
|
-
this.
|
|
127
|
+
tmp.e6r_1 = ArrayList_init_$Create$();
|
|
128
|
+
this.f6r_1 = null;
|
|
129
129
|
}
|
|
130
|
-
protoOf(ContentNegotiationConfig).
|
|
131
|
-
var matcher = contentType.
|
|
132
|
-
this.
|
|
130
|
+
protoOf(ContentNegotiationConfig).d5l = function (contentType, converter, configuration) {
|
|
131
|
+
var matcher = contentType.o4w(Application_getInstance().u4u_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
132
|
+
this.g6r(contentType, converter, matcher, configuration);
|
|
133
133
|
};
|
|
134
|
-
protoOf(ContentNegotiationConfig).
|
|
134
|
+
protoOf(ContentNegotiationConfig).g6r = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
135
135
|
// Inline function 'kotlin.apply' call
|
|
136
136
|
configuration(converter);
|
|
137
137
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
138
|
-
this.
|
|
138
|
+
this.e6r_1.p(registration);
|
|
139
139
|
};
|
|
140
140
|
function ContentConverterException(message) {
|
|
141
141
|
Exception_init_$Init$(message, this);
|
|
@@ -150,53 +150,53 @@ function ContentNegotiationConfig$_init_$ref_1ne3ob() {
|
|
|
150
150
|
}
|
|
151
151
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
152
152
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
153
|
-
var registrations = $this$createClientPlugin.
|
|
154
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
155
|
-
$this$createClientPlugin.
|
|
156
|
-
$this$createClientPlugin.
|
|
153
|
+
var registrations = $this$createClientPlugin.f5x_1.e6r_1;
|
|
154
|
+
var ignoredTypes = $this$createClientPlugin.f5x_1.d6r_1;
|
|
155
|
+
$this$createClientPlugin.b6d(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
156
|
+
$this$createClientPlugin.r65(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
157
157
|
return Unit_instance;
|
|
158
158
|
}
|
|
159
159
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
160
160
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
161
|
-
tmp.
|
|
162
|
-
tmp.
|
|
163
|
-
return tmp.
|
|
161
|
+
tmp.n8_1 = Unit_instance;
|
|
162
|
+
tmp.o8_1 = null;
|
|
163
|
+
return tmp.t8();
|
|
164
164
|
}
|
|
165
165
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
166
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
166
|
+
charset = charset === VOID ? Charsets_getInstance().f4n_1 : charset;
|
|
167
167
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
168
|
-
tmp.
|
|
169
|
-
tmp.
|
|
170
|
-
return tmp.
|
|
168
|
+
tmp.n8_1 = Unit_instance;
|
|
169
|
+
tmp.o8_1 = null;
|
|
170
|
+
return tmp.t8();
|
|
171
171
|
}
|
|
172
172
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
173
|
+
this.y6s_1 = $registrations;
|
|
174
|
+
this.z6s_1 = $this_createClientPlugin;
|
|
175
|
+
this.a6t_1 = $ignoredTypes;
|
|
176
176
|
CoroutineImpl.call(this, resultContinuation);
|
|
177
177
|
}
|
|
178
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
179
|
-
var tmp = this.
|
|
180
|
-
tmp.
|
|
181
|
-
tmp.
|
|
182
|
-
return tmp.
|
|
178
|
+
protoOf(ContentNegotiation$lambda$slambda).f6t = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
179
|
+
var tmp = this.g6t($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
180
|
+
tmp.n8_1 = Unit_instance;
|
|
181
|
+
tmp.o8_1 = null;
|
|
182
|
+
return tmp.t8();
|
|
183
183
|
};
|
|
184
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
184
|
+
protoOf(ContentNegotiation$lambda$slambda).w66 = function (p1, p2, p3, p4, $completion) {
|
|
185
185
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
186
186
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
187
187
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
188
|
-
return this.
|
|
188
|
+
return this.f6t(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
189
189
|
};
|
|
190
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
191
|
-
var suspendResult = this.
|
|
190
|
+
protoOf(ContentNegotiation$lambda$slambda).t8 = function () {
|
|
191
|
+
var suspendResult = this.n8_1;
|
|
192
192
|
$sm: do
|
|
193
193
|
try {
|
|
194
|
-
var tmp = this.
|
|
194
|
+
var tmp = this.l8_1;
|
|
195
195
|
switch (tmp) {
|
|
196
196
|
case 0:
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
199
|
-
suspendResult = invoke$convertRequest(this.
|
|
197
|
+
this.m8_1 = 2;
|
|
198
|
+
this.l8_1 = 1;
|
|
199
|
+
suspendResult = invoke$convertRequest(this.y6s_1, this.z6s_1, this.a6t_1, this.c6t_1, this.d6t_1, this);
|
|
200
200
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
201
201
|
return suspendResult;
|
|
202
202
|
}
|
|
@@ -205,62 +205,62 @@ protoOf(ContentNegotiation$lambda$slambda).a9 = function () {
|
|
|
205
205
|
case 1:
|
|
206
206
|
return suspendResult;
|
|
207
207
|
case 2:
|
|
208
|
-
throw this.
|
|
208
|
+
throw this.o8_1;
|
|
209
209
|
}
|
|
210
210
|
} catch ($p) {
|
|
211
211
|
var e = $p;
|
|
212
|
-
if (this.
|
|
212
|
+
if (this.m8_1 === 2) {
|
|
213
213
|
throw e;
|
|
214
214
|
} else {
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
215
|
+
this.l8_1 = this.m8_1;
|
|
216
|
+
this.o8_1 = e;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
while (true);
|
|
220
220
|
};
|
|
221
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
222
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
223
|
-
i.
|
|
224
|
-
i.
|
|
225
|
-
i.
|
|
226
|
-
i.
|
|
221
|
+
protoOf(ContentNegotiation$lambda$slambda).g6t = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
222
|
+
var i = new ContentNegotiation$lambda$slambda(this.y6s_1, this.z6s_1, this.a6t_1, completion);
|
|
223
|
+
i.b6t_1 = $this$transformRequestBody;
|
|
224
|
+
i.c6t_1 = request;
|
|
225
|
+
i.d6t_1 = body;
|
|
226
|
+
i.e6t_1 = _unused_var__etf5q3;
|
|
227
227
|
return i;
|
|
228
228
|
};
|
|
229
229
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
230
230
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
231
231
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
232
|
-
return i.
|
|
232
|
+
return i.f6t($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
233
233
|
};
|
|
234
234
|
l.$arity = 4;
|
|
235
235
|
return l;
|
|
236
236
|
}
|
|
237
237
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
238
|
+
this.p6t_1 = $ignoredTypes;
|
|
239
|
+
this.q6t_1 = $registrations;
|
|
240
|
+
this.r6t_1 = $this_createClientPlugin;
|
|
241
241
|
CoroutineImpl.call(this, resultContinuation);
|
|
242
242
|
}
|
|
243
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
244
|
-
var tmp = this.
|
|
245
|
-
tmp.
|
|
246
|
-
tmp.
|
|
247
|
-
return tmp.
|
|
243
|
+
protoOf(ContentNegotiation$lambda$slambda_1).u66 = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
244
|
+
var tmp = this.v66($this$transformResponseBody, response, body, info, $completion);
|
|
245
|
+
tmp.n8_1 = Unit_instance;
|
|
246
|
+
tmp.o8_1 = null;
|
|
247
|
+
return tmp.t8();
|
|
248
248
|
};
|
|
249
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
249
|
+
protoOf(ContentNegotiation$lambda$slambda_1).w66 = function (p1, p2, p3, p4, $completion) {
|
|
250
250
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
251
251
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
252
252
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
253
|
-
return this.
|
|
253
|
+
return this.u66(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
254
254
|
};
|
|
255
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
256
|
-
var suspendResult = this.
|
|
255
|
+
protoOf(ContentNegotiation$lambda$slambda_1).t8 = function () {
|
|
256
|
+
var suspendResult = this.n8_1;
|
|
257
257
|
$sm: do
|
|
258
258
|
try {
|
|
259
|
-
var tmp = this.
|
|
259
|
+
var tmp = this.l8_1;
|
|
260
260
|
switch (tmp) {
|
|
261
261
|
case 0:
|
|
262
|
-
this.
|
|
263
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
262
|
+
this.m8_1 = 2;
|
|
263
|
+
var tmp0_elvis_lhs = contentType(this.t6t_1);
|
|
264
264
|
var tmp_0;
|
|
265
265
|
if (tmp0_elvis_lhs == null) {
|
|
266
266
|
return null;
|
|
@@ -269,9 +269,9 @@ protoOf(ContentNegotiation$lambda$slambda_1).a9 = function () {
|
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
var contentType_0 = tmp_0;
|
|
272
|
-
var charset = suitableCharset(get_request(this.
|
|
273
|
-
this.
|
|
274
|
-
suspendResult = invoke$convertResponse(this.
|
|
272
|
+
var charset = suitableCharset(get_request(this.t6t_1).w50());
|
|
273
|
+
this.l8_1 = 1;
|
|
274
|
+
suspendResult = invoke$convertResponse(this.p6t_1, this.q6t_1, this.r6t_1, get_request(this.t6t_1).s5q(), this.v6t_1, this.u6t_1, contentType_0, charset, this);
|
|
275
275
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
276
276
|
return suspendResult;
|
|
277
277
|
}
|
|
@@ -280,59 +280,59 @@ protoOf(ContentNegotiation$lambda$slambda_1).a9 = function () {
|
|
|
280
280
|
case 1:
|
|
281
281
|
return suspendResult;
|
|
282
282
|
case 2:
|
|
283
|
-
throw this.
|
|
283
|
+
throw this.o8_1;
|
|
284
284
|
}
|
|
285
285
|
} catch ($p) {
|
|
286
286
|
var e = $p;
|
|
287
|
-
if (this.
|
|
287
|
+
if (this.m8_1 === 2) {
|
|
288
288
|
throw e;
|
|
289
289
|
} else {
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
290
|
+
this.l8_1 = this.m8_1;
|
|
291
|
+
this.o8_1 = e;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
while (true);
|
|
295
295
|
};
|
|
296
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
297
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
298
|
-
i.
|
|
299
|
-
i.
|
|
300
|
-
i.
|
|
301
|
-
i.
|
|
296
|
+
protoOf(ContentNegotiation$lambda$slambda_1).v66 = function ($this$transformResponseBody, response, body, info, completion) {
|
|
297
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.p6t_1, this.q6t_1, this.r6t_1, completion);
|
|
298
|
+
i.s6t_1 = $this$transformResponseBody;
|
|
299
|
+
i.t6t_1 = response;
|
|
300
|
+
i.u6t_1 = body;
|
|
301
|
+
i.v6t_1 = info;
|
|
302
302
|
return i;
|
|
303
303
|
};
|
|
304
304
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
305
305
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
306
306
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
307
|
-
return i.
|
|
307
|
+
return i.u66($this$transformResponseBody, response, body, info, $completion);
|
|
308
308
|
};
|
|
309
309
|
l.$arity = 4;
|
|
310
310
|
return l;
|
|
311
311
|
}
|
|
312
312
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
313
313
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
314
|
-
return toString(it.
|
|
314
|
+
return toString(it.y6q_1);
|
|
315
315
|
}
|
|
316
316
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
317
317
|
CoroutineImpl.call(this, resultContinuation);
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
318
|
+
this.p6r_1 = registrations;
|
|
319
|
+
this.q6r_1 = $this_createClientPlugin;
|
|
320
|
+
this.r6r_1 = ignoredTypes;
|
|
321
|
+
this.s6r_1 = request;
|
|
322
|
+
this.t6r_1 = body;
|
|
323
323
|
}
|
|
324
|
-
protoOf($invoke$convertRequestCOROUTINE$).
|
|
325
|
-
var suspendResult = this.
|
|
324
|
+
protoOf($invoke$convertRequestCOROUTINE$).t8 = function () {
|
|
325
|
+
var suspendResult = this.n8_1;
|
|
326
326
|
$sm: do
|
|
327
327
|
try {
|
|
328
|
-
var tmp = this.
|
|
328
|
+
var tmp = this.l8_1;
|
|
329
329
|
switch (tmp) {
|
|
330
330
|
case 0:
|
|
331
|
-
this.
|
|
331
|
+
this.m8_1 = 7;
|
|
332
332
|
var tmp_0;
|
|
333
|
-
if (this.
|
|
334
|
-
var excluded = this.
|
|
335
|
-
var tmp0 = this.
|
|
333
|
+
if (this.s6r_1.h5p_1.m4o(get_ExcludedContentTypes())) {
|
|
334
|
+
var excluded = this.s6r_1.h5p_1.k4o(get_ExcludedContentTypes());
|
|
335
|
+
var tmp0 = this.p6r_1;
|
|
336
336
|
var destination = ArrayList_init_$Create$();
|
|
337
337
|
var _iterator__ex2g4s = tmp0.s();
|
|
338
338
|
while (_iterator__ex2g4s.t()) {
|
|
@@ -352,7 +352,7 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
352
352
|
var _iterator__ex2g4s_0 = excluded.s();
|
|
353
353
|
while (_iterator__ex2g4s_0.t()) {
|
|
354
354
|
var element_0 = _iterator__ex2g4s_0.u();
|
|
355
|
-
if (element.
|
|
355
|
+
if (element.z6q_1.o4w(element_0)) {
|
|
356
356
|
tmp$ret$0 = false;
|
|
357
357
|
break l$ret$1;
|
|
358
358
|
}
|
|
@@ -366,11 +366,11 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
366
366
|
}
|
|
367
367
|
tmp_0 = destination;
|
|
368
368
|
} else {
|
|
369
|
-
tmp_0 = this.
|
|
369
|
+
tmp_0 = this.p6r_1;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
var requestRegistrations = tmp_0;
|
|
373
|
-
var tmp0_elvis_lhs = this.
|
|
373
|
+
var tmp0_elvis_lhs = this.s6r_1.e5p_1.e4q(HttpHeaders_getInstance().s4w_1);
|
|
374
374
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
375
375
|
var _iterator__ex2g4s_1 = requestRegistrations.s();
|
|
376
376
|
while (_iterator__ex2g4s_1.t()) {
|
|
@@ -390,7 +390,7 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
390
390
|
var _iterator__ex2g4s_2 = acceptHeaders.s();
|
|
391
391
|
while (_iterator__ex2g4s_2.t()) {
|
|
392
392
|
var element_2 = _iterator__ex2g4s_2.u();
|
|
393
|
-
if (Companion_getInstance().
|
|
393
|
+
if (Companion_getInstance().en(element_2).o4w(element_1.z6q_1)) {
|
|
394
394
|
tmp$ret$2 = false;
|
|
395
395
|
break l$ret$3;
|
|
396
396
|
}
|
|
@@ -399,19 +399,19 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
399
399
|
}
|
|
400
400
|
while (false);
|
|
401
401
|
if (tmp$ret$2) {
|
|
402
|
-
var qValue = this.
|
|
403
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
404
|
-
get_LOGGER().
|
|
405
|
-
accept(this.
|
|
402
|
+
var qValue = this.q6r_1.f5x_1.f6r_1;
|
|
403
|
+
var contentTypeToSend = qValue == null ? element_1.z6q_1 : element_1.z6q_1.m4w('q', qValue.toString());
|
|
404
|
+
get_LOGGER().g4u('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.s6r_1.c5p_1.toString());
|
|
405
|
+
accept(this.s6r_1, contentTypeToSend);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
var tmp_3;
|
|
410
|
-
var tmp_4 = this.
|
|
410
|
+
var tmp_4 = this.t6r_1;
|
|
411
411
|
if (tmp_4 instanceof OutgoingContent) {
|
|
412
412
|
tmp_3 = true;
|
|
413
413
|
} else {
|
|
414
|
-
var tmp0_0 = this.
|
|
414
|
+
var tmp0_0 = this.r6r_1;
|
|
415
415
|
var tmp$ret$4;
|
|
416
416
|
l$ret$5: do {
|
|
417
417
|
var tmp_5;
|
|
@@ -427,7 +427,7 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
427
427
|
var _iterator__ex2g4s_3 = tmp0_0.s();
|
|
428
428
|
while (_iterator__ex2g4s_3.t()) {
|
|
429
429
|
var element_3 = _iterator__ex2g4s_3.u();
|
|
430
|
-
if (element_3.
|
|
430
|
+
if (element_3.ra(this.t6r_1)) {
|
|
431
431
|
tmp$ret$4 = true;
|
|
432
432
|
break l$ret$5;
|
|
433
433
|
}
|
|
@@ -439,36 +439,36 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
if (tmp_3) {
|
|
442
|
-
get_LOGGER().
|
|
442
|
+
get_LOGGER().g4u('Body type ' + toString(getKClassFromExpression(this.t6r_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.s6r_1.c5p_1.toString() + '.'));
|
|
443
443
|
return null;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
var tmp_6 = this;
|
|
447
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
447
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.s6r_1);
|
|
448
448
|
var tmp_7;
|
|
449
449
|
if (tmp0_elvis_lhs_0 == null) {
|
|
450
|
-
this.
|
|
451
|
-
get_LOGGER().
|
|
450
|
+
this.q6r_1;
|
|
451
|
+
get_LOGGER().g4u("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.s6r_1.c5p_1.toString() + '.');
|
|
452
452
|
return null;
|
|
453
453
|
} else {
|
|
454
454
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
tmp_6.
|
|
458
|
-
var tmp_8 = this.
|
|
457
|
+
tmp_6.v6r_1 = tmp_7;
|
|
458
|
+
var tmp_8 = this.t6r_1;
|
|
459
459
|
if (tmp_8 instanceof Unit) {
|
|
460
|
-
get_LOGGER().
|
|
461
|
-
this.
|
|
460
|
+
get_LOGGER().g4u('Sending empty body for ' + this.s6r_1.c5p_1.toString());
|
|
461
|
+
this.s6r_1.e5p_1.l4q(HttpHeaders_getInstance().k4x_1);
|
|
462
462
|
return EmptyContent_getInstance();
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
var tmp_9 = this;
|
|
466
|
-
var tmp0_1 = this.
|
|
466
|
+
var tmp0_1 = this.p6r_1;
|
|
467
467
|
var destination_0 = ArrayList_init_$Create$();
|
|
468
468
|
var _iterator__ex2g4s_4 = tmp0_1.s();
|
|
469
469
|
while (_iterator__ex2g4s_4.t()) {
|
|
470
470
|
var element_4 = _iterator__ex2g4s_4.u();
|
|
471
|
-
if (element_4.
|
|
471
|
+
if (element_4.a6r_1.c6r(this.v6r_1)) {
|
|
472
472
|
destination_0.p(element_4);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
@@ -483,41 +483,41 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
483
483
|
var tmp1_elvis_lhs = tmp_10;
|
|
484
484
|
var tmp_11;
|
|
485
485
|
if (tmp1_elvis_lhs == null) {
|
|
486
|
-
this.
|
|
487
|
-
get_LOGGER().
|
|
486
|
+
this.q6r_1;
|
|
487
|
+
get_LOGGER().g4u('None of the registered converters match request Content-Type=' + this.v6r_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.s6r_1.c5p_1.toString() + '.'));
|
|
488
488
|
return null;
|
|
489
489
|
} else {
|
|
490
490
|
tmp_11 = tmp1_elvis_lhs;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
tmp_9.
|
|
494
|
-
if (this.
|
|
495
|
-
get_LOGGER().
|
|
493
|
+
tmp_9.u6r_1 = tmp_11;
|
|
494
|
+
if (this.s6r_1.x6e() == null) {
|
|
495
|
+
get_LOGGER().g4u('Request has unknown body type. Skipping ContentNegotiation for ' + this.s6r_1.c5p_1.toString() + '.');
|
|
496
496
|
return null;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
this.
|
|
499
|
+
this.s6r_1.e5p_1.l4q(HttpHeaders_getInstance().k4x_1);
|
|
500
500
|
var tmp_12 = this;
|
|
501
|
-
tmp_12.
|
|
502
|
-
this.
|
|
501
|
+
tmp_12.z6r_1 = this.u6r_1;
|
|
502
|
+
this.l8_1 = 1;
|
|
503
503
|
continue $sm;
|
|
504
504
|
case 1:
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
505
|
+
this.y6r_1 = this.z6r_1.s();
|
|
506
|
+
this.l8_1 = 2;
|
|
507
507
|
continue $sm;
|
|
508
508
|
case 2:
|
|
509
|
-
if (!this.
|
|
510
|
-
this.
|
|
509
|
+
if (!this.y6r_1.t()) {
|
|
510
|
+
this.l8_1 = 5;
|
|
511
511
|
continue $sm;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
var element_5 = this.
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
517
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
518
|
-
var tmp_13 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
519
|
-
var tmp_14 = ensureNotNull(this.
|
|
520
|
-
var this_0 = this.
|
|
514
|
+
var element_5 = this.y6r_1.u();
|
|
515
|
+
this.x6r_1 = element_5;
|
|
516
|
+
this.l8_1 = 3;
|
|
517
|
+
var tmp0_elvis_lhs_1 = charset(this.v6r_1);
|
|
518
|
+
var tmp_13 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().f4n_1 : tmp0_elvis_lhs_1;
|
|
519
|
+
var tmp_14 = ensureNotNull(this.s6r_1.x6e());
|
|
520
|
+
var this_0 = this.t6r_1;
|
|
521
521
|
var tmp_15;
|
|
522
522
|
if (!equals(this_0, NullBody_instance)) {
|
|
523
523
|
tmp_15 = this_0;
|
|
@@ -525,7 +525,7 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
525
525
|
tmp_15 = null;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
suspendResult = this.
|
|
528
|
+
suspendResult = this.x6r_1.y6q_1.w6t(this.v6r_1, tmp_13, tmp_14, tmp_15, this);
|
|
529
529
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
530
530
|
return suspendResult;
|
|
531
531
|
}
|
|
@@ -534,37 +534,37 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
534
534
|
case 3:
|
|
535
535
|
var result = suspendResult;
|
|
536
536
|
if (!(result == null)) {
|
|
537
|
-
get_LOGGER().
|
|
537
|
+
get_LOGGER().g4u('Converted request body using ' + toString(this.x6r_1.y6q_1) + ' for ' + this.s6r_1.c5p_1.toString());
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
var result_0 = result;
|
|
541
541
|
if (!(result_0 == null)) {
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
542
|
+
this.w6r_1 = result_0;
|
|
543
|
+
this.l8_1 = 6;
|
|
544
544
|
continue $sm;
|
|
545
545
|
} else {
|
|
546
|
-
this.
|
|
546
|
+
this.l8_1 = 4;
|
|
547
547
|
continue $sm;
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
case 4:
|
|
551
|
-
this.
|
|
551
|
+
this.l8_1 = 2;
|
|
552
552
|
continue $sm;
|
|
553
553
|
case 5:
|
|
554
|
-
this.
|
|
554
|
+
this.w6r_1 = null;
|
|
555
555
|
if (false) {
|
|
556
|
-
this.
|
|
556
|
+
this.l8_1 = 1;
|
|
557
557
|
continue $sm;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
-
this.
|
|
560
|
+
this.l8_1 = 6;
|
|
561
561
|
continue $sm;
|
|
562
562
|
case 6:
|
|
563
|
-
var tmp2_elvis_lhs = this.
|
|
563
|
+
var tmp2_elvis_lhs = this.w6r_1;
|
|
564
564
|
var tmp_16;
|
|
565
565
|
if (tmp2_elvis_lhs == null) {
|
|
566
|
-
var tmp_17 = "Can't convert " + toString(this.
|
|
567
|
-
throw new ContentConverterException(tmp_17 + joinToString(this.
|
|
566
|
+
var tmp_17 = "Can't convert " + toString(this.t6r_1) + ' with contentType ' + this.v6r_1.toString() + ' using converters ';
|
|
567
|
+
throw new ContentConverterException(tmp_17 + joinToString(this.u6r_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
568
568
|
} else {
|
|
569
569
|
tmp_16 = tmp2_elvis_lhs;
|
|
570
570
|
}
|
|
@@ -572,55 +572,55 @@ protoOf($invoke$convertRequestCOROUTINE$).a9 = function () {
|
|
|
572
572
|
var serializedContent = tmp_16;
|
|
573
573
|
return serializedContent;
|
|
574
574
|
case 7:
|
|
575
|
-
throw this.
|
|
575
|
+
throw this.o8_1;
|
|
576
576
|
}
|
|
577
577
|
} catch ($p) {
|
|
578
578
|
var e = $p;
|
|
579
|
-
if (this.
|
|
579
|
+
if (this.m8_1 === 7) {
|
|
580
580
|
throw e;
|
|
581
581
|
} else {
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
582
|
+
this.l8_1 = this.m8_1;
|
|
583
|
+
this.o8_1 = e;
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
while (true);
|
|
587
587
|
};
|
|
588
588
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
589
589
|
CoroutineImpl.call(this, resultContinuation);
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
590
|
+
this.i6s_1 = ignoredTypes;
|
|
591
|
+
this.j6s_1 = registrations;
|
|
592
|
+
this.k6s_1 = $this_createClientPlugin;
|
|
593
|
+
this.l6s_1 = requestUrl;
|
|
594
|
+
this.m6s_1 = info;
|
|
595
|
+
this.n6s_1 = body;
|
|
596
|
+
this.o6s_1 = responseContentType;
|
|
597
|
+
this.p6s_1 = charset;
|
|
598
598
|
}
|
|
599
|
-
protoOf($invoke$convertResponseCOROUTINE$).
|
|
600
|
-
var suspendResult = this.
|
|
599
|
+
protoOf($invoke$convertResponseCOROUTINE$).t8 = function () {
|
|
600
|
+
var suspendResult = this.n8_1;
|
|
601
601
|
$sm: do
|
|
602
602
|
try {
|
|
603
|
-
var tmp = this.
|
|
603
|
+
var tmp = this.l8_1;
|
|
604
604
|
switch (tmp) {
|
|
605
605
|
case 0:
|
|
606
|
-
this.
|
|
607
|
-
var tmp_0 = this.
|
|
606
|
+
this.m8_1 = 2;
|
|
607
|
+
var tmp_0 = this.n6s_1;
|
|
608
608
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
609
|
-
get_LOGGER().
|
|
609
|
+
get_LOGGER().g4u('Response body is already transformed. Skipping ContentNegotiation for ' + this.l6s_1.toString() + '.');
|
|
610
610
|
return null;
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
if (this.
|
|
614
|
-
get_LOGGER().
|
|
613
|
+
if (this.i6s_1.z(this.m6s_1.a4u_1)) {
|
|
614
|
+
get_LOGGER().g4u('Response body type ' + toString(this.m6s_1.a4u_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.l6s_1.toString() + '.'));
|
|
615
615
|
return null;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
var tmp0 = this.
|
|
618
|
+
var tmp0 = this.j6s_1;
|
|
619
619
|
var destination = ArrayList_init_$Create$();
|
|
620
620
|
var _iterator__ex2g4s = tmp0.s();
|
|
621
621
|
while (_iterator__ex2g4s.t()) {
|
|
622
622
|
var element = _iterator__ex2g4s.u();
|
|
623
|
-
if (element.
|
|
623
|
+
if (element.a6r_1.c6r(this.o6s_1)) {
|
|
624
624
|
destination.p(element);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
@@ -629,7 +629,7 @@ protoOf($invoke$convertResponseCOROUTINE$).a9 = function () {
|
|
|
629
629
|
var _iterator__ex2g4s_0 = destination.s();
|
|
630
630
|
while (_iterator__ex2g4s_0.t()) {
|
|
631
631
|
var item = _iterator__ex2g4s_0.u();
|
|
632
|
-
destination_0.p(item.
|
|
632
|
+
destination_0.p(item.y6q_1);
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
var tmp_1;
|
|
@@ -642,16 +642,16 @@ protoOf($invoke$convertResponseCOROUTINE$).a9 = function () {
|
|
|
642
642
|
var tmp0_elvis_lhs = tmp_1;
|
|
643
643
|
var tmp_2;
|
|
644
644
|
if (tmp0_elvis_lhs == null) {
|
|
645
|
-
this.
|
|
646
|
-
get_LOGGER().
|
|
645
|
+
this.k6s_1;
|
|
646
|
+
get_LOGGER().g4u('None of the registered converters match response with Content-Type=' + this.o6s_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.l6s_1.toString() + '.'));
|
|
647
647
|
return null;
|
|
648
648
|
} else {
|
|
649
649
|
tmp_2 = tmp0_elvis_lhs;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
var suitableConverters = tmp_2;
|
|
653
|
-
this.
|
|
654
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
653
|
+
this.l8_1 = 1;
|
|
654
|
+
suspendResult = deserialize(suitableConverters, this.n6s_1, this.m6s_1, this.p6s_1, this);
|
|
655
655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
656
656
|
return suspendResult;
|
|
657
657
|
}
|
|
@@ -660,20 +660,20 @@ protoOf($invoke$convertResponseCOROUTINE$).a9 = function () {
|
|
|
660
660
|
case 1:
|
|
661
661
|
var result = suspendResult;
|
|
662
662
|
if (!isInterface(result, ByteReadChannel)) {
|
|
663
|
-
get_LOGGER().
|
|
663
|
+
get_LOGGER().g4u('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.l6s_1.toString() + '.');
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
return result;
|
|
667
667
|
case 2:
|
|
668
|
-
throw this.
|
|
668
|
+
throw this.o8_1;
|
|
669
669
|
}
|
|
670
670
|
} catch ($p) {
|
|
671
671
|
var e = $p;
|
|
672
|
-
if (this.
|
|
672
|
+
if (this.m8_1 === 2) {
|
|
673
673
|
throw e;
|
|
674
674
|
} else {
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
675
|
+
this.l8_1 = this.m8_1;
|
|
676
|
+
this.o8_1 = e;
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
while (true);
|
|
@@ -683,7 +683,7 @@ function _init_properties_ContentNegotiation_kt__o183go() {
|
|
|
683
683
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
684
684
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
685
685
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
686
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
686
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().bc(), PrimitiveClasses_getInstance().xb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
687
687
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
688
688
|
var name = 'ExcludedContentTypesAttr';
|
|
689
689
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -711,12 +711,12 @@ function _init_properties_ContentNegotiation_kt__o183go() {
|
|
|
711
711
|
}
|
|
712
712
|
function JsonContentTypeMatcher() {
|
|
713
713
|
}
|
|
714
|
-
protoOf(JsonContentTypeMatcher).
|
|
715
|
-
if (contentType.
|
|
714
|
+
protoOf(JsonContentTypeMatcher).c6r = function (contentType) {
|
|
715
|
+
if (contentType.o4w(Application_getInstance().u4u_1)) {
|
|
716
716
|
return true;
|
|
717
717
|
}
|
|
718
|
-
var value = contentType.
|
|
719
|
-
return Application_getInstance().
|
|
718
|
+
var value = contentType.n4w().toString();
|
|
719
|
+
return Application_getInstance().o4v(value) && endsWith(value, '+json', true);
|
|
720
720
|
};
|
|
721
721
|
var JsonContentTypeMatcher_instance;
|
|
722
722
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -736,7 +736,7 @@ function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
//region block: post-declaration
|
|
739
|
-
protoOf(ContentNegotiationConfig).
|
|
739
|
+
protoOf(ContentNegotiationConfig).e5l = register$default;
|
|
740
740
|
//endregion
|
|
741
741
|
//region block: init
|
|
742
742
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|