candidhealth 0.11.0 → 0.12.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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounters/resources/v4/client/Client.js +5 -4
- package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/api/resources/encounters/resources/v4/types/index.js +1 -0
- 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/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
- package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
- package/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
- package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
- package/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
- package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
- package/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- 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 +8 -5
- package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +8 -5
- package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- 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/RemittanceAdviceRemarkCode.js +5 -0
- package/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/api/resources/x12/resources/v1/types/index.js +2 -0
- 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/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -4
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
- 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/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js +5 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +5 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- 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 +8 -5
- package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +8 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- 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/ClaimAdjustmentReasonCode.js +5 -0
- package/dist/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +5 -0
- package/dist/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/x12/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +33 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +3 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +2 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- package/{serialization/resources/insuranceAdjudications → dist/serialization/resources/x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
- package/{serialization/resources/insuranceAdjudications → dist/serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +33 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
- package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +3 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +2 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
- package/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
- package/{dist/serialization/resources/insuranceAdjudications → serialization/resources/x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
- package/{dist/serialization/resources/insuranceAdjudications → serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/x12/resources/v1/types/index.js +2 -0
- /package/api/resources/{insuranceAdjudications/resources/v1/types/ClaimAdjustmentReasonCode.js → encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js} +0 -0
- /package/api/resources/{insuranceAdjudications/resources/v1/types/RemittanceAdviceRemarkCode.js → insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js} +0 -0
- /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjustmentReasonCode.js → api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js} +0 -0
- /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
- /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/RemittanceAdviceRemarkCode.js → api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js} +0 -0
- /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
- /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
- /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
- /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
- /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
- /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
- /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
|
@@ -62,7 +62,7 @@ class V2 {
|
|
|
62
62
|
Authorization: await this._getAuthorizationHeader(),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "candidhealth",
|
|
65
|
-
"X-Fern-SDK-Version": "0.
|
|
65
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -65,7 +65,7 @@ class V2 {
|
|
|
65
65
|
Authorization: await this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "candidhealth",
|
|
68
|
-
"X-Fern-SDK-Version": "0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
body: request,
|
|
@@ -103,7 +103,7 @@ class V4 {
|
|
|
103
103
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V4 {
|
|
|
133
133
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
134
|
"X-Fern-Language": "JavaScript",
|
|
135
135
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.
|
|
136
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
timeoutMs: 60000,
|
|
@@ -162,7 +162,7 @@ class V4 {
|
|
|
162
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
163
|
"X-Fern-Language": "JavaScript",
|
|
164
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
166
166
|
},
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -184,6 +184,7 @@ class V4 {
|
|
|
184
184
|
if (_response.error.reason === "status-code") {
|
|
185
185
|
switch (_response.error.body?.errorName) {
|
|
186
186
|
case "EncounterExternalIdUniquenessError":
|
|
187
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
187
188
|
case "EntityNotFoundError":
|
|
188
189
|
case "EncounterGuarantorMissingContactInfoError":
|
|
189
190
|
case "HttpRequestValidationsError":
|
|
@@ -212,7 +213,7 @@ class V4 {
|
|
|
212
213
|
Authorization: await this._getAuthorizationHeader(),
|
|
213
214
|
"X-Fern-Language": "JavaScript",
|
|
214
215
|
"X-Fern-SDK-Name": "candidhealth",
|
|
215
|
-
"X-Fern-SDK-Version": "0.
|
|
216
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
216
217
|
},
|
|
217
218
|
contentType: "application/json",
|
|
218
219
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
9
|
errorName: "EncounterExternalIdUniquenessError";
|
|
10
10
|
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
11
|
}
|
|
12
|
+
interface EncounterPatientControlNumberUniquenessError extends _Utils {
|
|
13
|
+
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
14
|
+
content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
|
|
15
|
+
}
|
|
12
16
|
interface EntityNotFoundError extends _Utils {
|
|
13
17
|
errorName: "EntityNotFoundError";
|
|
14
18
|
content: CandidApi.EntityNotFoundErrorMessage;
|
|
@@ -34,6 +38,7 @@ export declare namespace Error {
|
|
|
34
38
|
}
|
|
35
39
|
interface _Visitor<_Result> {
|
|
36
40
|
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
41
|
+
encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
|
|
37
42
|
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
38
43
|
encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
|
|
39
44
|
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
@@ -43,6 +48,7 @@ export declare namespace Error {
|
|
|
43
48
|
}
|
|
44
49
|
export declare const Error: {
|
|
45
50
|
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
|
|
51
|
+
readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError;
|
|
46
52
|
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.create.Error.EntityNotFoundError;
|
|
47
53
|
readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
|
|
48
54
|
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
|
|
@@ -38,6 +38,15 @@ exports.Error = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
+
encounterPatientControlNumberUniquenessError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "EncounterPatientControlNumberUniquenessError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.encounters.v4.create.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
41
50
|
entityNotFoundError: (value) => {
|
|
42
51
|
return {
|
|
43
52
|
content: value,
|
|
@@ -87,6 +96,8 @@ exports.Error = {
|
|
|
87
96
|
switch (value.errorName) {
|
|
88
97
|
case "EncounterExternalIdUniquenessError":
|
|
89
98
|
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
99
|
+
case "EncounterPatientControlNumberUniquenessError":
|
|
100
|
+
return visitor.encounterPatientControlNumberUniquenessError(value.content);
|
|
90
101
|
case "EntityNotFoundError":
|
|
91
102
|
return visitor.entityNotFoundError(value.content);
|
|
92
103
|
case "EncounterGuarantorMissingContactInfoError":
|
|
@@ -28,6 +28,7 @@ export * from "./RxCui";
|
|
|
28
28
|
export * from "./IntakeQuestionId";
|
|
29
29
|
export * from "./IntakeFollowUpId";
|
|
30
30
|
export * from "./EncounterExternalIdUniquenessErrorType";
|
|
31
|
+
export * from "./EncounterPatientControlNumberUniquenessErrorType";
|
|
31
32
|
export * from "./EncounterGuarantorMissingContactInfoErrorType";
|
|
32
33
|
export * from "./CashPayPayerErrorMessage";
|
|
33
34
|
export * from "./ServiceAuthorizationExceptionCode";
|
|
@@ -44,6 +44,7 @@ __exportStar(require("./RxCui"), exports);
|
|
|
44
44
|
__exportStar(require("./IntakeQuestionId"), exports);
|
|
45
45
|
__exportStar(require("./IntakeFollowUpId"), exports);
|
|
46
46
|
__exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
|
|
47
|
+
__exportStar(require("./EncounterPatientControlNumberUniquenessErrorType"), exports);
|
|
47
48
|
__exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
|
|
48
49
|
__exportStar(require("./CashPayPayerErrorMessage"), exports);
|
|
49
50
|
__exportStar(require("./ServiceAuthorizationExceptionCode"), exports);
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -54,7 +54,7 @@ class V2 {
|
|
|
54
54
|
Authorization: await this._getAuthorizationHeader(),
|
|
55
55
|
"X-Fern-Language": "JavaScript",
|
|
56
56
|
"X-Fern-SDK-Name": "candidhealth",
|
|
57
|
-
"X-Fern-SDK-Version": "0.
|
|
57
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
58
58
|
},
|
|
59
59
|
contentType: "application/json",
|
|
60
60
|
body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
|
|
@@ -109,7 +109,7 @@ class V2 {
|
|
|
109
109
|
Authorization: await this._getAuthorizationHeader(),
|
|
110
110
|
"X-Fern-Language": "JavaScript",
|
|
111
111
|
"X-Fern-SDK-Name": "candidhealth",
|
|
112
|
-
"X-Fern-SDK-Version": "0.
|
|
112
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
113
113
|
},
|
|
114
114
|
contentType: "application/json",
|
|
115
115
|
body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class V3 {
|
|
|
68
68
|
Authorization: await this._getAuthorizationHeader(),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "candidhealth",
|
|
71
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -102,7 +102,7 @@ class V1 {
|
|
|
102
102
|
Authorization: await this._getAuthorizationHeader(),
|
|
103
103
|
"X-Fern-Language": "JavaScript",
|
|
104
104
|
"X-Fern-SDK-Name": "candidhealth",
|
|
105
|
-
"X-Fern-SDK-Version": "0.
|
|
105
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
106
106
|
},
|
|
107
107
|
contentType: "application/json",
|
|
108
108
|
timeoutMs: 60000,
|
|
@@ -135,7 +135,7 @@ class V1 {
|
|
|
135
135
|
Authorization: await this._getAuthorizationHeader(),
|
|
136
136
|
"X-Fern-Language": "JavaScript",
|
|
137
137
|
"X-Fern-SDK-Name": "candidhealth",
|
|
138
|
-
"X-Fern-SDK-Version": "0.
|
|
138
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
139
139
|
},
|
|
140
140
|
contentType: "application/json",
|
|
141
141
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
timeoutMs: 60000,
|
|
@@ -85,7 +85,7 @@ class V1 {
|
|
|
85
85
|
Authorization: await this._getAuthorizationHeader(),
|
|
86
86
|
"X-Fern-Language": "JavaScript",
|
|
87
87
|
"X-Fern-SDK-Name": "candidhealth",
|
|
88
|
-
"X-Fern-SDK-Version": "0.
|
|
88
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
89
89
|
},
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
|
|
@@ -121,7 +121,7 @@ class V1 {
|
|
|
121
121
|
Authorization: await this._getAuthorizationHeader(),
|
|
122
122
|
"X-Fern-Language": "JavaScript",
|
|
123
123
|
"X-Fern-SDK-Name": "candidhealth",
|
|
124
|
-
"X-Fern-SDK-Version": "0.
|
|
124
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
125
125
|
},
|
|
126
126
|
contentType: "application/json",
|
|
127
127
|
timeoutMs: 60000,
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
export interface ClaimAdjudication {
|
|
6
|
+
claimId: CandidApi.ClaimId;
|
|
6
7
|
insuranceAllowedAmountCents?: number;
|
|
7
8
|
insurancePaidAmountCents?: number;
|
|
9
|
+
chargeAmountCents?: number;
|
|
8
10
|
serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudication>;
|
|
9
11
|
payerClaimNumber?: string;
|
|
10
|
-
carcs: CandidApi.
|
|
12
|
+
carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
|
|
11
13
|
}
|
package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import * as CandidApi from "../../../../..";
|
|
|
5
5
|
export interface ClaimAdjudicationCreate {
|
|
6
6
|
insuranceAllowedAmountCents?: number;
|
|
7
7
|
insurancePaidAmountCents?: number;
|
|
8
|
+
chargeAmountCents?: number;
|
|
8
9
|
serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudicationCreate>;
|
|
9
10
|
payerClaimNumber?: string;
|
|
10
|
-
carcs: CandidApi.
|
|
11
|
+
carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
|
|
11
12
|
}
|
|
@@ -9,5 +9,5 @@ export interface InsuranceAdjudication {
|
|
|
9
9
|
checkNumber?: string;
|
|
10
10
|
checkDate: string;
|
|
11
11
|
note?: string;
|
|
12
|
-
claims: Record<CandidApi.
|
|
12
|
+
claims: Record<CandidApi.ClaimId, CandidApi.insuranceAdjudications.v1.ClaimAdjudication>;
|
|
13
13
|
}
|
package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export interface InsuranceAdjudicationCreate {
|
|
|
9
9
|
checkNumber?: string;
|
|
10
10
|
checkDate: string;
|
|
11
11
|
note?: string;
|
|
12
|
-
claims: Record<CandidApi.
|
|
12
|
+
claims: Record<CandidApi.ClaimId, CandidApi.insuranceAdjudications.v1.ClaimAdjudicationCreate>;
|
|
13
13
|
}
|
package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export interface ServiceLineAdjudication {
|
|
|
11
11
|
deductibleAmountCents?: number;
|
|
12
12
|
coinsuranceAmountCents?: number;
|
|
13
13
|
copayAmountCents?: number;
|
|
14
|
-
carcs: CandidApi.
|
|
15
|
-
rarcs: CandidApi.
|
|
14
|
+
carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
|
|
15
|
+
rarcs: CandidApi.x12.v1.RemittanceAdviceRemarkCode[];
|
|
16
16
|
}
|
package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ export interface ServiceLineAdjudicationCreate {
|
|
|
10
10
|
deductibleAmountCents?: number;
|
|
11
11
|
coinsuranceAmountCents?: number;
|
|
12
12
|
copayAmountCents?: number;
|
|
13
|
-
carcs: CandidApi.
|
|
14
|
-
rarcs: CandidApi.
|
|
13
|
+
carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
|
|
14
|
+
rarcs: CandidApi.x12.v1.RemittanceAdviceRemarkCode[];
|
|
15
15
|
}
|
|
@@ -22,5 +22,3 @@ __exportStar(require("./ClaimAdjudicationCreate"), exports);
|
|
|
22
22
|
__exportStar(require("./ClaimAdjudication"), exports);
|
|
23
23
|
__exportStar(require("./ServiceLineAdjudicationCreate"), exports);
|
|
24
24
|
__exportStar(require("./ServiceLineAdjudication"), exports);
|
|
25
|
-
__exportStar(require("./ClaimAdjustmentReasonCode"), exports);
|
|
26
|
-
__exportStar(require("./RemittanceAdviceRemarkCode"), exports);
|
|
@@ -13,6 +13,12 @@ export declare namespace V1 {
|
|
|
13
13
|
export declare class V1 {
|
|
14
14
|
protected readonly options: V1.Options;
|
|
15
15
|
constructor(options: V1.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Returns all insurance refunds satisfying the search criteria AND whose organization_id matches
|
|
18
|
+
* the current organization_id of the authenticated user.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
getMulti(request?: CandidApi.insuranceRefunds.v1.GetMultiInsuranceRefundsRequest): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefundsPage, CandidApi.insuranceRefunds.v1.getMulti.Error>>;
|
|
16
22
|
/**
|
|
17
23
|
* Retrieves a previously created insurance refund by its `insurance_refund_id`.
|
|
18
24
|
* If the refund does not exist, a `403` will be thrown.
|
|
@@ -33,13 +33,75 @@ exports.V1 = void 0;
|
|
|
33
33
|
const environments = __importStar(require("../../../../../../environments"));
|
|
34
34
|
const core = __importStar(require("../../../../../../core"));
|
|
35
35
|
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
-
const
|
|
36
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
37
37
|
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
38
39
|
class V1 {
|
|
39
40
|
options;
|
|
40
41
|
constructor(options) {
|
|
41
42
|
this.options = options;
|
|
42
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns all insurance refunds satisfying the search criteria AND whose organization_id matches
|
|
46
|
+
* the current organization_id of the authenticated user.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
async getMulti(request = {}) {
|
|
50
|
+
const { limit, payerUuid, claimId, serviceLineId, billingProviderId, sort, sortDirection, pageToken } = request;
|
|
51
|
+
const _queryParams = new url_search_params_1.default();
|
|
52
|
+
if (limit != null) {
|
|
53
|
+
_queryParams.append("limit", limit.toString());
|
|
54
|
+
}
|
|
55
|
+
if (payerUuid != null) {
|
|
56
|
+
_queryParams.append("payer_uuid", payerUuid);
|
|
57
|
+
}
|
|
58
|
+
if (claimId != null) {
|
|
59
|
+
_queryParams.append("claim_id", claimId);
|
|
60
|
+
}
|
|
61
|
+
if (serviceLineId != null) {
|
|
62
|
+
_queryParams.append("service_line_id", serviceLineId);
|
|
63
|
+
}
|
|
64
|
+
if (billingProviderId != null) {
|
|
65
|
+
_queryParams.append("billing_provider_id", billingProviderId);
|
|
66
|
+
}
|
|
67
|
+
if (sort != null) {
|
|
68
|
+
_queryParams.append("sort", sort);
|
|
69
|
+
}
|
|
70
|
+
if (sortDirection != null) {
|
|
71
|
+
_queryParams.append("sort_direction", sortDirection);
|
|
72
|
+
}
|
|
73
|
+
if (pageToken != null) {
|
|
74
|
+
_queryParams.append("page_token", pageToken);
|
|
75
|
+
}
|
|
76
|
+
const _response = await core.fetcher({
|
|
77
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/insurance-refunds/v1"),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: {
|
|
80
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
81
|
+
"X-Fern-Language": "JavaScript",
|
|
82
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
83
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
84
|
+
},
|
|
85
|
+
contentType: "application/json",
|
|
86
|
+
queryParameters: _queryParams,
|
|
87
|
+
timeoutMs: 60000,
|
|
88
|
+
});
|
|
89
|
+
if (_response.ok) {
|
|
90
|
+
return {
|
|
91
|
+
ok: true,
|
|
92
|
+
body: await serializers.insuranceRefunds.v1.InsuranceRefundsPage.parseOrThrow(_response.body, {
|
|
93
|
+
unrecognizedObjectKeys: "passthrough",
|
|
94
|
+
allowUnrecognizedUnionMembers: true,
|
|
95
|
+
allowUnrecognizedEnumValues: true,
|
|
96
|
+
breadcrumbsPrefix: ["response"],
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
ok: false,
|
|
102
|
+
error: CandidApi.insuranceRefunds.v1.getMulti.Error._unknown(_response.error),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
43
105
|
/**
|
|
44
106
|
* Retrieves a previously created insurance refund by its `insurance_refund_id`.
|
|
45
107
|
* If the refund does not exist, a `403` will be thrown.
|
|
@@ -53,7 +115,7 @@ class V1 {
|
|
|
53
115
|
Authorization: await this._getAuthorizationHeader(),
|
|
54
116
|
"X-Fern-Language": "JavaScript",
|
|
55
117
|
"X-Fern-SDK-Name": "candidhealth",
|
|
56
|
-
"X-Fern-SDK-Version": "0.
|
|
118
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
57
119
|
},
|
|
58
120
|
contentType: "application/json",
|
|
59
121
|
timeoutMs: 60000,
|
|
@@ -88,7 +150,7 @@ class V1 {
|
|
|
88
150
|
Authorization: await this._getAuthorizationHeader(),
|
|
89
151
|
"X-Fern-Language": "JavaScript",
|
|
90
152
|
"X-Fern-SDK-Name": "candidhealth",
|
|
91
|
-
"X-Fern-SDK-Version": "0.
|
|
153
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
92
154
|
},
|
|
93
155
|
contentType: "application/json",
|
|
94
156
|
body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
|
|
@@ -126,7 +188,7 @@ class V1 {
|
|
|
126
188
|
Authorization: await this._getAuthorizationHeader(),
|
|
127
189
|
"X-Fern-Language": "JavaScript",
|
|
128
190
|
"X-Fern-SDK-Name": "candidhealth",
|
|
129
|
-
"X-Fern-SDK-Version": "0.
|
|
191
|
+
"X-Fern-SDK-Version": "0.12.0",
|
|
130
192
|
},
|
|
131
193
|
contentType: "application/json",
|
|
132
194
|
timeoutMs: 60000,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.getMulti.Error, visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insuranceRefunds.v1.getMulti.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.errorName) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
18
21
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
22
|
if (mod && mod.__esModule) return mod;
|
|
20
23
|
var result = {};
|
|
@@ -23,7 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
26
|
return result;
|
|
24
27
|
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.delete = exports.create = exports.get = void 0;
|
|
29
|
+
exports.delete = exports.create = exports.get = exports.getMulti = void 0;
|
|
30
|
+
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.getMulti = __importStar(require("./getMulti"));
|
|
27
32
|
exports.get = __importStar(require("./get"));
|
|
28
33
|
exports.create = __importStar(require("./create"));
|
|
29
34
|
exports.delete = __importStar(require("./delete"));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../..";
|
|
5
|
+
export interface GetMultiInsuranceRefundsRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Defaults to 100. The value must be greater than 0 and less than 1000.
|
|
8
|
+
*/
|
|
9
|
+
limit?: number;
|
|
10
|
+
payerUuid?: CandidApi.payers.v3.PayerUuid;
|
|
11
|
+
claimId?: CandidApi.ClaimId;
|
|
12
|
+
serviceLineId?: CandidApi.ServiceLineId;
|
|
13
|
+
billingProviderId?: CandidApi.ProviderId;
|
|
14
|
+
/**
|
|
15
|
+
* Defaults to refund_timestamp
|
|
16
|
+
*/
|
|
17
|
+
sort?: CandidApi.insuranceRefunds.v1.InsuranceRefundSortField;
|
|
18
|
+
/**
|
|
19
|
+
* Sort direction. Defaults to descending order if not provided.
|
|
20
|
+
*/
|
|
21
|
+
sortDirection?: CandidApi.SortDirection;
|
|
22
|
+
pageToken?: CandidApi.PageToken;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetMultiInsuranceRefundsRequest } from "./GetMultiInsuranceRefundsRequest";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type InsuranceRefundSortField = "amount_cents" | "refund_timestamp" | "refund_note" | "refund_reason";
|
|
5
|
+
export declare const InsuranceRefundSortField: {
|
|
6
|
+
readonly AmountCents: "amount_cents";
|
|
7
|
+
readonly RefundTimestamp: "refund_timestamp";
|
|
8
|
+
readonly RefundNote: "refund_note";
|
|
9
|
+
readonly RefundReason: "refund_reason";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InsuranceRefundSortField = void 0;
|
|
7
|
+
exports.InsuranceRefundSortField = {
|
|
8
|
+
AmountCents: "amount_cents",
|
|
9
|
+
RefundTimestamp: "refund_timestamp",
|
|
10
|
+
RefundNote: "refund_note",
|
|
11
|
+
RefundReason: "refund_reason",
|
|
12
|
+
};
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./InsuranceRefundId"), exports);
|
|
18
18
|
__exportStar(require("./InsuranceRefund"), exports);
|
|
19
19
|
__exportStar(require("./InsuranceRefundCreate"), exports);
|
|
20
|
+
__exportStar(require("./InsuranceRefundsPage"), exports);
|
|
21
|
+
__exportStar(require("./InsuranceRefundSortField"), exports);
|