candidhealth 0.24.0-2a6d412 → 0.24.2
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
|
@@ -53,7 +53,7 @@ class V4 {
|
|
|
53
53
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await
|
|
56
|
+
* await client.encounters.v4.getAll({
|
|
57
57
|
* limit: 100,
|
|
58
58
|
* claimStatus: CandidApi.ClaimStatus.BillerReceived,
|
|
59
59
|
* sort: CandidApi.encounters.v4.EncounterSortOptions.CreatedAtAsc,
|
|
@@ -132,12 +132,13 @@ class V4 {
|
|
|
132
132
|
Authorization: yield this._getAuthorizationHeader(),
|
|
133
133
|
"X-Fern-Language": "JavaScript",
|
|
134
134
|
"X-Fern-SDK-Name": "candidhealth",
|
|
135
|
-
"X-Fern-SDK-Version": "0.24.
|
|
135
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
136
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
137
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
138
138
|
},
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
queryParameters: _queryParams,
|
|
141
|
+
requestType: "json",
|
|
141
142
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
142
143
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
143
144
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -145,7 +146,7 @@ class V4 {
|
|
|
145
146
|
if (_response.ok) {
|
|
146
147
|
return {
|
|
147
148
|
ok: true,
|
|
148
|
-
body:
|
|
149
|
+
body: serializers.encounters.v4.EncounterPage.parseOrThrow(_response.body, {
|
|
149
150
|
unrecognizedObjectKeys: "passthrough",
|
|
150
151
|
allowUnrecognizedUnionMembers: true,
|
|
151
152
|
allowUnrecognizedEnumValues: true,
|
|
@@ -164,24 +165,25 @@ class V4 {
|
|
|
164
165
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
165
166
|
*
|
|
166
167
|
* @example
|
|
167
|
-
* await
|
|
168
|
+
* await client.encounters.v4.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
168
169
|
*/
|
|
169
170
|
get(encounterId, requestOptions) {
|
|
170
171
|
var _a;
|
|
171
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
173
|
const _response = yield core.fetcher({
|
|
173
174
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
174
|
-
.candidApi, `/api/encounters/v4/${encodeURIComponent(
|
|
175
|
+
.candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
175
176
|
method: "GET",
|
|
176
177
|
headers: {
|
|
177
178
|
Authorization: yield this._getAuthorizationHeader(),
|
|
178
179
|
"X-Fern-Language": "JavaScript",
|
|
179
180
|
"X-Fern-SDK-Name": "candidhealth",
|
|
180
|
-
"X-Fern-SDK-Version": "0.24.
|
|
181
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
181
182
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
182
183
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
183
184
|
},
|
|
184
185
|
contentType: "application/json",
|
|
186
|
+
requestType: "json",
|
|
185
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
186
188
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
187
189
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -189,7 +191,7 @@ class V4 {
|
|
|
189
191
|
if (_response.ok) {
|
|
190
192
|
return {
|
|
191
193
|
ok: true,
|
|
192
|
-
body:
|
|
194
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
193
195
|
unrecognizedObjectKeys: "passthrough",
|
|
194
196
|
allowUnrecognizedUnionMembers: true,
|
|
195
197
|
allowUnrecognizedEnumValues: true,
|
|
@@ -208,7 +210,7 @@ class V4 {
|
|
|
208
210
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
211
|
*
|
|
210
212
|
* @example
|
|
211
|
-
* await
|
|
213
|
+
* await client.encounters.v4.create({
|
|
212
214
|
* dateOfService: "2023-01-15",
|
|
213
215
|
* endDateOfService: "2023-01-15",
|
|
214
216
|
* patient: {
|
|
@@ -310,21 +312,6 @@ class V4 {
|
|
|
310
312
|
* lastName: "string",
|
|
311
313
|
* organizationName: "string"
|
|
312
314
|
* },
|
|
313
|
-
* orderingProvider: {
|
|
314
|
-
* npi: "string",
|
|
315
|
-
* taxonomyCode: "string",
|
|
316
|
-
* address: {
|
|
317
|
-
* address1: "123 Main St",
|
|
318
|
-
* address2: "Apt 1",
|
|
319
|
-
* city: "New York",
|
|
320
|
-
* state: CandidApi.State.Ny,
|
|
321
|
-
* zipCode: "10001",
|
|
322
|
-
* zipPlusFourCode: "1234"
|
|
323
|
-
* },
|
|
324
|
-
* firstName: "string",
|
|
325
|
-
* lastName: "string",
|
|
326
|
-
* organizationName: "string"
|
|
327
|
-
* },
|
|
328
315
|
* serviceFacility: {
|
|
329
316
|
* organizationName: "string",
|
|
330
317
|
* npi: "string",
|
|
@@ -604,14 +591,13 @@ class V4 {
|
|
|
604
591
|
Authorization: yield this._getAuthorizationHeader(),
|
|
605
592
|
"X-Fern-Language": "JavaScript",
|
|
606
593
|
"X-Fern-SDK-Name": "candidhealth",
|
|
607
|
-
"X-Fern-SDK-Version": "0.24.
|
|
594
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
608
595
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
609
596
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
610
597
|
},
|
|
611
598
|
contentType: "application/json",
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
}),
|
|
599
|
+
requestType: "json",
|
|
600
|
+
body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
615
601
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
616
602
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
617
603
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -619,7 +605,7 @@ class V4 {
|
|
|
619
605
|
if (_response.ok) {
|
|
620
606
|
return {
|
|
621
607
|
ok: true,
|
|
622
|
-
body:
|
|
608
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
623
609
|
unrecognizedObjectKeys: "passthrough",
|
|
624
610
|
allowUnrecognizedUnionMembers: true,
|
|
625
611
|
allowUnrecognizedEnumValues: true,
|
|
@@ -637,7 +623,7 @@ class V4 {
|
|
|
637
623
|
case "CashPayPayerError":
|
|
638
624
|
return {
|
|
639
625
|
ok: false,
|
|
640
|
-
error:
|
|
626
|
+
error: serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
|
|
641
627
|
unrecognizedObjectKeys: "passthrough",
|
|
642
628
|
allowUnrecognizedUnionMembers: true,
|
|
643
629
|
allowUnrecognizedEnumValues: true,
|
|
@@ -658,7 +644,7 @@ class V4 {
|
|
|
658
644
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
659
645
|
*
|
|
660
646
|
* @example
|
|
661
|
-
* await
|
|
647
|
+
* await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
662
648
|
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
663
649
|
* externalId: CandidApi.EncounterExternalId("string"),
|
|
664
650
|
* dateOfService: "2023-01-15",
|
|
@@ -758,20 +744,19 @@ class V4 {
|
|
|
758
744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
759
745
|
const _response = yield core.fetcher({
|
|
760
746
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
761
|
-
.candidApi, `/api/encounters/v4/${encodeURIComponent(
|
|
747
|
+
.candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
|
|
762
748
|
method: "PATCH",
|
|
763
749
|
headers: {
|
|
764
750
|
Authorization: yield this._getAuthorizationHeader(),
|
|
765
751
|
"X-Fern-Language": "JavaScript",
|
|
766
752
|
"X-Fern-SDK-Name": "candidhealth",
|
|
767
|
-
"X-Fern-SDK-Version": "0.24.
|
|
753
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
768
754
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
769
755
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
770
756
|
},
|
|
771
757
|
contentType: "application/json",
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}),
|
|
758
|
+
requestType: "json",
|
|
759
|
+
body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
775
760
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
776
761
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
777
762
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -779,7 +764,7 @@ class V4 {
|
|
|
779
764
|
if (_response.ok) {
|
|
780
765
|
return {
|
|
781
766
|
ok: true,
|
|
782
|
-
body:
|
|
767
|
+
body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
|
|
783
768
|
unrecognizedObjectKeys: "passthrough",
|
|
784
769
|
allowUnrecognizedUnionMembers: true,
|
|
785
770
|
allowUnrecognizedEnumValues: true,
|
|
@@ -795,7 +780,7 @@ class V4 {
|
|
|
795
780
|
case "HttpRequestValidationsError":
|
|
796
781
|
return {
|
|
797
782
|
ok: false,
|
|
798
|
-
error:
|
|
783
|
+
error: serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
|
|
799
784
|
unrecognizedObjectKeys: "passthrough",
|
|
800
785
|
allowUnrecognizedUnionMembers: true,
|
|
801
786
|
allowUnrecognizedEnumValues: true,
|
|
@@ -106,21 +106,6 @@ import * as CandidApi from "../../../../../../index";
|
|
|
106
106
|
* lastName: "string",
|
|
107
107
|
* organizationName: "string"
|
|
108
108
|
* },
|
|
109
|
-
* orderingProvider: {
|
|
110
|
-
* npi: "string",
|
|
111
|
-
* taxonomyCode: "string",
|
|
112
|
-
* address: {
|
|
113
|
-
* address1: "123 Main St",
|
|
114
|
-
* address2: "Apt 1",
|
|
115
|
-
* city: "New York",
|
|
116
|
-
* state: CandidApi.State.Ny,
|
|
117
|
-
* zipCode: "10001",
|
|
118
|
-
* zipPlusFourCode: "1234"
|
|
119
|
-
* },
|
|
120
|
-
* firstName: "string",
|
|
121
|
-
* lastName: "string",
|
|
122
|
-
* organizationName: "string"
|
|
123
|
-
* },
|
|
124
109
|
* serviceFacility: {
|
|
125
110
|
* organizationName: "string",
|
|
126
111
|
* npi: "string",
|
|
@@ -445,12 +430,6 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
|
445
430
|
*
|
|
446
431
|
*/
|
|
447
432
|
supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProvider;
|
|
448
|
-
/**
|
|
449
|
-
* Required when the service or supply was ordered by a provider who is different than the rendering provider for this service line.
|
|
450
|
-
* If not required by this implementation guide, do not send.
|
|
451
|
-
*
|
|
452
|
-
*/
|
|
453
|
-
orderingProvider?: CandidApi.encounterProviders.v2.OrderingProvider;
|
|
454
433
|
/**
|
|
455
434
|
* Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process.
|
|
456
435
|
*
|
|
@@ -414,7 +414,6 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
|
414
414
|
referringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
415
415
|
initialReferringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
416
416
|
supervisingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
417
|
-
orderingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
|
|
418
417
|
/** Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process. */
|
|
419
418
|
serviceFacility: CandidApi.EncounterServiceFacility;
|
|
420
419
|
/**
|
|
@@ -11,8 +11,11 @@ export declare namespace ExpectedNetworkStatus {
|
|
|
11
11
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
12
|
}
|
|
13
13
|
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
15
|
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
15
17
|
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
16
19
|
abortSignal?: AbortSignal;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -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
|
}
|
|
@@ -25,7 +28,7 @@ export declare class V1 {
|
|
|
25
28
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
29
|
*
|
|
27
30
|
* @example
|
|
28
|
-
* await
|
|
31
|
+
* await client.expectedNetworkStatus.v1.compute({
|
|
29
32
|
* externalPatientId: "string",
|
|
30
33
|
* subscriberPayerId: "string",
|
|
31
34
|
* subscriberPayerName: "string",
|
|
@@ -55,7 +55,7 @@ class V1 {
|
|
|
55
55
|
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await
|
|
58
|
+
* await client.expectedNetworkStatus.v1.compute({
|
|
59
59
|
* externalPatientId: "string",
|
|
60
60
|
* subscriberPayerId: "string",
|
|
61
61
|
* subscriberPayerName: "string",
|
|
@@ -79,12 +79,13 @@ class V1 {
|
|
|
79
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "candidhealth",
|
|
82
|
-
"X-Fern-SDK-Version": "0.24.
|
|
82
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
83
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
85
|
},
|
|
86
86
|
contentType: "application/json",
|
|
87
|
-
|
|
87
|
+
requestType: "json",
|
|
88
|
+
body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
88
89
|
unrecognizedObjectKeys: "strip",
|
|
89
90
|
}),
|
|
90
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -94,7 +95,7 @@ class V1 {
|
|
|
94
95
|
if (_response.ok) {
|
|
95
96
|
return {
|
|
96
97
|
ok: true,
|
|
97
|
-
body:
|
|
98
|
+
body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusResponse.parseOrThrow(_response.body, {
|
|
98
99
|
unrecognizedObjectKeys: "passthrough",
|
|
99
100
|
allowUnrecognizedUnionMembers: true,
|
|
100
101
|
allowUnrecognizedEnumValues: true,
|
|
@@ -10,8 +10,11 @@ export declare namespace V2 {
|
|
|
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 V2 {
|
|
|
28
31
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
32
|
*
|
|
30
33
|
* @example
|
|
31
|
-
* await
|
|
34
|
+
* await client.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
32
35
|
* serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
|
|
33
36
|
* placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
34
37
|
* subscriberInformation: {},
|
|
@@ -55,7 +58,7 @@ export declare class V2 {
|
|
|
55
58
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
59
|
*
|
|
57
60
|
* @example
|
|
58
|
-
* await
|
|
61
|
+
* await client.expectedNetworkStatus.v2.computeAllInNetworkProviders({
|
|
59
62
|
* serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
|
|
60
63
|
* placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
61
64
|
* subscriberInformation: {},
|
|
@@ -58,7 +58,7 @@ class V2 {
|
|
|
58
58
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* await
|
|
61
|
+
* await client.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
62
62
|
* serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
|
|
63
63
|
* placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
64
64
|
* subscriberInformation: {},
|
|
@@ -80,18 +80,19 @@ class V2 {
|
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
const _response = yield core.fetcher({
|
|
82
82
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
83
|
-
.candidApi, `/api/expected-network-status/v2/compute/${encodeURIComponent(
|
|
83
|
+
.candidApi, `/api/expected-network-status/v2/compute/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(renderingProviderId))}`),
|
|
84
84
|
method: "POST",
|
|
85
85
|
headers: {
|
|
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.2",
|
|
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
|
+
requestType: "json",
|
|
95
|
+
body: serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
|
|
95
96
|
unrecognizedObjectKeys: "strip",
|
|
96
97
|
}),
|
|
97
98
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -101,7 +102,7 @@ class V2 {
|
|
|
101
102
|
if (_response.ok) {
|
|
102
103
|
return {
|
|
103
104
|
ok: true,
|
|
104
|
-
body:
|
|
105
|
+
body: serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusResponseV2.parseOrThrow(_response.body, {
|
|
105
106
|
unrecognizedObjectKeys: "passthrough",
|
|
106
107
|
allowUnrecognizedUnionMembers: true,
|
|
107
108
|
allowUnrecognizedEnumValues: true,
|
|
@@ -115,7 +116,7 @@ class V2 {
|
|
|
115
116
|
case "OrganizationNotAuthorizedError":
|
|
116
117
|
return {
|
|
117
118
|
ok: false,
|
|
118
|
-
error:
|
|
119
|
+
error: serializers.expectedNetworkStatus.v2.computeForRenderingProvider.Error.parseOrThrow(_response.error
|
|
119
120
|
.body, {
|
|
120
121
|
unrecognizedObjectKeys: "passthrough",
|
|
121
122
|
allowUnrecognizedUnionMembers: true,
|
|
@@ -140,7 +141,7 @@ class V2 {
|
|
|
140
141
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
142
|
*
|
|
142
143
|
* @example
|
|
143
|
-
* await
|
|
144
|
+
* await client.expectedNetworkStatus.v2.computeAllInNetworkProviders({
|
|
144
145
|
* serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
|
|
145
146
|
* placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
146
147
|
* subscriberInformation: {},
|
|
@@ -168,12 +169,13 @@ class V2 {
|
|
|
168
169
|
Authorization: yield this._getAuthorizationHeader(),
|
|
169
170
|
"X-Fern-Language": "JavaScript",
|
|
170
171
|
"X-Fern-SDK-Name": "candidhealth",
|
|
171
|
-
"X-Fern-SDK-Version": "0.24.
|
|
172
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
172
173
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
173
174
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
174
175
|
},
|
|
175
176
|
contentType: "application/json",
|
|
176
|
-
|
|
177
|
+
requestType: "json",
|
|
178
|
+
body: serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
|
|
177
179
|
unrecognizedObjectKeys: "strip",
|
|
178
180
|
}),
|
|
179
181
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -183,7 +185,7 @@ class V2 {
|
|
|
183
185
|
if (_response.ok) {
|
|
184
186
|
return {
|
|
185
187
|
ok: true,
|
|
186
|
-
body:
|
|
188
|
+
body: serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersResponse.parseOrThrow(_response.body, {
|
|
187
189
|
unrecognizedObjectKeys: "passthrough",
|
|
188
190
|
allowUnrecognizedUnionMembers: true,
|
|
189
191
|
allowUnrecognizedEnumValues: true,
|
|
@@ -197,7 +199,7 @@ class V2 {
|
|
|
197
199
|
case "OrganizationNotAuthorizedError":
|
|
198
200
|
return {
|
|
199
201
|
ok: false,
|
|
200
|
-
error:
|
|
202
|
+
error: serializers.expectedNetworkStatus.v2.computeAllInNetworkProviders.Error.parseOrThrow(_response.error
|
|
201
203
|
.body, {
|
|
202
204
|
unrecognizedObjectKeys: "passthrough",
|
|
203
205
|
allowUnrecognizedUnionMembers: true,
|
|
@@ -10,8 +10,11 @@ export declare namespace Exports {
|
|
|
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
|
}
|
|
@@ -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.exports.v3.getExports({
|
|
40
43
|
* startDate: "2023-10-01",
|
|
41
44
|
* endDate: "2023-10-02"
|
|
42
45
|
* })
|
|
@@ -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.2",
|
|
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.2",
|
|
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
|
}
|