candidhealth 0.23.0 → 0.24.1
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.d.ts +4 -1
- package/README.md +134 -6
- package/api/resources/auth/client/Client.d.ts +4 -1
- package/api/resources/auth/resources/v2/client/Client.d.ts +5 -2
- package/api/resources/auth/resources/v2/client/Client.js +8 -8
- package/api/resources/billingNotes/client/Client.d.ts +4 -1
- package/api/resources/billingNotes/resources/v2/client/Client.d.ts +5 -2
- package/api/resources/billingNotes/resources/v2/client/Client.js +7 -5
- package/api/resources/contracts/client/Client.d.ts +4 -1
- package/api/resources/contracts/resources/v2/client/Client.d.ts +9 -6
- package/api/resources/contracts/resources/v2/client/Client.js +34 -28
- package/api/resources/eligibility/client/Client.d.ts +4 -1
- package/api/resources/eligibility/resources/v2/client/Client.d.ts +7 -4
- package/api/resources/eligibility/resources/v2/client/Client.js +18 -12
- package/api/resources/encounters/client/Client.d.ts +4 -1
- package/api/resources/encounters/resources/v4/client/Client.d.ts +8 -20
- package/api/resources/encounters/resources/v4/client/Client.js +28 -39
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -24
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/api/resources/expectedNetworkStatus/client/Client.d.ts +4 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -2
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -5
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +6 -3
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +16 -12
- package/api/resources/exports/client/Client.d.ts +4 -1
- package/api/resources/exports/resources/v3/client/Client.d.ts +5 -2
- package/api/resources/exports/resources/v3/client/Client.js +7 -5
- package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +4 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +5 -2
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +6 -4
- package/api/resources/feeSchedules/client/Client.d.ts +4 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +14 -11
- package/api/resources/feeSchedules/resources/v3/client/Client.js +67 -49
- package/api/resources/guarantor/client/Client.d.ts +4 -1
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +7 -4
- package/api/resources/guarantor/resources/v1/client/Client.js +21 -19
- package/api/resources/importInvoice/client/Client.d.ts +4 -1
- package/api/resources/importInvoice/resources/v1/client/Client.d.ts +8 -5
- package/api/resources/importInvoice/resources/v1/client/Client.js +28 -20
- package/api/resources/insuranceAdjudications/client/Client.d.ts +4 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +7 -4
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -13
- package/api/resources/insurancePayments/client/Client.d.ts +4 -1
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -6
- package/api/resources/insurancePayments/resources/v1/client/Client.js +36 -26
- package/api/resources/insuranceRefunds/client/Client.d.ts +4 -1
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +9 -6
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +36 -26
- package/api/resources/organizationProviders/client/Client.d.ts +4 -1
- package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +8 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +29 -21
- package/api/resources/organizationServiceFacilities/client/Client.d.ts +4 -1
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +9 -6
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +39 -25
- package/api/resources/patientPayments/client/Client.d.ts +4 -1
- package/api/resources/patientPayments/resources/v4/client/Client.d.ts +9 -6
- package/api/resources/patientPayments/resources/v4/client/Client.js +36 -26
- package/api/resources/patientRefunds/client/Client.d.ts +4 -1
- package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +9 -6
- package/api/resources/patientRefunds/resources/v1/client/Client.js +36 -26
- package/api/resources/payers/client/Client.d.ts +4 -1
- package/api/resources/payers/resources/v3/client/Client.d.ts +6 -3
- package/api/resources/payers/resources/v3/client/Client.js +12 -8
- package/api/resources/preEncounter/client/Client.d.ts +4 -1
- package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +7 -125
- package/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
- package/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
- package/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
- package/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/index.js +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +147 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +451 -0
- package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
- package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +3 -3
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.js +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
- package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
- package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
- package/api/resources/preEncounter/resources/index.d.ts +0 -4
- package/api/resources/preEncounter/resources/index.js +0 -4
- package/api/resources/preEncounter/resources/patients/client/Client.d.ts +7 -316
- package/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
- package/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
- package/api/resources/preEncounter/resources/patients/client/index.js +0 -35
- package/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/index.js +1 -1
- package/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +338 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +716 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +3 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
- package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/scan.js +2 -2
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
- package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
- package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
- package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
- package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
- package/api/resources/serviceFacility/client/Client.d.ts +5 -2
- package/api/resources/serviceFacility/client/Client.js +7 -7
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
- package/api/resources/tasks/client/Client.d.ts +4 -1
- package/api/resources/tasks/resources/v3/client/Client.d.ts +9 -6
- package/api/resources/tasks/resources/v3/client/Client.js +35 -25
- package/api/resources/writeOffs/client/Client.d.ts +4 -1
- package/api/resources/writeOffs/resources/v1/client/Client.d.ts +8 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +25 -17
- package/core/fetcher/Fetcher.d.ts +3 -0
- package/core/fetcher/Fetcher.js +22 -153
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +48 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +12 -1
- package/core/schemas/Schema.d.ts +7 -4
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/Client.d.ts +4 -1
- package/dist/api/resources/auth/client/Client.d.ts +4 -1
- package/dist/api/resources/auth/resources/v2/client/Client.d.ts +5 -2
- package/dist/api/resources/auth/resources/v2/client/Client.js +8 -8
- package/dist/api/resources/billingNotes/client/Client.d.ts +4 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +5 -2
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +7 -5
- package/dist/api/resources/contracts/client/Client.d.ts +4 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +9 -6
- package/dist/api/resources/contracts/resources/v2/client/Client.js +34 -28
- package/dist/api/resources/eligibility/client/Client.d.ts +4 -1
- package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +7 -4
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +18 -12
- package/dist/api/resources/encounters/client/Client.d.ts +4 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +8 -20
- package/dist/api/resources/encounters/resources/v4/client/Client.js +28 -39
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -24
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +4 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -2
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -5
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +6 -3
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +16 -12
- package/dist/api/resources/exports/client/Client.d.ts +4 -1
- package/dist/api/resources/exports/resources/v3/client/Client.d.ts +5 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +7 -5
- package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +4 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +5 -2
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +6 -4
- package/dist/api/resources/feeSchedules/client/Client.d.ts +4 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +14 -11
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +67 -49
- package/dist/api/resources/guarantor/client/Client.d.ts +4 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +7 -4
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +21 -19
- package/dist/api/resources/importInvoice/client/Client.d.ts +4 -1
- package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +8 -5
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +28 -20
- package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +4 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +7 -4
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -13
- package/dist/api/resources/insurancePayments/client/Client.d.ts +4 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -6
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +36 -26
- package/dist/api/resources/insuranceRefunds/client/Client.d.ts +4 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +9 -6
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +36 -26
- package/dist/api/resources/organizationProviders/client/Client.d.ts +4 -1
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +8 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +29 -21
- package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +4 -1
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +9 -6
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +39 -25
- package/dist/api/resources/patientPayments/client/Client.d.ts +4 -1
- package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +9 -6
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +36 -26
- package/dist/api/resources/patientRefunds/client/Client.d.ts +4 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +9 -6
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +36 -26
- package/dist/api/resources/payers/client/Client.d.ts +4 -1
- package/dist/api/resources/payers/resources/v3/client/Client.d.ts +6 -3
- package/dist/api/resources/payers/resources/v3/client/Client.js +12 -8
- package/dist/api/resources/preEncounter/client/Client.d.ts +4 -1
- package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +7 -125
- package/dist/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
- package/dist/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
- package/dist/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
- package/dist/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/index.js +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +147 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +451 -0
- package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
- package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/getHistory.js +3 -3
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.js +2 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
- package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/scan.js +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
- package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
- package/dist/api/resources/preEncounter/resources/index.d.ts +0 -4
- package/dist/api/resources/preEncounter/resources/index.js +0 -4
- package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +7 -316
- package/dist/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
- package/dist/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
- package/dist/api/resources/preEncounter/resources/patients/client/index.js +0 -35
- package/dist/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/index.js +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +338 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +716 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
- package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/getHistory.js +3 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +2 -2
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
- package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
- package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
- package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
- package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
- package/dist/api/resources/serviceFacility/client/Client.d.ts +5 -2
- package/dist/api/resources/serviceFacility/client/Client.js +7 -7
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
- package/dist/api/resources/tasks/client/Client.d.ts +4 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +9 -6
- package/dist/api/resources/tasks/resources/v3/client/Client.js +35 -25
- package/dist/api/resources/writeOffs/client/Client.d.ts +4 -1
- package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +8 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +25 -17
- package/dist/core/fetcher/Fetcher.d.ts +3 -0
- package/dist/core/fetcher/Fetcher.js +22 -153
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +48 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +12 -1
- package/dist/core/schemas/Schema.d.ts +7 -4
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/environments.d.ts +12 -2
- package/dist/environments.js +8 -2
- package/dist/index.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/index.d.ts +0 -2
- package/dist/serialization/resources/preEncounter/resources/index.js +0 -2
- package/dist/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
- package/dist/serialization/resources/preEncounter/resources/patients/index.js +1 -2
- package/dist/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.js +6 -6
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
- package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
- package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
- package/environments.d.ts +12 -2
- package/environments.js +8 -2
- package/index.d.ts +1 -1
- package/package.json +7 -2
- package/reference.md +7177 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
- package/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
- package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
- package/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
- package/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +6 -6
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
- package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
- package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
- package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
- package/serialization/resources/preEncounter/resources/index.d.ts +0 -2
- package/serialization/resources/preEncounter/resources/index.js +0 -2
- package/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
- package/serialization/resources/preEncounter/resources/patients/index.js +1 -2
- package/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
- package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
- package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients}/client/update.js +6 -6
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
- package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
- package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
- package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
- package/dist/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
- package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
- package/dist/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
- package/dist/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
- package/dist/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
- package/dist/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
- package/dist/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
- package/dist/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
- package/dist/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
- package/dist/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
- package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
- package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
- package/dist/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
- package/dist/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
- package/dist/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
- package/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
- package/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
- package/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
- package/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
- package/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
- package/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
- package/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
- package/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
- package/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
- package/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
- package/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
- package/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
- package/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
- package/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
- /package/api/resources/preEncounter/resources/coverages/{client/requests → resources/v1/client}/index.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/requests/index.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/{dist/api/resources/preEncounter/resources/coverages/client/requests → api/resources/preEncounter/resources/patients/resources/v1/client}/index.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
- /package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/requests/index.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
- /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
|
@@ -55,23 +55,25 @@ class V3 {
|
|
|
55
55
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await
|
|
58
|
+
* await client.feeSchedules.v3.getMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
59
59
|
*/
|
|
60
60
|
getMatch(serviceLineId, requestOptions) {
|
|
61
61
|
var _a, _b;
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const _response = yield core.fetcher({
|
|
64
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
64
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
65
|
+
.candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match`),
|
|
65
66
|
method: "GET",
|
|
66
67
|
headers: {
|
|
67
68
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
69
|
"X-Fern-Language": "JavaScript",
|
|
69
70
|
"X-Fern-SDK-Name": "candidhealth",
|
|
70
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
71
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
73
74
|
},
|
|
74
75
|
contentType: "application/json",
|
|
76
|
+
requestType: "json",
|
|
75
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
76
78
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
77
79
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -79,7 +81,7 @@ class V3 {
|
|
|
79
81
|
if (_response.ok) {
|
|
80
82
|
return {
|
|
81
83
|
ok: true,
|
|
82
|
-
body:
|
|
84
|
+
body: serializers.feeSchedules.v3.getMatch.Response.parseOrThrow(_response.body, {
|
|
83
85
|
unrecognizedObjectKeys: "passthrough",
|
|
84
86
|
allowUnrecognizedUnionMembers: true,
|
|
85
87
|
allowUnrecognizedEnumValues: true,
|
|
@@ -93,7 +95,7 @@ class V3 {
|
|
|
93
95
|
case "FailedToBuildServiceLineDimensions":
|
|
94
96
|
return {
|
|
95
97
|
ok: false,
|
|
96
|
-
error:
|
|
98
|
+
error: serializers.feeSchedules.v3.getMatch.Error.parseOrThrow(_response.error.body, {
|
|
97
99
|
unrecognizedObjectKeys: "passthrough",
|
|
98
100
|
allowUnrecognizedUnionMembers: true,
|
|
99
101
|
allowUnrecognizedEnumValues: true,
|
|
@@ -116,23 +118,25 @@ class V3 {
|
|
|
116
118
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
119
|
*
|
|
118
120
|
* @example
|
|
119
|
-
* await
|
|
121
|
+
* await client.feeSchedules.v3.testMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
120
122
|
*/
|
|
121
123
|
testMatch(serviceLineId, rateId, requestOptions) {
|
|
122
124
|
var _a, _b;
|
|
123
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
126
|
const _response = yield core.fetcher({
|
|
125
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
127
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
128
|
+
.candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}`),
|
|
126
129
|
method: "GET",
|
|
127
130
|
headers: {
|
|
128
131
|
Authorization: yield this._getAuthorizationHeader(),
|
|
129
132
|
"X-Fern-Language": "JavaScript",
|
|
130
133
|
"X-Fern-SDK-Name": "candidhealth",
|
|
131
|
-
"X-Fern-SDK-Version": "0.
|
|
134
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
132
135
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
133
136
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
134
137
|
},
|
|
135
138
|
contentType: "application/json",
|
|
139
|
+
requestType: "json",
|
|
136
140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
137
141
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
138
142
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -140,7 +144,7 @@ class V3 {
|
|
|
140
144
|
if (_response.ok) {
|
|
141
145
|
return {
|
|
142
146
|
ok: true,
|
|
143
|
-
body:
|
|
147
|
+
body: serializers.feeSchedules.v3.MatchTestResult.parseOrThrow(_response.body, {
|
|
144
148
|
unrecognizedObjectKeys: "passthrough",
|
|
145
149
|
allowUnrecognizedUnionMembers: true,
|
|
146
150
|
allowUnrecognizedEnumValues: true,
|
|
@@ -154,7 +158,7 @@ class V3 {
|
|
|
154
158
|
case "FailedToBuildServiceLineDimensions":
|
|
155
159
|
return {
|
|
156
160
|
ok: false,
|
|
157
|
-
error:
|
|
161
|
+
error: serializers.feeSchedules.v3.testMatch.Error.parseOrThrow(_response.error.body, {
|
|
158
162
|
unrecognizedObjectKeys: "passthrough",
|
|
159
163
|
allowUnrecognizedUnionMembers: true,
|
|
160
164
|
allowUnrecognizedEnumValues: true,
|
|
@@ -176,7 +180,7 @@ class V3 {
|
|
|
176
180
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
177
181
|
*
|
|
178
182
|
* @example
|
|
179
|
-
* await
|
|
183
|
+
* await client.feeSchedules.v3.getMulti({
|
|
180
184
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
181
185
|
* limit: 1,
|
|
182
186
|
* activeDate: "2023-01-15",
|
|
@@ -263,18 +267,20 @@ class V3 {
|
|
|
263
267
|
}
|
|
264
268
|
}
|
|
265
269
|
const _response = yield core.fetcher({
|
|
266
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
270
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
271
|
+
.candidApi, "/api/fee-schedules/v3"),
|
|
267
272
|
method: "GET",
|
|
268
273
|
headers: {
|
|
269
274
|
Authorization: yield this._getAuthorizationHeader(),
|
|
270
275
|
"X-Fern-Language": "JavaScript",
|
|
271
276
|
"X-Fern-SDK-Name": "candidhealth",
|
|
272
|
-
"X-Fern-SDK-Version": "0.
|
|
277
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
273
278
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
274
279
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
275
280
|
},
|
|
276
281
|
contentType: "application/json",
|
|
277
282
|
queryParameters: _queryParams,
|
|
283
|
+
requestType: "json",
|
|
278
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
279
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
280
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -282,7 +288,7 @@ class V3 {
|
|
|
282
288
|
if (_response.ok) {
|
|
283
289
|
return {
|
|
284
290
|
ok: true,
|
|
285
|
-
body:
|
|
291
|
+
body: serializers.feeSchedules.v3.RatesPage.parseOrThrow(_response.body, {
|
|
286
292
|
unrecognizedObjectKeys: "passthrough",
|
|
287
293
|
allowUnrecognizedUnionMembers: true,
|
|
288
294
|
allowUnrecognizedEnumValues: true,
|
|
@@ -303,7 +309,7 @@ class V3 {
|
|
|
303
309
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
304
310
|
*
|
|
305
311
|
* @example
|
|
306
|
-
* await
|
|
312
|
+
* await client.feeSchedules.v3.getUniqueValuesForDimension({
|
|
307
313
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
308
314
|
* limit: 1,
|
|
309
315
|
* pivotDimension: CandidApi.feeSchedules.v3.DimensionName.PayerUuid,
|
|
@@ -388,18 +394,20 @@ class V3 {
|
|
|
388
394
|
}
|
|
389
395
|
}
|
|
390
396
|
const _response = yield core.fetcher({
|
|
391
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
397
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
398
|
+
.candidApi, "/api/fee-schedules/v3/unique-dimension-values"),
|
|
392
399
|
method: "GET",
|
|
393
400
|
headers: {
|
|
394
401
|
Authorization: yield this._getAuthorizationHeader(),
|
|
395
402
|
"X-Fern-Language": "JavaScript",
|
|
396
403
|
"X-Fern-SDK-Name": "candidhealth",
|
|
397
|
-
"X-Fern-SDK-Version": "0.
|
|
404
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
398
405
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
399
406
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
400
407
|
},
|
|
401
408
|
contentType: "application/json",
|
|
402
409
|
queryParameters: _queryParams,
|
|
410
|
+
requestType: "json",
|
|
403
411
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
404
412
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
405
413
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -407,7 +415,7 @@ class V3 {
|
|
|
407
415
|
if (_response.ok) {
|
|
408
416
|
return {
|
|
409
417
|
ok: true,
|
|
410
|
-
body:
|
|
418
|
+
body: serializers.feeSchedules.v3.DimensionsPage.parseOrThrow(_response.body, {
|
|
411
419
|
unrecognizedObjectKeys: "passthrough",
|
|
412
420
|
allowUnrecognizedUnionMembers: true,
|
|
413
421
|
allowUnrecognizedEnumValues: true,
|
|
@@ -428,23 +436,25 @@ class V3 {
|
|
|
428
436
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
429
437
|
*
|
|
430
438
|
* @example
|
|
431
|
-
* await
|
|
439
|
+
* await client.feeSchedules.v3.getRateHistory(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
432
440
|
*/
|
|
433
441
|
getRateHistory(rateId, requestOptions) {
|
|
434
442
|
var _a, _b;
|
|
435
443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
436
444
|
const _response = yield core.fetcher({
|
|
437
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
445
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
446
|
+
.candidApi, `/api/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/history`),
|
|
438
447
|
method: "GET",
|
|
439
448
|
headers: {
|
|
440
449
|
Authorization: yield this._getAuthorizationHeader(),
|
|
441
450
|
"X-Fern-Language": "JavaScript",
|
|
442
451
|
"X-Fern-SDK-Name": "candidhealth",
|
|
443
|
-
"X-Fern-SDK-Version": "0.
|
|
452
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
444
453
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
445
454
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
446
455
|
},
|
|
447
456
|
contentType: "application/json",
|
|
457
|
+
requestType: "json",
|
|
448
458
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
449
459
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
450
460
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -452,7 +462,7 @@ class V3 {
|
|
|
452
462
|
if (_response.ok) {
|
|
453
463
|
return {
|
|
454
464
|
ok: true,
|
|
455
|
-
body:
|
|
465
|
+
body: serializers.feeSchedules.v3.getRateHistory.Response.parseOrThrow(_response.body, {
|
|
456
466
|
unrecognizedObjectKeys: "passthrough",
|
|
457
467
|
allowUnrecognizedUnionMembers: true,
|
|
458
468
|
allowUnrecognizedEnumValues: true,
|
|
@@ -465,7 +475,7 @@ class V3 {
|
|
|
465
475
|
case "EntityNotFoundError":
|
|
466
476
|
return {
|
|
467
477
|
ok: false,
|
|
468
|
-
error:
|
|
478
|
+
error: serializers.feeSchedules.v3.getRateHistory.Error.parseOrThrow(_response.error.body, {
|
|
469
479
|
unrecognizedObjectKeys: "passthrough",
|
|
470
480
|
allowUnrecognizedUnionMembers: true,
|
|
471
481
|
allowUnrecognizedEnumValues: true,
|
|
@@ -487,7 +497,7 @@ class V3 {
|
|
|
487
497
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
488
498
|
*
|
|
489
499
|
* @example
|
|
490
|
-
* await
|
|
500
|
+
* await client.feeSchedules.v3.uploadFeeSchedule({
|
|
491
501
|
* dryRun: true,
|
|
492
502
|
* rates: [{
|
|
493
503
|
* type: "new_rate",
|
|
@@ -514,18 +524,20 @@ class V3 {
|
|
|
514
524
|
var _a, _b;
|
|
515
525
|
return __awaiter(this, void 0, void 0, function* () {
|
|
516
526
|
const _response = yield core.fetcher({
|
|
517
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
527
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
528
|
+
.candidApi, "/api/fee-schedules/v3"),
|
|
518
529
|
method: "POST",
|
|
519
530
|
headers: {
|
|
520
531
|
Authorization: yield this._getAuthorizationHeader(),
|
|
521
532
|
"X-Fern-Language": "JavaScript",
|
|
522
533
|
"X-Fern-SDK-Name": "candidhealth",
|
|
523
|
-
"X-Fern-SDK-Version": "0.
|
|
534
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
524
535
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
525
536
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
526
537
|
},
|
|
527
538
|
contentType: "application/json",
|
|
528
|
-
|
|
539
|
+
requestType: "json",
|
|
540
|
+
body: serializers.feeSchedules.v3.FeeScheduleUploadRequest.jsonOrThrow(request, {
|
|
529
541
|
unrecognizedObjectKeys: "strip",
|
|
530
542
|
}),
|
|
531
543
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -535,7 +547,7 @@ class V3 {
|
|
|
535
547
|
if (_response.ok) {
|
|
536
548
|
return {
|
|
537
549
|
ok: true,
|
|
538
|
-
body:
|
|
550
|
+
body: serializers.feeSchedules.v3.uploadFeeSchedule.Response.parseOrThrow(_response.body, {
|
|
539
551
|
unrecognizedObjectKeys: "passthrough",
|
|
540
552
|
allowUnrecognizedUnionMembers: true,
|
|
541
553
|
allowUnrecognizedEnumValues: true,
|
|
@@ -548,7 +560,7 @@ class V3 {
|
|
|
548
560
|
case "FeeScheduleValidationHttpError":
|
|
549
561
|
return {
|
|
550
562
|
ok: false,
|
|
551
|
-
error:
|
|
563
|
+
error: serializers.feeSchedules.v3.uploadFeeSchedule.Error.parseOrThrow(_response.error.body, {
|
|
552
564
|
unrecognizedObjectKeys: "passthrough",
|
|
553
565
|
allowUnrecognizedUnionMembers: true,
|
|
554
566
|
allowUnrecognizedEnumValues: true,
|
|
@@ -571,23 +583,25 @@ class V3 {
|
|
|
571
583
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
572
584
|
*
|
|
573
585
|
* @example
|
|
574
|
-
* await
|
|
586
|
+
* await client.feeSchedules.v3.deleteRate(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1)
|
|
575
587
|
*/
|
|
576
588
|
deleteRate(rateId, version, requestOptions) {
|
|
577
589
|
var _a, _b;
|
|
578
590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
579
591
|
const _response = yield core.fetcher({
|
|
580
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
592
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
593
|
+
.candidApi, `/api/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/${encodeURIComponent(version)}`),
|
|
581
594
|
method: "DELETE",
|
|
582
595
|
headers: {
|
|
583
596
|
Authorization: yield this._getAuthorizationHeader(),
|
|
584
597
|
"X-Fern-Language": "JavaScript",
|
|
585
598
|
"X-Fern-SDK-Name": "candidhealth",
|
|
586
|
-
"X-Fern-SDK-Version": "0.
|
|
599
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
587
600
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
588
601
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
589
602
|
},
|
|
590
603
|
contentType: "application/json",
|
|
604
|
+
requestType: "json",
|
|
591
605
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
592
606
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
593
607
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -604,7 +618,7 @@ class V3 {
|
|
|
604
618
|
case "EntityConflictError":
|
|
605
619
|
return {
|
|
606
620
|
ok: false,
|
|
607
|
-
error:
|
|
621
|
+
error: serializers.feeSchedules.v3.deleteRate.Error.parseOrThrow(_response.error.body, {
|
|
608
622
|
unrecognizedObjectKeys: "passthrough",
|
|
609
623
|
allowUnrecognizedUnionMembers: true,
|
|
610
624
|
allowUnrecognizedEnumValues: true,
|
|
@@ -625,23 +639,25 @@ class V3 {
|
|
|
625
639
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
626
640
|
*
|
|
627
641
|
* @example
|
|
628
|
-
* await
|
|
642
|
+
* await client.feeSchedules.v3.getPayerThresholdsDefault()
|
|
629
643
|
*/
|
|
630
644
|
getPayerThresholdsDefault(requestOptions) {
|
|
631
645
|
var _a;
|
|
632
646
|
return __awaiter(this, void 0, void 0, function* () {
|
|
633
647
|
const _response = yield core.fetcher({
|
|
634
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
648
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
649
|
+
.candidApi, "/api/fee-schedules/v3/payer-threshold/default"),
|
|
635
650
|
method: "GET",
|
|
636
651
|
headers: {
|
|
637
652
|
Authorization: yield this._getAuthorizationHeader(),
|
|
638
653
|
"X-Fern-Language": "JavaScript",
|
|
639
654
|
"X-Fern-SDK-Name": "candidhealth",
|
|
640
|
-
"X-Fern-SDK-Version": "0.
|
|
655
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
641
656
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
642
657
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
643
658
|
},
|
|
644
659
|
contentType: "application/json",
|
|
660
|
+
requestType: "json",
|
|
645
661
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
646
662
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
647
663
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -649,7 +665,7 @@ class V3 {
|
|
|
649
665
|
if (_response.ok) {
|
|
650
666
|
return {
|
|
651
667
|
ok: true,
|
|
652
|
-
body:
|
|
668
|
+
body: serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
|
|
653
669
|
unrecognizedObjectKeys: "passthrough",
|
|
654
670
|
allowUnrecognizedUnionMembers: true,
|
|
655
671
|
allowUnrecognizedEnumValues: true,
|
|
@@ -670,7 +686,7 @@ class V3 {
|
|
|
670
686
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
671
687
|
*
|
|
672
688
|
* @example
|
|
673
|
-
* await
|
|
689
|
+
* await client.feeSchedules.v3.getPayerThresholds({
|
|
674
690
|
* payerUuids: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
675
691
|
* })
|
|
676
692
|
*/
|
|
@@ -686,18 +702,20 @@ class V3 {
|
|
|
686
702
|
_queryParams["payer_uuids"] = payerUuids;
|
|
687
703
|
}
|
|
688
704
|
const _response = yield core.fetcher({
|
|
689
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
705
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
706
|
+
.candidApi, "/api/fee-schedules/v3/payer-threshold"),
|
|
690
707
|
method: "GET",
|
|
691
708
|
headers: {
|
|
692
709
|
Authorization: yield this._getAuthorizationHeader(),
|
|
693
710
|
"X-Fern-Language": "JavaScript",
|
|
694
711
|
"X-Fern-SDK-Name": "candidhealth",
|
|
695
|
-
"X-Fern-SDK-Version": "0.
|
|
712
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
696
713
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
697
714
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
698
715
|
},
|
|
699
716
|
contentType: "application/json",
|
|
700
717
|
queryParameters: _queryParams,
|
|
718
|
+
requestType: "json",
|
|
701
719
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
702
720
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
703
721
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -705,7 +723,7 @@ class V3 {
|
|
|
705
723
|
if (_response.ok) {
|
|
706
724
|
return {
|
|
707
725
|
ok: true,
|
|
708
|
-
body:
|
|
726
|
+
body: serializers.feeSchedules.v3.PayerThresholdsPage.parseOrThrow(_response.body, {
|
|
709
727
|
unrecognizedObjectKeys: "passthrough",
|
|
710
728
|
allowUnrecognizedUnionMembers: true,
|
|
711
729
|
allowUnrecognizedEnumValues: true,
|
|
@@ -727,7 +745,7 @@ class V3 {
|
|
|
727
745
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
728
746
|
*
|
|
729
747
|
* @example
|
|
730
|
-
* await
|
|
748
|
+
* await client.feeSchedules.v3.setPayerThreshold(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
731
749
|
* upperThresholdCents: 1,
|
|
732
750
|
* lowerThresholdCents: 1,
|
|
733
751
|
* disablePaidIncorrectly: true
|
|
@@ -737,20 +755,20 @@ class V3 {
|
|
|
737
755
|
var _a, _b;
|
|
738
756
|
return __awaiter(this, void 0, void 0, function* () {
|
|
739
757
|
const _response = yield core.fetcher({
|
|
740
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
758
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
759
|
+
.candidApi, `/api/fee-schedules/v3/payer-threshold/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
|
|
741
760
|
method: "PUT",
|
|
742
761
|
headers: {
|
|
743
762
|
Authorization: yield this._getAuthorizationHeader(),
|
|
744
763
|
"X-Fern-Language": "JavaScript",
|
|
745
764
|
"X-Fern-SDK-Name": "candidhealth",
|
|
746
|
-
"X-Fern-SDK-Version": "0.
|
|
765
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
747
766
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
748
767
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
749
768
|
},
|
|
750
769
|
contentType: "application/json",
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}),
|
|
770
|
+
requestType: "json",
|
|
771
|
+
body: serializers.feeSchedules.v3.PayerThreshold.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
754
772
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
755
773
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
756
774
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -758,7 +776,7 @@ class V3 {
|
|
|
758
776
|
if (_response.ok) {
|
|
759
777
|
return {
|
|
760
778
|
ok: true,
|
|
761
|
-
body:
|
|
779
|
+
body: serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
|
|
762
780
|
unrecognizedObjectKeys: "passthrough",
|
|
763
781
|
allowUnrecognizedUnionMembers: true,
|
|
764
782
|
allowUnrecognizedEnumValues: true,
|
|
@@ -771,7 +789,7 @@ class V3 {
|
|
|
771
789
|
case "EntityNotFoundError":
|
|
772
790
|
return {
|
|
773
791
|
ok: false,
|
|
774
|
-
error:
|
|
792
|
+
error: serializers.feeSchedules.v3.setPayerThreshold.Error.parseOrThrow(_response.error.body, {
|
|
775
793
|
unrecognizedObjectKeys: "passthrough",
|
|
776
794
|
allowUnrecognizedUnionMembers: true,
|
|
777
795
|
allowUnrecognizedEnumValues: true,
|
|
@@ -6,12 +6,15 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import { V1 } from "../resources/v1/client/Client";
|
|
7
7
|
export declare namespace Guarantor {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -6,12 +6,15 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import * as CandidApi from "../../../../../index";
|
|
7
7
|
export declare namespace V1 {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.CandidApiEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -26,7 +29,7 @@ export declare class V1 {
|
|
|
26
29
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
|
-
* await
|
|
32
|
+
* await client.guarantor.v1.create(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
30
33
|
* phoneNumbers: [{
|
|
31
34
|
* number: "1234567890",
|
|
32
35
|
* type: CandidApi.PhoneNumberType.Home
|
|
@@ -56,7 +59,7 @@ export declare class V1 {
|
|
|
56
59
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
60
|
*
|
|
58
61
|
* @example
|
|
59
|
-
* await
|
|
62
|
+
* await client.guarantor.v1.get(CandidApi.guarantor.v1.GuarantorId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
60
63
|
*/
|
|
61
64
|
get(guarantorId: CandidApi.guarantor.v1.GuarantorId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.get.Error>>;
|
|
62
65
|
/**
|
|
@@ -67,7 +70,7 @@ export declare class V1 {
|
|
|
67
70
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
71
|
*
|
|
69
72
|
* @example
|
|
70
|
-
* await
|
|
73
|
+
* await client.guarantor.v1.update(CandidApi.guarantor.v1.GuarantorId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
71
74
|
* firstName: "string",
|
|
72
75
|
* lastName: "string",
|
|
73
76
|
* externalId: "string",
|
|
@@ -56,7 +56,7 @@ class V1 {
|
|
|
56
56
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
|
-
* await
|
|
59
|
+
* await client.guarantor.v1.create(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
60
60
|
* phoneNumbers: [{
|
|
61
61
|
* number: "1234567890",
|
|
62
62
|
* type: CandidApi.PhoneNumberType.Home
|
|
@@ -82,20 +82,20 @@ class V1 {
|
|
|
82
82
|
var _a, _b;
|
|
83
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
const _response = yield core.fetcher({
|
|
85
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
85
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
86
|
+
.candidApi, `/api/guarantors/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
86
87
|
method: "POST",
|
|
87
88
|
headers: {
|
|
88
89
|
Authorization: yield this._getAuthorizationHeader(),
|
|
89
90
|
"X-Fern-Language": "JavaScript",
|
|
90
91
|
"X-Fern-SDK-Name": "candidhealth",
|
|
91
|
-
"X-Fern-SDK-Version": "0.
|
|
92
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
92
93
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
93
94
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
94
95
|
},
|
|
95
96
|
contentType: "application/json",
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}),
|
|
97
|
+
requestType: "json",
|
|
98
|
+
body: serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
99
99
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
100
100
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
101
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -103,7 +103,7 @@ class V1 {
|
|
|
103
103
|
if (_response.ok) {
|
|
104
104
|
return {
|
|
105
105
|
ok: true,
|
|
106
|
-
body:
|
|
106
|
+
body: serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
|
|
107
107
|
unrecognizedObjectKeys: "passthrough",
|
|
108
108
|
allowUnrecognizedUnionMembers: true,
|
|
109
109
|
allowUnrecognizedEnumValues: true,
|
|
@@ -117,7 +117,7 @@ class V1 {
|
|
|
117
117
|
case "HttpRequestValidationsError":
|
|
118
118
|
return {
|
|
119
119
|
ok: false,
|
|
120
|
-
error:
|
|
120
|
+
error: serializers.guarantor.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
121
121
|
unrecognizedObjectKeys: "passthrough",
|
|
122
122
|
allowUnrecognizedUnionMembers: true,
|
|
123
123
|
allowUnrecognizedEnumValues: true,
|
|
@@ -139,23 +139,25 @@ class V1 {
|
|
|
139
139
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
140
140
|
*
|
|
141
141
|
* @example
|
|
142
|
-
* await
|
|
142
|
+
* await client.guarantor.v1.get(CandidApi.guarantor.v1.GuarantorId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
143
143
|
*/
|
|
144
144
|
get(guarantorId, requestOptions) {
|
|
145
145
|
var _a;
|
|
146
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
147
|
const _response = yield core.fetcher({
|
|
148
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
148
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
149
|
+
.candidApi, `/api/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
|
|
149
150
|
method: "GET",
|
|
150
151
|
headers: {
|
|
151
152
|
Authorization: yield this._getAuthorizationHeader(),
|
|
152
153
|
"X-Fern-Language": "JavaScript",
|
|
153
154
|
"X-Fern-SDK-Name": "candidhealth",
|
|
154
|
-
"X-Fern-SDK-Version": "0.
|
|
155
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
155
156
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
156
157
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
157
158
|
},
|
|
158
159
|
contentType: "application/json",
|
|
160
|
+
requestType: "json",
|
|
159
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
160
162
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
161
163
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -163,7 +165,7 @@ class V1 {
|
|
|
163
165
|
if (_response.ok) {
|
|
164
166
|
return {
|
|
165
167
|
ok: true,
|
|
166
|
-
body:
|
|
168
|
+
body: serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
|
|
167
169
|
unrecognizedObjectKeys: "passthrough",
|
|
168
170
|
allowUnrecognizedUnionMembers: true,
|
|
169
171
|
allowUnrecognizedEnumValues: true,
|
|
@@ -185,7 +187,7 @@ class V1 {
|
|
|
185
187
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
188
|
*
|
|
187
189
|
* @example
|
|
188
|
-
* await
|
|
190
|
+
* await client.guarantor.v1.update(CandidApi.guarantor.v1.GuarantorId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
189
191
|
* firstName: "string",
|
|
190
192
|
* lastName: "string",
|
|
191
193
|
* externalId: "string",
|
|
@@ -211,20 +213,20 @@ class V1 {
|
|
|
211
213
|
var _a;
|
|
212
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
215
|
const _response = yield core.fetcher({
|
|
214
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production
|
|
216
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
217
|
+
.candidApi, `/api/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
|
|
215
218
|
method: "PATCH",
|
|
216
219
|
headers: {
|
|
217
220
|
Authorization: yield this._getAuthorizationHeader(),
|
|
218
221
|
"X-Fern-Language": "JavaScript",
|
|
219
222
|
"X-Fern-SDK-Name": "candidhealth",
|
|
220
|
-
"X-Fern-SDK-Version": "0.
|
|
223
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
221
224
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
222
225
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
223
226
|
},
|
|
224
227
|
contentType: "application/json",
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}),
|
|
228
|
+
requestType: "json",
|
|
229
|
+
body: serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
228
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
229
231
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
230
232
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -232,7 +234,7 @@ class V1 {
|
|
|
232
234
|
if (_response.ok) {
|
|
233
235
|
return {
|
|
234
236
|
ok: true,
|
|
235
|
-
body:
|
|
237
|
+
body: serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
|
|
236
238
|
unrecognizedObjectKeys: "passthrough",
|
|
237
239
|
allowUnrecognizedUnionMembers: true,
|
|
238
240
|
allowUnrecognizedEnumValues: true,
|