candidhealth 0.24.7 → 0.25.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 +13 -8
- 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/commons/types/AppointmentId.d.ts +8 -0
- package/api/resources/commons/types/AppointmentId.js +10 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- 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/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
- package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
- package/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
- package/api/resources/financials/types/index.d.ts +1 -0
- package/api/resources/financials/types/index.js +1 -0
- 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.js +5 -5
- 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 +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/coverages/resources/v1/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/client/Client.d.ts +26 -0
- package/api/resources/serviceLines/client/Client.js +17 -0
- package/api/resources/serviceLines/client/index.d.ts +1 -0
- package/api/resources/serviceLines/client/index.js +2 -0
- package/api/resources/serviceLines/index.d.ts +1 -0
- package/api/resources/serviceLines/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
- package/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
- package/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
- package/api/resources/serviceLines/resources/v2/client/create.js +58 -0
- package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
- package/api/resources/serviceLines/resources/v2/client/update.js +80 -0
- package/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +2 -0
- 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/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- 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/commons/types/AppointmentId.d.ts +8 -0
- package/dist/api/resources/commons/types/AppointmentId.js +10 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- 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/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
- package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
- package/dist/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/index.d.ts +1 -0
- package/dist/api/resources/financials/types/index.js +1 -0
- 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.js +5 -5
- 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 +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/coverages/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/client/Client.d.ts +26 -0
- package/dist/api/resources/serviceLines/client/Client.js +17 -0
- package/dist/api/resources/serviceLines/client/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/client/index.js +2 -0
- package/dist/api/resources/serviceLines/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
- package/dist/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
- package/dist/api/resources/serviceLines/resources/v2/client/create.js +58 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/dist/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
- package/dist/api/resources/serviceLines/resources/v2/client/update.js +80 -0
- package/dist/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +2 -0
- 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/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
- package/dist/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/AppointmentId.js +35 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
- package/dist/serialization/resources/financials/types/AllocationTarget.js +2 -0
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
- package/dist/serialization/resources/financials/types/index.d.ts +1 -0
- package/dist/serialization/resources/financials/types/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
- package/dist/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
- package/package.json +1 -1
- package/reference.md +156 -0
- package/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
- package/serialization/resources/commons/types/AppointmentId.js +35 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
- package/serialization/resources/financials/types/AllocationTarget.js +2 -0
- package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
- package/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
- package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
- package/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
- package/serialization/resources/financials/types/index.d.ts +1 -0
- package/serialization/resources/financials/types/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
- package/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
- package/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
- package/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
|
@@ -0,0 +1,63 @@
|
|
|
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.ServiceLineUpdate = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
|
|
32
|
+
const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
|
|
33
|
+
const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
|
|
34
|
+
const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
|
|
35
|
+
const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
|
|
36
|
+
const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
|
|
37
|
+
const Decimal_1 = require("../../../../commons/types/Decimal");
|
|
38
|
+
exports.ServiceLineUpdate = core.serialization.object({
|
|
39
|
+
editReason: core.serialization.property("edit_reason", core.serialization.string().optional()),
|
|
40
|
+
modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
|
|
41
|
+
chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
|
|
42
|
+
allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
|
|
43
|
+
insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
|
|
44
|
+
patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
|
|
45
|
+
primaryPaidAmountCents: core.serialization.property("primary_paid_amount_cents", core.serialization.number().optional()),
|
|
46
|
+
secondaryPaidAmountCents: core.serialization.property("secondary_paid_amount_cents", core.serialization.number().optional()),
|
|
47
|
+
tertiaryPaidAmountCents: core.serialization.property("tertiary_paid_amount_cents", core.serialization.number().optional()),
|
|
48
|
+
patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
|
|
49
|
+
diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
|
|
50
|
+
diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
|
|
51
|
+
diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
|
|
52
|
+
diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
|
|
53
|
+
serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
|
|
54
|
+
denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
|
|
55
|
+
placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
|
|
56
|
+
placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
|
|
57
|
+
units: ServiceLineUnits_1.ServiceLineUnits.optional(),
|
|
58
|
+
procedureCode: core.serialization.property("procedure_code", core.serialization.string().optional()),
|
|
59
|
+
quantity: Decimal_1.Decimal.optional(),
|
|
60
|
+
description: core.serialization.string().optional(),
|
|
61
|
+
dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
|
|
62
|
+
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
63
|
+
});
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ServiceLineCreate"), exports);
|
|
18
|
+
__exportStar(require("./ServiceLineCreateStandalone"), exports);
|
|
19
|
+
__exportStar(require("./ServiceLineUpdate"), exports);
|
|
18
20
|
__exportStar(require("./ServiceLine"), exports);
|
|
19
21
|
__exportStar(require("./ServiceLineEraData"), exports);
|
|
20
22
|
__exportStar(require("./ServiceLineAdjustment"), exports);
|
|
@@ -6,6 +6,8 @@ import * as CandidApi from "../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { WriteOffId } from "./WriteOffId";
|
|
8
8
|
import { PatientWriteOffReason } from "./PatientWriteOffReason";
|
|
9
|
+
import { PatientExternalId } from "../../../../commons/types/PatientExternalId";
|
|
10
|
+
import { ClaimId } from "../../../../commons/types/ClaimId";
|
|
9
11
|
import { ServiceLineId } from "../../../../commons/types/ServiceLineId";
|
|
10
12
|
export declare const PatientWriteOff: core.serialization.ObjectSchema<serializers.writeOffs.v1.PatientWriteOff.Raw, CandidApi.writeOffs.v1.PatientWriteOff>;
|
|
11
13
|
export declare namespace PatientWriteOff {
|
|
@@ -14,6 +16,8 @@ export declare namespace PatientWriteOff {
|
|
|
14
16
|
write_off_timestamp: string;
|
|
15
17
|
write_off_note?: string | null;
|
|
16
18
|
write_off_reason: PatientWriteOffReason.Raw;
|
|
19
|
+
patient_external_id: PatientExternalId.Raw;
|
|
20
|
+
claim_id: ClaimId.Raw;
|
|
17
21
|
service_line_id: ServiceLineId.Raw;
|
|
18
22
|
reverts_write_off_id?: WriteOffId.Raw | null;
|
|
19
23
|
reverted_by_write_off_id?: WriteOffId.Raw | null;
|
|
@@ -30,12 +30,16 @@ exports.PatientWriteOff = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
31
|
const WriteOffId_1 = require("./WriteOffId");
|
|
32
32
|
const PatientWriteOffReason_1 = require("./PatientWriteOffReason");
|
|
33
|
+
const PatientExternalId_1 = require("../../../../commons/types/PatientExternalId");
|
|
34
|
+
const ClaimId_1 = require("../../../../commons/types/ClaimId");
|
|
33
35
|
const ServiceLineId_1 = require("../../../../commons/types/ServiceLineId");
|
|
34
36
|
exports.PatientWriteOff = core.serialization.object({
|
|
35
37
|
writeOffId: core.serialization.property("write_off_id", WriteOffId_1.WriteOffId),
|
|
36
38
|
writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
|
|
37
39
|
writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
|
|
38
40
|
writeOffReason: core.serialization.property("write_off_reason", PatientWriteOffReason_1.PatientWriteOffReason),
|
|
41
|
+
patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
|
|
42
|
+
claimId: core.serialization.property("claim_id", ClaimId_1.ClaimId),
|
|
39
43
|
serviceLineId: core.serialization.property("service_line_id", ServiceLineId_1.ServiceLineId),
|
|
40
44
|
revertsWriteOffId: core.serialization.property("reverts_write_off_id", WriteOffId_1.WriteOffId.optional()),
|
|
41
45
|
revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", WriteOffId_1.WriteOffId.optional()),
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -5656,6 +5656,162 @@ await client.payers.v3.getAll({
|
|
|
5656
5656
|
</dl>
|
|
5657
5657
|
</details>
|
|
5658
5658
|
|
|
5659
|
+
## ServiceLines V2
|
|
5660
|
+
|
|
5661
|
+
<details><summary><code>client.serviceLines.v2.<a href="/src/api/resources/serviceLines/resources/v2/client/Client.ts">create</a>({ ...params }) -> core.APIResponse<CandidApi.ServiceLine, CandidApi.serviceLines.v2.create.Error></code></summary>
|
|
5662
|
+
<dl>
|
|
5663
|
+
<dd>
|
|
5664
|
+
|
|
5665
|
+
#### 🔌 Usage
|
|
5666
|
+
|
|
5667
|
+
<dl>
|
|
5668
|
+
<dd>
|
|
5669
|
+
|
|
5670
|
+
<dl>
|
|
5671
|
+
<dd>
|
|
5672
|
+
|
|
5673
|
+
```typescript
|
|
5674
|
+
await client.serviceLines.v2.create({
|
|
5675
|
+
modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
|
|
5676
|
+
chargeAmountCents: 1,
|
|
5677
|
+
allowedAmountCents: 1,
|
|
5678
|
+
insuranceBalanceCents: 1,
|
|
5679
|
+
patientBalanceCents: 1,
|
|
5680
|
+
primaryPaidAmountCents: 1,
|
|
5681
|
+
secondaryPaidAmountCents: 1,
|
|
5682
|
+
tertiaryPaidAmountCents: 1,
|
|
5683
|
+
patientResponsibilityCents: 1,
|
|
5684
|
+
diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5685
|
+
diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5686
|
+
diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5687
|
+
diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5688
|
+
serviceLineManualAdjustments: [{}],
|
|
5689
|
+
denialReason: {},
|
|
5690
|
+
placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5691
|
+
placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5692
|
+
procedureCode: "string",
|
|
5693
|
+
quantity: CandidApi.Decimal("string"),
|
|
5694
|
+
units: CandidApi.ServiceLineUnits.Mj,
|
|
5695
|
+
claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5696
|
+
description: "string",
|
|
5697
|
+
dateOfService: "2023-01-15",
|
|
5698
|
+
endDateOfService: "2023-01-15",
|
|
5699
|
+
});
|
|
5700
|
+
```
|
|
5701
|
+
|
|
5702
|
+
</dd>
|
|
5703
|
+
</dl>
|
|
5704
|
+
</dd>
|
|
5705
|
+
</dl>
|
|
5706
|
+
|
|
5707
|
+
#### ⚙️ Parameters
|
|
5708
|
+
|
|
5709
|
+
<dl>
|
|
5710
|
+
<dd>
|
|
5711
|
+
|
|
5712
|
+
<dl>
|
|
5713
|
+
<dd>
|
|
5714
|
+
|
|
5715
|
+
**request:** `CandidApi.ServiceLineCreateStandalone`
|
|
5716
|
+
|
|
5717
|
+
</dd>
|
|
5718
|
+
</dl>
|
|
5719
|
+
|
|
5720
|
+
<dl>
|
|
5721
|
+
<dd>
|
|
5722
|
+
|
|
5723
|
+
**requestOptions:** `V2.RequestOptions`
|
|
5724
|
+
|
|
5725
|
+
</dd>
|
|
5726
|
+
</dl>
|
|
5727
|
+
</dd>
|
|
5728
|
+
</dl>
|
|
5729
|
+
|
|
5730
|
+
</dd>
|
|
5731
|
+
</dl>
|
|
5732
|
+
</details>
|
|
5733
|
+
|
|
5734
|
+
<details><summary><code>client.serviceLines.v2.<a href="/src/api/resources/serviceLines/resources/v2/client/Client.ts">update</a>(serviceLineId, { ...params }) -> core.APIResponse<CandidApi.ServiceLine, CandidApi.serviceLines.v2.update.Error></code></summary>
|
|
5735
|
+
<dl>
|
|
5736
|
+
<dd>
|
|
5737
|
+
|
|
5738
|
+
#### 🔌 Usage
|
|
5739
|
+
|
|
5740
|
+
<dl>
|
|
5741
|
+
<dd>
|
|
5742
|
+
|
|
5743
|
+
<dl>
|
|
5744
|
+
<dd>
|
|
5745
|
+
|
|
5746
|
+
```typescript
|
|
5747
|
+
await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
5748
|
+
editReason: "string",
|
|
5749
|
+
modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
|
|
5750
|
+
chargeAmountCents: 1,
|
|
5751
|
+
allowedAmountCents: 1,
|
|
5752
|
+
insuranceBalanceCents: 1,
|
|
5753
|
+
patientBalanceCents: 1,
|
|
5754
|
+
primaryPaidAmountCents: 1,
|
|
5755
|
+
secondaryPaidAmountCents: 1,
|
|
5756
|
+
tertiaryPaidAmountCents: 1,
|
|
5757
|
+
patientResponsibilityCents: 1,
|
|
5758
|
+
diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5759
|
+
diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5760
|
+
diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5761
|
+
diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
5762
|
+
serviceLineManualAdjustments: [{}],
|
|
5763
|
+
denialReason: {},
|
|
5764
|
+
placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5765
|
+
placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
|
|
5766
|
+
units: CandidApi.ServiceLineUnits.Mj,
|
|
5767
|
+
procedureCode: "string",
|
|
5768
|
+
quantity: CandidApi.Decimal("string"),
|
|
5769
|
+
description: "string",
|
|
5770
|
+
dateOfService: "2023-01-15",
|
|
5771
|
+
endDateOfService: "2023-01-15",
|
|
5772
|
+
});
|
|
5773
|
+
```
|
|
5774
|
+
|
|
5775
|
+
</dd>
|
|
5776
|
+
</dl>
|
|
5777
|
+
</dd>
|
|
5778
|
+
</dl>
|
|
5779
|
+
|
|
5780
|
+
#### ⚙️ Parameters
|
|
5781
|
+
|
|
5782
|
+
<dl>
|
|
5783
|
+
<dd>
|
|
5784
|
+
|
|
5785
|
+
<dl>
|
|
5786
|
+
<dd>
|
|
5787
|
+
|
|
5788
|
+
**serviceLineId:** `CandidApi.ServiceLineId`
|
|
5789
|
+
|
|
5790
|
+
</dd>
|
|
5791
|
+
</dl>
|
|
5792
|
+
|
|
5793
|
+
<dl>
|
|
5794
|
+
<dd>
|
|
5795
|
+
|
|
5796
|
+
**request:** `CandidApi.ServiceLineUpdate`
|
|
5797
|
+
|
|
5798
|
+
</dd>
|
|
5799
|
+
</dl>
|
|
5800
|
+
|
|
5801
|
+
<dl>
|
|
5802
|
+
<dd>
|
|
5803
|
+
|
|
5804
|
+
**requestOptions:** `V2.RequestOptions`
|
|
5805
|
+
|
|
5806
|
+
</dd>
|
|
5807
|
+
</dl>
|
|
5808
|
+
</dd>
|
|
5809
|
+
</dl>
|
|
5810
|
+
|
|
5811
|
+
</dd>
|
|
5812
|
+
</dl>
|
|
5813
|
+
</details>
|
|
5814
|
+
|
|
5659
5815
|
## Tasks V3
|
|
5660
5816
|
|
|
5661
5817
|
<details><summary><code>client.tasks.v3.<a href="/src/api/resources/tasks/resources/v3/client/Client.ts">getActions</a>(taskId) -> core.APIResponse<CandidApi.TaskActions, CandidApi.tasks.v3.getActions.Error></code></summary>
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export declare const AppointmentId: core.serialization.Schema<serializers.AppointmentId.Raw, CandidApi.AppointmentId>;
|
|
8
|
+
export declare namespace AppointmentId {
|
|
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.AppointmentId = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../api/index"));
|
|
31
|
+
const core = __importStar(require("../../../../core"));
|
|
32
|
+
exports.AppointmentId = core.serialization.string().transform({
|
|
33
|
+
transform: CandidApi.AppointmentId,
|
|
34
|
+
untransform: (value) => value,
|
|
35
|
+
});
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./EncounterId"), exports);
|
|
18
18
|
__exportStar(require("./OrganizationId"), exports);
|
|
19
19
|
__exportStar(require("./ClaimId"), exports);
|
|
20
|
+
__exportStar(require("./AppointmentId"), exports);
|
|
20
21
|
__exportStar(require("./ServiceLineId"), exports);
|
|
21
22
|
__exportStar(require("./PatientExternalId"), exports);
|
|
22
23
|
__exportStar(require("./EncounterExternalId"), exports);
|
|
@@ -7,9 +7,10 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { ServiceLineAllocationTarget } from "./ServiceLineAllocationTarget";
|
|
8
8
|
import { ClaimAllocationTarget } from "./ClaimAllocationTarget";
|
|
9
9
|
import { BillingProviderAllocationTarget } from "./BillingProviderAllocationTarget";
|
|
10
|
+
import { AppointmentAllocationTarget } from "./AppointmentAllocationTarget";
|
|
10
11
|
export declare const AllocationTarget: core.serialization.Schema<serializers.AllocationTarget.Raw, CandidApi.AllocationTarget>;
|
|
11
12
|
export declare namespace AllocationTarget {
|
|
12
|
-
type Raw = AllocationTarget.ServiceLine | AllocationTarget.Claim | AllocationTarget.BillingProviderId | AllocationTarget.Unattributed;
|
|
13
|
+
type Raw = AllocationTarget.ServiceLine | AllocationTarget.Claim | AllocationTarget.BillingProviderId | AllocationTarget.Appointment | AllocationTarget.Unattributed;
|
|
13
14
|
interface ServiceLine extends ServiceLineAllocationTarget.Raw {
|
|
14
15
|
type: "service_line";
|
|
15
16
|
}
|
|
@@ -19,6 +20,9 @@ export declare namespace AllocationTarget {
|
|
|
19
20
|
interface BillingProviderId extends BillingProviderAllocationTarget.Raw {
|
|
20
21
|
type: "billing_provider_id";
|
|
21
22
|
}
|
|
23
|
+
interface Appointment extends AppointmentAllocationTarget.Raw {
|
|
24
|
+
type: "appointment";
|
|
25
|
+
}
|
|
22
26
|
interface Unattributed {
|
|
23
27
|
type: "unattributed";
|
|
24
28
|
}
|
|
@@ -31,11 +31,13 @@ const core = __importStar(require("../../../../core"));
|
|
|
31
31
|
const ServiceLineAllocationTarget_1 = require("./ServiceLineAllocationTarget");
|
|
32
32
|
const ClaimAllocationTarget_1 = require("./ClaimAllocationTarget");
|
|
33
33
|
const BillingProviderAllocationTarget_1 = require("./BillingProviderAllocationTarget");
|
|
34
|
+
const AppointmentAllocationTarget_1 = require("./AppointmentAllocationTarget");
|
|
34
35
|
exports.AllocationTarget = core.serialization
|
|
35
36
|
.union("type", {
|
|
36
37
|
service_line: ServiceLineAllocationTarget_1.ServiceLineAllocationTarget,
|
|
37
38
|
claim: ClaimAllocationTarget_1.ClaimAllocationTarget,
|
|
38
39
|
billing_provider_id: BillingProviderAllocationTarget_1.BillingProviderAllocationTarget,
|
|
40
|
+
appointment: AppointmentAllocationTarget_1.AppointmentAllocationTarget,
|
|
39
41
|
unattributed: core.serialization.object({}),
|
|
40
42
|
})
|
|
41
43
|
.transform({
|
|
@@ -8,9 +8,10 @@ import { ServiceLineId } from "../../commons/types/ServiceLineId";
|
|
|
8
8
|
import { ClaimId } from "../../commons/types/ClaimId";
|
|
9
9
|
import { EncounterExternalId } from "../../commons/types/EncounterExternalId";
|
|
10
10
|
import { ProviderId } from "../../commons/types/ProviderId";
|
|
11
|
+
import { AppointmentId } from "../../commons/types/AppointmentId";
|
|
11
12
|
export declare const AllocationTargetCreate: core.serialization.Schema<serializers.AllocationTargetCreate.Raw, CandidApi.AllocationTargetCreate>;
|
|
12
13
|
export declare namespace AllocationTargetCreate {
|
|
13
|
-
type Raw = AllocationTargetCreate.ServiceLineById | AllocationTargetCreate.ClaimById | AllocationTargetCreate.ClaimByEncounterExternalId | AllocationTargetCreate.BillingProviderById | AllocationTargetCreate.Unattributed;
|
|
14
|
+
type Raw = AllocationTargetCreate.ServiceLineById | AllocationTargetCreate.ClaimById | AllocationTargetCreate.ClaimByEncounterExternalId | AllocationTargetCreate.BillingProviderById | AllocationTargetCreate.AppointmentById | AllocationTargetCreate.Unattributed;
|
|
14
15
|
interface ServiceLineById {
|
|
15
16
|
type: "service_line_by_id";
|
|
16
17
|
value: ServiceLineId.Raw;
|
|
@@ -27,6 +28,10 @@ export declare namespace AllocationTargetCreate {
|
|
|
27
28
|
type: "billing_provider_by_id";
|
|
28
29
|
value: ProviderId.Raw;
|
|
29
30
|
}
|
|
31
|
+
interface AppointmentById {
|
|
32
|
+
type: "appointment_by_id";
|
|
33
|
+
value: AppointmentId.Raw;
|
|
34
|
+
}
|
|
30
35
|
interface Unattributed {
|
|
31
36
|
type: "unattributed";
|
|
32
37
|
}
|
|
@@ -32,6 +32,7 @@ const ServiceLineId_1 = require("../../commons/types/ServiceLineId");
|
|
|
32
32
|
const ClaimId_1 = require("../../commons/types/ClaimId");
|
|
33
33
|
const EncounterExternalId_1 = require("../../commons/types/EncounterExternalId");
|
|
34
34
|
const ProviderId_1 = require("../../commons/types/ProviderId");
|
|
35
|
+
const AppointmentId_1 = require("../../commons/types/AppointmentId");
|
|
35
36
|
exports.AllocationTargetCreate = core.serialization
|
|
36
37
|
.union("type", {
|
|
37
38
|
service_line_by_id: core.serialization.object({
|
|
@@ -46,6 +47,9 @@ exports.AllocationTargetCreate = core.serialization
|
|
|
46
47
|
billing_provider_by_id: core.serialization.object({
|
|
47
48
|
value: ProviderId_1.ProviderId,
|
|
48
49
|
}),
|
|
50
|
+
appointment_by_id: core.serialization.object({
|
|
51
|
+
value: AppointmentId_1.AppointmentId,
|
|
52
|
+
}),
|
|
49
53
|
unattributed: core.serialization.object({}),
|
|
50
54
|
})
|
|
51
55
|
.transform({
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { AppointmentId } from "../../commons/types/AppointmentId";
|
|
8
|
+
export declare const AppointmentAllocationTarget: core.serialization.ObjectSchema<serializers.AppointmentAllocationTarget.Raw, CandidApi.AppointmentAllocationTarget>;
|
|
9
|
+
export declare namespace AppointmentAllocationTarget {
|
|
10
|
+
interface Raw {
|
|
11
|
+
appointment_id: AppointmentId.Raw;
|
|
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.AppointmentAllocationTarget = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const AppointmentId_1 = require("../../commons/types/AppointmentId");
|
|
32
|
+
exports.AppointmentAllocationTarget = core.serialization.object({
|
|
33
|
+
appointmentId: core.serialization.property("appointment_id", AppointmentId_1.AppointmentId),
|
|
34
|
+
});
|
|
@@ -4,6 +4,7 @@ export * from "./Allocation";
|
|
|
4
4
|
export * from "./ServiceLineAllocationTarget";
|
|
5
5
|
export * from "./ClaimAllocationTarget";
|
|
6
6
|
export * from "./BillingProviderAllocationTarget";
|
|
7
|
+
export * from "./AppointmentAllocationTarget";
|
|
7
8
|
export * from "./AllocationTarget";
|
|
8
9
|
export * from "./AllocationCreate";
|
|
9
10
|
export * from "./AllocationTargetCreate";
|
|
@@ -20,6 +20,7 @@ __exportStar(require("./Allocation"), exports);
|
|
|
20
20
|
__exportStar(require("./ServiceLineAllocationTarget"), exports);
|
|
21
21
|
__exportStar(require("./ClaimAllocationTarget"), exports);
|
|
22
22
|
__exportStar(require("./BillingProviderAllocationTarget"), exports);
|
|
23
|
+
__exportStar(require("./AppointmentAllocationTarget"), exports);
|
|
23
24
|
__exportStar(require("./AllocationTarget"), exports);
|
|
24
25
|
__exportStar(require("./AllocationCreate"), exports);
|
|
25
26
|
__exportStar(require("./AllocationTargetCreate"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.serviceLines.v2.create.Error.Raw, CandidApi.serviceLines.v2.create.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.HttpRequestValidationError;
|
|
11
|
+
interface HttpRequestValidationError {
|
|
12
|
+
errorName: "HttpRequestValidationError";
|
|
13
|
+
content: RequestValidationError.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const CandidApi = __importStar(require("../../../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../../../core"));
|
|
43
|
+
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
44
|
+
exports.Error = core.serialization
|
|
45
|
+
.union("errorName", {
|
|
46
|
+
HttpRequestValidationError: core.serialization.object({
|
|
47
|
+
content: RequestValidationError_1.RequestValidationError,
|
|
48
|
+
}),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
case "HttpRequestValidationError":
|
|
54
|
+
return CandidApi.serviceLines.v2.create.Error.httpRequestValidationError(value.content);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.update = exports.create = void 0;
|
|
27
|
+
exports.create = __importStar(require("./create"));
|
|
28
|
+
exports.update = __importStar(require("./update"));
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
10
|
+
export declare const Error: core.serialization.Schema<serializers.serviceLines.v2.update.Error.Raw, CandidApi.serviceLines.v2.update.Error>;
|
|
11
|
+
export declare namespace Error {
|
|
12
|
+
type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationError;
|
|
13
|
+
interface EntityNotFoundError {
|
|
14
|
+
errorName: "EntityNotFoundError";
|
|
15
|
+
content: EntityNotFoundErrorMessage.Raw;
|
|
16
|
+
}
|
|
17
|
+
interface UnauthorizedError {
|
|
18
|
+
errorName: "UnauthorizedError";
|
|
19
|
+
content: UnauthorizedErrorMessage.Raw;
|
|
20
|
+
}
|
|
21
|
+
interface HttpRequestValidationError {
|
|
22
|
+
errorName: "HttpRequestValidationError";
|
|
23
|
+
content: RequestValidationError.Raw;
|
|
24
|
+
}
|
|
25
|
+
}
|