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,24 +53,25 @@ class V3 {
|
|
|
53
53
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await
|
|
56
|
+
* await client.organizationProviders.v3.get(CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"))
|
|
57
57
|
*/
|
|
58
58
|
get(organizationProviderId, requestOptions) {
|
|
59
59
|
var _a, _b;
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const _response = yield core.fetcher({
|
|
62
62
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
63
|
-
.candidApi, `/api/organization-providers/v3/${encodeURIComponent(
|
|
63
|
+
.candidApi, `/api/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
|
|
64
64
|
method: "GET",
|
|
65
65
|
headers: {
|
|
66
66
|
Authorization: yield this._getAuthorizationHeader(),
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "candidhealth",
|
|
69
|
-
"X-Fern-SDK-Version": "0.24.
|
|
69
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
|
+
requestType: "json",
|
|
74
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
75
76
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
76
77
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -78,7 +79,7 @@ class V3 {
|
|
|
78
79
|
if (_response.ok) {
|
|
79
80
|
return {
|
|
80
81
|
ok: true,
|
|
81
|
-
body:
|
|
82
|
+
body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
|
|
82
83
|
unrecognizedObjectKeys: "passthrough",
|
|
83
84
|
allowUnrecognizedUnionMembers: true,
|
|
84
85
|
allowUnrecognizedEnumValues: true,
|
|
@@ -91,7 +92,7 @@ class V3 {
|
|
|
91
92
|
case "EntityNotFoundError":
|
|
92
93
|
return {
|
|
93
94
|
ok: false,
|
|
94
|
-
error:
|
|
95
|
+
error: serializers.organizationProviders.v3.get.Error.parseOrThrow(_response.error.body, {
|
|
95
96
|
unrecognizedObjectKeys: "passthrough",
|
|
96
97
|
allowUnrecognizedUnionMembers: true,
|
|
97
98
|
allowUnrecognizedEnumValues: true,
|
|
@@ -111,7 +112,7 @@ class V3 {
|
|
|
111
112
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
113
|
*
|
|
113
114
|
* @example
|
|
114
|
-
* await
|
|
115
|
+
* await client.organizationProviders.v3.getMulti({
|
|
115
116
|
* limit: 100,
|
|
116
117
|
* searchTerm: "john",
|
|
117
118
|
* npi: "1234567890",
|
|
@@ -155,12 +156,13 @@ class V3 {
|
|
|
155
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
156
157
|
"X-Fern-Language": "JavaScript",
|
|
157
158
|
"X-Fern-SDK-Name": "candidhealth",
|
|
158
|
-
"X-Fern-SDK-Version": "0.24.
|
|
159
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
159
160
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
160
161
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
161
162
|
},
|
|
162
163
|
contentType: "application/json",
|
|
163
164
|
queryParameters: _queryParams,
|
|
165
|
+
requestType: "json",
|
|
164
166
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
165
167
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
166
168
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -168,7 +170,7 @@ class V3 {
|
|
|
168
170
|
if (_response.ok) {
|
|
169
171
|
return {
|
|
170
172
|
ok: true,
|
|
171
|
-
body:
|
|
173
|
+
body: serializers.organizationProviders.v3.OrganizationProviderPageV2.parseOrThrow(_response.body, {
|
|
172
174
|
unrecognizedObjectKeys: "passthrough",
|
|
173
175
|
allowUnrecognizedUnionMembers: true,
|
|
174
176
|
allowUnrecognizedEnumValues: true,
|
|
@@ -187,7 +189,7 @@ class V3 {
|
|
|
187
189
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
188
190
|
*
|
|
189
191
|
* @example
|
|
190
|
-
* await
|
|
192
|
+
* await client.organizationProviders.v3.create({
|
|
191
193
|
* npi: "string",
|
|
192
194
|
* isRendering: true,
|
|
193
195
|
* isBilling: true,
|
|
@@ -225,12 +227,13 @@ class V3 {
|
|
|
225
227
|
Authorization: yield this._getAuthorizationHeader(),
|
|
226
228
|
"X-Fern-Language": "JavaScript",
|
|
227
229
|
"X-Fern-SDK-Name": "candidhealth",
|
|
228
|
-
"X-Fern-SDK-Version": "0.24.
|
|
230
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
229
231
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
230
232
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
231
233
|
},
|
|
232
234
|
contentType: "application/json",
|
|
233
|
-
|
|
235
|
+
requestType: "json",
|
|
236
|
+
body: serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
|
|
234
237
|
unrecognizedObjectKeys: "strip",
|
|
235
238
|
}),
|
|
236
239
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -240,7 +243,7 @@ class V3 {
|
|
|
240
243
|
if (_response.ok) {
|
|
241
244
|
return {
|
|
242
245
|
ok: true,
|
|
243
|
-
body:
|
|
246
|
+
body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
|
|
244
247
|
unrecognizedObjectKeys: "passthrough",
|
|
245
248
|
allowUnrecognizedUnionMembers: true,
|
|
246
249
|
allowUnrecognizedEnumValues: true,
|
|
@@ -254,7 +257,7 @@ class V3 {
|
|
|
254
257
|
case "UpdatesDisabledDueToExternalSystemIntegrationError":
|
|
255
258
|
return {
|
|
256
259
|
ok: false,
|
|
257
|
-
error:
|
|
260
|
+
error: serializers.organizationProviders.v3.create.Error.parseOrThrow(_response.error.body, {
|
|
258
261
|
unrecognizedObjectKeys: "passthrough",
|
|
259
262
|
allowUnrecognizedUnionMembers: true,
|
|
260
263
|
allowUnrecognizedEnumValues: true,
|
|
@@ -275,7 +278,7 @@ class V3 {
|
|
|
275
278
|
* @param {V3.RequestOptions} requestOptions - Request-specific configuration.
|
|
276
279
|
*
|
|
277
280
|
* @example
|
|
278
|
-
* await
|
|
281
|
+
* await client.organizationProviders.v3.update(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
279
282
|
* npi: "string",
|
|
280
283
|
* isRendering: true,
|
|
281
284
|
* isBilling: true,
|
|
@@ -309,18 +312,19 @@ class V3 {
|
|
|
309
312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
310
313
|
const _response = yield core.fetcher({
|
|
311
314
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
312
|
-
.candidApi, `/api/organization-providers/v3/${encodeURIComponent(
|
|
315
|
+
.candidApi, `/api/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
|
|
313
316
|
method: "PATCH",
|
|
314
317
|
headers: {
|
|
315
318
|
Authorization: yield this._getAuthorizationHeader(),
|
|
316
319
|
"X-Fern-Language": "JavaScript",
|
|
317
320
|
"X-Fern-SDK-Name": "candidhealth",
|
|
318
|
-
"X-Fern-SDK-Version": "0.24.
|
|
321
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
319
322
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
320
323
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
321
324
|
},
|
|
322
325
|
contentType: "application/json",
|
|
323
|
-
|
|
326
|
+
requestType: "json",
|
|
327
|
+
body: serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
|
|
324
328
|
unrecognizedObjectKeys: "strip",
|
|
325
329
|
}),
|
|
326
330
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -330,7 +334,7 @@ class V3 {
|
|
|
330
334
|
if (_response.ok) {
|
|
331
335
|
return {
|
|
332
336
|
ok: true,
|
|
333
|
-
body:
|
|
337
|
+
body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
|
|
334
338
|
unrecognizedObjectKeys: "passthrough",
|
|
335
339
|
allowUnrecognizedUnionMembers: true,
|
|
336
340
|
allowUnrecognizedEnumValues: true,
|
|
@@ -345,7 +349,7 @@ class V3 {
|
|
|
345
349
|
case "UpdatesDisabledDueToExternalSystemIntegrationError":
|
|
346
350
|
return {
|
|
347
351
|
ok: false,
|
|
348
|
-
error:
|
|
352
|
+
error: serializers.organizationProviders.v3.update.Error.parseOrThrow(_response.error.body, {
|
|
349
353
|
unrecognizedObjectKeys: "passthrough",
|
|
350
354
|
allowUnrecognizedUnionMembers: true,
|
|
351
355
|
allowUnrecognizedEnumValues: true,
|
|
@@ -10,8 +10,11 @@ export declare namespace OrganizationServiceFacilities {
|
|
|
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 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
|
}
|
|
@@ -23,7 +26,7 @@ export declare class V2 {
|
|
|
23
26
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
27
|
*
|
|
25
28
|
* @example
|
|
26
|
-
* await
|
|
29
|
+
* await client.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
|
|
27
30
|
*/
|
|
28
31
|
get(organizationServiceFacilityId: CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacility, CandidApi.organizationServiceFacilities.v2.get.Error>>;
|
|
29
32
|
/**
|
|
@@ -31,7 +34,7 @@ export declare class V2 {
|
|
|
31
34
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
35
|
*
|
|
33
36
|
* @example
|
|
34
|
-
* await
|
|
37
|
+
* await client.organizationServiceFacilities.v2.getMulti({
|
|
35
38
|
* limit: 100,
|
|
36
39
|
* name: "Test Service Facility",
|
|
37
40
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
|
|
@@ -43,7 +46,7 @@ export declare class V2 {
|
|
|
43
46
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
47
|
*
|
|
45
48
|
* @example
|
|
46
|
-
* await
|
|
49
|
+
* await client.organizationServiceFacilities.v2.create({
|
|
47
50
|
* name: "Test Service Facility",
|
|
48
51
|
* aliases: ["Test Service Facility Alias"],
|
|
49
52
|
* description: "Test Service Facility Description",
|
|
@@ -70,7 +73,7 @@ export declare class V2 {
|
|
|
70
73
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
74
|
*
|
|
72
75
|
* @example
|
|
73
|
-
* await
|
|
76
|
+
* await client.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
|
|
74
77
|
* name: "Test Service Facility",
|
|
75
78
|
* aliases: ["Test Service Facility Alias"],
|
|
76
79
|
* description: "Test Service Facility Description",
|
|
@@ -96,7 +99,7 @@ export declare class V2 {
|
|
|
96
99
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
100
|
*
|
|
98
101
|
* @example
|
|
99
|
-
* await
|
|
102
|
+
* await client.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
|
|
100
103
|
*/
|
|
101
104
|
delete(organizationServiceFacilityId: CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<void, CandidApi.organizationServiceFacilities.v2.delete.Error>>;
|
|
102
105
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
@@ -53,24 +53,25 @@ class V2 {
|
|
|
53
53
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await
|
|
56
|
+
* await client.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
|
|
57
57
|
*/
|
|
58
58
|
get(organizationServiceFacilityId, requestOptions) {
|
|
59
59
|
var _a, _b;
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const _response = yield core.fetcher({
|
|
62
62
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
63
|
-
.candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(
|
|
63
|
+
.candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
|
|
64
64
|
method: "GET",
|
|
65
65
|
headers: {
|
|
66
66
|
Authorization: yield this._getAuthorizationHeader(),
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "candidhealth",
|
|
69
|
-
"X-Fern-SDK-Version": "0.24.
|
|
69
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
|
+
requestType: "json",
|
|
74
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
75
76
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
76
77
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -78,7 +79,7 @@ class V2 {
|
|
|
78
79
|
if (_response.ok) {
|
|
79
80
|
return {
|
|
80
81
|
ok: true,
|
|
81
|
-
body:
|
|
82
|
+
body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
|
|
82
83
|
unrecognizedObjectKeys: "passthrough",
|
|
83
84
|
allowUnrecognizedUnionMembers: true,
|
|
84
85
|
allowUnrecognizedEnumValues: true,
|
|
@@ -91,7 +92,7 @@ class V2 {
|
|
|
91
92
|
case "EntityNotFoundError":
|
|
92
93
|
return {
|
|
93
94
|
ok: false,
|
|
94
|
-
error:
|
|
95
|
+
error: serializers.organizationServiceFacilities.v2.get.Error.parseOrThrow(_response.error.body, {
|
|
95
96
|
unrecognizedObjectKeys: "passthrough",
|
|
96
97
|
allowUnrecognizedUnionMembers: true,
|
|
97
98
|
allowUnrecognizedEnumValues: true,
|
|
@@ -111,7 +112,7 @@ class V2 {
|
|
|
111
112
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
113
|
*
|
|
113
114
|
* @example
|
|
114
|
-
* await
|
|
115
|
+
* await client.organizationServiceFacilities.v2.getMulti({
|
|
115
116
|
* limit: 100,
|
|
116
117
|
* name: "Test Service Facility",
|
|
117
118
|
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
|
|
@@ -139,12 +140,13 @@ class V2 {
|
|
|
139
140
|
Authorization: yield this._getAuthorizationHeader(),
|
|
140
141
|
"X-Fern-Language": "JavaScript",
|
|
141
142
|
"X-Fern-SDK-Name": "candidhealth",
|
|
142
|
-
"X-Fern-SDK-Version": "0.24.
|
|
143
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
143
144
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
144
145
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
145
146
|
},
|
|
146
147
|
contentType: "application/json",
|
|
147
148
|
queryParameters: _queryParams,
|
|
149
|
+
requestType: "json",
|
|
148
150
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
149
151
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
150
152
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -152,7 +154,7 @@ class V2 {
|
|
|
152
154
|
if (_response.ok) {
|
|
153
155
|
return {
|
|
154
156
|
ok: true,
|
|
155
|
-
body:
|
|
157
|
+
body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityPage.parseOrThrow(_response.body, {
|
|
156
158
|
unrecognizedObjectKeys: "passthrough",
|
|
157
159
|
allowUnrecognizedUnionMembers: true,
|
|
158
160
|
allowUnrecognizedEnumValues: true,
|
|
@@ -171,7 +173,7 @@ class V2 {
|
|
|
171
173
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
174
|
*
|
|
173
175
|
* @example
|
|
174
|
-
* await
|
|
176
|
+
* await client.organizationServiceFacilities.v2.create({
|
|
175
177
|
* name: "Test Service Facility",
|
|
176
178
|
* aliases: ["Test Service Facility Alias"],
|
|
177
179
|
* description: "Test Service Facility Description",
|
|
@@ -202,12 +204,15 @@ class V2 {
|
|
|
202
204
|
Authorization: yield this._getAuthorizationHeader(),
|
|
203
205
|
"X-Fern-Language": "JavaScript",
|
|
204
206
|
"X-Fern-SDK-Name": "candidhealth",
|
|
205
|
-
"X-Fern-SDK-Version": "0.24.
|
|
207
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
206
208
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
207
209
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
208
210
|
},
|
|
209
211
|
contentType: "application/json",
|
|
210
|
-
|
|
212
|
+
requestType: "json",
|
|
213
|
+
body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, {
|
|
214
|
+
unrecognizedObjectKeys: "strip",
|
|
215
|
+
}),
|
|
211
216
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
212
217
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
213
218
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -215,7 +220,7 @@ class V2 {
|
|
|
215
220
|
if (_response.ok) {
|
|
216
221
|
return {
|
|
217
222
|
ok: true,
|
|
218
|
-
body:
|
|
223
|
+
body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
|
|
219
224
|
unrecognizedObjectKeys: "passthrough",
|
|
220
225
|
allowUnrecognizedUnionMembers: true,
|
|
221
226
|
allowUnrecognizedEnumValues: true,
|
|
@@ -228,7 +233,7 @@ class V2 {
|
|
|
228
233
|
case "HttpRequestValidationError":
|
|
229
234
|
return {
|
|
230
235
|
ok: false,
|
|
231
|
-
error:
|
|
236
|
+
error: serializers.organizationServiceFacilities.v2.create.Error.parseOrThrow(_response.error.body, {
|
|
232
237
|
unrecognizedObjectKeys: "passthrough",
|
|
233
238
|
allowUnrecognizedUnionMembers: true,
|
|
234
239
|
allowUnrecognizedEnumValues: true,
|
|
@@ -249,7 +254,7 @@ class V2 {
|
|
|
249
254
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
250
255
|
*
|
|
251
256
|
* @example
|
|
252
|
-
* await
|
|
257
|
+
* await client.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
|
|
253
258
|
* name: "Test Service Facility",
|
|
254
259
|
* aliases: ["Test Service Facility Alias"],
|
|
255
260
|
* description: "Test Service Facility Description",
|
|
@@ -274,18 +279,21 @@ class V2 {
|
|
|
274
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
280
|
const _response = yield core.fetcher({
|
|
276
281
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
277
|
-
.candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(
|
|
282
|
+
.candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
|
|
278
283
|
method: "PATCH",
|
|
279
284
|
headers: {
|
|
280
285
|
Authorization: yield this._getAuthorizationHeader(),
|
|
281
286
|
"X-Fern-Language": "JavaScript",
|
|
282
287
|
"X-Fern-SDK-Name": "candidhealth",
|
|
283
|
-
"X-Fern-SDK-Version": "0.24.
|
|
288
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
284
289
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
285
290
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
286
291
|
},
|
|
287
292
|
contentType: "application/json",
|
|
288
|
-
|
|
293
|
+
requestType: "json",
|
|
294
|
+
body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, {
|
|
295
|
+
unrecognizedObjectKeys: "strip",
|
|
296
|
+
}),
|
|
289
297
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
290
298
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
291
299
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -293,7 +301,7 @@ class V2 {
|
|
|
293
301
|
if (_response.ok) {
|
|
294
302
|
return {
|
|
295
303
|
ok: true,
|
|
296
|
-
body:
|
|
304
|
+
body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
|
|
297
305
|
unrecognizedObjectKeys: "passthrough",
|
|
298
306
|
allowUnrecognizedUnionMembers: true,
|
|
299
307
|
allowUnrecognizedEnumValues: true,
|
|
@@ -307,7 +315,7 @@ class V2 {
|
|
|
307
315
|
case "EntityNotFoundError":
|
|
308
316
|
return {
|
|
309
317
|
ok: false,
|
|
310
|
-
error:
|
|
318
|
+
error: serializers.organizationServiceFacilities.v2.update.Error.parseOrThrow(_response.error.body, {
|
|
311
319
|
unrecognizedObjectKeys: "passthrough",
|
|
312
320
|
allowUnrecognizedUnionMembers: true,
|
|
313
321
|
allowUnrecognizedEnumValues: true,
|
|
@@ -327,24 +335,25 @@ class V2 {
|
|
|
327
335
|
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
336
|
*
|
|
329
337
|
* @example
|
|
330
|
-
* await
|
|
338
|
+
* await client.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
|
|
331
339
|
*/
|
|
332
340
|
delete(organizationServiceFacilityId, requestOptions) {
|
|
333
341
|
var _a, _b;
|
|
334
342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
335
343
|
const _response = yield core.fetcher({
|
|
336
344
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
337
|
-
.candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(
|
|
345
|
+
.candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
|
|
338
346
|
method: "DELETE",
|
|
339
347
|
headers: {
|
|
340
348
|
Authorization: yield this._getAuthorizationHeader(),
|
|
341
349
|
"X-Fern-Language": "JavaScript",
|
|
342
350
|
"X-Fern-SDK-Name": "candidhealth",
|
|
343
|
-
"X-Fern-SDK-Version": "0.24.
|
|
351
|
+
"X-Fern-SDK-Version": "0.24.2",
|
|
344
352
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
345
353
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
346
354
|
},
|
|
347
355
|
contentType: "application/json",
|
|
356
|
+
requestType: "json",
|
|
348
357
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
349
358
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
350
359
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -360,7 +369,7 @@ class V2 {
|
|
|
360
369
|
case "EntityNotFoundError":
|
|
361
370
|
return {
|
|
362
371
|
ok: false,
|
|
363
|
-
error:
|
|
372
|
+
error: serializers.organizationServiceFacilities.v2.delete.Error.parseOrThrow(_response.error.body, {
|
|
364
373
|
unrecognizedObjectKeys: "passthrough",
|
|
365
374
|
allowUnrecognizedUnionMembers: true,
|
|
366
375
|
allowUnrecognizedEnumValues: true,
|
|
@@ -10,8 +10,11 @@ export declare namespace PatientPayments {
|
|
|
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 V4 {
|
|
|
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
|
}
|
|
@@ -26,7 +29,7 @@ export declare class V4 {
|
|
|
26
29
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
|
-
* await
|
|
32
|
+
* await client.patientPayments.v4.getMulti({
|
|
30
33
|
* limit: 1,
|
|
31
34
|
* patientExternalId: CandidApi.PatientExternalId("string"),
|
|
32
35
|
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
@@ -48,7 +51,7 @@ export declare class V4 {
|
|
|
48
51
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
52
|
*
|
|
50
53
|
* @example
|
|
51
|
-
* await
|
|
54
|
+
* await client.patientPayments.v4.get(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
52
55
|
*/
|
|
53
56
|
get(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.get.Error>>;
|
|
54
57
|
/**
|
|
@@ -60,7 +63,7 @@ export declare class V4 {
|
|
|
60
63
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
64
|
*
|
|
62
65
|
* @example
|
|
63
|
-
* await
|
|
66
|
+
* await client.patientPayments.v4.create({
|
|
64
67
|
* amountCents: 1,
|
|
65
68
|
* paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
66
69
|
* paymentNote: "string",
|
|
@@ -84,7 +87,7 @@ export declare class V4 {
|
|
|
84
87
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
88
|
*
|
|
86
89
|
* @example
|
|
87
|
-
* await
|
|
90
|
+
* await client.patientPayments.v4.update(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
|
|
88
91
|
* paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
|
|
89
92
|
* paymentNote: {
|
|
90
93
|
* type: "set",
|
|
@@ -104,7 +107,7 @@ export declare class V4 {
|
|
|
104
107
|
* @param {V4.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
108
|
*
|
|
106
109
|
* @example
|
|
107
|
-
* await
|
|
110
|
+
* await client.patientPayments.v4.delete(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
108
111
|
*/
|
|
109
112
|
delete(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<void, CandidApi.patientPayments.v4.delete.Error>>;
|
|
110
113
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|