candidhealth 1.0.0 → 1.3.0
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/Client.js +2 -2
- package/README.md +1 -1
- package/api/resources/auth/client/Client.d.ts +3 -3
- package/api/resources/auth/client/Client.js +3 -3
- package/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
- package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/Client.js +29 -12
- package/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
- package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/getToken.js +13 -2
- package/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
- package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
- package/{dist/serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.js +1 -0
- package/api/resources/auth/resources/index.d.ts +1 -1
- package/api/resources/auth/resources/index.js +2 -2
- package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
- package/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
- package/api/resources/billingNotes/resources/v2/types/index.js +1 -0
- package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
- package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
- package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
- package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
- package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
- package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
- package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
- package/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
- package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
- package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
- package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
- package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
- package/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
- package/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
- package/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
- package/api/resources/commons/types/PhoneNumberOptional.js +5 -0
- package/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
- package/api/resources/commons/types/ProcedureModifier.js +2 -0
- package/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
- package/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
- package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
- package/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
- package/api/resources/customSchemas/resources/v1/types/index.js +1 -0
- package/api/resources/diagnoses/client/Client.js +3 -3
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
- package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
- package/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
- package/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
- package/api/resources/diagnoses/types/index.d.ts +1 -0
- package/api/resources/diagnoses/types/index.js +1 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
- package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
- package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
- package/api/resources/encounters/resources/v4/client/Client.js +5 -5
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
- package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
- package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
- package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
- package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
- package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
- package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
- package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
- package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
- package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
- package/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
- package/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
- package/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
- package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
- package/api/resources/encounters/resources/v4/types/index.js +10 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
- package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/api/resources/guarantor/resources/v1/types/index.js +1 -0
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
- package/api/resources/individual/types/IndividualBaseOptional.js +5 -0
- package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
- package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
- package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
- package/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
- package/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
- package/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
- package/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
- package/api/resources/individual/types/index.d.ts +4 -0
- package/api/resources/individual/types/index.js +4 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
- package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
- package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
- package/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
- package/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
- package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +3 -3
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
- package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +3 -0
- package/api/resources/superbills/resources/v1/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
- package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
- package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
- package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/api/resources/yesNoIndicator/index.d.ts +1 -0
- package/api/resources/yesNoIndicator/index.js +17 -0
- package/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
- package/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
- package/api/resources/yesNoIndicator/types/index.d.ts +1 -0
- package/api/resources/yesNoIndicator/types/index.js +17 -0
- package/core/auth/OAuthTokenProvider.d.ts +2 -2
- package/dist/Client.js +2 -2
- package/dist/api/resources/auth/client/Client.d.ts +3 -3
- package/dist/api/resources/auth/client/Client.js +3 -3
- package/dist/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
- package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/Client.js +29 -12
- package/dist/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
- package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/getToken.js +13 -2
- package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenRequest.js +5 -0
- package/dist/api/resources/auth/resources/default/types/AuthGetTokenResponse.js +5 -0
- package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
- package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +5 -0
- package/dist/api/resources/auth/resources/default/types/TooManyRequestsErrorType.js +5 -0
- package/dist/{serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
- package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/types/index.js +1 -0
- package/dist/api/resources/auth/resources/index.d.ts +1 -1
- package/dist/api/resources/auth/resources/index.js +2 -2
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
- package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +5 -0
- package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/billingNotes/resources/v2/types/index.js +1 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
- package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
- package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
- package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
- package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
- package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
- package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
- package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
- package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
- package/dist/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
- package/dist/api/resources/commons/types/PhoneNumberOptional.js +5 -0
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
- package/dist/api/resources/commons/types/ProcedureModifier.js +2 -0
- package/dist/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
- package/dist/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
- package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
- package/dist/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/customSchemas/resources/v1/types/index.js +1 -0
- package/dist/api/resources/diagnoses/client/Client.js +3 -3
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
- package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
- package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
- package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
- package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/types/index.js +1 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
- package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
- package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
- package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
- package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
- package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
- package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
- package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
- package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
- package/dist/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
- package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
- package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +10 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
- package/dist/api/resources/individual/types/IndividualBaseOptional.js +5 -0
- package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
- package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
- package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
- package/dist/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
- package/dist/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
- package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
- package/dist/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
- package/dist/api/resources/individual/types/index.d.ts +4 -0
- package/dist/api/resources/individual/types/index.js +4 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
- package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
- package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
- package/dist/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
- package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +3 -0
- package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
- package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
- package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
- package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/dist/api/resources/yesNoIndicator/index.d.ts +1 -0
- package/dist/api/resources/yesNoIndicator/index.js +17 -0
- package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
- package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
- package/dist/api/resources/yesNoIndicator/types/index.d.ts +1 -0
- package/dist/api/resources/yesNoIndicator/types/index.js +17 -0
- package/dist/core/auth/OAuthTokenProvider.d.ts +2 -2
- package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
- package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
- package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
- package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
- package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
- package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
- package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
- package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
- package/dist/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.js +1 -0
- package/dist/serialization/resources/auth/resources/index.d.ts +1 -1
- package/dist/serialization/resources/auth/resources/index.js +2 -2
- package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
- package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
- package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
- package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
- package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
- package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
- package/dist/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +2 -0
- package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
- package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
- package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/types/index.js +1 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
- package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
- package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
- package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
- package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
- package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
- package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
- package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
- package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
- package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
- package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +10 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
- package/dist/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
- package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
- package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
- package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
- package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
- package/dist/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
- package/dist/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
- package/dist/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
- package/dist/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
- package/dist/serialization/resources/individual/types/index.d.ts +4 -0
- package/dist/serialization/resources/individual/types/index.js +4 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
- package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
- package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
- package/dist/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/dist/serialization/resources/yesNoIndicator/index.d.ts +1 -0
- package/dist/serialization/resources/yesNoIndicator/index.js +17 -0
- package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
- package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
- package/dist/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
- package/dist/serialization/resources/yesNoIndicator/types/index.js +17 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +77 -6
- package/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
- package/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
- package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
- package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
- package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
- package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
- package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
- package/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
- package/serialization/resources/auth/resources/{v2 → default}/types/index.js +1 -0
- package/serialization/resources/auth/resources/index.d.ts +1 -1
- package/serialization/resources/auth/resources/index.js +2 -2
- package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
- package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
- package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
- package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
- package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
- package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
- package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
- package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
- package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
- package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
- package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
- package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
- package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
- package/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
- package/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +2 -0
- package/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
- package/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
- package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
- package/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
- package/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
- package/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
- package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
- package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
- package/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/serialization/resources/diagnoses/types/index.js +1 -0
- package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
- package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
- package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
- package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
- package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
- package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
- package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
- package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
- package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
- package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
- package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
- package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
- package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
- package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
- package/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
- package/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
- package/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
- package/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
- package/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
- package/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
- package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
- package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +10 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
- package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
- package/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
- package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
- package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
- package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
- package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
- package/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
- package/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
- package/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
- package/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
- package/serialization/resources/individual/types/index.d.ts +4 -0
- package/serialization/resources/individual/types/index.js +4 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
- package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
- package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
- package/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
- package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
- package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
- package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
- package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
- package/serialization/resources/yesNoIndicator/index.d.ts +1 -0
- package/serialization/resources/yesNoIndicator/index.js +17 -0
- package/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
- package/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
- package/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
- package/serialization/resources/yesNoIndicator/types/index.js +17 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
- package/dist/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
- /package/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
- /package/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
- /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
- /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
- /package/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
- /package/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
- /package/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
- /package/api/resources/auth/resources/{v2 → default}/index.js +0 -0
- /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
- /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
- /package/api/resources/auth/resources/{v2/types/TooManyRequestsErrorType.js → default/types/InvalidContentTypeErrorType.js} +0 -0
- /package/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
- /package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/TooManyRequestsErrorType.js +0 -0
- /package/{dist/api/resources/auth/resources/v2/client/requests/AuthGetTokenRequest.js → api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js} +0 -0
- /package/{dist/api/resources/auth/resources/v2/types/AuthGetTokenResponse.js → api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js} +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/index.js +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
- /package/dist/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
- /package/dist/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
- /package/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
package/Client.js
CHANGED
|
@@ -47,7 +47,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.CandidApiClient = void 0;
|
|
49
49
|
const core = __importStar(require("./core"));
|
|
50
|
-
const Client_1 = require("./api/resources/auth/resources/
|
|
50
|
+
const Client_1 = require("./api/resources/auth/resources/default/client/Client");
|
|
51
51
|
const Client_2 = require("./api/resources/auth/client/Client");
|
|
52
52
|
const Client_3 = require("./api/resources/billingNotes/client/Client");
|
|
53
53
|
const Client_4 = require("./api/resources/chargeCaptureBundles/client/Client");
|
|
@@ -91,7 +91,7 @@ class CandidApiClient {
|
|
|
91
91
|
this._oauthTokenProvider = new core.OAuthTokenProvider({
|
|
92
92
|
clientId: this._options.clientId,
|
|
93
93
|
clientSecret: this._options.clientSecret,
|
|
94
|
-
authClient: new Client_1.
|
|
94
|
+
authClient: new Client_1.Default({
|
|
95
95
|
environment: this._options.environment,
|
|
96
96
|
}),
|
|
97
97
|
});
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm i -s candidhealth
|
|
|
13
13
|
|
|
14
14
|
## Reference
|
|
15
15
|
|
|
16
|
-
A full reference for this library is available [here](
|
|
16
|
+
A full reference for this library is available [here](https://github.com/candidhealth/candid-node/blob/HEAD/./reference.md).
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import {
|
|
6
|
+
import { Default } from "../resources/default/client/Client";
|
|
7
7
|
export declare namespace Auth {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
@@ -24,7 +24,7 @@ export declare namespace Auth {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class Auth {
|
|
26
26
|
protected readonly _options: Auth.Options;
|
|
27
|
-
protected
|
|
27
|
+
protected _default: Default | undefined;
|
|
28
28
|
constructor(_options?: Auth.Options);
|
|
29
|
-
get
|
|
29
|
+
get default(): Default;
|
|
30
30
|
}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Auth = void 0;
|
|
7
|
-
const Client_1 = require("../resources/
|
|
7
|
+
const Client_1 = require("../resources/default/client/Client");
|
|
8
8
|
class Auth {
|
|
9
9
|
constructor(_options = {}) {
|
|
10
10
|
this._options = _options;
|
|
11
11
|
}
|
|
12
|
-
get
|
|
12
|
+
get default() {
|
|
13
13
|
var _a;
|
|
14
|
-
return ((_a = this.
|
|
14
|
+
return ((_a = this._default) !== null && _a !== void 0 ? _a : (this._default = new Client_1.Default(this._options)));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.Auth = Auth;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
6
|
import * as CandidApi from "../../../../../index";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace Default {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -22,9 +22,9 @@ export declare namespace V2 {
|
|
|
22
22
|
headers?: Record<string, string>;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
export declare class
|
|
26
|
-
protected readonly _options:
|
|
27
|
-
constructor(_options?:
|
|
25
|
+
export declare class Default {
|
|
26
|
+
protected readonly _options: Default.Options;
|
|
27
|
+
constructor(_options?: Default.Options);
|
|
28
28
|
/**
|
|
29
29
|
* <Callout intent="info">
|
|
30
30
|
* Candid Health SDKs automatically handle authentication workflows after configuring them with the `client_id` and
|
|
@@ -32,7 +32,21 @@ export declare class V2 {
|
|
|
32
32
|
* </Callout>
|
|
33
33
|
*
|
|
34
34
|
* Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
|
|
35
|
-
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
|
|
35
|
+
* subsequent API requests via the `/auth/v2/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
|
|
36
|
+
*
|
|
37
|
+
* The `/auth/v2/token` endpoint accepts both `Content-Type: application/json` and `Content-Type: application/x-www-form-urlencoded`. The request body should contain the `client_id` and `client_secret` as follows:
|
|
38
|
+
*
|
|
39
|
+
* ```json
|
|
40
|
+
* {
|
|
41
|
+
* "client_id": "YOUR_CLIENT_ID",
|
|
42
|
+
* "client_secret": "YOUR_CLIENT_SECRET"
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
* or as URL-encoded form data:
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
* client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
|
|
49
|
+
* ```
|
|
36
50
|
*
|
|
37
51
|
* The bearer token is a signed [JWT](https://jwt.io/). The public key for the JWT can be found [here](https://candidhealth.auth0.com/pem) for any verification workflows.
|
|
38
52
|
*
|
|
@@ -44,15 +58,15 @@ export declare class V2 {
|
|
|
44
58
|
* requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an `HTTP 429 Too Many Requests` error.
|
|
45
59
|
* </Callout>
|
|
46
60
|
*
|
|
47
|
-
* @param {CandidApi.auth.
|
|
48
|
-
* @param {
|
|
61
|
+
* @param {CandidApi.auth.default_.AuthGetTokenRequest} request
|
|
62
|
+
* @param {Default.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
63
|
*
|
|
50
64
|
* @example
|
|
51
|
-
* await client.auth.
|
|
65
|
+
* await client.auth.default.getToken({
|
|
52
66
|
* clientId: "YOUR_CLIENT_ID",
|
|
53
67
|
* clientSecret: "YOUR_CLIENT_SECRET"
|
|
54
68
|
* })
|
|
55
69
|
*/
|
|
56
|
-
getToken(request: CandidApi.auth.
|
|
70
|
+
getToken(request: CandidApi.auth.default_.AuthGetTokenRequest, requestOptions?: Default.RequestOptions): Promise<core.APIResponse<CandidApi.auth.default_.AuthGetTokenResponse, CandidApi.auth.default_.getToken.Error>>;
|
|
57
71
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
58
72
|
}
|
|
@@ -48,13 +48,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
48
48
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
49
|
};
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
exports.
|
|
51
|
+
exports.Default = void 0;
|
|
52
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../../../core"));
|
|
54
54
|
const CandidApi = __importStar(require("../../../../../index"));
|
|
55
55
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
56
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
-
class
|
|
57
|
+
class Default {
|
|
58
58
|
constructor(_options = {}) {
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
@@ -65,7 +65,21 @@ class V2 {
|
|
|
65
65
|
* </Callout>
|
|
66
66
|
*
|
|
67
67
|
* Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
|
|
68
|
-
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
|
|
68
|
+
* subsequent API requests via the `/auth/v2/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
|
|
69
|
+
*
|
|
70
|
+
* The `/auth/v2/token` endpoint accepts both `Content-Type: application/json` and `Content-Type: application/x-www-form-urlencoded`. The request body should contain the `client_id` and `client_secret` as follows:
|
|
71
|
+
*
|
|
72
|
+
* ```json
|
|
73
|
+
* {
|
|
74
|
+
* "client_id": "YOUR_CLIENT_ID",
|
|
75
|
+
* "client_secret": "YOUR_CLIENT_SECRET"
|
|
76
|
+
* }
|
|
77
|
+
* ```
|
|
78
|
+
* or as URL-encoded form data:
|
|
79
|
+
*
|
|
80
|
+
* ```
|
|
81
|
+
* client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
|
|
82
|
+
* ```
|
|
69
83
|
*
|
|
70
84
|
* The bearer token is a signed [JWT](https://jwt.io/). The public key for the JWT can be found [here](https://candidhealth.auth0.com/pem) for any verification workflows.
|
|
71
85
|
*
|
|
@@ -77,11 +91,11 @@ class V2 {
|
|
|
77
91
|
* requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an `HTTP 429 Too Many Requests` error.
|
|
78
92
|
* </Callout>
|
|
79
93
|
*
|
|
80
|
-
* @param {CandidApi.auth.
|
|
81
|
-
* @param {
|
|
94
|
+
* @param {CandidApi.auth.default_.AuthGetTokenRequest} request
|
|
95
|
+
* @param {Default.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
96
|
*
|
|
83
97
|
* @example
|
|
84
|
-
* await client.auth.
|
|
98
|
+
* await client.auth.default.getToken({
|
|
85
99
|
* clientId: "YOUR_CLIENT_ID",
|
|
86
100
|
* clientSecret: "YOUR_CLIENT_SECRET"
|
|
87
101
|
* })
|
|
@@ -92,10 +106,12 @@ class V2 {
|
|
|
92
106
|
const _response = yield core.fetcher({
|
|
93
107
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/auth/v2/token"),
|
|
94
108
|
method: "POST",
|
|
95
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
109
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
96
110
|
contentType: "application/json",
|
|
97
111
|
requestType: "json",
|
|
98
|
-
body: serializers.auth.
|
|
112
|
+
body: serializers.auth.default_.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
113
|
+
unrecognizedObjectKeys: "strip",
|
|
114
|
+
}),
|
|
99
115
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
100
116
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
101
117
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -103,7 +119,7 @@ class V2 {
|
|
|
103
119
|
if (_response.ok) {
|
|
104
120
|
return {
|
|
105
121
|
ok: true,
|
|
106
|
-
body: serializers.auth.
|
|
122
|
+
body: serializers.auth.default_.AuthGetTokenResponse.parseOrThrow(_response.body, {
|
|
107
123
|
unrecognizedObjectKeys: "passthrough",
|
|
108
124
|
allowUnrecognizedUnionMembers: true,
|
|
109
125
|
allowUnrecognizedEnumValues: true,
|
|
@@ -114,9 +130,10 @@ class V2 {
|
|
|
114
130
|
if (_response.error.reason === "status-code") {
|
|
115
131
|
switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
|
|
116
132
|
case "TooManyRequestsError":
|
|
133
|
+
case "InvalidContentTypeError":
|
|
117
134
|
return {
|
|
118
135
|
ok: false,
|
|
119
|
-
error: serializers.auth.
|
|
136
|
+
error: serializers.auth.default_.getToken.Error.parseOrThrow(_response.error.body, {
|
|
120
137
|
unrecognizedObjectKeys: "passthrough",
|
|
121
138
|
allowUnrecognizedUnionMembers: true,
|
|
122
139
|
allowUnrecognizedEnumValues: true,
|
|
@@ -127,7 +144,7 @@ class V2 {
|
|
|
127
144
|
}
|
|
128
145
|
return {
|
|
129
146
|
ok: false,
|
|
130
|
-
error: CandidApi.auth.
|
|
147
|
+
error: CandidApi.auth.default_.getToken.Error._unknown(_response.error),
|
|
131
148
|
};
|
|
132
149
|
});
|
|
133
150
|
}
|
|
@@ -141,4 +158,4 @@ class V2 {
|
|
|
141
158
|
});
|
|
142
159
|
}
|
|
143
160
|
}
|
|
144
|
-
exports.
|
|
161
|
+
exports.Default = Default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export type Error = CandidApi.auth.default_.getToken.Error.TooManyRequestsError | CandidApi.auth.default_.getToken.Error.InvalidContentTypeError | CandidApi.auth.default_.getToken.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface TooManyRequestsError extends _Utils {
|
|
9
|
+
errorName: "TooManyRequestsError";
|
|
10
|
+
content: CandidApi.auth.default_.TooManyRequestsErrorType;
|
|
11
|
+
}
|
|
12
|
+
interface InvalidContentTypeError extends _Utils {
|
|
13
|
+
errorName: "InvalidContentTypeError";
|
|
14
|
+
content: CandidApi.auth.default_.InvalidContentTypeErrorType;
|
|
15
|
+
}
|
|
16
|
+
interface _Unknown extends _Utils {
|
|
17
|
+
errorName: void;
|
|
18
|
+
content: core.Fetcher.Error;
|
|
19
|
+
}
|
|
20
|
+
interface _Utils {
|
|
21
|
+
_visit: <_Result>(visitor: CandidApi.auth.default_.getToken.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
}
|
|
23
|
+
interface _Visitor<_Result> {
|
|
24
|
+
tooManyRequestsError: (value: CandidApi.auth.default_.TooManyRequestsErrorType) => _Result;
|
|
25
|
+
invalidContentTypeError: (value: CandidApi.auth.default_.InvalidContentTypeErrorType) => _Result;
|
|
26
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare const Error: {
|
|
30
|
+
readonly tooManyRequestsError: (value: CandidApi.auth.default_.TooManyRequestsErrorType) => CandidApi.auth.default_.getToken.Error.TooManyRequestsError;
|
|
31
|
+
readonly invalidContentTypeError: (value: CandidApi.auth.default_.InvalidContentTypeErrorType) => CandidApi.auth.default_.getToken.Error.InvalidContentTypeError;
|
|
32
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.auth.default_.getToken.Error._Unknown;
|
|
33
|
+
readonly _visit: <_Result>(value: CandidApi.auth.default_.getToken.Error, visitor: CandidApi.auth.default_.getToken.Error._Visitor<_Result>) => _Result;
|
|
34
|
+
};
|
|
@@ -44,7 +44,16 @@ exports.Error = {
|
|
|
44
44
|
content: value,
|
|
45
45
|
errorName: "TooManyRequestsError",
|
|
46
46
|
_visit: function (visitor) {
|
|
47
|
-
return CandidApi.auth.
|
|
47
|
+
return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
invalidContentTypeError: (value) => {
|
|
52
|
+
return {
|
|
53
|
+
content: value,
|
|
54
|
+
errorName: "InvalidContentTypeError",
|
|
55
|
+
_visit: function (visitor) {
|
|
56
|
+
return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
|
|
48
57
|
},
|
|
49
58
|
};
|
|
50
59
|
},
|
|
@@ -53,7 +62,7 @@ exports.Error = {
|
|
|
53
62
|
errorName: undefined,
|
|
54
63
|
content: fetcherError,
|
|
55
64
|
_visit: function (visitor) {
|
|
56
|
-
return CandidApi.auth.
|
|
65
|
+
return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
|
|
57
66
|
},
|
|
58
67
|
};
|
|
59
68
|
},
|
|
@@ -61,6 +70,8 @@ exports.Error = {
|
|
|
61
70
|
switch (value.errorName) {
|
|
62
71
|
case "TooManyRequestsError":
|
|
63
72
|
return visitor.tooManyRequestsError(value.content);
|
|
73
|
+
case "InvalidContentTypeError":
|
|
74
|
+
return visitor.invalidContentTypeError(value.content);
|
|
64
75
|
default:
|
|
65
76
|
return visitor._other(value);
|
|
66
77
|
}
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AuthGetTokenResponse"), exports);
|
|
18
18
|
__exportStar(require("./TooManyRequestsErrorType"), exports);
|
|
19
|
+
__exportStar(require("./InvalidContentTypeErrorType"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as default_ from "./default";
|
|
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.default_ = void 0;
|
|
37
|
+
exports.default_ = __importStar(require("./default"));
|
|
@@ -73,7 +73,7 @@ class V2 {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/billing_notes/v2"),
|
|
75
75
|
method: "POST",
|
|
76
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
76
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -113,7 +113,7 @@ class V2 {
|
|
|
113
113
|
const _response = yield core.fetcher({
|
|
114
114
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
|
|
115
115
|
method: "DELETE",
|
|
116
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
116
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -164,7 +164,7 @@ class V2 {
|
|
|
164
164
|
const _response = yield core.fetcher({
|
|
165
165
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
|
|
166
166
|
method: "PATCH",
|
|
167
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
167
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BillingNoteId"), exports);
|
|
18
|
+
__exportStar(require("./BillingNoteBaseOptional"), exports);
|
|
18
19
|
__exportStar(require("./BillingNoteBase"), exports);
|
|
19
20
|
__exportStar(require("./BillingNote"), exports);
|
|
@@ -76,7 +76,7 @@ class V1 {
|
|
|
76
76
|
const _response = yield core.fetcher({
|
|
77
77
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
|
|
78
78
|
method: "POST",
|
|
79
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
79
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
|
|
@@ -136,7 +136,7 @@ class V1 {
|
|
|
136
136
|
const _response = yield core.fetcher({
|
|
137
137
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
|
|
138
138
|
method: "PATCH",
|
|
139
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
139
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
requestType: "json",
|
|
142
142
|
body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
|
|
@@ -194,7 +194,7 @@ class V1 {
|
|
|
194
194
|
const _response = yield core.fetcher({
|
|
195
195
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
|
|
196
196
|
method: "GET",
|
|
197
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
197
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
198
198
|
contentType: "application/json",
|
|
199
199
|
requestType: "json",
|
|
200
200
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -418,7 +418,7 @@ class V1 {
|
|
|
418
418
|
const _response = yield core.fetcher({
|
|
419
419
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
|
|
420
420
|
method: "GET",
|
|
421
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
421
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
422
422
|
contentType: "application/json",
|
|
423
423
|
queryParameters: _queryParams,
|
|
424
424
|
requestType: "json",
|
|
@@ -459,7 +459,7 @@ class V1 {
|
|
|
459
459
|
const _response = yield core.fetcher({
|
|
460
460
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1/changes/"),
|
|
461
461
|
method: "PATCH",
|
|
462
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
462
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
463
463
|
contentType: "application/json",
|
|
464
464
|
requestType: "json",
|
|
465
465
|
body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
|
|
@@ -19,6 +19,10 @@ export interface ChargeCaptureUpdate {
|
|
|
19
19
|
* Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123).
|
|
20
20
|
*/
|
|
21
21
|
ehrSourceUrl?: string;
|
|
22
|
+
/** An optional string field denoting the originating system of the charge. */
|
|
23
|
+
originatingSystem?: string;
|
|
24
|
+
/** An optional string field denoting the user defined category of the claim creation. */
|
|
25
|
+
claimCreationCategory?: string;
|
|
22
26
|
/** The patient ID from the external EMR platform for the patient */
|
|
23
27
|
patientExternalId?: string;
|
|
24
28
|
/** the status of the charge capture */
|
package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export interface CreateChargeCaptureRequest {
|
|
|
16
16
|
data: CandidApi.chargeCapture.v1.ChargeCaptureData;
|
|
17
17
|
/** A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI. */
|
|
18
18
|
chargeExternalId: string;
|
|
19
|
+
/** An optional string field denoting the originating system of the charge. */
|
|
20
|
+
originatingSystem?: string;
|
|
21
|
+
/** An optional string field denoting the user defined category of the claim creation. */
|
|
22
|
+
claimCreationCategory?: string;
|
|
19
23
|
/** External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123). */
|
|
20
24
|
ehrSourceUrl?: string;
|
|
21
25
|
/** The patient ID from the external EMR platform for the patient */
|
|
@@ -10,6 +10,8 @@ export interface ChargeCapture {
|
|
|
10
10
|
patientExternalId: CandidApi.PatientExternalId;
|
|
11
11
|
chargeExternalId: string;
|
|
12
12
|
ehrSourceUrl?: string;
|
|
13
|
+
originatingSystem?: string;
|
|
14
|
+
claimCreationCategory?: string;
|
|
13
15
|
error?: CandidApi.chargeCapture.v1.ChargeCaptureError;
|
|
14
16
|
updates: CandidApi.chargeCapture.v1.ChargeCapturePostBilledChange[];
|
|
15
17
|
claimCreationId?: CandidApi.ChargeCaptureClaimCreationId;
|
|
@@ -2,56 +2,5 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../index";
|
|
5
|
-
export interface ChargeCaptureData extends CandidApi.encounters.v4.
|
|
6
|
-
/**
|
|
7
|
-
* Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses
|
|
8
|
-
* may be submitted at this time, and coders will later prioritize the 12 that will be
|
|
9
|
-
* submitted to the payor.
|
|
10
|
-
*/
|
|
11
|
-
diagnoses?: CandidApi.DiagnosisCreate[];
|
|
12
|
-
interventions?: CandidApi.encounters.v4.Intervention[];
|
|
13
|
-
/**
|
|
14
|
-
* ***This field is in beta.***
|
|
15
|
-
* To be included for claims that have been submitted outside of Candid.
|
|
16
|
-
* Candid supports posting remits and payments to these claims and working them in-platform (e.g. editing, resubmitting).
|
|
17
|
-
*/
|
|
18
|
-
externalClaimSubmission?: CandidApi.claimSubmission.v1.ExternalClaimSubmissionCreate;
|
|
19
|
-
/**
|
|
20
|
-
* Each service line must be linked to a diagnosis. Concretely,
|
|
21
|
-
* `service_line.diagnosis_pointers`must contain at least one entry which should be
|
|
22
|
-
* in bounds of the diagnoses list field.
|
|
23
|
-
*/
|
|
24
|
-
serviceLines?: CandidApi.serviceLines.v2.ServiceLineCreate[];
|
|
25
|
-
patientHistories?: CandidApi.encounters.v4.PatientHistoryCategory[];
|
|
26
|
-
/**
|
|
27
|
-
* Spot to store misc, human-readable, notes about this encounter to be
|
|
28
|
-
* used in the billing process.
|
|
29
|
-
*/
|
|
30
|
-
billingNotes?: CandidApi.billingNotes.v2.BillingNoteBase[];
|
|
31
|
-
/** Contains the identification information of the individual receiving medical services. */
|
|
32
|
-
patient?: CandidApi.PatientUpdateWithOptionalAddress;
|
|
33
|
-
/** Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process. */
|
|
34
|
-
serviceFacility?: CandidApi.EncounterServiceFacilityUpdateWithOptionalAddress;
|
|
35
|
-
/**
|
|
36
|
-
* The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.
|
|
37
|
-
* For telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address.
|
|
38
|
-
*/
|
|
39
|
-
renderingProvider?: CandidApi.encounterProviders.v2.RenderingProviderUpdateWithOptionalAddress;
|
|
40
|
-
/**
|
|
41
|
-
* The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in this loop to
|
|
42
|
-
* indicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.
|
|
43
|
-
*/
|
|
44
|
-
initialReferringProvider?: CandidApi.encounterProviders.v2.InitialReferringProviderUpdateWithOptionalAddress;
|
|
45
|
-
/**
|
|
46
|
-
* The final provider who referred the services that were rendered.
|
|
47
|
-
* All physicians who order services or refer Medicare beneficiaries must
|
|
48
|
-
* report this data.
|
|
49
|
-
*/
|
|
50
|
-
referringProvider?: CandidApi.encounterProviders.v2.ReferringProviderUpdateWithOptionalAddress;
|
|
51
|
-
/** Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send. */
|
|
52
|
-
supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProviderUpdateWithOptionalAddress;
|
|
53
|
-
/** The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form. */
|
|
54
|
-
billingProvider?: CandidApi.encounterProviders.v2.BillingProviderUpdateWithOptionalAddress;
|
|
55
|
-
/** Specifies the address to which payments for the claim should be sent. */
|
|
56
|
-
payToAddress?: CandidApi.StreetAddressShortZipOptional;
|
|
5
|
+
export interface ChargeCaptureData extends CandidApi.encounters.v4.EncounterDeepOptional {
|
|
57
6
|
}
|
|
@@ -12,6 +12,12 @@ export interface ChargeCaptureError {
|
|
|
12
12
|
chargeCaptureId?: CandidApi.ChargeCaptureId;
|
|
13
13
|
/** A human readable error explaining why this charge capture Claim Creation failed to create a claim. */
|
|
14
14
|
message: string;
|
|
15
|
+
/** Whether or not the error has been resolved as part of user workflows */
|
|
16
|
+
resolved?: boolean;
|
|
17
|
+
/** A string denoting who resolved the error within candid's system. */
|
|
18
|
+
resolvedBy?: string;
|
|
19
|
+
/** A string denoting how or why an error was resolved. */
|
|
20
|
+
resolutionReason?: string;
|
|
15
21
|
/**
|
|
16
22
|
* The field of the corresponding underlying ChargeCapture that has a field that is failing validations,
|
|
17
23
|
* is not present but marked as required, or otherwise in error.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * from "./ChargeCaptureData";
|
|
1
2
|
export * from "./ChargeCapturePage";
|
|
2
3
|
export * from "./ChargeCapture";
|
|
3
|
-
export * from "./ChargeCaptureData";
|
|
4
4
|
export * from "./ChargeCaptureError";
|
|
5
5
|
export * from "./ChargeCaptureSortField";
|
|
6
6
|
export * from "./ChargeCaptureStatus";
|
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ChargeCaptureData"), exports);
|
|
17
18
|
__exportStar(require("./ChargeCapturePage"), exports);
|
|
18
19
|
__exportStar(require("./ChargeCapture"), exports);
|
|
19
|
-
__exportStar(require("./ChargeCaptureData"), exports);
|
|
20
20
|
__exportStar(require("./ChargeCaptureError"), exports);
|
|
21
21
|
__exportStar(require("./ChargeCaptureSortField"), exports);
|
|
22
22
|
__exportStar(require("./ChargeCaptureStatus"), exports);
|
|
@@ -40,6 +40,15 @@ export declare class V1 {
|
|
|
40
40
|
* await client.chargeCaptureBundles.v1.getSummary()
|
|
41
41
|
*/
|
|
42
42
|
getSummary(requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureClaimCreationSummary, CandidApi.chargeCaptureBundles.v1.getSummary.Error>>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} chargeCaptureBundleErrorId
|
|
45
|
+
* @param {CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleErrorResolution} request
|
|
46
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.chargeCaptureBundles.v1.resolveChargeCreationError("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
50
|
+
*/
|
|
51
|
+
resolveChargeCreationError(chargeCaptureBundleErrorId: string, request?: CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleErrorResolution, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.chargeCaptureBundles.v1.resolveChargeCreationError.Error>>;
|
|
43
52
|
/**
|
|
44
53
|
* @param {CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureClaimCreationsRequest} request
|
|
45
54
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|