candidhealth 0.10.1 → 0.12.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/README.md +1 -0
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/claims/types/Claim.d.ts +1 -37
- package/api/resources/commons/types/SortDirection.d.ts +12 -0
- package/api/resources/commons/types/SortDirection.js +10 -0
- package/api/resources/commons/types/TaxId.d.ts +8 -0
- package/api/resources/{jobs/resources/v1/types/JobId.js → commons/types/TaxId.js} +3 -3
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounters/resources/v4/client/Client.js +5 -4
- package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +36 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +6 -37
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +36 -0
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +6 -37
- package/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
- package/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +39 -0
- package/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +15 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +2 -0
- package/api/resources/encounters/resources/v4/types/index.js +2 -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/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +1 -4
- package/api/resources/index.js +2 -5
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +4 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +3 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +3 -3
- package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
- package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
- package/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
- package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
- package/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
- package/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- 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.d.ts +6 -0
- package/api/resources/patientPayments/resources/v4/client/Client.js +79 -4
- package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +22 -0
- package/api/resources/patientPayments/resources/v4/client/getMulti.js +47 -0
- package/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
- package/api/resources/patientPayments/resources/v4/client/index.js +2 -1
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +25 -0
- package/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
- package/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +12 -0
- package/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +7 -0
- package/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/api/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +6 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +79 -4
- package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/{dist/serialization/resources/claimActionsCommons/types/CloseTasksAndProcessClaimAction.js → api/resources/patientRefunds/resources/v1/client/getMulti.js} +19 -3
- package/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
- package/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +25 -0
- package/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +11 -0
- package/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +13 -0
- package/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +7 -0
- package/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/api/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/remits/resources/v1/types/Payee.d.ts +8 -0
- package/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +19 -0
- package/api/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/api/resources/remits/resources/v1/types/index.js +18 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.d.ts +6 -0
- package/api/resources/writeOffs/resources/v1/client/Client.js +60 -4
- package/api/resources/writeOffs/resources/v1/client/getMulti.d.ts +22 -0
- package/{serialization/resources/claimActionsCommons/types/ResubmitFreshClaimAction.js → api/resources/writeOffs/resources/v1/client/getMulti.js} +19 -3
- package/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -0
- package/api/resources/writeOffs/resources/v1/client/index.js +2 -1
- package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +21 -0
- package/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/api/resources/writeOffs/resources/v1/types/WriteOffSortField.js +12 -0
- package/api/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +7 -0
- package/api/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
- package/api/resources/writeOffs/resources/v1/types/index.js +2 -0
- package/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/api/resources/x12/resources/v1/types/index.js +2 -0
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/claims/types/Claim.d.ts +1 -37
- package/dist/api/resources/commons/types/SortDirection.d.ts +12 -0
- package/dist/api/resources/commons/types/SortDirection.js +10 -0
- package/dist/api/resources/commons/types/TaxId.d.ts +8 -0
- package/dist/api/resources/{jobs/resources/v1/types/JobId.js → commons/types/TaxId.js} +3 -3
- 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/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -4
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +36 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +6 -37
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +36 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +6 -37
- package/dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +39 -0
- package/dist/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +15 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +2 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +2 -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/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +1 -4
- package/dist/api/resources/index.js +2 -5
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +4 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +3 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +3 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- 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.d.ts +6 -0
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +79 -4
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +22 -0
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +47 -0
- package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
- package/dist/api/resources/patientPayments/resources/v4/client/index.js +2 -1
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +25 -0
- package/dist/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +12 -0
- package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +7 -0
- package/dist/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/dist/api/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +6 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +79 -4
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +25 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +11 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +13 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +7 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/remits/resources/v1/types/Payee.d.ts +8 -0
- package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +19 -0
- package/dist/api/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/remits/resources/v1/types/index.js +18 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +6 -0
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +60 -4
- package/dist/api/resources/writeOffs/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/{serialization/resources/claimActionsCommons/types/ResubmitFreshClaimAction.js → api/resources/writeOffs/resources/v1/client/getMulti.js} +19 -3
- package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/writeOffs/resources/v1/client/index.js +2 -1
- package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +21 -0
- package/dist/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffSortField.js +12 -0
- package/dist/api/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +7 -0
- package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/writeOffs/resources/v1/types/index.js +2 -0
- package/dist/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/x12/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/claims/types/Claim.d.ts +0 -1
- package/dist/serialization/resources/claims/types/Claim.js +0 -1
- package/{serialization/resources/claimActionsCommons/types/VoidClaimAction.d.ts → dist/serialization/resources/commons/types/SortDirection.d.ts} +3 -4
- package/{serialization/resources/claimActionsCommons/types/VoidClaimAction.js → dist/serialization/resources/commons/types/SortDirection.js} +2 -2
- package/dist/serialization/resources/{claimActionsCommons/types/VoidClaimAction.d.ts → commons/types/TaxId.d.ts} +3 -4
- package/{serialization/resources/claimActionsCommons/types/ResubmitCorrectedClaimAction.js → dist/serialization/resources/commons/types/TaxId.js} +7 -3
- 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/encounters/resources/v4/client/create.d.ts +5 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +5 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +7 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +7 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
- package/dist/serialization/resources/{users/resources/v2/types/GoogleAppsMetadata.js → encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js} +3 -3
- package/dist/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +10 -0
- package/dist/serialization/resources/{jobs/resources/v1/types/JobStatus.js → encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js} +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +1 -4
- package/dist/serialization/resources/index.js +2 -5
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +4 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +4 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +3 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +3 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +3 -3
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +3 -3
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +31 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +12 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +35 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/dist/serialization/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +10 -0
- package/dist/serialization/resources/{users/resources/v2/types/AuthZeroMetadata.js → patientRefunds/resources/v1/types/PatientRefundSortField.js} +2 -4
- package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +12 -0
- package/dist/serialization/resources/{jobs/resources/v1/types/JobId.js → patientRefunds/resources/v1/types/PatientRefundsPage.js} +6 -6
- package/dist/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/remits/resources/v1/types/Payee.d.ts +13 -0
- package/dist/serialization/resources/{users/resources/v2/types/HumanUserMetadata.js → remits/resources/v1/types/Payee.js} +4 -4
- package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +22 -0
- package/dist/serialization/resources/{users/resources/v2/types/UserMetadata.js → remits/resources/v1/types/PayeeIdentifier.js} +11 -4
- package/dist/serialization/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/remits/resources/v1/types/index.js +18 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/{serialization/resources/jobs/resources/v1/types/JobStatus.js → dist/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.js} +2 -2
- package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +12 -0
- package/{serialization/resources/jobs/resources/v1/types/JobMetadata.js → dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js} +5 -8
- package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
- package/{serialization/resources/insuranceAdjudications → dist/serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/claims/types/Claim.d.ts +0 -1
- package/serialization/resources/claims/types/Claim.js +0 -1
- package/serialization/resources/commons/types/SortDirection.d.ts +10 -0
- package/{dist/serialization/resources/claimActionsCommons/types/VoidClaimAction.js → serialization/resources/commons/types/SortDirection.js} +2 -2
- package/serialization/resources/commons/types/TaxId.d.ts +10 -0
- package/{dist/serialization/resources/claimActionsCommons/types/ResubmitCorrectedClaimAction.js → serialization/resources/commons/types/TaxId.js} +7 -3
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +5 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +7 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +7 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
- package/{dist/serialization/resources/jobs/resources/v1/types/JobGroupId.js → serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js} +3 -5
- package/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +10 -0
- package/{dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js → serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js} +2 -4
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +2 -0
- package/serialization/resources/index.d.ts +1 -4
- package/serialization/resources/index.js +2 -5
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +4 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +4 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +3 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +3 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +3 -3
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +3 -3
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +31 -0
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +12 -0
- package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +35 -0
- package/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
- package/serialization/resources/patientPayments/resources/v4/types/index.js +2 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +10 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +31 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +12 -0
- package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +35 -0
- package/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/patientRefunds/resources/v1/types/index.js +2 -0
- package/serialization/resources/remits/resources/v1/types/Payee.d.ts +13 -0
- package/serialization/resources/{users/resources/v2/types/HumanUserMetadata.js → remits/resources/v1/types/Payee.js} +4 -4
- package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +22 -0
- package/serialization/resources/{users/resources/v2/types/UserMetadata.js → remits/resources/v1/types/PayeeIdentifier.js} +11 -4
- package/serialization/resources/remits/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/remits/resources/v1/types/index.js +18 -0
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
- package/serialization/resources/{users/resources/v2/types/MachineUserMetadata.js → writeOffs/resources/v1/types/WriteOffSortField.js} +2 -4
- package/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +12 -0
- package/{dist/serialization/resources/jobs/resources/v1/types/JobMetadata.js → serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js} +5 -8
- package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/writeOffs/resources/v1/types/index.js +2 -0
- package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
- package/{dist/serialization/resources/insuranceAdjudications → serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/x12/resources/v1/types/index.js +2 -0
- package/api/resources/claimActionsCommons/types/ClaimAction.d.ts +0 -30
- package/api/resources/claimActionsCommons/types/ClaimActionMetadata.d.ts +0 -23
- package/api/resources/claimActionsCommons/types/CloseTasksAndProcessClaimAction.d.ts +0 -8
- package/api/resources/claimActionsCommons/types/CreateTaskConfig.d.ts +0 -21
- package/api/resources/claimActionsCommons/types/MoveToWorkQueueClaimAction.d.ts +0 -21
- package/api/resources/claimActionsCommons/types/ResubmitCorrectedClaimAction.d.ts +0 -14
- package/api/resources/claimActionsCommons/types/ResubmitFreshClaimAction.d.ts +0 -8
- package/api/resources/claimActionsCommons/types/VoidClaimAction.d.ts +0 -8
- package/api/resources/claimActionsCommons/types/index.d.ts +0 -8
- package/api/resources/claimActionsCommons/types/index.js +0 -24
- package/api/resources/jobs/resources/v1/types/ClaimJobMetadata.d.ts +0 -29
- package/api/resources/jobs/resources/v1/types/Job.d.ts +0 -53
- package/api/resources/jobs/resources/v1/types/JobGroupId.d.ts +0 -8
- package/api/resources/jobs/resources/v1/types/JobGroupId.js +0 -10
- package/api/resources/jobs/resources/v1/types/JobId.d.ts +0 -8
- package/api/resources/jobs/resources/v1/types/JobMetadata.d.ts +0 -30
- package/api/resources/jobs/resources/v1/types/JobStatus.d.ts +0 -16
- package/api/resources/jobs/resources/v1/types/JobStatus.js +0 -12
- package/api/resources/jobs/resources/v1/types/index.d.ts +0 -6
- package/api/resources/jobs/resources/v1/types/index.js +0 -22
- package/api/resources/users/resources/index.d.ts +0 -1
- package/api/resources/users/resources/index.js +0 -27
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
- package/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -14
- package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -23
- package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
- package/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -21
- package/api/resources/users/resources/v2/types/UserV2.d.ts +0 -28
- package/api/resources/users/resources/v2/types/index.d.ts +0 -8
- package/api/resources/users/resources/v2/types/index.js +0 -24
- package/dist/api/resources/claimActionsCommons/types/ClaimAction.d.ts +0 -30
- package/dist/api/resources/claimActionsCommons/types/ClaimActionMetadata.d.ts +0 -23
- package/dist/api/resources/claimActionsCommons/types/CloseTasksAndProcessClaimAction.d.ts +0 -8
- package/dist/api/resources/claimActionsCommons/types/CreateTaskConfig.d.ts +0 -21
- package/dist/api/resources/claimActionsCommons/types/CreateTaskConfig.js +0 -5
- package/dist/api/resources/claimActionsCommons/types/MoveToWorkQueueClaimAction.d.ts +0 -21
- package/dist/api/resources/claimActionsCommons/types/MoveToWorkQueueClaimAction.js +0 -5
- package/dist/api/resources/claimActionsCommons/types/ResubmitCorrectedClaimAction.d.ts +0 -14
- package/dist/api/resources/claimActionsCommons/types/ResubmitCorrectedClaimAction.js +0 -5
- package/dist/api/resources/claimActionsCommons/types/ResubmitFreshClaimAction.d.ts +0 -8
- package/dist/api/resources/claimActionsCommons/types/ResubmitFreshClaimAction.js +0 -5
- package/dist/api/resources/claimActionsCommons/types/VoidClaimAction.d.ts +0 -8
- package/dist/api/resources/claimActionsCommons/types/VoidClaimAction.js +0 -5
- package/dist/api/resources/claimActionsCommons/types/index.d.ts +0 -8
- package/dist/api/resources/claimActionsCommons/types/index.js +0 -24
- package/dist/api/resources/jobs/resources/v1/index.d.ts +0 -1
- package/dist/api/resources/jobs/resources/v1/index.js +0 -17
- package/dist/api/resources/jobs/resources/v1/types/ClaimJobMetadata.d.ts +0 -29
- package/dist/api/resources/jobs/resources/v1/types/ClaimJobMetadata.js +0 -5
- package/dist/api/resources/jobs/resources/v1/types/Job.d.ts +0 -53
- package/dist/api/resources/jobs/resources/v1/types/Job.js +0 -5
- package/dist/api/resources/jobs/resources/v1/types/JobGroupId.d.ts +0 -8
- package/dist/api/resources/jobs/resources/v1/types/JobGroupId.js +0 -10
- package/dist/api/resources/jobs/resources/v1/types/JobId.d.ts +0 -8
- package/dist/api/resources/jobs/resources/v1/types/JobMetadata.d.ts +0 -30
- package/dist/api/resources/jobs/resources/v1/types/JobMetadata.js +0 -5
- package/dist/api/resources/jobs/resources/v1/types/JobStatus.d.ts +0 -16
- package/dist/api/resources/jobs/resources/v1/types/JobStatus.js +0 -12
- package/dist/api/resources/jobs/resources/v1/types/index.d.ts +0 -6
- package/dist/api/resources/jobs/resources/v1/types/index.js +0 -22
- package/dist/api/resources/users/resources/index.d.ts +0 -1
- package/dist/api/resources/users/resources/index.js +0 -27
- package/dist/api/resources/users/resources/v2/index.d.ts +0 -1
- package/dist/api/resources/users/resources/v2/index.js +0 -17
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -14
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -23
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -21
- package/dist/api/resources/users/resources/v2/types/UserMetadata.js +0 -5
- package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +0 -28
- package/dist/api/resources/users/resources/v2/types/UserV2.js +0 -5
- package/dist/api/resources/users/resources/v2/types/index.d.ts +0 -8
- package/dist/api/resources/users/resources/v2/types/index.js +0 -24
- package/dist/serialization/resources/claimActionsCommons/index.d.ts +0 -1
- package/dist/serialization/resources/claimActionsCommons/index.js +0 -17
- package/dist/serialization/resources/claimActionsCommons/types/ClaimAction.d.ts +0 -25
- package/dist/serialization/resources/claimActionsCommons/types/ClaimAction.js +0 -42
- package/dist/serialization/resources/claimActionsCommons/types/ClaimActionMetadata.d.ts +0 -16
- package/dist/serialization/resources/claimActionsCommons/types/ClaimActionMetadata.js +0 -37
- package/dist/serialization/resources/claimActionsCommons/types/CloseTasksAndProcessClaimAction.d.ts +0 -11
- package/dist/serialization/resources/claimActionsCommons/types/CreateTaskConfig.d.ts +0 -16
- package/dist/serialization/resources/claimActionsCommons/types/CreateTaskConfig.js +0 -37
- package/dist/serialization/resources/claimActionsCommons/types/MoveToWorkQueueClaimAction.d.ts +0 -13
- package/dist/serialization/resources/claimActionsCommons/types/MoveToWorkQueueClaimAction.js +0 -34
- package/dist/serialization/resources/claimActionsCommons/types/ResubmitCorrectedClaimAction.d.ts +0 -12
- package/dist/serialization/resources/claimActionsCommons/types/ResubmitFreshClaimAction.d.ts +0 -11
- package/dist/serialization/resources/claimActionsCommons/types/index.d.ts +0 -8
- package/dist/serialization/resources/claimActionsCommons/types/index.js +0 -24
- package/dist/serialization/resources/jobs/index.d.ts +0 -1
- package/dist/serialization/resources/jobs/index.js +0 -17
- package/dist/serialization/resources/jobs/resources/v1/index.d.ts +0 -1
- package/dist/serialization/resources/jobs/resources/v1/index.js +0 -17
- package/dist/serialization/resources/jobs/resources/v1/types/ClaimJobMetadata.d.ts +0 -15
- package/dist/serialization/resources/jobs/resources/v1/types/ClaimJobMetadata.js +0 -36
- package/dist/serialization/resources/jobs/resources/v1/types/Job.d.ts +0 -18
- package/dist/serialization/resources/jobs/resources/v1/types/Job.js +0 -39
- package/dist/serialization/resources/jobs/resources/v1/types/JobGroupId.d.ts +0 -10
- package/dist/serialization/resources/jobs/resources/v1/types/JobId.d.ts +0 -10
- package/dist/serialization/resources/jobs/resources/v1/types/JobMetadata.d.ts +0 -13
- package/dist/serialization/resources/jobs/resources/v1/types/JobStatus.d.ts +0 -10
- package/dist/serialization/resources/jobs/resources/v1/types/index.d.ts +0 -6
- package/dist/serialization/resources/jobs/resources/v1/types/index.js +0 -22
- package/dist/serialization/resources/users/index.d.ts +0 -1
- package/dist/serialization/resources/users/index.js +0 -17
- package/dist/serialization/resources/users/resources/index.d.ts +0 -1
- package/dist/serialization/resources/users/resources/index.js +0 -27
- package/dist/serialization/resources/users/resources/v2/index.d.ts +0 -1
- package/dist/serialization/resources/users/resources/v2/index.js +0 -17
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +0 -40
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
- package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
- package/dist/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
- package/dist/serialization/resources/users/resources/v2/types/index.d.ts +0 -8
- package/dist/serialization/resources/users/resources/v2/types/index.js +0 -24
- package/serialization/resources/claimActionsCommons/index.d.ts +0 -1
- package/serialization/resources/claimActionsCommons/index.js +0 -17
- package/serialization/resources/claimActionsCommons/types/ClaimAction.d.ts +0 -25
- package/serialization/resources/claimActionsCommons/types/ClaimAction.js +0 -42
- package/serialization/resources/claimActionsCommons/types/ClaimActionMetadata.d.ts +0 -16
- package/serialization/resources/claimActionsCommons/types/ClaimActionMetadata.js +0 -37
- package/serialization/resources/claimActionsCommons/types/CloseTasksAndProcessClaimAction.d.ts +0 -11
- package/serialization/resources/claimActionsCommons/types/CloseTasksAndProcessClaimAction.js +0 -31
- package/serialization/resources/claimActionsCommons/types/CreateTaskConfig.d.ts +0 -16
- package/serialization/resources/claimActionsCommons/types/CreateTaskConfig.js +0 -37
- package/serialization/resources/claimActionsCommons/types/MoveToWorkQueueClaimAction.d.ts +0 -13
- package/serialization/resources/claimActionsCommons/types/MoveToWorkQueueClaimAction.js +0 -34
- package/serialization/resources/claimActionsCommons/types/ResubmitCorrectedClaimAction.d.ts +0 -12
- package/serialization/resources/claimActionsCommons/types/ResubmitFreshClaimAction.d.ts +0 -11
- package/serialization/resources/claimActionsCommons/types/index.d.ts +0 -8
- package/serialization/resources/claimActionsCommons/types/index.js +0 -24
- package/serialization/resources/jobs/index.d.ts +0 -1
- package/serialization/resources/jobs/index.js +0 -17
- package/serialization/resources/jobs/resources/v1/index.d.ts +0 -1
- package/serialization/resources/jobs/resources/v1/index.js +0 -17
- package/serialization/resources/jobs/resources/v1/types/ClaimJobMetadata.d.ts +0 -15
- package/serialization/resources/jobs/resources/v1/types/ClaimJobMetadata.js +0 -36
- package/serialization/resources/jobs/resources/v1/types/Job.d.ts +0 -18
- package/serialization/resources/jobs/resources/v1/types/Job.js +0 -39
- package/serialization/resources/jobs/resources/v1/types/JobGroupId.d.ts +0 -10
- package/serialization/resources/jobs/resources/v1/types/JobGroupId.js +0 -35
- package/serialization/resources/jobs/resources/v1/types/JobId.d.ts +0 -10
- package/serialization/resources/jobs/resources/v1/types/JobId.js +0 -35
- package/serialization/resources/jobs/resources/v1/types/JobMetadata.d.ts +0 -13
- package/serialization/resources/jobs/resources/v1/types/JobStatus.d.ts +0 -10
- package/serialization/resources/jobs/resources/v1/types/index.d.ts +0 -6
- package/serialization/resources/jobs/resources/v1/types/index.js +0 -22
- package/serialization/resources/users/index.d.ts +0 -1
- package/serialization/resources/users/index.js +0 -17
- package/serialization/resources/users/resources/index.d.ts +0 -1
- package/serialization/resources/users/resources/index.js +0 -27
- package/serialization/resources/users/resources/v2/index.d.ts +0 -1
- package/serialization/resources/users/resources/v2/index.js +0 -17
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -33
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -33
- package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +0 -40
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
- package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
- package/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
- package/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
- package/serialization/resources/users/resources/v2/types/index.d.ts +0 -8
- package/serialization/resources/users/resources/v2/types/index.js +0 -24
- /package/api/resources/{claimActionsCommons/types/ClaimAction.js → encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js} +0 -0
- /package/api/resources/{claimActionsCommons/types/ClaimActionMetadata.js → insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js} +0 -0
- /package/api/resources/{claimActionsCommons/types/CloseTasksAndProcessClaimAction.js → insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js} +0 -0
- /package/api/resources/{claimActionsCommons/types/CreateTaskConfig.js → patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.js} +0 -0
- /package/api/resources/{claimActionsCommons/types/MoveToWorkQueueClaimAction.js → patientPayments/resources/v4/types/PatientPaymentsPage.js} +0 -0
- /package/api/resources/{claimActionsCommons/types/ResubmitCorrectedClaimAction.js → patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.js} +0 -0
- /package/api/resources/{claimActionsCommons/types/ResubmitFreshClaimAction.js → patientRefunds/resources/v1/types/PatientRefundsPage.js} +0 -0
- /package/api/resources/{jobs → remits}/index.d.ts +0 -0
- /package/api/resources/{jobs → remits}/index.js +0 -0
- /package/api/resources/{jobs → remits}/resources/index.d.ts +0 -0
- /package/api/resources/{jobs → remits}/resources/index.js +0 -0
- /package/api/resources/{claimActionsCommons → remits/resources/v1}/index.d.ts +0 -0
- /package/api/resources/{claimActionsCommons → remits/resources/v1}/index.js +0 -0
- /package/api/resources/{claimActionsCommons/types/VoidClaimAction.js → remits/resources/v1/types/Payee.js} +0 -0
- /package/api/resources/{insuranceAdjudications/resources/v1/types/ClaimAdjustmentReasonCode.js → remits/resources/v1/types/PayeeIdentifier.js} +0 -0
- /package/api/resources/{insuranceAdjudications/resources/v1/types/RemittanceAdviceRemarkCode.js → writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.js} +0 -0
- /package/api/resources/{jobs/resources/v1/types/ClaimJobMetadata.js → writeOffs/resources/v1/types/WriteOffsPage.js} +0 -0
- /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
- /package/{dist/api/resources/insuranceAdjudications → api/resources/x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
- /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
- /package/{dist/api/resources/insuranceAdjudications → api/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
- /package/{api/resources/jobs/resources/v1/types/Job.js → dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js} +0 -0
- /package/{api/resources/jobs/resources/v1/types/JobMetadata.js → dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js} +0 -0
- /package/{api/resources/users/resources/v2/types/AuthZeroMetadata.js → dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js} +0 -0
- /package/{api/resources/users/resources/v2/types/GoogleAppsMetadata.js → dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.js} +0 -0
- /package/{api/resources/users/resources/v2/types/HumanUserMetadata.js → dist/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js} +0 -0
- /package/{api/resources/users/resources/v2/types/IdpUserMetadata.js → dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.js} +0 -0
- /package/{api/resources/users/resources/v2/types/MachineUserMetadata.js → dist/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js} +0 -0
- /package/{api/resources/users → dist/api/resources/remits}/index.d.ts +0 -0
- /package/{api/resources/users → dist/api/resources/remits}/index.js +0 -0
- /package/dist/api/resources/{jobs → remits}/resources/index.d.ts +0 -0
- /package/dist/api/resources/{jobs → remits}/resources/index.js +0 -0
- /package/{api/resources/jobs → dist/api/resources/remits}/resources/v1/index.d.ts +0 -0
- /package/{api/resources/jobs → dist/api/resources/remits}/resources/v1/index.js +0 -0
- /package/{api/resources/users/resources/v2/types/OtherIdpMetadata.js → dist/api/resources/remits/resources/v1/types/Payee.js} +0 -0
- /package/{api/resources/users/resources/v2/types/UserMetadata.js → dist/api/resources/remits/resources/v1/types/PayeeIdentifier.js} +0 -0
- /package/{api/resources/users/resources/v2/types/UserV2.js → dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.js} +0 -0
- /package/dist/api/resources/{claimActionsCommons/types/ClaimAction.js → writeOffs/resources/v1/types/WriteOffsPage.js} +0 -0
- /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
- /package/dist/api/resources/{claimActionsCommons/types/ClaimActionMetadata.js → x12/resources/v1/types/ClaimAdjustmentReasonCode.js} +0 -0
- /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
- /package/dist/api/resources/{claimActionsCommons/types/CloseTasksAndProcessClaimAction.js → x12/resources/v1/types/RemittanceAdviceRemarkCode.js} +0 -0
- /package/dist/{api/resources/jobs → serialization/resources/remits}/index.d.ts +0 -0
- /package/dist/{api/resources/jobs → serialization/resources/remits}/index.js +0 -0
- /package/dist/serialization/resources/{jobs → remits}/resources/index.d.ts +0 -0
- /package/dist/serialization/resources/{jobs → remits}/resources/index.js +0 -0
- /package/{api/resources/users/resources/v2 → dist/serialization/resources/remits/resources/v1}/index.d.ts +0 -0
- /package/{api/resources/users/resources/v2 → dist/serialization/resources/remits/resources/v1}/index.js +0 -0
- /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
- /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
- /package/{dist/api/resources/users → serialization/resources/remits}/index.d.ts +0 -0
- /package/{dist/api/resources/users → serialization/resources/remits}/index.js +0 -0
- /package/serialization/resources/{jobs → remits}/resources/index.d.ts +0 -0
- /package/serialization/resources/{jobs → remits}/resources/index.js +0 -0
- /package/{dist/api/resources/claimActionsCommons → serialization/resources/remits/resources/v1}/index.d.ts +0 -0
- /package/{dist/api/resources/claimActionsCommons → serialization/resources/remits/resources/v1}/index.js +0 -0
- /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
- /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
|
@@ -33,13 +33,88 @@ exports.V4 = void 0;
|
|
|
33
33
|
const environments = __importStar(require("../../../../../../environments"));
|
|
34
34
|
const core = __importStar(require("../../../../../../core"));
|
|
35
35
|
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
-
const
|
|
36
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
37
37
|
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
38
39
|
class V4 {
|
|
39
40
|
options;
|
|
40
41
|
constructor(options) {
|
|
41
42
|
this.options = options;
|
|
42
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns all patient payments satisfying the search criteria AND whose organization_id matches
|
|
46
|
+
* the current organization_id of the authenticated user.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
async getMulti(request = {}) {
|
|
50
|
+
const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, invoiceId, sources, sort, sortDirection, pageToken, } = request;
|
|
51
|
+
const _queryParams = new url_search_params_1.default();
|
|
52
|
+
if (limit != null) {
|
|
53
|
+
_queryParams.append("limit", limit.toString());
|
|
54
|
+
}
|
|
55
|
+
if (patientExternalId != null) {
|
|
56
|
+
_queryParams.append("patient_external_id", patientExternalId);
|
|
57
|
+
}
|
|
58
|
+
if (claimId != null) {
|
|
59
|
+
_queryParams.append("claim_id", claimId);
|
|
60
|
+
}
|
|
61
|
+
if (serviceLineId != null) {
|
|
62
|
+
_queryParams.append("service_line_id", serviceLineId);
|
|
63
|
+
}
|
|
64
|
+
if (billingProviderId != null) {
|
|
65
|
+
_queryParams.append("billing_provider_id", billingProviderId);
|
|
66
|
+
}
|
|
67
|
+
if (invoiceId != null) {
|
|
68
|
+
_queryParams.append("invoice_id", invoiceId);
|
|
69
|
+
}
|
|
70
|
+
if (sources != null) {
|
|
71
|
+
if (Array.isArray(sources)) {
|
|
72
|
+
for (const _item of sources) {
|
|
73
|
+
_queryParams.append("sources", _item);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
_queryParams.append("sources", sources);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (sort != null) {
|
|
81
|
+
_queryParams.append("sort", sort);
|
|
82
|
+
}
|
|
83
|
+
if (sortDirection != null) {
|
|
84
|
+
_queryParams.append("sort_direction", sortDirection);
|
|
85
|
+
}
|
|
86
|
+
if (pageToken != null) {
|
|
87
|
+
_queryParams.append("page_token", pageToken);
|
|
88
|
+
}
|
|
89
|
+
const _response = await core.fetcher({
|
|
90
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/patient-payments/v4"),
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers: {
|
|
93
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
94
|
+
"X-Fern-Language": "JavaScript",
|
|
95
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
96
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
97
|
+
},
|
|
98
|
+
contentType: "application/json",
|
|
99
|
+
queryParameters: _queryParams,
|
|
100
|
+
timeoutMs: 60000,
|
|
101
|
+
});
|
|
102
|
+
if (_response.ok) {
|
|
103
|
+
return {
|
|
104
|
+
ok: true,
|
|
105
|
+
body: await serializers.patientPayments.v4.PatientPaymentsPage.parseOrThrow(_response.body, {
|
|
106
|
+
unrecognizedObjectKeys: "passthrough",
|
|
107
|
+
allowUnrecognizedUnionMembers: true,
|
|
108
|
+
allowUnrecognizedEnumValues: true,
|
|
109
|
+
breadcrumbsPrefix: ["response"],
|
|
110
|
+
}),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
ok: false,
|
|
115
|
+
error: CandidApi.patientPayments.v4.getMulti.Error._unknown(_response.error),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
43
118
|
/**
|
|
44
119
|
* Retrieves a previously created patient payment by its `patient_payment_id`.
|
|
45
120
|
*
|
|
@@ -52,7 +127,7 @@ class V4 {
|
|
|
52
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
128
|
"X-Fern-Language": "JavaScript",
|
|
54
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
130
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
131
|
},
|
|
57
132
|
contentType: "application/json",
|
|
58
133
|
timeoutMs: 60000,
|
|
@@ -87,7 +162,7 @@ class V4 {
|
|
|
87
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
88
163
|
"X-Fern-Language": "JavaScript",
|
|
89
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
90
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
91
166
|
},
|
|
92
167
|
contentType: "application/json",
|
|
93
168
|
body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
|
|
@@ -123,7 +198,7 @@ class V4 {
|
|
|
123
198
|
Authorization: await this._getAuthorizationHeader(),
|
|
124
199
|
"X-Fern-Language": "JavaScript",
|
|
125
200
|
"X-Fern-SDK-Name": "candidhealth",
|
|
126
|
-
"X-Fern-SDK-Version": "0.
|
|
201
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
127
202
|
},
|
|
128
203
|
contentType: "application/json",
|
|
129
204
|
timeoutMs: 60000,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.patientPayments.v4.getMulti.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.patientPayments.v4.getMulti.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientPayments.v4.getMulti.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.patientPayments.v4.getMulti.Error, visitor: CandidApi.patientPayments.v4.getMulti.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.patientPayments.v4.getMulti.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.errorName) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -26,8 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.delete = exports.create = exports.get = void 0;
|
|
29
|
+
exports.delete = exports.create = exports.get = exports.getMulti = void 0;
|
|
30
30
|
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.getMulti = __importStar(require("./getMulti"));
|
|
31
32
|
exports.get = __importStar(require("./get"));
|
|
32
33
|
exports.create = __importStar(require("./create"));
|
|
33
34
|
exports.delete = __importStar(require("./delete"));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../..";
|
|
5
|
+
export interface GetMultiPatientPaymentsRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Defaults to 100. The value must be greater than 0 and less than 1000.
|
|
8
|
+
*/
|
|
9
|
+
limit?: number;
|
|
10
|
+
patientExternalId?: CandidApi.PatientExternalId;
|
|
11
|
+
claimId?: CandidApi.ClaimId;
|
|
12
|
+
serviceLineId?: CandidApi.ServiceLineId;
|
|
13
|
+
billingProviderId?: CandidApi.ProviderId;
|
|
14
|
+
invoiceId?: CandidApi.InvoiceId;
|
|
15
|
+
sources?: CandidApi.PatientTransactionSource | CandidApi.PatientTransactionSource[];
|
|
16
|
+
/**
|
|
17
|
+
* Defaults to payment_timestamp
|
|
18
|
+
*/
|
|
19
|
+
sort?: CandidApi.patientPayments.v4.PatientPaymentSortField;
|
|
20
|
+
/**
|
|
21
|
+
* Sort direction. Defaults to descending order if not provided.
|
|
22
|
+
*/
|
|
23
|
+
sortDirection?: CandidApi.SortDirection;
|
|
24
|
+
pageToken?: CandidApi.PageToken;
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type PatientPaymentSortField = "payment_source" | "amount_cents" | "payment_timestamp" | "payment_note";
|
|
5
|
+
export declare const PatientPaymentSortField: {
|
|
6
|
+
readonly PaymentSource: "payment_source";
|
|
7
|
+
readonly AmountCents: "amount_cents";
|
|
8
|
+
readonly PaymentTimestamp: "payment_timestamp";
|
|
9
|
+
readonly PaymentNote: "payment_note";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PatientPaymentSortField = void 0;
|
|
7
|
+
exports.PatientPaymentSortField = {
|
|
8
|
+
PaymentSource: "payment_source",
|
|
9
|
+
AmountCents: "amount_cents",
|
|
10
|
+
PaymentTimestamp: "payment_timestamp",
|
|
11
|
+
PaymentNote: "payment_note",
|
|
12
|
+
};
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./PatientPaymentId"), exports);
|
|
18
18
|
__exportStar(require("./PatientPayment"), exports);
|
|
19
|
+
__exportStar(require("./PatientPaymentsPage"), exports);
|
|
20
|
+
__exportStar(require("./PatientPaymentSortField"), exports);
|
|
@@ -13,6 +13,12 @@ export declare namespace V1 {
|
|
|
13
13
|
export declare class V1 {
|
|
14
14
|
protected readonly options: V1.Options;
|
|
15
15
|
constructor(options: V1.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Returns all patient refunds satisfying the search criteria AND whose organization_id matches
|
|
18
|
+
* the current organization_id of the authenticated user.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
getMulti(request?: CandidApi.patientRefunds.v1.GetMultiPatientRefundsRequest): Promise<core.APIResponse<CandidApi.patientRefunds.v1.PatientRefundsPage, CandidApi.patientRefunds.v1.getMulti.Error>>;
|
|
16
22
|
/**
|
|
17
23
|
* Retrieves a previously created patient refund by its `patient_refund_id`.
|
|
18
24
|
*
|
|
@@ -33,13 +33,88 @@ exports.V1 = void 0;
|
|
|
33
33
|
const environments = __importStar(require("../../../../../../environments"));
|
|
34
34
|
const core = __importStar(require("../../../../../../core"));
|
|
35
35
|
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
-
const
|
|
36
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
37
37
|
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
38
39
|
class V1 {
|
|
39
40
|
options;
|
|
40
41
|
constructor(options) {
|
|
41
42
|
this.options = options;
|
|
42
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns all patient refunds satisfying the search criteria AND whose organization_id matches
|
|
46
|
+
* the current organization_id of the authenticated user.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
async getMulti(request = {}) {
|
|
50
|
+
const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, invoiceId, sources, sort, sortDirection, pageToken, } = request;
|
|
51
|
+
const _queryParams = new url_search_params_1.default();
|
|
52
|
+
if (limit != null) {
|
|
53
|
+
_queryParams.append("limit", limit.toString());
|
|
54
|
+
}
|
|
55
|
+
if (patientExternalId != null) {
|
|
56
|
+
_queryParams.append("patient_external_id", patientExternalId);
|
|
57
|
+
}
|
|
58
|
+
if (claimId != null) {
|
|
59
|
+
_queryParams.append("claim_id", claimId);
|
|
60
|
+
}
|
|
61
|
+
if (serviceLineId != null) {
|
|
62
|
+
_queryParams.append("service_line_id", serviceLineId);
|
|
63
|
+
}
|
|
64
|
+
if (billingProviderId != null) {
|
|
65
|
+
_queryParams.append("billing_provider_id", billingProviderId);
|
|
66
|
+
}
|
|
67
|
+
if (invoiceId != null) {
|
|
68
|
+
_queryParams.append("invoice_id", invoiceId);
|
|
69
|
+
}
|
|
70
|
+
if (sources != null) {
|
|
71
|
+
if (Array.isArray(sources)) {
|
|
72
|
+
for (const _item of sources) {
|
|
73
|
+
_queryParams.append("sources", _item);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
_queryParams.append("sources", sources);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (sort != null) {
|
|
81
|
+
_queryParams.append("sort", sort);
|
|
82
|
+
}
|
|
83
|
+
if (sortDirection != null) {
|
|
84
|
+
_queryParams.append("sort_direction", sortDirection);
|
|
85
|
+
}
|
|
86
|
+
if (pageToken != null) {
|
|
87
|
+
_queryParams.append("page_token", pageToken);
|
|
88
|
+
}
|
|
89
|
+
const _response = await core.fetcher({
|
|
90
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/patient-refunds/v1"),
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers: {
|
|
93
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
94
|
+
"X-Fern-Language": "JavaScript",
|
|
95
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
96
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
97
|
+
},
|
|
98
|
+
contentType: "application/json",
|
|
99
|
+
queryParameters: _queryParams,
|
|
100
|
+
timeoutMs: 60000,
|
|
101
|
+
});
|
|
102
|
+
if (_response.ok) {
|
|
103
|
+
return {
|
|
104
|
+
ok: true,
|
|
105
|
+
body: await serializers.patientRefunds.v1.PatientRefundsPage.parseOrThrow(_response.body, {
|
|
106
|
+
unrecognizedObjectKeys: "passthrough",
|
|
107
|
+
allowUnrecognizedUnionMembers: true,
|
|
108
|
+
allowUnrecognizedEnumValues: true,
|
|
109
|
+
breadcrumbsPrefix: ["response"],
|
|
110
|
+
}),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
ok: false,
|
|
115
|
+
error: CandidApi.patientRefunds.v1.getMulti.Error._unknown(_response.error),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
43
118
|
/**
|
|
44
119
|
* Retrieves a previously created patient refund by its `patient_refund_id`.
|
|
45
120
|
*
|
|
@@ -52,7 +127,7 @@ class V1 {
|
|
|
52
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
128
|
"X-Fern-Language": "JavaScript",
|
|
54
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
130
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
131
|
},
|
|
57
132
|
contentType: "application/json",
|
|
58
133
|
timeoutMs: 60000,
|
|
@@ -87,7 +162,7 @@ class V1 {
|
|
|
87
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
88
163
|
"X-Fern-Language": "JavaScript",
|
|
89
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
90
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
91
166
|
},
|
|
92
167
|
contentType: "application/json",
|
|
93
168
|
body: await serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
|
|
@@ -123,7 +198,7 @@ class V1 {
|
|
|
123
198
|
Authorization: await this._getAuthorizationHeader(),
|
|
124
199
|
"X-Fern-Language": "JavaScript",
|
|
125
200
|
"X-Fern-SDK-Name": "candidhealth",
|
|
126
|
-
"X-Fern-SDK-Version": "0.
|
|
201
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
127
202
|
},
|
|
128
203
|
contentType: "application/json",
|
|
129
204
|
timeoutMs: 60000,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.patientRefunds.v1.getMulti.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.patientRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientRefunds.v1.getMulti.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.patientRefunds.v1.getMulti.Error, visitor: CandidApi.patientRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -26,6 +26,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
const
|
|
31
|
-
exports.
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.patientRefunds.v1.getMulti.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.errorName) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -26,8 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.delete = exports.create = exports.get = void 0;
|
|
29
|
+
exports.delete = exports.create = exports.get = exports.getMulti = void 0;
|
|
30
30
|
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.getMulti = __importStar(require("./getMulti"));
|
|
31
32
|
exports.get = __importStar(require("./get"));
|
|
32
33
|
exports.create = __importStar(require("./create"));
|
|
33
34
|
exports.delete = __importStar(require("./delete"));
|
package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../..";
|
|
5
|
+
export interface GetMultiPatientRefundsRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Defaults to 100. The value must be greater than 0 and less than 1000.
|
|
8
|
+
*/
|
|
9
|
+
limit?: number;
|
|
10
|
+
patientExternalId?: CandidApi.PatientExternalId;
|
|
11
|
+
claimId?: CandidApi.ClaimId;
|
|
12
|
+
serviceLineId?: CandidApi.ServiceLineId;
|
|
13
|
+
billingProviderId?: CandidApi.ProviderId;
|
|
14
|
+
invoiceId?: CandidApi.InvoiceId;
|
|
15
|
+
sources?: CandidApi.PatientTransactionSource | CandidApi.PatientTransactionSource[];
|
|
16
|
+
/**
|
|
17
|
+
* Defaults to refund_timestamp
|
|
18
|
+
*/
|
|
19
|
+
sort?: CandidApi.patientRefunds.v1.PatientRefundSortField;
|
|
20
|
+
/**
|
|
21
|
+
* Sort direction. Defaults to descending order if not provided.
|
|
22
|
+
*/
|
|
23
|
+
sortDirection?: CandidApi.SortDirection;
|
|
24
|
+
pageToken?: CandidApi.PageToken;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type PatientRefundSortField = "refund_source" | "amount_cents" | "refund_timestamp" | "refund_reason" | "refund_note";
|
|
5
|
+
export declare const PatientRefundSortField: {
|
|
6
|
+
readonly RefundSource: "refund_source";
|
|
7
|
+
readonly AmountCents: "amount_cents";
|
|
8
|
+
readonly RefundTimestamp: "refund_timestamp";
|
|
9
|
+
readonly RefundReason: "refund_reason";
|
|
10
|
+
readonly RefundNote: "refund_note";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PatientRefundSortField = void 0;
|
|
7
|
+
exports.PatientRefundSortField = {
|
|
8
|
+
RefundSource: "refund_source",
|
|
9
|
+
AmountCents: "amount_cents",
|
|
10
|
+
RefundTimestamp: "refund_timestamp",
|
|
11
|
+
RefundReason: "refund_reason",
|
|
12
|
+
RefundNote: "refund_note",
|
|
13
|
+
};
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./PatientRefundId"), exports);
|
|
18
18
|
__exportStar(require("./PatientRefund"), exports);
|
|
19
|
+
__exportStar(require("./PatientRefundsPage"), exports);
|
|
20
|
+
__exportStar(require("./PatientRefundSortField"), exports);
|
|
@@ -49,7 +49,7 @@ class V3 {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -89,7 +89,7 @@ class V3 {
|
|
|
89
89
|
Authorization: await this._getAuthorizationHeader(),
|
|
90
90
|
"X-Fern-Language": "JavaScript",
|
|
91
91
|
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.
|
|
92
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
93
93
|
},
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
export declare type PayeeIdentifier = CandidApi.remits.v1.PayeeIdentifier.Npi | CandidApi.remits.v1.PayeeIdentifier.Tin | CandidApi.remits.v1.PayeeIdentifier.CmsPlanId;
|
|
6
|
+
export declare namespace PayeeIdentifier {
|
|
7
|
+
interface Npi {
|
|
8
|
+
type: "npi";
|
|
9
|
+
value: CandidApi.Npi;
|
|
10
|
+
}
|
|
11
|
+
interface Tin {
|
|
12
|
+
type: "tin";
|
|
13
|
+
value: CandidApi.TaxId;
|
|
14
|
+
}
|
|
15
|
+
interface CmsPlanId {
|
|
16
|
+
type: "cms_plan_id";
|
|
17
|
+
value: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PayeeIdentifier"), exports);
|
|
18
|
+
__exportStar(require("./Payee"), exports);
|