candidhealth 0.40.2 → 0.40.3
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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
- package/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
- package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
- package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
- package/{dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js} +19 -7
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
- package/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.js +3 -3
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.js +5 -5
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
- package/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
- package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
- package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
- package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
- package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
- package/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
- package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
- package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
- package/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
- package/{serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js} +19 -7
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
- package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.js +3 -3
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
- package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
- package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
- package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +48 -231
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
- package/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
- package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
- package/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
- package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
- package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
- package/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
- package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
- package/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
- package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
- package/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
- package/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
- package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
- package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
- package/dist/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
- package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +0 -5
- package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
- package/dist/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
- package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +0 -5
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
- package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
- package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
- package/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
- package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
- package/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
- package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
- package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
- package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
- package/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
- package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
- /package/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
- /package/{api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js → dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
|
@@ -1,83 +0,0 @@
|
|
|
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 () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
39
|
-
var t = {};
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
41
|
-
t[p] = s[p];
|
|
42
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
43
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45
|
-
t[p[i]] = s[p[i]];
|
|
46
|
-
}
|
|
47
|
-
return t;
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.Error = void 0;
|
|
51
|
-
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
52
|
-
const core = __importStar(require("../../../../../../core"));
|
|
53
|
-
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
54
|
-
const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
|
|
55
|
-
const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
|
|
56
|
-
exports.Error = core.serialization
|
|
57
|
-
.union("errorName", {
|
|
58
|
-
EntityNotFoundError: core.serialization.object({
|
|
59
|
-
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
60
|
-
}),
|
|
61
|
-
UnauthorizedError: core.serialization.object({
|
|
62
|
-
content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
|
|
63
|
-
}),
|
|
64
|
-
UnprocessableEntityError: core.serialization.object({
|
|
65
|
-
content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
|
|
66
|
-
}),
|
|
67
|
-
})
|
|
68
|
-
.transform({
|
|
69
|
-
transform: (value) => {
|
|
70
|
-
switch (value.errorName) {
|
|
71
|
-
case "EntityNotFoundError":
|
|
72
|
-
return CandidApi.insurancePayments.v1.delete.Error.entityNotFoundError(value.content);
|
|
73
|
-
case "UnauthorizedError":
|
|
74
|
-
return CandidApi.insurancePayments.v1.delete.Error.unauthorizedError(value.content);
|
|
75
|
-
case "UnprocessableEntityError":
|
|
76
|
-
return CandidApi.insurancePayments.v1.delete.Error.unprocessableEntityError(value.content);
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
untransform: (_a) => {
|
|
80
|
-
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
81
|
-
return value;
|
|
82
|
-
},
|
|
83
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../../../../index";
|
|
5
|
-
import * as CandidApi from "../../../../../../../api/index";
|
|
6
|
-
import * as core from "../../../../../../../core";
|
|
7
|
-
import { NoteUpdate } from "../../../../../financials/types/NoteUpdate";
|
|
8
|
-
export declare const InsurancePaymentUpdate: core.serialization.Schema<serializers.insurancePayments.v1.InsurancePaymentUpdate.Raw, CandidApi.insurancePayments.v1.InsurancePaymentUpdate>;
|
|
9
|
-
export declare namespace InsurancePaymentUpdate {
|
|
10
|
-
interface Raw {
|
|
11
|
-
payment_timestamp?: string | null;
|
|
12
|
-
payment_note?: NoteUpdate.Raw | null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InsurancePaymentUpdate } from "./InsurancePaymentUpdate";
|
|
@@ -1,5 +0,0 @@
|
|
|
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; } });
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../../../index";
|
|
5
|
-
import * as CandidApi from "../../../../../../api/index";
|
|
6
|
-
import * as core from "../../../../../../core";
|
|
7
|
-
import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
|
|
8
|
-
import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
|
|
9
|
-
import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
|
|
10
|
-
export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.update.Error.Raw, CandidApi.insurancePayments.v1.update.Error>;
|
|
11
|
-
export declare namespace Error {
|
|
12
|
-
type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
|
|
13
|
-
interface EntityNotFoundError {
|
|
14
|
-
errorName: "EntityNotFoundError";
|
|
15
|
-
content: EntityNotFoundErrorMessage.Raw;
|
|
16
|
-
}
|
|
17
|
-
interface UnauthorizedError {
|
|
18
|
-
errorName: "UnauthorizedError";
|
|
19
|
-
content: UnauthorizedErrorMessage.Raw;
|
|
20
|
-
}
|
|
21
|
-
interface UnprocessableEntityError {
|
|
22
|
-
errorName: "UnprocessableEntityError";
|
|
23
|
-
content: UnprocessableEntityErrorMessage.Raw;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
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 () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
39
|
-
var t = {};
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
41
|
-
t[p] = s[p];
|
|
42
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
43
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45
|
-
t[p[i]] = s[p[i]];
|
|
46
|
-
}
|
|
47
|
-
return t;
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.Error = void 0;
|
|
51
|
-
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
52
|
-
const core = __importStar(require("../../../../../../core"));
|
|
53
|
-
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
54
|
-
const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
|
|
55
|
-
const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
|
|
56
|
-
exports.Error = core.serialization
|
|
57
|
-
.union("errorName", {
|
|
58
|
-
EntityNotFoundError: core.serialization.object({
|
|
59
|
-
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
60
|
-
}),
|
|
61
|
-
UnauthorizedError: core.serialization.object({
|
|
62
|
-
content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
|
|
63
|
-
}),
|
|
64
|
-
UnprocessableEntityError: core.serialization.object({
|
|
65
|
-
content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
|
|
66
|
-
}),
|
|
67
|
-
})
|
|
68
|
-
.transform({
|
|
69
|
-
transform: (value) => {
|
|
70
|
-
switch (value.errorName) {
|
|
71
|
-
case "EntityNotFoundError":
|
|
72
|
-
return CandidApi.insurancePayments.v1.update.Error.entityNotFoundError(value.content);
|
|
73
|
-
case "UnauthorizedError":
|
|
74
|
-
return CandidApi.insurancePayments.v1.update.Error.unauthorizedError(value.content);
|
|
75
|
-
case "UnprocessableEntityError":
|
|
76
|
-
return CandidApi.insurancePayments.v1.update.Error.unprocessableEntityError(value.content);
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
untransform: (_a) => {
|
|
80
|
-
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
81
|
-
return value;
|
|
82
|
-
},
|
|
83
|
-
});
|
package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../../../index";
|
|
5
|
-
import * as CandidApi from "../../../../../../api/index";
|
|
6
|
-
import * as core from "../../../../../../core";
|
|
7
|
-
import { PayerIdentifier } from "../../../../payers/resources/v3/types/PayerIdentifier";
|
|
8
|
-
import { AllocationCreate } from "../../../../financials/types/AllocationCreate";
|
|
9
|
-
export declare const InsurancePaymentCreate: core.serialization.ObjectSchema<serializers.insurancePayments.v1.InsurancePaymentCreate.Raw, CandidApi.insurancePayments.v1.InsurancePaymentCreate>;
|
|
10
|
-
export declare namespace InsurancePaymentCreate {
|
|
11
|
-
interface Raw {
|
|
12
|
-
payer_identifier: PayerIdentifier.Raw;
|
|
13
|
-
amount_cents: number;
|
|
14
|
-
payment_timestamp?: string | null;
|
|
15
|
-
payment_note?: string | null;
|
|
16
|
-
allocations: AllocationCreate.Raw[];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
File without changes
|