candidhealth 0.24.0-2a6d412 → 0.24.1
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/README.md +134 -6
- package/api/resources/auth/client/Client.d.ts +3 -0
- package/api/resources/auth/resources/v2/client/Client.d.ts +4 -1
- package/api/resources/auth/resources/v2/client/Client.js +6 -7
- package/api/resources/billingNotes/client/Client.d.ts +3 -0
- package/api/resources/billingNotes/resources/v2/client/Client.d.ts +4 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +5 -4
- package/api/resources/contracts/client/Client.d.ts +3 -0
- package/api/resources/contracts/resources/v2/client/Client.d.ts +8 -5
- package/api/resources/contracts/resources/v2/client/Client.js +27 -26
- package/api/resources/eligibility/client/Client.d.ts +3 -0
- package/api/resources/eligibility/resources/v2/client/Client.d.ts +6 -3
- package/api/resources/eligibility/resources/v2/client/Client.js +12 -9
- package/api/resources/encounters/client/Client.d.ts +3 -0
- package/api/resources/encounters/resources/v4/client/Client.d.ts +7 -19
- package/api/resources/encounters/resources/v4/client/Client.js +22 -37
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -21
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/api/resources/expectedNetworkStatus/client/Client.d.ts +3 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +4 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +5 -4
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +5 -2
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +13 -11
- package/api/resources/exports/client/Client.d.ts +3 -0
- package/api/resources/exports/resources/v3/client/Client.d.ts +4 -1
- package/api/resources/exports/resources/v3/client/Client.js +5 -4
- package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +3 -0
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +4 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +4 -3
- package/api/resources/feeSchedules/client/Client.d.ts +3 -0
- package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +13 -10
- package/api/resources/feeSchedules/resources/v3/client/Client.js +52 -44
- package/api/resources/guarantor/client/Client.d.ts +3 -0
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +6 -3
- package/api/resources/guarantor/resources/v1/client/Client.js +18 -19
- package/api/resources/importInvoice/client/Client.d.ts +3 -0
- package/api/resources/importInvoice/resources/v1/client/Client.d.ts +7 -4
- package/api/resources/importInvoice/resources/v1/client/Client.js +22 -18
- package/api/resources/insuranceAdjudications/client/Client.d.ts +3 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +6 -3
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +15 -12
- package/api/resources/insurancePayments/client/Client.d.ts +3 -0
- package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +8 -5
- package/api/resources/insurancePayments/resources/v1/client/Client.js +29 -24
- package/api/resources/insuranceRefunds/client/Client.d.ts +3 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +8 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +29 -24
- package/api/resources/organizationProviders/client/Client.d.ts +3 -0
- package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +7 -4
- package/api/resources/organizationProviders/resources/v3/client/Client.js +23 -19
- package/api/resources/organizationServiceFacilities/client/Client.d.ts +3 -0
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +8 -5
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +32 -23
- package/api/resources/patientPayments/client/Client.d.ts +3 -0
- package/api/resources/patientPayments/resources/v4/client/Client.d.ts +8 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +29 -24
- package/api/resources/patientRefunds/client/Client.d.ts +3 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +8 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +29 -24
- package/api/resources/payers/client/Client.d.ts +3 -0
- package/api/resources/payers/resources/v3/client/Client.d.ts +5 -2
- package/api/resources/payers/resources/v3/client/Client.js +9 -7
- package/api/resources/preEncounter/client/Client.d.ts +3 -0
- package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +3 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +3 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +9 -6
- package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +31 -25
- package/api/resources/preEncounter/resources/patients/client/Client.d.ts +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +10 -7
- package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +38 -31
- package/api/resources/serviceFacility/client/Client.d.ts +4 -1
- package/api/resources/serviceFacility/client/Client.js +6 -7
- package/api/resources/tasks/client/Client.d.ts +3 -0
- package/api/resources/tasks/resources/v3/client/Client.d.ts +8 -5
- package/api/resources/tasks/resources/v3/client/Client.js +28 -23
- package/api/resources/writeOffs/client/Client.d.ts +3 -0
- package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
- package/api/resources/writeOffs/resources/v1/client/Client.js +19 -15
- package/core/fetcher/Fetcher.d.ts +3 -0
- package/core/fetcher/Fetcher.js +22 -153
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +48 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +12 -1
- package/core/schemas/Schema.d.ts +7 -4
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/Client.d.ts +3 -0
- package/dist/api/resources/auth/client/Client.d.ts +3 -0
- package/dist/api/resources/auth/resources/v2/client/Client.d.ts +4 -1
- package/dist/api/resources/auth/resources/v2/client/Client.js +6 -7
- package/dist/api/resources/billingNotes/client/Client.d.ts +3 -0
- package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +4 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +5 -4
- package/dist/api/resources/contracts/client/Client.d.ts +3 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +8 -5
- package/dist/api/resources/contracts/resources/v2/client/Client.js +27 -26
- package/dist/api/resources/eligibility/client/Client.d.ts +3 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +6 -3
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +12 -9
- package/dist/api/resources/encounters/client/Client.d.ts +3 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +7 -19
- package/dist/api/resources/encounters/resources/v4/client/Client.js +22 -37
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -21
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +3 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +4 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +5 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +5 -2
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +13 -11
- package/dist/api/resources/exports/client/Client.d.ts +3 -0
- package/dist/api/resources/exports/resources/v3/client/Client.d.ts +4 -1
- package/dist/api/resources/exports/resources/v3/client/Client.js +5 -4
- package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +3 -0
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +4 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +4 -3
- package/dist/api/resources/feeSchedules/client/Client.d.ts +3 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +13 -10
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +52 -44
- package/dist/api/resources/guarantor/client/Client.d.ts +3 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +6 -3
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +18 -19
- package/dist/api/resources/importInvoice/client/Client.d.ts +3 -0
- package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +7 -4
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +22 -18
- package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +3 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +6 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +15 -12
- package/dist/api/resources/insurancePayments/client/Client.d.ts +3 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +8 -5
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +29 -24
- package/dist/api/resources/insuranceRefunds/client/Client.d.ts +3 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +8 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +29 -24
- package/dist/api/resources/organizationProviders/client/Client.d.ts +3 -0
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +7 -4
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +23 -19
- package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +3 -0
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +8 -5
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +32 -23
- package/dist/api/resources/patientPayments/client/Client.d.ts +3 -0
- package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +8 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +29 -24
- package/dist/api/resources/patientRefunds/client/Client.d.ts +3 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +8 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +29 -24
- package/dist/api/resources/payers/client/Client.d.ts +3 -0
- package/dist/api/resources/payers/resources/v3/client/Client.d.ts +5 -2
- package/dist/api/resources/payers/resources/v3/client/Client.js +9 -7
- package/dist/api/resources/preEncounter/client/Client.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +9 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +31 -25
- package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +10 -7
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +38 -31
- package/dist/api/resources/serviceFacility/client/Client.d.ts +4 -1
- package/dist/api/resources/serviceFacility/client/Client.js +6 -7
- package/dist/api/resources/tasks/client/Client.d.ts +3 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +8 -5
- package/dist/api/resources/tasks/resources/v3/client/Client.js +28 -23
- package/dist/api/resources/writeOffs/client/Client.d.ts +3 -0
- package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +19 -15
- package/dist/core/fetcher/Fetcher.d.ts +3 -0
- package/dist/core/fetcher/Fetcher.js +22 -153
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +48 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +12 -1
- package/dist/core/schemas/Schema.d.ts +7 -4
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
- package/package.json +7 -2
- package/reference.md +7177 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
|
@@ -66,7 +66,7 @@ class V3 {
|
|
|
66
66
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
|
-
* await
|
|
69
|
+
* await client.exports.v3.getExports({
|
|
70
70
|
* startDate: "2023-10-01",
|
|
71
71
|
* endDate: "2023-10-02"
|
|
72
72
|
* })
|
|
@@ -86,12 +86,13 @@ class V3 {
|
|
|
86
86
|
Authorization: yield this._getAuthorizationHeader(),
|
|
87
87
|
"X-Fern-Language": "JavaScript",
|
|
88
88
|
"X-Fern-SDK-Name": "candidhealth",
|
|
89
|
-
"X-Fern-SDK-Version": "0.24.
|
|
89
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
90
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
92
|
},
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
|
+
requestType: "json",
|
|
95
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
96
97
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
97
98
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -99,7 +100,7 @@ class V3 {
|
|
|
99
100
|
if (_response.ok) {
|
|
100
101
|
return {
|
|
101
102
|
ok: true,
|
|
102
|
-
body:
|
|
103
|
+
body: serializers.exports.v3.GetExportsResponse.parseOrThrow(_response.body, {
|
|
103
104
|
unrecognizedObjectKeys: "passthrough",
|
|
104
105
|
allowUnrecognizedUnionMembers: true,
|
|
105
106
|
allowUnrecognizedEnumValues: true,
|
|
@@ -116,7 +117,7 @@ class V3 {
|
|
|
116
117
|
case "ExportDateTooEarlyError":
|
|
117
118
|
return {
|
|
118
119
|
ok: false,
|
|
119
|
-
error:
|
|
120
|
+
error: serializers.exports.v3.getExports.Error.parseOrThrow(_response.error.body, {
|
|
120
121
|
unrecognizedObjectKeys: "passthrough",
|
|
121
122
|
allowUnrecognizedUnionMembers: true,
|
|
122
123
|
allowUnrecognizedEnumValues: true,
|
|
@@ -10,8 +10,11 @@ export declare namespace ExternalPaymentAccountConfig {
|
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -10,8 +10,11 @@ export declare namespace V1 {
|
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -28,7 +31,7 @@ export declare class V1 {
|
|
|
28
31
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
32
|
*
|
|
30
33
|
* @example
|
|
31
|
-
* await
|
|
34
|
+
* await client.externalPaymentAccountConfig.v1.getMulti({
|
|
32
35
|
* limit: 1,
|
|
33
36
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
|
|
34
37
|
* })
|
|
@@ -58,7 +58,7 @@ class V1 {
|
|
|
58
58
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* await
|
|
61
|
+
* await client.externalPaymentAccountConfig.v1.getMulti({
|
|
62
62
|
* limit: 1,
|
|
63
63
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
|
|
64
64
|
* })
|
|
@@ -82,12 +82,13 @@ class V1 {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "candidhealth",
|
|
85
|
-
"X-Fern-SDK-Version": "0.24.
|
|
85
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
|
+
requestType: "json",
|
|
91
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
92
93
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
93
94
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -95,7 +96,7 @@ class V1 {
|
|
|
95
96
|
if (_response.ok) {
|
|
96
97
|
return {
|
|
97
98
|
ok: true,
|
|
98
|
-
body:
|
|
99
|
+
body: serializers.externalPaymentAccountConfig.v1.ExternalPaymentAccountConfigPage.parseOrThrow(_response.body, {
|
|
99
100
|
unrecognizedObjectKeys: "passthrough",
|
|
100
101
|
allowUnrecognizedUnionMembers: true,
|
|
101
102
|
allowUnrecognizedEnumValues: true,
|
|
@@ -10,8 +10,11 @@ export declare namespace FeeSchedules {
|
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -10,8 +10,11 @@ export declare namespace V3 {
|
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -25,7 +28,7 @@ export declare class V3 {
|
|
|
25
28
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
29
|
*
|
|
27
30
|
* @example
|
|
28
|
-
* await
|
|
31
|
+
* await client.feeSchedules.v3.getMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
29
32
|
*/
|
|
30
33
|
getMatch(serviceLineId: CandidApi.ServiceLineId, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.MatchResult | undefined, CandidApi.feeSchedules.v3.getMatch.Error>>;
|
|
31
34
|
/**
|
|
@@ -36,7 +39,7 @@ export declare class V3 {
|
|
|
36
39
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
40
|
*
|
|
38
41
|
* @example
|
|
39
|
-
* await
|
|
42
|
+
* await client.feeSchedules.v3.testMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
40
43
|
*/
|
|
41
44
|
testMatch(serviceLineId: CandidApi.ServiceLineId, rateId: CandidApi.RateId, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.MatchTestResult, CandidApi.feeSchedules.v3.testMatch.Error>>;
|
|
42
45
|
/**
|
|
@@ -46,7 +49,7 @@ export declare class V3 {
|
|
|
46
49
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
50
|
*
|
|
48
51
|
* @example
|
|
49
|
-
* await
|
|
52
|
+
* await client.feeSchedules.v3.getMulti({
|
|
50
53
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
51
54
|
* limit: 1,
|
|
52
55
|
* activeDate: "2023-01-15",
|
|
@@ -69,7 +72,7 @@ export declare class V3 {
|
|
|
69
72
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
73
|
*
|
|
71
74
|
* @example
|
|
72
|
-
* await
|
|
75
|
+
* await client.feeSchedules.v3.getUniqueValuesForDimension({
|
|
73
76
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
74
77
|
* limit: 1,
|
|
75
78
|
* pivotDimension: CandidApi.feeSchedules.v3.DimensionName.PayerUuid,
|
|
@@ -92,7 +95,7 @@ export declare class V3 {
|
|
|
92
95
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
96
|
*
|
|
94
97
|
* @example
|
|
95
|
-
* await
|
|
98
|
+
* await client.feeSchedules.v3.getRateHistory(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
96
99
|
*/
|
|
97
100
|
getRateHistory(rateId: CandidApi.RateId, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.Rate[], CandidApi.feeSchedules.v3.getRateHistory.Error>>;
|
|
98
101
|
/**
|
|
@@ -102,7 +105,7 @@ export declare class V3 {
|
|
|
102
105
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
106
|
*
|
|
104
107
|
* @example
|
|
105
|
-
* await
|
|
108
|
+
* await client.feeSchedules.v3.uploadFeeSchedule({
|
|
106
109
|
* dryRun: true,
|
|
107
110
|
* rates: [{
|
|
108
111
|
* type: "new_rate",
|
|
@@ -134,7 +137,7 @@ export declare class V3 {
|
|
|
134
137
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
138
|
*
|
|
136
139
|
* @example
|
|
137
|
-
* await
|
|
140
|
+
* await client.feeSchedules.v3.deleteRate(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1)
|
|
138
141
|
*/
|
|
139
142
|
deleteRate(rateId: CandidApi.RateId, version: number, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<void, CandidApi.feeSchedules.v3.deleteRate.Error>>;
|
|
140
143
|
/**
|
|
@@ -143,7 +146,7 @@ export declare class V3 {
|
|
|
143
146
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
144
147
|
*
|
|
145
148
|
* @example
|
|
146
|
-
* await
|
|
149
|
+
* await client.feeSchedules.v3.getPayerThresholdsDefault()
|
|
147
150
|
*/
|
|
148
151
|
getPayerThresholdsDefault(requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.PayerThreshold, CandidApi.feeSchedules.v3.getPayerThresholdsDefault.Error>>;
|
|
149
152
|
/**
|
|
@@ -153,7 +156,7 @@ export declare class V3 {
|
|
|
153
156
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
154
157
|
*
|
|
155
158
|
* @example
|
|
156
|
-
* await
|
|
159
|
+
* await client.feeSchedules.v3.getPayerThresholds({
|
|
157
160
|
* payerUuids: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
158
161
|
* })
|
|
159
162
|
*/
|
|
@@ -166,7 +169,7 @@ export declare class V3 {
|
|
|
166
169
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
170
|
*
|
|
168
171
|
* @example
|
|
169
|
-
* await
|
|
172
|
+
* await client.feeSchedules.v3.setPayerThreshold(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
170
173
|
* upperThresholdCents: 1,
|
|
171
174
|
* lowerThresholdCents: 1,
|
|
172
175
|
* disablePaidIncorrectly: true
|
|
@@ -55,24 +55,25 @@ class V3 {
|
|
|
55
55
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await
|
|
58
|
+
* await client.feeSchedules.v3.getMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
59
59
|
*/
|
|
60
60
|
getMatch(serviceLineId, requestOptions) {
|
|
61
61
|
var _a, _b;
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const _response = yield core.fetcher({
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
65
|
-
.candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(
|
|
65
|
+
.candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match`),
|
|
66
66
|
method: "GET",
|
|
67
67
|
headers: {
|
|
68
68
|
Authorization: yield this._getAuthorizationHeader(),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "candidhealth",
|
|
71
|
-
"X-Fern-SDK-Version": "0.24.
|
|
71
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
74
|
},
|
|
75
75
|
contentType: "application/json",
|
|
76
|
+
requestType: "json",
|
|
76
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
78
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
78
79
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -80,7 +81,7 @@ class V3 {
|
|
|
80
81
|
if (_response.ok) {
|
|
81
82
|
return {
|
|
82
83
|
ok: true,
|
|
83
|
-
body:
|
|
84
|
+
body: serializers.feeSchedules.v3.getMatch.Response.parseOrThrow(_response.body, {
|
|
84
85
|
unrecognizedObjectKeys: "passthrough",
|
|
85
86
|
allowUnrecognizedUnionMembers: true,
|
|
86
87
|
allowUnrecognizedEnumValues: true,
|
|
@@ -94,7 +95,7 @@ class V3 {
|
|
|
94
95
|
case "FailedToBuildServiceLineDimensions":
|
|
95
96
|
return {
|
|
96
97
|
ok: false,
|
|
97
|
-
error:
|
|
98
|
+
error: serializers.feeSchedules.v3.getMatch.Error.parseOrThrow(_response.error.body, {
|
|
98
99
|
unrecognizedObjectKeys: "passthrough",
|
|
99
100
|
allowUnrecognizedUnionMembers: true,
|
|
100
101
|
allowUnrecognizedEnumValues: true,
|
|
@@ -117,24 +118,25 @@ class V3 {
|
|
|
117
118
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
119
|
*
|
|
119
120
|
* @example
|
|
120
|
-
* await
|
|
121
|
+
* await client.feeSchedules.v3.testMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
121
122
|
*/
|
|
122
123
|
testMatch(serviceLineId, rateId, requestOptions) {
|
|
123
124
|
var _a, _b;
|
|
124
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
126
|
const _response = yield core.fetcher({
|
|
126
127
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
127
|
-
.candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(
|
|
128
|
+
.candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}`),
|
|
128
129
|
method: "GET",
|
|
129
130
|
headers: {
|
|
130
131
|
Authorization: yield this._getAuthorizationHeader(),
|
|
131
132
|
"X-Fern-Language": "JavaScript",
|
|
132
133
|
"X-Fern-SDK-Name": "candidhealth",
|
|
133
|
-
"X-Fern-SDK-Version": "0.24.
|
|
134
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
134
135
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
135
136
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
136
137
|
},
|
|
137
138
|
contentType: "application/json",
|
|
139
|
+
requestType: "json",
|
|
138
140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
139
141
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
140
142
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -142,7 +144,7 @@ class V3 {
|
|
|
142
144
|
if (_response.ok) {
|
|
143
145
|
return {
|
|
144
146
|
ok: true,
|
|
145
|
-
body:
|
|
147
|
+
body: serializers.feeSchedules.v3.MatchTestResult.parseOrThrow(_response.body, {
|
|
146
148
|
unrecognizedObjectKeys: "passthrough",
|
|
147
149
|
allowUnrecognizedUnionMembers: true,
|
|
148
150
|
allowUnrecognizedEnumValues: true,
|
|
@@ -156,7 +158,7 @@ class V3 {
|
|
|
156
158
|
case "FailedToBuildServiceLineDimensions":
|
|
157
159
|
return {
|
|
158
160
|
ok: false,
|
|
159
|
-
error:
|
|
161
|
+
error: serializers.feeSchedules.v3.testMatch.Error.parseOrThrow(_response.error.body, {
|
|
160
162
|
unrecognizedObjectKeys: "passthrough",
|
|
161
163
|
allowUnrecognizedUnionMembers: true,
|
|
162
164
|
allowUnrecognizedEnumValues: true,
|
|
@@ -178,7 +180,7 @@ class V3 {
|
|
|
178
180
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
181
|
*
|
|
180
182
|
* @example
|
|
181
|
-
* await
|
|
183
|
+
* await client.feeSchedules.v3.getMulti({
|
|
182
184
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
183
185
|
* limit: 1,
|
|
184
186
|
* activeDate: "2023-01-15",
|
|
@@ -272,12 +274,13 @@ class V3 {
|
|
|
272
274
|
Authorization: yield this._getAuthorizationHeader(),
|
|
273
275
|
"X-Fern-Language": "JavaScript",
|
|
274
276
|
"X-Fern-SDK-Name": "candidhealth",
|
|
275
|
-
"X-Fern-SDK-Version": "0.24.
|
|
277
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
276
278
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
277
279
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
278
280
|
},
|
|
279
281
|
contentType: "application/json",
|
|
280
282
|
queryParameters: _queryParams,
|
|
283
|
+
requestType: "json",
|
|
281
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
282
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
283
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -285,7 +288,7 @@ class V3 {
|
|
|
285
288
|
if (_response.ok) {
|
|
286
289
|
return {
|
|
287
290
|
ok: true,
|
|
288
|
-
body:
|
|
291
|
+
body: serializers.feeSchedules.v3.RatesPage.parseOrThrow(_response.body, {
|
|
289
292
|
unrecognizedObjectKeys: "passthrough",
|
|
290
293
|
allowUnrecognizedUnionMembers: true,
|
|
291
294
|
allowUnrecognizedEnumValues: true,
|
|
@@ -306,7 +309,7 @@ class V3 {
|
|
|
306
309
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
307
310
|
*
|
|
308
311
|
* @example
|
|
309
|
-
* await
|
|
312
|
+
* await client.feeSchedules.v3.getUniqueValuesForDimension({
|
|
310
313
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
311
314
|
* limit: 1,
|
|
312
315
|
* pivotDimension: CandidApi.feeSchedules.v3.DimensionName.PayerUuid,
|
|
@@ -398,12 +401,13 @@ class V3 {
|
|
|
398
401
|
Authorization: yield this._getAuthorizationHeader(),
|
|
399
402
|
"X-Fern-Language": "JavaScript",
|
|
400
403
|
"X-Fern-SDK-Name": "candidhealth",
|
|
401
|
-
"X-Fern-SDK-Version": "0.24.
|
|
404
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
402
405
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
403
406
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
404
407
|
},
|
|
405
408
|
contentType: "application/json",
|
|
406
409
|
queryParameters: _queryParams,
|
|
410
|
+
requestType: "json",
|
|
407
411
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
408
412
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
409
413
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -411,7 +415,7 @@ class V3 {
|
|
|
411
415
|
if (_response.ok) {
|
|
412
416
|
return {
|
|
413
417
|
ok: true,
|
|
414
|
-
body:
|
|
418
|
+
body: serializers.feeSchedules.v3.DimensionsPage.parseOrThrow(_response.body, {
|
|
415
419
|
unrecognizedObjectKeys: "passthrough",
|
|
416
420
|
allowUnrecognizedUnionMembers: true,
|
|
417
421
|
allowUnrecognizedEnumValues: true,
|
|
@@ -432,24 +436,25 @@ class V3 {
|
|
|
432
436
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
437
|
*
|
|
434
438
|
* @example
|
|
435
|
-
* await
|
|
439
|
+
* await client.feeSchedules.v3.getRateHistory(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
436
440
|
*/
|
|
437
441
|
getRateHistory(rateId, requestOptions) {
|
|
438
442
|
var _a, _b;
|
|
439
443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
440
444
|
const _response = yield core.fetcher({
|
|
441
445
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
442
|
-
.candidApi, `/api/fee-schedules/v3/${encodeURIComponent(
|
|
446
|
+
.candidApi, `/api/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/history`),
|
|
443
447
|
method: "GET",
|
|
444
448
|
headers: {
|
|
445
449
|
Authorization: yield this._getAuthorizationHeader(),
|
|
446
450
|
"X-Fern-Language": "JavaScript",
|
|
447
451
|
"X-Fern-SDK-Name": "candidhealth",
|
|
448
|
-
"X-Fern-SDK-Version": "0.24.
|
|
452
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
449
453
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
450
454
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
451
455
|
},
|
|
452
456
|
contentType: "application/json",
|
|
457
|
+
requestType: "json",
|
|
453
458
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
454
459
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
455
460
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -457,7 +462,7 @@ class V3 {
|
|
|
457
462
|
if (_response.ok) {
|
|
458
463
|
return {
|
|
459
464
|
ok: true,
|
|
460
|
-
body:
|
|
465
|
+
body: serializers.feeSchedules.v3.getRateHistory.Response.parseOrThrow(_response.body, {
|
|
461
466
|
unrecognizedObjectKeys: "passthrough",
|
|
462
467
|
allowUnrecognizedUnionMembers: true,
|
|
463
468
|
allowUnrecognizedEnumValues: true,
|
|
@@ -470,7 +475,7 @@ class V3 {
|
|
|
470
475
|
case "EntityNotFoundError":
|
|
471
476
|
return {
|
|
472
477
|
ok: false,
|
|
473
|
-
error:
|
|
478
|
+
error: serializers.feeSchedules.v3.getRateHistory.Error.parseOrThrow(_response.error.body, {
|
|
474
479
|
unrecognizedObjectKeys: "passthrough",
|
|
475
480
|
allowUnrecognizedUnionMembers: true,
|
|
476
481
|
allowUnrecognizedEnumValues: true,
|
|
@@ -492,7 +497,7 @@ class V3 {
|
|
|
492
497
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
493
498
|
*
|
|
494
499
|
* @example
|
|
495
|
-
* await
|
|
500
|
+
* await client.feeSchedules.v3.uploadFeeSchedule({
|
|
496
501
|
* dryRun: true,
|
|
497
502
|
* rates: [{
|
|
498
503
|
* type: "new_rate",
|
|
@@ -526,12 +531,13 @@ class V3 {
|
|
|
526
531
|
Authorization: yield this._getAuthorizationHeader(),
|
|
527
532
|
"X-Fern-Language": "JavaScript",
|
|
528
533
|
"X-Fern-SDK-Name": "candidhealth",
|
|
529
|
-
"X-Fern-SDK-Version": "0.24.
|
|
534
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
530
535
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
531
536
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
532
537
|
},
|
|
533
538
|
contentType: "application/json",
|
|
534
|
-
|
|
539
|
+
requestType: "json",
|
|
540
|
+
body: serializers.feeSchedules.v3.FeeScheduleUploadRequest.jsonOrThrow(request, {
|
|
535
541
|
unrecognizedObjectKeys: "strip",
|
|
536
542
|
}),
|
|
537
543
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -541,7 +547,7 @@ class V3 {
|
|
|
541
547
|
if (_response.ok) {
|
|
542
548
|
return {
|
|
543
549
|
ok: true,
|
|
544
|
-
body:
|
|
550
|
+
body: serializers.feeSchedules.v3.uploadFeeSchedule.Response.parseOrThrow(_response.body, {
|
|
545
551
|
unrecognizedObjectKeys: "passthrough",
|
|
546
552
|
allowUnrecognizedUnionMembers: true,
|
|
547
553
|
allowUnrecognizedEnumValues: true,
|
|
@@ -554,7 +560,7 @@ class V3 {
|
|
|
554
560
|
case "FeeScheduleValidationHttpError":
|
|
555
561
|
return {
|
|
556
562
|
ok: false,
|
|
557
|
-
error:
|
|
563
|
+
error: serializers.feeSchedules.v3.uploadFeeSchedule.Error.parseOrThrow(_response.error.body, {
|
|
558
564
|
unrecognizedObjectKeys: "passthrough",
|
|
559
565
|
allowUnrecognizedUnionMembers: true,
|
|
560
566
|
allowUnrecognizedEnumValues: true,
|
|
@@ -577,24 +583,25 @@ class V3 {
|
|
|
577
583
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
578
584
|
*
|
|
579
585
|
* @example
|
|
580
|
-
* await
|
|
586
|
+
* await client.feeSchedules.v3.deleteRate(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1)
|
|
581
587
|
*/
|
|
582
588
|
deleteRate(rateId, version, requestOptions) {
|
|
583
589
|
var _a, _b;
|
|
584
590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
585
591
|
const _response = yield core.fetcher({
|
|
586
592
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
587
|
-
.candidApi, `/api/fee-schedules/v3/${encodeURIComponent(
|
|
593
|
+
.candidApi, `/api/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/${encodeURIComponent(version)}`),
|
|
588
594
|
method: "DELETE",
|
|
589
595
|
headers: {
|
|
590
596
|
Authorization: yield this._getAuthorizationHeader(),
|
|
591
597
|
"X-Fern-Language": "JavaScript",
|
|
592
598
|
"X-Fern-SDK-Name": "candidhealth",
|
|
593
|
-
"X-Fern-SDK-Version": "0.24.
|
|
599
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
594
600
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
595
601
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
596
602
|
},
|
|
597
603
|
contentType: "application/json",
|
|
604
|
+
requestType: "json",
|
|
598
605
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
599
606
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
600
607
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -611,7 +618,7 @@ class V3 {
|
|
|
611
618
|
case "EntityConflictError":
|
|
612
619
|
return {
|
|
613
620
|
ok: false,
|
|
614
|
-
error:
|
|
621
|
+
error: serializers.feeSchedules.v3.deleteRate.Error.parseOrThrow(_response.error.body, {
|
|
615
622
|
unrecognizedObjectKeys: "passthrough",
|
|
616
623
|
allowUnrecognizedUnionMembers: true,
|
|
617
624
|
allowUnrecognizedEnumValues: true,
|
|
@@ -632,7 +639,7 @@ class V3 {
|
|
|
632
639
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
633
640
|
*
|
|
634
641
|
* @example
|
|
635
|
-
* await
|
|
642
|
+
* await client.feeSchedules.v3.getPayerThresholdsDefault()
|
|
636
643
|
*/
|
|
637
644
|
getPayerThresholdsDefault(requestOptions) {
|
|
638
645
|
var _a;
|
|
@@ -645,11 +652,12 @@ class V3 {
|
|
|
645
652
|
Authorization: yield this._getAuthorizationHeader(),
|
|
646
653
|
"X-Fern-Language": "JavaScript",
|
|
647
654
|
"X-Fern-SDK-Name": "candidhealth",
|
|
648
|
-
"X-Fern-SDK-Version": "0.24.
|
|
655
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
649
656
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
650
657
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
651
658
|
},
|
|
652
659
|
contentType: "application/json",
|
|
660
|
+
requestType: "json",
|
|
653
661
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
654
662
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
655
663
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -657,7 +665,7 @@ class V3 {
|
|
|
657
665
|
if (_response.ok) {
|
|
658
666
|
return {
|
|
659
667
|
ok: true,
|
|
660
|
-
body:
|
|
668
|
+
body: serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
|
|
661
669
|
unrecognizedObjectKeys: "passthrough",
|
|
662
670
|
allowUnrecognizedUnionMembers: true,
|
|
663
671
|
allowUnrecognizedEnumValues: true,
|
|
@@ -678,7 +686,7 @@ class V3 {
|
|
|
678
686
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
679
687
|
*
|
|
680
688
|
* @example
|
|
681
|
-
* await
|
|
689
|
+
* await client.feeSchedules.v3.getPayerThresholds({
|
|
682
690
|
* payerUuids: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
683
691
|
* })
|
|
684
692
|
*/
|
|
@@ -701,12 +709,13 @@ class V3 {
|
|
|
701
709
|
Authorization: yield this._getAuthorizationHeader(),
|
|
702
710
|
"X-Fern-Language": "JavaScript",
|
|
703
711
|
"X-Fern-SDK-Name": "candidhealth",
|
|
704
|
-
"X-Fern-SDK-Version": "0.24.
|
|
712
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
705
713
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
706
714
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
707
715
|
},
|
|
708
716
|
contentType: "application/json",
|
|
709
717
|
queryParameters: _queryParams,
|
|
718
|
+
requestType: "json",
|
|
710
719
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
711
720
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
712
721
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -714,7 +723,7 @@ class V3 {
|
|
|
714
723
|
if (_response.ok) {
|
|
715
724
|
return {
|
|
716
725
|
ok: true,
|
|
717
|
-
body:
|
|
726
|
+
body: serializers.feeSchedules.v3.PayerThresholdsPage.parseOrThrow(_response.body, {
|
|
718
727
|
unrecognizedObjectKeys: "passthrough",
|
|
719
728
|
allowUnrecognizedUnionMembers: true,
|
|
720
729
|
allowUnrecognizedEnumValues: true,
|
|
@@ -736,7 +745,7 @@ class V3 {
|
|
|
736
745
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
737
746
|
*
|
|
738
747
|
* @example
|
|
739
|
-
* await
|
|
748
|
+
* await client.feeSchedules.v3.setPayerThreshold(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
740
749
|
* upperThresholdCents: 1,
|
|
741
750
|
* lowerThresholdCents: 1,
|
|
742
751
|
* disablePaidIncorrectly: true
|
|
@@ -747,20 +756,19 @@ class V3 {
|
|
|
747
756
|
return __awaiter(this, void 0, void 0, function* () {
|
|
748
757
|
const _response = yield core.fetcher({
|
|
749
758
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
750
|
-
.candidApi, `/api/fee-schedules/v3/payer-threshold/${encodeURIComponent(
|
|
759
|
+
.candidApi, `/api/fee-schedules/v3/payer-threshold/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
|
|
751
760
|
method: "PUT",
|
|
752
761
|
headers: {
|
|
753
762
|
Authorization: yield this._getAuthorizationHeader(),
|
|
754
763
|
"X-Fern-Language": "JavaScript",
|
|
755
764
|
"X-Fern-SDK-Name": "candidhealth",
|
|
756
|
-
"X-Fern-SDK-Version": "0.24.
|
|
765
|
+
"X-Fern-SDK-Version": "0.24.1",
|
|
757
766
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
758
767
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
759
768
|
},
|
|
760
769
|
contentType: "application/json",
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}),
|
|
770
|
+
requestType: "json",
|
|
771
|
+
body: serializers.feeSchedules.v3.PayerThreshold.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
764
772
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
765
773
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
766
774
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -768,7 +776,7 @@ class V3 {
|
|
|
768
776
|
if (_response.ok) {
|
|
769
777
|
return {
|
|
770
778
|
ok: true,
|
|
771
|
-
body:
|
|
779
|
+
body: serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
|
|
772
780
|
unrecognizedObjectKeys: "passthrough",
|
|
773
781
|
allowUnrecognizedUnionMembers: true,
|
|
774
782
|
allowUnrecognizedEnumValues: true,
|
|
@@ -781,7 +789,7 @@ class V3 {
|
|
|
781
789
|
case "EntityNotFoundError":
|
|
782
790
|
return {
|
|
783
791
|
ok: false,
|
|
784
|
-
error:
|
|
792
|
+
error: serializers.feeSchedules.v3.setPayerThreshold.Error.parseOrThrow(_response.error.body, {
|
|
785
793
|
unrecognizedObjectKeys: "passthrough",
|
|
786
794
|
allowUnrecognizedUnionMembers: true,
|
|
787
795
|
allowUnrecognizedEnumValues: true,
|
|
@@ -10,8 +10,11 @@ export declare namespace Guarantor {
|
|
|
10
10
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
15
18
|
abortSignal?: AbortSignal;
|
|
16
19
|
}
|
|
17
20
|
}
|