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,46 @@
|
|
|
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("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.Error = core.serialization
|
|
33
|
+
.union("errorName", {
|
|
34
|
+
UnauthorizedError: core.serialization.object({
|
|
35
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
|
|
36
|
+
}),
|
|
37
|
+
})
|
|
38
|
+
.transform({
|
|
39
|
+
transform: (value) => {
|
|
40
|
+
switch (value.errorName) {
|
|
41
|
+
case "UnauthorizedError":
|
|
42
|
+
return CandidApi.insurancePayments.v1.create.Error.unauthorizedError(value.content);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
untransform: ({ _visit, ...value }) => value,
|
|
46
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.delete.Error.Raw, CandidApi.insurancePayments.v1.delete.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
|
|
10
|
+
interface EntityNotFoundError {
|
|
11
|
+
errorName: "EntityNotFoundError";
|
|
12
|
+
content: serializers.EntityNotFoundErrorMessage.Raw;
|
|
13
|
+
}
|
|
14
|
+
interface UnauthorizedError {
|
|
15
|
+
errorName: "UnauthorizedError";
|
|
16
|
+
content: serializers.UnauthorizedErrorMessage.Raw;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.Error = core.serialization
|
|
33
|
+
.union("errorName", {
|
|
34
|
+
EntityNotFoundError: core.serialization.object({
|
|
35
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
|
|
36
|
+
}),
|
|
37
|
+
UnauthorizedError: core.serialization.object({
|
|
38
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
|
|
39
|
+
}),
|
|
40
|
+
})
|
|
41
|
+
.transform({
|
|
42
|
+
transform: (value) => {
|
|
43
|
+
switch (value.errorName) {
|
|
44
|
+
case "EntityNotFoundError":
|
|
45
|
+
return CandidApi.insurancePayments.v1.delete.Error.entityNotFoundError(value.content);
|
|
46
|
+
case "UnauthorizedError":
|
|
47
|
+
return CandidApi.insurancePayments.v1.delete.Error.unauthorizedError(value.content);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
untransform: ({ _visit, ...value }) => value,
|
|
51
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.get.Error.Raw, CandidApi.insurancePayments.v1.get.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
|
|
10
|
+
interface EntityNotFoundError {
|
|
11
|
+
errorName: "EntityNotFoundError";
|
|
12
|
+
content: serializers.EntityNotFoundErrorMessage.Raw;
|
|
13
|
+
}
|
|
14
|
+
interface UnauthorizedError {
|
|
15
|
+
errorName: "UnauthorizedError";
|
|
16
|
+
content: serializers.UnauthorizedErrorMessage.Raw;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.Error = core.serialization
|
|
33
|
+
.union("errorName", {
|
|
34
|
+
EntityNotFoundError: core.serialization.object({
|
|
35
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
|
|
36
|
+
}),
|
|
37
|
+
UnauthorizedError: core.serialization.object({
|
|
38
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
|
|
39
|
+
}),
|
|
40
|
+
})
|
|
41
|
+
.transform({
|
|
42
|
+
transform: (value) => {
|
|
43
|
+
switch (value.errorName) {
|
|
44
|
+
case "EntityNotFoundError":
|
|
45
|
+
return CandidApi.insurancePayments.v1.get.Error.entityNotFoundError(value.content);
|
|
46
|
+
case "UnauthorizedError":
|
|
47
|
+
return CandidApi.insurancePayments.v1.get.Error.unauthorizedError(value.content);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
untransform: ({ _visit, ...value }) => value,
|
|
51
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.getMulti.Error.Raw, CandidApi.insurancePayments.v1.getMulti.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError | Error.UnprocessableEntityError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
errorName: "UnauthorizedError";
|
|
12
|
+
content: serializers.UnauthorizedErrorMessage.Raw;
|
|
13
|
+
}
|
|
14
|
+
interface UnprocessableEntityError {
|
|
15
|
+
errorName: "UnprocessableEntityError";
|
|
16
|
+
content: serializers.UnprocessableEntityErrorMessage.Raw;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.Error = core.serialization
|
|
33
|
+
.union("errorName", {
|
|
34
|
+
UnauthorizedError: core.serialization.object({
|
|
35
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
|
|
36
|
+
}),
|
|
37
|
+
UnprocessableEntityError: core.serialization.object({
|
|
38
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
|
|
39
|
+
}),
|
|
40
|
+
})
|
|
41
|
+
.transform({
|
|
42
|
+
transform: (value) => {
|
|
43
|
+
switch (value.errorName) {
|
|
44
|
+
case "UnauthorizedError":
|
|
45
|
+
return CandidApi.insurancePayments.v1.getMulti.Error.unauthorizedError(value.content);
|
|
46
|
+
case "UnprocessableEntityError":
|
|
47
|
+
return CandidApi.insurancePayments.v1.getMulti.Error.unprocessableEntityError(value.content);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
untransform: ({ _visit, ...value }) => value,
|
|
51
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.delete = exports.update = exports.create = exports.get = exports.getMulti = void 0;
|
|
30
|
+
exports.getMulti = __importStar(require("./getMulti"));
|
|
31
|
+
exports.get = __importStar(require("./get"));
|
|
32
|
+
exports.create = __importStar(require("./create"));
|
|
33
|
+
exports.update = __importStar(require("./update"));
|
|
34
|
+
exports.delete = __importStar(require("./delete"));
|
|
35
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../core";
|
|
7
|
+
export declare const InsurancePaymentUpdate: core.serialization.Schema<serializers.insurancePayments.v1.InsurancePaymentUpdate.Raw, CandidApi.insurancePayments.v1.InsurancePaymentUpdate>;
|
|
8
|
+
export declare namespace InsurancePaymentUpdate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
payment_timestamp?: string | null;
|
|
11
|
+
payment_note?: serializers.NoteUpdate.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.InsurancePaymentUpdate = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../core"));
|
|
31
|
+
exports.InsurancePaymentUpdate = core.serialization.object({
|
|
32
|
+
paymentTimestamp: core.serialization.property("payment_timestamp", core.serialization.date().optional()),
|
|
33
|
+
paymentNote: core.serialization.property("payment_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
|
|
34
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InsurancePaymentUpdate } from "./InsurancePaymentUpdate";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InsurancePaymentUpdate = void 0;
|
|
4
|
+
var InsurancePaymentUpdate_1 = require("./InsurancePaymentUpdate");
|
|
5
|
+
Object.defineProperty(exports, "InsurancePaymentUpdate", { enumerable: true, get: function () { return InsurancePaymentUpdate_1.InsurancePaymentUpdate; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.update.Error.Raw, CandidApi.insurancePayments.v1.update.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
|
|
10
|
+
interface EntityNotFoundError {
|
|
11
|
+
errorName: "EntityNotFoundError";
|
|
12
|
+
content: serializers.EntityNotFoundErrorMessage.Raw;
|
|
13
|
+
}
|
|
14
|
+
interface UnauthorizedError {
|
|
15
|
+
errorName: "UnauthorizedError";
|
|
16
|
+
content: serializers.UnauthorizedErrorMessage.Raw;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.Error = core.serialization
|
|
33
|
+
.union("errorName", {
|
|
34
|
+
EntityNotFoundError: core.serialization.object({
|
|
35
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
|
|
36
|
+
}),
|
|
37
|
+
UnauthorizedError: core.serialization.object({
|
|
38
|
+
content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
|
|
39
|
+
}),
|
|
40
|
+
})
|
|
41
|
+
.transform({
|
|
42
|
+
transform: (value) => {
|
|
43
|
+
switch (value.errorName) {
|
|
44
|
+
case "EntityNotFoundError":
|
|
45
|
+
return CandidApi.insurancePayments.v1.update.Error.entityNotFoundError(value.content);
|
|
46
|
+
case "UnauthorizedError":
|
|
47
|
+
return CandidApi.insurancePayments.v1.update.Error.unauthorizedError(value.content);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
untransform: ({ _visit, ...value }) => value,
|
|
51
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const InsurancePayment: core.serialization.ObjectSchema<serializers.insurancePayments.v1.InsurancePayment.Raw, CandidApi.insurancePayments.v1.InsurancePayment>;
|
|
8
|
+
export declare namespace InsurancePayment {
|
|
9
|
+
interface Raw {
|
|
10
|
+
insurance_payment_id: serializers.insurancePayments.v1.InsurancePaymentId.Raw;
|
|
11
|
+
payer: serializers.payers.v3.Payer.Raw;
|
|
12
|
+
amount_cents: number;
|
|
13
|
+
payment_timestamp?: string | null;
|
|
14
|
+
payment_note?: string | null;
|
|
15
|
+
allocations: serializers.Allocation.Raw[];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.InsurancePayment = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.InsurancePayment = core.serialization.object({
|
|
32
|
+
insurancePaymentId: core.serialization.property("insurance_payment_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).insurancePayments.v1.InsurancePaymentId)),
|
|
33
|
+
payer: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).payers.v3.Payer),
|
|
34
|
+
amountCents: core.serialization.property("amount_cents", core.serialization.number()),
|
|
35
|
+
paymentTimestamp: core.serialization.property("payment_timestamp", core.serialization.date().optional()),
|
|
36
|
+
paymentNote: core.serialization.property("payment_note", core.serialization.string().optional()),
|
|
37
|
+
allocations: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).Allocation)),
|
|
38
|
+
});
|
package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const InsurancePaymentCreate: core.serialization.ObjectSchema<serializers.insurancePayments.v1.InsurancePaymentCreate.Raw, CandidApi.insurancePayments.v1.InsurancePaymentCreate>;
|
|
8
|
+
export declare namespace InsurancePaymentCreate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
payer_identifier: serializers.payers.v3.PayerIdentifier.Raw;
|
|
11
|
+
amount_cents: number;
|
|
12
|
+
payment_timestamp?: string | null;
|
|
13
|
+
payment_note?: string | null;
|
|
14
|
+
allocations: serializers.AllocationCreate.Raw[];
|
|
15
|
+
}
|
|
16
|
+
}
|
package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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.InsurancePaymentCreate = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.InsurancePaymentCreate = core.serialization.object({
|
|
32
|
+
payerIdentifier: core.serialization.property("payer_identifier", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).payers.v3.PayerIdentifier)),
|
|
33
|
+
amountCents: core.serialization.property("amount_cents", core.serialization.number()),
|
|
34
|
+
paymentTimestamp: core.serialization.property("payment_timestamp", core.serialization.date().optional()),
|
|
35
|
+
paymentNote: core.serialization.property("payment_note", core.serialization.string().optional()),
|
|
36
|
+
allocations: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).AllocationCreate)),
|
|
37
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const InsurancePaymentId: core.serialization.Schema<serializers.insurancePayments.v1.InsurancePaymentId.Raw, CandidApi.insurancePayments.v1.InsurancePaymentId>;
|
|
8
|
+
export declare namespace InsurancePaymentId {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.InsurancePaymentId = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../../../api"));
|
|
31
|
+
const core = __importStar(require("../../../../../../core"));
|
|
32
|
+
exports.InsurancePaymentId = core.serialization.string().transform({
|
|
33
|
+
transform: CandidApi.insurancePayments.v1.InsurancePaymentId,
|
|
34
|
+
untransform: (value) => value,
|
|
35
|
+
});
|
package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../..";
|
|
5
|
+
import * as CandidApi from "../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const InsurancePaymentSortField: core.serialization.Schema<serializers.insurancePayments.v1.InsurancePaymentSortField.Raw, CandidApi.insurancePayments.v1.InsurancePaymentSortField>;
|
|
8
|
+
export declare namespace InsurancePaymentSortField {
|
|
9
|
+
type Raw = "amount_cents" | "payment_timestamp" | "payment_note";
|
|
10
|
+
}
|