candidhealth 0.17.3 → 0.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/eligibility/resources/v2/client/Client.js +2 -2
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
- package/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
- package/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
- package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
- package/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
- package/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
- package/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
- package/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
- package/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
- package/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
- package/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
- package/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
- package/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
- package/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
- package/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
- package/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
- package/api/resources/patientPayments/resources/v4/client/create.js +33 -0
- package/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
- package/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
- package/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
- package/api/resources/patientPayments/resources/v4/client/get.js +22 -0
- package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
- package/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
- package/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
- package/api/resources/patientPayments/resources/v4/client/update.js +33 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
- package/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
- package/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
- package/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
- package/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
- package/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
- package/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
- package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
- package/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
- package/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
- package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
- package/dist/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
- package/dist/api/resources/patientPayments/resources/v4/client/create.js +33 -0
- package/dist/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
- package/dist/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
- package/dist/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
- package/dist/api/resources/patientPayments/resources/v4/client/get.js +22 -0
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
- package/dist/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
- package/dist/api/resources/patientPayments/resources/v4/client/update.js +33 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
- package/package.json +1 -1
- package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
- package/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
- package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
- package/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
- package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
- package/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
- package/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
- package/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
- package/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
- package/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
- package/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
- package/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
- package/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
- package/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
- package/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
- package/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
- package/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
- package/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
- package/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
- package/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
- package/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
- package/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
- package/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
- package/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
- package/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
- package/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
- package/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
- package/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
- package/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
|
@@ -3,8 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insuranceRefunds.v1.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insuranceRefunds.v1.create.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.create.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.create.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnauthorizedError extends _Utils {
|
|
13
|
+
errorName: "UnauthorizedError";
|
|
14
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface UnprocessableEntityError extends _Utils {
|
|
17
|
+
errorName: "UnprocessableEntityError";
|
|
18
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
19
|
+
}
|
|
8
20
|
interface _Unknown extends _Utils {
|
|
9
21
|
errorName: void;
|
|
10
22
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +25,16 @@ export declare namespace Error {
|
|
|
13
25
|
_visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.create.Error._Visitor<_Result>) => _Result;
|
|
14
26
|
}
|
|
15
27
|
interface _Visitor<_Result> {
|
|
28
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
29
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
30
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
16
31
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
export declare const Error: {
|
|
35
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.create.Error.EntityNotFoundError;
|
|
36
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.create.Error.UnauthorizedError;
|
|
37
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.create.Error.UnprocessableEntityError;
|
|
20
38
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.create.Error._Unknown;
|
|
21
39
|
readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.create.Error, visitor: CandidApi.insuranceRefunds.v1.create.Error._Visitor<_Result>) => _Result;
|
|
22
40
|
};
|
|
@@ -29,6 +29,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insuranceRefunds.v1.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
unauthorizedError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "UnauthorizedError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insuranceRefunds.v1.create.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
unprocessableEntityError: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
content: value,
|
|
53
|
+
errorName: "UnprocessableEntityError",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.insuranceRefunds.v1.create.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
32
59
|
_unknown: (fetcherError) => {
|
|
33
60
|
return {
|
|
34
61
|
errorName: undefined,
|
|
@@ -40,6 +67,12 @@ exports.Error = {
|
|
|
40
67
|
},
|
|
41
68
|
_visit: (value, visitor) => {
|
|
42
69
|
switch (value.errorName) {
|
|
70
|
+
case "EntityNotFoundError":
|
|
71
|
+
return visitor.entityNotFoundError(value.content);
|
|
72
|
+
case "UnauthorizedError":
|
|
73
|
+
return visitor.unauthorizedError(value.content);
|
|
74
|
+
case "UnprocessableEntityError":
|
|
75
|
+
return visitor.unprocessableEntityError(value.content);
|
|
43
76
|
default:
|
|
44
77
|
return visitor._other(value);
|
|
45
78
|
}
|
|
@@ -3,8 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insuranceRefunds.v1.delete.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insuranceRefunds.v1.delete.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.delete.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.delete.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.delete.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnauthorizedError extends _Utils {
|
|
13
|
+
errorName: "UnauthorizedError";
|
|
14
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface UnprocessableEntityError extends _Utils {
|
|
17
|
+
errorName: "UnprocessableEntityError";
|
|
18
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
19
|
+
}
|
|
8
20
|
interface _Unknown extends _Utils {
|
|
9
21
|
errorName: void;
|
|
10
22
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +25,16 @@ export declare namespace Error {
|
|
|
13
25
|
_visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.delete.Error._Visitor<_Result>) => _Result;
|
|
14
26
|
}
|
|
15
27
|
interface _Visitor<_Result> {
|
|
28
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
29
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
30
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
16
31
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
export declare const Error: {
|
|
35
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.delete.Error.EntityNotFoundError;
|
|
36
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.delete.Error.UnauthorizedError;
|
|
37
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.delete.Error.UnprocessableEntityError;
|
|
20
38
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.delete.Error._Unknown;
|
|
21
39
|
readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.delete.Error, visitor: CandidApi.insuranceRefunds.v1.delete.Error._Visitor<_Result>) => _Result;
|
|
22
40
|
};
|
|
@@ -29,6 +29,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insuranceRefunds.v1.delete.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
unauthorizedError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "UnauthorizedError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insuranceRefunds.v1.delete.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
unprocessableEntityError: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
content: value,
|
|
53
|
+
errorName: "UnprocessableEntityError",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.insuranceRefunds.v1.delete.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
32
59
|
_unknown: (fetcherError) => {
|
|
33
60
|
return {
|
|
34
61
|
errorName: undefined,
|
|
@@ -40,6 +67,12 @@ exports.Error = {
|
|
|
40
67
|
},
|
|
41
68
|
_visit: (value, visitor) => {
|
|
42
69
|
switch (value.errorName) {
|
|
70
|
+
case "EntityNotFoundError":
|
|
71
|
+
return visitor.entityNotFoundError(value.content);
|
|
72
|
+
case "UnauthorizedError":
|
|
73
|
+
return visitor.unauthorizedError(value.content);
|
|
74
|
+
case "UnprocessableEntityError":
|
|
75
|
+
return visitor.unprocessableEntityError(value.content);
|
|
43
76
|
default:
|
|
44
77
|
return visitor._other(value);
|
|
45
78
|
}
|
|
@@ -3,8 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insuranceRefunds.v1.get.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insuranceRefunds.v1.get.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.get.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.get.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnauthorizedError extends _Utils {
|
|
13
|
+
errorName: "UnauthorizedError";
|
|
14
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
|
+
}
|
|
8
16
|
interface _Unknown extends _Utils {
|
|
9
17
|
errorName: void;
|
|
10
18
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +21,14 @@ export declare namespace Error {
|
|
|
13
21
|
_visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.get.Error._Visitor<_Result>) => _Result;
|
|
14
22
|
}
|
|
15
23
|
interface _Visitor<_Result> {
|
|
24
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
25
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
16
26
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
export declare const Error: {
|
|
30
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.get.Error.EntityNotFoundError;
|
|
31
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.get.Error.UnauthorizedError;
|
|
20
32
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.get.Error._Unknown;
|
|
21
33
|
readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.get.Error, visitor: CandidApi.insuranceRefunds.v1.get.Error._Visitor<_Result>) => _Result;
|
|
22
34
|
};
|
|
@@ -29,6 +29,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insuranceRefunds.v1.get.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
unauthorizedError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "UnauthorizedError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insuranceRefunds.v1.get.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
32
50
|
_unknown: (fetcherError) => {
|
|
33
51
|
return {
|
|
34
52
|
errorName: undefined,
|
|
@@ -40,6 +58,10 @@ exports.Error = {
|
|
|
40
58
|
},
|
|
41
59
|
_visit: (value, visitor) => {
|
|
42
60
|
switch (value.errorName) {
|
|
61
|
+
case "EntityNotFoundError":
|
|
62
|
+
return visitor.entityNotFoundError(value.content);
|
|
63
|
+
case "UnauthorizedError":
|
|
64
|
+
return visitor.unauthorizedError(value.content);
|
|
43
65
|
default:
|
|
44
66
|
return visitor._other(value);
|
|
45
67
|
}
|
|
@@ -3,8 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insuranceRefunds.v1.getMulti.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.getMulti.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError extends _Utils {
|
|
9
|
+
errorName: "UnauthorizedError";
|
|
10
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnprocessableEntityError extends _Utils {
|
|
13
|
+
errorName: "UnprocessableEntityError";
|
|
14
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
15
|
+
}
|
|
8
16
|
interface _Unknown extends _Utils {
|
|
9
17
|
errorName: void;
|
|
10
18
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +21,14 @@ export declare namespace Error {
|
|
|
13
21
|
_visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
14
22
|
}
|
|
15
23
|
interface _Visitor<_Result> {
|
|
24
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
25
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
16
26
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
export declare const Error: {
|
|
30
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.getMulti.Error.UnauthorizedError;
|
|
31
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.getMulti.Error.UnprocessableEntityError;
|
|
20
32
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
|
|
21
33
|
readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.getMulti.Error, visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
|
|
22
34
|
};
|
|
@@ -29,6 +29,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
unauthorizedError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "UnauthorizedError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insuranceRefunds.v1.getMulti.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
unprocessableEntityError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "UnprocessableEntityError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insuranceRefunds.v1.getMulti.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
32
50
|
_unknown: (fetcherError) => {
|
|
33
51
|
return {
|
|
34
52
|
errorName: undefined,
|
|
@@ -40,6 +58,10 @@ exports.Error = {
|
|
|
40
58
|
},
|
|
41
59
|
_visit: (value, visitor) => {
|
|
42
60
|
switch (value.errorName) {
|
|
61
|
+
case "UnauthorizedError":
|
|
62
|
+
return visitor.unauthorizedError(value.content);
|
|
63
|
+
case "UnprocessableEntityError":
|
|
64
|
+
return visitor.unprocessableEntityError(value.content);
|
|
43
65
|
default:
|
|
44
66
|
return visitor._other(value);
|
|
45
67
|
}
|
|
@@ -3,8 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insuranceRefunds.v1.update.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insuranceRefunds.v1.update.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.update.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.update.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.update.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface UnauthorizedError extends _Utils {
|
|
13
|
+
errorName: "UnauthorizedError";
|
|
14
|
+
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
|
+
}
|
|
16
|
+
interface UnprocessableEntityError extends _Utils {
|
|
17
|
+
errorName: "UnprocessableEntityError";
|
|
18
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
19
|
+
}
|
|
8
20
|
interface _Unknown extends _Utils {
|
|
9
21
|
errorName: void;
|
|
10
22
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +25,16 @@ export declare namespace Error {
|
|
|
13
25
|
_visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.update.Error._Visitor<_Result>) => _Result;
|
|
14
26
|
}
|
|
15
27
|
interface _Visitor<_Result> {
|
|
28
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
29
|
+
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
30
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
16
31
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
32
|
}
|
|
18
33
|
}
|
|
19
34
|
export declare const Error: {
|
|
35
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.update.Error.EntityNotFoundError;
|
|
36
|
+
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.update.Error.UnauthorizedError;
|
|
37
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.update.Error.UnprocessableEntityError;
|
|
20
38
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.update.Error._Unknown;
|
|
21
39
|
readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.update.Error, visitor: CandidApi.insuranceRefunds.v1.update.Error._Visitor<_Result>) => _Result;
|
|
22
40
|
};
|
|
@@ -29,6 +29,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insuranceRefunds.v1.update.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
unauthorizedError: (value) => {
|
|
42
|
+
return {
|
|
43
|
+
content: value,
|
|
44
|
+
errorName: "UnauthorizedError",
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.insuranceRefunds.v1.update.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
unprocessableEntityError: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
content: value,
|
|
53
|
+
errorName: "UnprocessableEntityError",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.insuranceRefunds.v1.update.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
32
59
|
_unknown: (fetcherError) => {
|
|
33
60
|
return {
|
|
34
61
|
errorName: undefined,
|
|
@@ -40,6 +67,12 @@ exports.Error = {
|
|
|
40
67
|
},
|
|
41
68
|
_visit: (value, visitor) => {
|
|
42
69
|
switch (value.errorName) {
|
|
70
|
+
case "EntityNotFoundError":
|
|
71
|
+
return visitor.entityNotFoundError(value.content);
|
|
72
|
+
case "UnauthorizedError":
|
|
73
|
+
return visitor.unauthorizedError(value.content);
|
|
74
|
+
case "UnprocessableEntityError":
|
|
75
|
+
return visitor.unprocessableEntityError(value.content);
|
|
43
76
|
default:
|
|
44
77
|
return visitor._other(value);
|
|
45
78
|
}
|
|
@@ -49,7 +49,7 @@ class V3 {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.17.
|
|
52
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -115,7 +115,7 @@ class V3 {
|
|
|
115
115
|
Authorization: await this._getAuthorizationHeader(),
|
|
116
116
|
"X-Fern-Language": "JavaScript",
|
|
117
117
|
"X-Fern-SDK-Name": "candidhealth",
|
|
118
|
-
"X-Fern-SDK-Version": "0.17.
|
|
118
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
119
119
|
},
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
queryParameters: _queryParams,
|
|
@@ -145,7 +145,7 @@ class V3 {
|
|
|
145
145
|
Authorization: await this._getAuthorizationHeader(),
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "candidhealth",
|
|
148
|
-
"X-Fern-SDK-Version": "0.17.
|
|
148
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
149
149
|
},
|
|
150
150
|
contentType: "application/json",
|
|
151
151
|
body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
|
|
@@ -192,7 +192,7 @@ class V3 {
|
|
|
192
192
|
Authorization: await this._getAuthorizationHeader(),
|
|
193
193
|
"X-Fern-Language": "JavaScript",
|
|
194
194
|
"X-Fern-SDK-Name": "candidhealth",
|
|
195
|
-
"X-Fern-SDK-Version": "0.17.
|
|
195
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
196
196
|
},
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
|
|
@@ -49,7 +49,7 @@ class V2 {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.17.
|
|
52
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -103,7 +103,7 @@ class V2 {
|
|
|
103
103
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.17.
|
|
106
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V2 {
|
|
|
133
133
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
134
|
"X-Fern-Language": "JavaScript",
|
|
135
135
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.17.
|
|
136
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -177,7 +177,7 @@ class V2 {
|
|
|
177
177
|
Authorization: await this._getAuthorizationHeader(),
|
|
178
178
|
"X-Fern-Language": "JavaScript",
|
|
179
179
|
"X-Fern-SDK-Name": "candidhealth",
|
|
180
|
-
"X-Fern-SDK-Version": "0.17.
|
|
180
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
181
181
|
},
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -222,7 +222,7 @@ class V2 {
|
|
|
222
222
|
Authorization: await this._getAuthorizationHeader(),
|
|
223
223
|
"X-Fern-Language": "JavaScript",
|
|
224
224
|
"X-Fern-SDK-Name": "candidhealth",
|
|
225
|
-
"X-Fern-SDK-Version": "0.17.
|
|
225
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
226
226
|
},
|
|
227
227
|
contentType: "application/json",
|
|
228
228
|
timeoutMs: 60000,
|
|
@@ -95,7 +95,7 @@ class V4 {
|
|
|
95
95
|
Authorization: await this._getAuthorizationHeader(),
|
|
96
96
|
"X-Fern-Language": "JavaScript",
|
|
97
97
|
"X-Fern-SDK-Name": "candidhealth",
|
|
98
|
-
"X-Fern-SDK-Version": "0.17.
|
|
98
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
99
99
|
},
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
@@ -112,6 +112,21 @@ class V4 {
|
|
|
112
112
|
}),
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
+
if (_response.error.reason === "status-code") {
|
|
116
|
+
switch (_response.error.body?.errorName) {
|
|
117
|
+
case "UnauthorizedError":
|
|
118
|
+
case "UnprocessableEntityError":
|
|
119
|
+
return {
|
|
120
|
+
ok: false,
|
|
121
|
+
error: await serializers.patientPayments.v4.getMulti.Error.parseOrThrow(_response.error.body, {
|
|
122
|
+
unrecognizedObjectKeys: "passthrough",
|
|
123
|
+
allowUnrecognizedUnionMembers: true,
|
|
124
|
+
allowUnrecognizedEnumValues: true,
|
|
125
|
+
breadcrumbsPrefix: ["response"],
|
|
126
|
+
}),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
115
130
|
return {
|
|
116
131
|
ok: false,
|
|
117
132
|
error: CandidApi.patientPayments.v4.getMulti.Error._unknown(_response.error),
|
|
@@ -128,7 +143,7 @@ class V4 {
|
|
|
128
143
|
Authorization: await this._getAuthorizationHeader(),
|
|
129
144
|
"X-Fern-Language": "JavaScript",
|
|
130
145
|
"X-Fern-SDK-Name": "candidhealth",
|
|
131
|
-
"X-Fern-SDK-Version": "0.17.
|
|
146
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
132
147
|
},
|
|
133
148
|
contentType: "application/json",
|
|
134
149
|
timeoutMs: 60000,
|
|
@@ -144,6 +159,21 @@ class V4 {
|
|
|
144
159
|
}),
|
|
145
160
|
};
|
|
146
161
|
}
|
|
162
|
+
if (_response.error.reason === "status-code") {
|
|
163
|
+
switch (_response.error.body?.errorName) {
|
|
164
|
+
case "EntityNotFoundError":
|
|
165
|
+
case "UnauthorizedError":
|
|
166
|
+
return {
|
|
167
|
+
ok: false,
|
|
168
|
+
error: await serializers.patientPayments.v4.get.Error.parseOrThrow(_response.error.body, {
|
|
169
|
+
unrecognizedObjectKeys: "passthrough",
|
|
170
|
+
allowUnrecognizedUnionMembers: true,
|
|
171
|
+
allowUnrecognizedEnumValues: true,
|
|
172
|
+
breadcrumbsPrefix: ["response"],
|
|
173
|
+
}),
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
147
177
|
return {
|
|
148
178
|
ok: false,
|
|
149
179
|
error: CandidApi.patientPayments.v4.get.Error._unknown(_response.error),
|
|
@@ -162,7 +192,7 @@ class V4 {
|
|
|
162
192
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
193
|
"X-Fern-Language": "JavaScript",
|
|
164
194
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.17.
|
|
195
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
166
196
|
},
|
|
167
197
|
contentType: "application/json",
|
|
168
198
|
body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
|
|
@@ -181,6 +211,22 @@ class V4 {
|
|
|
181
211
|
}),
|
|
182
212
|
};
|
|
183
213
|
}
|
|
214
|
+
if (_response.error.reason === "status-code") {
|
|
215
|
+
switch (_response.error.body?.errorName) {
|
|
216
|
+
case "EntityNotFoundError":
|
|
217
|
+
case "UnauthorizedError":
|
|
218
|
+
case "UnprocessableEntityError":
|
|
219
|
+
return {
|
|
220
|
+
ok: false,
|
|
221
|
+
error: await serializers.patientPayments.v4.create.Error.parseOrThrow(_response.error.body, {
|
|
222
|
+
unrecognizedObjectKeys: "passthrough",
|
|
223
|
+
allowUnrecognizedUnionMembers: true,
|
|
224
|
+
allowUnrecognizedEnumValues: true,
|
|
225
|
+
breadcrumbsPrefix: ["response"],
|
|
226
|
+
}),
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
184
230
|
return {
|
|
185
231
|
ok: false,
|
|
186
232
|
error: CandidApi.patientPayments.v4.create.Error._unknown(_response.error),
|
|
@@ -197,7 +243,7 @@ class V4 {
|
|
|
197
243
|
Authorization: await this._getAuthorizationHeader(),
|
|
198
244
|
"X-Fern-Language": "JavaScript",
|
|
199
245
|
"X-Fern-SDK-Name": "candidhealth",
|
|
200
|
-
"X-Fern-SDK-Version": "0.17.
|
|
246
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
201
247
|
},
|
|
202
248
|
contentType: "application/json",
|
|
203
249
|
body: await serializers.patientPayments.v4.PatientPaymentUpdate.jsonOrThrow(request, {
|
|
@@ -216,6 +262,22 @@ class V4 {
|
|
|
216
262
|
}),
|
|
217
263
|
};
|
|
218
264
|
}
|
|
265
|
+
if (_response.error.reason === "status-code") {
|
|
266
|
+
switch (_response.error.body?.errorName) {
|
|
267
|
+
case "EntityNotFoundError":
|
|
268
|
+
case "UnauthorizedError":
|
|
269
|
+
case "UnprocessableEntityError":
|
|
270
|
+
return {
|
|
271
|
+
ok: false,
|
|
272
|
+
error: await serializers.patientPayments.v4.update.Error.parseOrThrow(_response.error.body, {
|
|
273
|
+
unrecognizedObjectKeys: "passthrough",
|
|
274
|
+
allowUnrecognizedUnionMembers: true,
|
|
275
|
+
allowUnrecognizedEnumValues: true,
|
|
276
|
+
breadcrumbsPrefix: ["response"],
|
|
277
|
+
}),
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
}
|
|
219
281
|
return {
|
|
220
282
|
ok: false,
|
|
221
283
|
error: CandidApi.patientPayments.v4.update.Error._unknown(_response.error),
|
|
@@ -232,7 +294,7 @@ class V4 {
|
|
|
232
294
|
Authorization: await this._getAuthorizationHeader(),
|
|
233
295
|
"X-Fern-Language": "JavaScript",
|
|
234
296
|
"X-Fern-SDK-Name": "candidhealth",
|
|
235
|
-
"X-Fern-SDK-Version": "0.17.
|
|
297
|
+
"X-Fern-SDK-Version": "0.17.4",
|
|
236
298
|
},
|
|
237
299
|
contentType: "application/json",
|
|
238
300
|
timeoutMs: 60000,
|
|
@@ -243,6 +305,22 @@ class V4 {
|
|
|
243
305
|
body: undefined,
|
|
244
306
|
};
|
|
245
307
|
}
|
|
308
|
+
if (_response.error.reason === "status-code") {
|
|
309
|
+
switch (_response.error.body?.errorName) {
|
|
310
|
+
case "EntityNotFoundError":
|
|
311
|
+
case "UnauthorizedError":
|
|
312
|
+
case "UnprocessableEntityError":
|
|
313
|
+
return {
|
|
314
|
+
ok: false,
|
|
315
|
+
error: await serializers.patientPayments.v4.delete.Error.parseOrThrow(_response.error.body, {
|
|
316
|
+
unrecognizedObjectKeys: "passthrough",
|
|
317
|
+
allowUnrecognizedUnionMembers: true,
|
|
318
|
+
allowUnrecognizedEnumValues: true,
|
|
319
|
+
breadcrumbsPrefix: ["response"],
|
|
320
|
+
}),
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
}
|
|
246
324
|
return {
|
|
247
325
|
ok: false,
|
|
248
326
|
error: CandidApi.patientPayments.v4.delete.Error._unknown(_response.error),
|