candidhealth 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +23 -18
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/financials/types/AllocationCreate.d.ts +5 -0
- package/api/resources/financials/types/AllocationTarget.d.ts +8 -6
- package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
- package/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
- package/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
- package/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
- package/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
- package/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
- package/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
- package/api/resources/financials/types/index.d.ts +3 -0
- package/api/resources/financials/types/index.js +3 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/client/Client.d.ts +18 -0
- package/api/resources/insurancePayments/client/Client.js +18 -0
- package/api/resources/insurancePayments/client/index.d.ts +1 -0
- package/api/resources/insurancePayments/client/index.js +2 -0
- package/api/resources/insurancePayments/index.d.ts +2 -0
- package/api/resources/insurancePayments/index.js +18 -0
- package/api/resources/insurancePayments/resources/index.d.ts +1 -0
- package/api/resources/insurancePayments/resources/index.js +27 -0
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
- package/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
- package/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
- package/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
- package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
- package/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
- package/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
- package/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
- package/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
- package/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
- package/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
- package/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/api/resources/insurancePayments/resources/v1/index.js +18 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
- package/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
- package/api/resources/x12/resources/v1/types/Carc.js +1 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +23 -18
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/financials/types/AllocationCreate.d.ts +5 -0
- package/dist/api/resources/financials/types/AllocationTarget.d.ts +8 -6
- package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
- package/dist/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
- package/dist/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
- package/dist/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
- package/dist/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/index.d.ts +3 -0
- package/dist/api/resources/financials/types/index.js +3 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/client/Client.d.ts +18 -0
- package/dist/api/resources/insurancePayments/client/Client.js +18 -0
- package/dist/api/resources/insurancePayments/client/index.d.ts +1 -0
- package/dist/api/resources/insurancePayments/client/index.js +2 -0
- package/dist/api/resources/insurancePayments/index.d.ts +2 -0
- package/dist/api/resources/insurancePayments/index.js +18 -0
- package/dist/api/resources/insurancePayments/resources/index.d.ts +1 -0
- package/dist/api/resources/insurancePayments/resources/index.js +27 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
- package/dist/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/insurancePayments/resources/v1/index.js +18 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/dist/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
- package/dist/api/resources/x12/resources/v1/types/Carc.js +1 -0
- package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
- package/dist/serialization/resources/financials/types/AllocationTarget.js +3 -9
- package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
- package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
- package/dist/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
- package/dist/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
- package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
- package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
- package/dist/serialization/resources/financials/types/index.d.ts +3 -0
- package/dist/serialization/resources/financials/types/index.js +3 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/insurancePayments/index.d.ts +1 -0
- package/dist/serialization/resources/insurancePayments/index.js +17 -0
- package/dist/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
- package/dist/serialization/resources/insurancePayments/resources/index.js +27 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
- package/package.json +1 -1
- package/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
- package/serialization/resources/financials/types/AllocationTarget.js +3 -9
- package/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
- package/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
- package/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
- package/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
- package/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
- package/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
- package/serialization/resources/financials/types/index.d.ts +3 -0
- package/serialization/resources/financials/types/index.js +3 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/insurancePayments/index.d.ts +1 -0
- package/serialization/resources/insurancePayments/index.js +17 -0
- package/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
- package/serialization/resources/insurancePayments/resources/index.js +27 -0
- package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
- package/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
- package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
- package/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
- package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
- package/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
- package/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
- package/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
- package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
- package/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
- package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.V1 = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../../../core"));
|
|
35
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
37
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
39
|
+
class V1 {
|
|
40
|
+
options;
|
|
41
|
+
constructor(options) {
|
|
42
|
+
this.options = options;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns all non-ERA originated insurance payments satisfying the search criteria
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
async getMulti(request = {}) {
|
|
49
|
+
const { limit, payerUuid, claimId, serviceLineId, billingProviderId, sort, sortDirection, pageToken } = request;
|
|
50
|
+
const _queryParams = new url_search_params_1.default();
|
|
51
|
+
if (limit != null) {
|
|
52
|
+
_queryParams.append("limit", limit.toString());
|
|
53
|
+
}
|
|
54
|
+
if (payerUuid != null) {
|
|
55
|
+
_queryParams.append("payer_uuid", payerUuid);
|
|
56
|
+
}
|
|
57
|
+
if (claimId != null) {
|
|
58
|
+
_queryParams.append("claim_id", claimId);
|
|
59
|
+
}
|
|
60
|
+
if (serviceLineId != null) {
|
|
61
|
+
_queryParams.append("service_line_id", serviceLineId);
|
|
62
|
+
}
|
|
63
|
+
if (billingProviderId != null) {
|
|
64
|
+
_queryParams.append("billing_provider_id", billingProviderId);
|
|
65
|
+
}
|
|
66
|
+
if (sort != null) {
|
|
67
|
+
_queryParams.append("sort", sort);
|
|
68
|
+
}
|
|
69
|
+
if (sortDirection != null) {
|
|
70
|
+
_queryParams.append("sort_direction", sortDirection);
|
|
71
|
+
}
|
|
72
|
+
if (pageToken != null) {
|
|
73
|
+
_queryParams.append("page_token", pageToken);
|
|
74
|
+
}
|
|
75
|
+
const _response = await core.fetcher({
|
|
76
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/insurance-payments/v1"),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: {
|
|
79
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
80
|
+
"X-Fern-Language": "JavaScript",
|
|
81
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
82
|
+
"X-Fern-SDK-Version": "0.16.0",
|
|
83
|
+
},
|
|
84
|
+
contentType: "application/json",
|
|
85
|
+
queryParameters: _queryParams,
|
|
86
|
+
timeoutMs: 60000,
|
|
87
|
+
});
|
|
88
|
+
if (_response.ok) {
|
|
89
|
+
return {
|
|
90
|
+
ok: true,
|
|
91
|
+
body: await serializers.insurancePayments.v1.InsurancePaymentsPage.parseOrThrow(_response.body, {
|
|
92
|
+
unrecognizedObjectKeys: "passthrough",
|
|
93
|
+
allowUnrecognizedUnionMembers: true,
|
|
94
|
+
allowUnrecognizedEnumValues: true,
|
|
95
|
+
breadcrumbsPrefix: ["response"],
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
if (_response.error.reason === "status-code") {
|
|
100
|
+
switch (_response.error.body?.errorName) {
|
|
101
|
+
case "UnauthorizedError":
|
|
102
|
+
case "UnprocessableEntityError":
|
|
103
|
+
return {
|
|
104
|
+
ok: false,
|
|
105
|
+
error: await serializers.insurancePayments.v1.getMulti.Error.parseOrThrow(_response.error.body, {
|
|
106
|
+
unrecognizedObjectKeys: "passthrough",
|
|
107
|
+
allowUnrecognizedUnionMembers: true,
|
|
108
|
+
allowUnrecognizedEnumValues: true,
|
|
109
|
+
breadcrumbsPrefix: ["response"],
|
|
110
|
+
}),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
ok: false,
|
|
116
|
+
error: CandidApi.insurancePayments.v1.getMulti.Error._unknown(_response.error),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Retrieves a previously created insurance payment by its `insurance_payment_id`.
|
|
121
|
+
* If the payment does not exist, a `403` will be thrown.
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
async get(insurancePaymentId) {
|
|
125
|
+
const _response = await core.fetcher({
|
|
126
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/insurance-payments/v1/${await serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId)}`),
|
|
127
|
+
method: "GET",
|
|
128
|
+
headers: {
|
|
129
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
130
|
+
"X-Fern-Language": "JavaScript",
|
|
131
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
132
|
+
"X-Fern-SDK-Version": "0.16.0",
|
|
133
|
+
},
|
|
134
|
+
contentType: "application/json",
|
|
135
|
+
timeoutMs: 60000,
|
|
136
|
+
});
|
|
137
|
+
if (_response.ok) {
|
|
138
|
+
return {
|
|
139
|
+
ok: true,
|
|
140
|
+
body: await serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
|
|
141
|
+
unrecognizedObjectKeys: "passthrough",
|
|
142
|
+
allowUnrecognizedUnionMembers: true,
|
|
143
|
+
allowUnrecognizedEnumValues: true,
|
|
144
|
+
breadcrumbsPrefix: ["response"],
|
|
145
|
+
}),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
if (_response.error.reason === "status-code") {
|
|
149
|
+
switch (_response.error.body?.errorName) {
|
|
150
|
+
case "EntityNotFoundError":
|
|
151
|
+
case "UnauthorizedError":
|
|
152
|
+
return {
|
|
153
|
+
ok: false,
|
|
154
|
+
error: await serializers.insurancePayments.v1.get.Error.parseOrThrow(_response.error.body, {
|
|
155
|
+
unrecognizedObjectKeys: "passthrough",
|
|
156
|
+
allowUnrecognizedUnionMembers: true,
|
|
157
|
+
allowUnrecognizedEnumValues: true,
|
|
158
|
+
breadcrumbsPrefix: ["response"],
|
|
159
|
+
}),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
ok: false,
|
|
165
|
+
error: CandidApi.insurancePayments.v1.get.Error._unknown(_response.error),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Creates a new insurance payment record and returns the newly created `InsurancePayment` object. This endpoint
|
|
170
|
+
* should only be used for insurance payments that do not have a corresponding ERA (for example: a settlement check
|
|
171
|
+
* from a payer). If the payment is an ERA, then you should used the insurance-adjudications API.
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
async create(request) {
|
|
175
|
+
const _response = await core.fetcher({
|
|
176
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/insurance-payments/v1"),
|
|
177
|
+
method: "POST",
|
|
178
|
+
headers: {
|
|
179
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
180
|
+
"X-Fern-Language": "JavaScript",
|
|
181
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
182
|
+
"X-Fern-SDK-Version": "0.16.0",
|
|
183
|
+
},
|
|
184
|
+
contentType: "application/json",
|
|
185
|
+
body: await serializers.insurancePayments.v1.InsurancePaymentCreate.jsonOrThrow(request, {
|
|
186
|
+
unrecognizedObjectKeys: "strip",
|
|
187
|
+
}),
|
|
188
|
+
timeoutMs: 60000,
|
|
189
|
+
});
|
|
190
|
+
if (_response.ok) {
|
|
191
|
+
return {
|
|
192
|
+
ok: true,
|
|
193
|
+
body: await serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
|
|
194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
195
|
+
allowUnrecognizedUnionMembers: true,
|
|
196
|
+
allowUnrecognizedEnumValues: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
}),
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
if (_response.error.reason === "status-code") {
|
|
202
|
+
switch (_response.error.body?.errorName) {
|
|
203
|
+
case "UnauthorizedError":
|
|
204
|
+
return {
|
|
205
|
+
ok: false,
|
|
206
|
+
error: await serializers.insurancePayments.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
207
|
+
unrecognizedObjectKeys: "passthrough",
|
|
208
|
+
allowUnrecognizedUnionMembers: true,
|
|
209
|
+
allowUnrecognizedEnumValues: true,
|
|
210
|
+
breadcrumbsPrefix: ["response"],
|
|
211
|
+
}),
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return {
|
|
216
|
+
ok: false,
|
|
217
|
+
error: CandidApi.insurancePayments.v1.create.Error._unknown(_response.error),
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Updates the patient payment record matching the provided insurance_payment_id. If updating the payment amount,
|
|
222
|
+
* then the allocations must be appropriately updated as well.
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
async update(insurancePaymentId, request = {}) {
|
|
226
|
+
const _response = await core.fetcher({
|
|
227
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/insurance-payments/v1/${await serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId)}`),
|
|
228
|
+
method: "PATCH",
|
|
229
|
+
headers: {
|
|
230
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
231
|
+
"X-Fern-Language": "JavaScript",
|
|
232
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
233
|
+
"X-Fern-SDK-Version": "0.16.0",
|
|
234
|
+
},
|
|
235
|
+
contentType: "application/json",
|
|
236
|
+
body: await serializers.insurancePayments.v1.InsurancePaymentUpdate.jsonOrThrow(request, {
|
|
237
|
+
unrecognizedObjectKeys: "strip",
|
|
238
|
+
}),
|
|
239
|
+
timeoutMs: 60000,
|
|
240
|
+
});
|
|
241
|
+
if (_response.ok) {
|
|
242
|
+
return {
|
|
243
|
+
ok: true,
|
|
244
|
+
body: await serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
|
|
245
|
+
unrecognizedObjectKeys: "passthrough",
|
|
246
|
+
allowUnrecognizedUnionMembers: true,
|
|
247
|
+
allowUnrecognizedEnumValues: true,
|
|
248
|
+
breadcrumbsPrefix: ["response"],
|
|
249
|
+
}),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
if (_response.error.reason === "status-code") {
|
|
253
|
+
switch (_response.error.body?.errorName) {
|
|
254
|
+
case "EntityNotFoundError":
|
|
255
|
+
case "UnauthorizedError":
|
|
256
|
+
return {
|
|
257
|
+
ok: false,
|
|
258
|
+
error: await serializers.insurancePayments.v1.update.Error.parseOrThrow(_response.error.body, {
|
|
259
|
+
unrecognizedObjectKeys: "passthrough",
|
|
260
|
+
allowUnrecognizedUnionMembers: true,
|
|
261
|
+
allowUnrecognizedEnumValues: true,
|
|
262
|
+
breadcrumbsPrefix: ["response"],
|
|
263
|
+
}),
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
ok: false,
|
|
269
|
+
error: CandidApi.insurancePayments.v1.update.Error._unknown(_response.error),
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Deletes the insurance payment record matching the provided `insurance_payment_id`.
|
|
274
|
+
* If the matching record's organization_id does not match the authenticated user's
|
|
275
|
+
* current organization_id, then a response code of `403` will be returned.
|
|
276
|
+
*
|
|
277
|
+
*/
|
|
278
|
+
async delete(insurancePaymentId) {
|
|
279
|
+
const _response = await core.fetcher({
|
|
280
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/insurance-payments/v1/${await serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId)}`),
|
|
281
|
+
method: "DELETE",
|
|
282
|
+
headers: {
|
|
283
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
284
|
+
"X-Fern-Language": "JavaScript",
|
|
285
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
286
|
+
"X-Fern-SDK-Version": "0.16.0",
|
|
287
|
+
},
|
|
288
|
+
contentType: "application/json",
|
|
289
|
+
timeoutMs: 60000,
|
|
290
|
+
});
|
|
291
|
+
if (_response.ok) {
|
|
292
|
+
return {
|
|
293
|
+
ok: true,
|
|
294
|
+
body: undefined,
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
if (_response.error.reason === "status-code") {
|
|
298
|
+
switch (_response.error.body?.errorName) {
|
|
299
|
+
case "EntityNotFoundError":
|
|
300
|
+
case "UnauthorizedError":
|
|
301
|
+
return {
|
|
302
|
+
ok: false,
|
|
303
|
+
error: await serializers.insurancePayments.v1.delete.Error.parseOrThrow(_response.error.body, {
|
|
304
|
+
unrecognizedObjectKeys: "passthrough",
|
|
305
|
+
allowUnrecognizedUnionMembers: true,
|
|
306
|
+
allowUnrecognizedEnumValues: true,
|
|
307
|
+
breadcrumbsPrefix: ["response"],
|
|
308
|
+
}),
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return {
|
|
313
|
+
ok: false,
|
|
314
|
+
error: CandidApi.insurancePayments.v1.delete.Error._unknown(_response.error),
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
async _getAuthorizationHeader() {
|
|
318
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
319
|
+
if (bearer != null) {
|
|
320
|
+
return `Bearer ${bearer}`;
|
|
321
|
+
}
|
|
322
|
+
return undefined;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
exports.V1 = V1;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError extends _Utils {
|
|
9
|
+
errorName: "UnauthorizedError";
|
|
10
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnauthorizedError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.create.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.create.Error, visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
unauthorizedError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "UnauthorizedError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_unknown: (fetcherError) => {
|
|
42
|
+
return {
|
|
43
|
+
errorName: undefined,
|
|
44
|
+
content: fetcherError,
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_visit: (value, visitor) => {
|
|
51
|
+
switch (value.errorName) {
|
|
52
|
+
case "UnauthorizedError":
|
|
53
|
+
return visitor.unauthorizedError(value.content);
|
|
54
|
+
default:
|
|
55
|
+
return visitor._other(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnauthorizedError extends _Utils {
|
|
13
|
+
errorName: "UnauthorizedError";
|
|
14
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface _Unknown extends _Utils {
|
|
17
|
+
errorName: void;
|
|
18
|
+
content: core.Fetcher.Error;
|
|
19
|
+
}
|
|
20
|
+
interface _Utils {
|
|
21
|
+
_visit: <_Result>(visitor: CandidApi.insurancePayments.v1.delete.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
}
|
|
23
|
+
interface _Visitor<_Result> {
|
|
24
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
25
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
26
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare const Error: {
|
|
30
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError;
|
|
31
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError;
|
|
32
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.delete.Error._Unknown;
|
|
33
|
+
readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.delete.Error, visitor: CandidApi.insurancePayments.v1.delete.Error._Visitor<_Result>) => _Result;
|
|
34
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
unauthorizedError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "UnauthorizedError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_unknown: (fetcherError) => {
|
|
51
|
+
return {
|
|
52
|
+
errorName: undefined,
|
|
53
|
+
content: fetcherError,
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
_visit: (value, visitor) => {
|
|
60
|
+
switch (value.errorName) {
|
|
61
|
+
case "EntityNotFoundError":
|
|
62
|
+
return visitor.entityNotFoundError(value.content);
|
|
63
|
+
case "UnauthorizedError":
|
|
64
|
+
return visitor.unauthorizedError(value.content);
|
|
65
|
+
default:
|
|
66
|
+
return visitor._other(value);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.insurancePayments.v1.get.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.get.Error.UnauthorizedError | CandidApi.insurancePayments.v1.get.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnauthorizedError extends _Utils {
|
|
13
|
+
errorName: "UnauthorizedError";
|
|
14
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface _Unknown extends _Utils {
|
|
17
|
+
errorName: void;
|
|
18
|
+
content: core.Fetcher.Error;
|
|
19
|
+
}
|
|
20
|
+
interface _Utils {
|
|
21
|
+
_visit: <_Result>(visitor: CandidApi.insurancePayments.v1.get.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
}
|
|
23
|
+
interface _Visitor<_Result> {
|
|
24
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
25
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
26
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare const Error: {
|
|
30
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.get.Error.EntityNotFoundError;
|
|
31
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.get.Error.UnauthorizedError;
|
|
32
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.get.Error._Unknown;
|
|
33
|
+
readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.get.Error, visitor: CandidApi.insurancePayments.v1.get.Error._Visitor<_Result>) => _Result;
|
|
34
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insurancePayments.v1.get.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
unauthorizedError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "UnauthorizedError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insurancePayments.v1.get.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_unknown: (fetcherError) => {
|
|
51
|
+
return {
|
|
52
|
+
errorName: undefined,
|
|
53
|
+
content: fetcherError,
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.insurancePayments.v1.get.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
_visit: (value, visitor) => {
|
|
60
|
+
switch (value.errorName) {
|
|
61
|
+
case "EntityNotFoundError":
|
|
62
|
+
return visitor.entityNotFoundError(value.content);
|
|
63
|
+
case "UnauthorizedError":
|
|
64
|
+
return visitor.unauthorizedError(value.content);
|
|
65
|
+
default:
|
|
66
|
+
return visitor._other(value);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.insurancePayments.v1.getMulti.Error.UnauthorizedError | CandidApi.insurancePayments.v1.getMulti.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.getMulti.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError extends _Utils {
|
|
9
|
+
errorName: "UnauthorizedError";
|
|
10
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnprocessableEntityError extends _Utils {
|
|
13
|
+
errorName: "UnprocessableEntityError";
|
|
14
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface _Unknown extends _Utils {
|
|
17
|
+
errorName: void;
|
|
18
|
+
content: core.Fetcher.Error;
|
|
19
|
+
}
|
|
20
|
+
interface _Utils {
|
|
21
|
+
_visit: <_Result>(visitor: CandidApi.insurancePayments.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
}
|
|
23
|
+
interface _Visitor<_Result> {
|
|
24
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
25
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
26
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare const Error: {
|
|
30
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.getMulti.Error.UnauthorizedError;
|
|
31
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.getMulti.Error.UnprocessableEntityError;
|
|
32
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.getMulti.Error._Unknown;
|
|
33
|
+
readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.getMulti.Error, visitor: CandidApi.insurancePayments.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
34
|
+
};
|