candidhealth 0.14.4 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  4. package/api/resources/auth/resources/v2/client/Client.js +2 -2
  5. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  6. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  7. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  8. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  9. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  10. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  11. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  12. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  13. package/api/resources/index.d.ts +1 -0
  14. package/api/resources/index.js +1 -0
  15. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  16. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  17. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  18. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  19. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  20. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  21. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  22. package/api/resources/serviceFacility/client/Client.d.ts +18 -0
  23. package/api/resources/serviceFacility/client/Client.js +83 -0
  24. package/api/resources/serviceFacility/client/index.d.ts +2 -0
  25. package/api/resources/serviceFacility/client/index.js +31 -0
  26. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  27. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  28. package/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  29. package/api/resources/serviceFacility/client/requests/index.js +2 -0
  30. package/api/resources/serviceFacility/client/update.d.ts +22 -0
  31. package/api/resources/serviceFacility/client/update.js +47 -0
  32. package/api/resources/serviceFacility/index.d.ts +1 -0
  33. package/api/resources/serviceFacility/index.js +1 -0
  34. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  35. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  36. package/dist/Client.d.ts +3 -0
  37. package/dist/Client.js +5 -0
  38. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  39. package/dist/api/resources/auth/resources/v2/client/Client.js +2 -2
  40. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  41. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  42. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  43. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  44. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  45. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  46. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  47. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  48. package/dist/api/resources/index.d.ts +1 -0
  49. package/dist/api/resources/index.js +1 -0
  50. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  51. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  52. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  53. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  54. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  55. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  56. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  57. package/dist/api/resources/serviceFacility/client/Client.d.ts +18 -0
  58. package/dist/api/resources/serviceFacility/client/Client.js +83 -0
  59. package/dist/api/resources/serviceFacility/client/index.d.ts +2 -0
  60. package/dist/api/resources/serviceFacility/client/index.js +31 -0
  61. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  62. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  63. package/dist/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  64. package/dist/api/resources/serviceFacility/client/requests/index.js +2 -0
  65. package/dist/api/resources/serviceFacility/client/update.d.ts +22 -0
  66. package/dist/api/resources/serviceFacility/client/update.js +47 -0
  67. package/dist/api/resources/serviceFacility/index.d.ts +1 -0
  68. package/dist/api/resources/serviceFacility/index.js +1 -0
  69. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  70. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  71. package/dist/serialization/resources/index.d.ts +1 -0
  72. package/dist/serialization/resources/index.js +1 -0
  73. package/dist/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  74. package/dist/serialization/resources/serviceFacility/client/index.js +17 -0
  75. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  76. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  77. package/dist/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  78. package/dist/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  79. package/dist/serialization/resources/serviceFacility/index.d.ts +1 -0
  80. package/dist/serialization/resources/serviceFacility/index.js +1 -0
  81. package/package.json +1 -1
  82. package/serialization/resources/index.d.ts +1 -0
  83. package/serialization/resources/index.js +1 -0
  84. package/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  85. package/serialization/resources/serviceFacility/client/index.js +17 -0
  86. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  87. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  88. package/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  89. package/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  90. package/serialization/resources/serviceFacility/index.d.ts +1 -0
  91. package/serialization/resources/serviceFacility/index.js +1 -0
@@ -93,7 +93,7 @@ class V4 {
93
93
  Authorization: await this._getAuthorizationHeader(),
94
94
  "X-Fern-Language": "JavaScript",
95
95
  "X-Fern-SDK-Name": "candidhealth",
96
- "X-Fern-SDK-Version": "0.14.4",
96
+ "X-Fern-SDK-Version": "0.15.0",
97
97
  },
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
@@ -127,7 +127,7 @@ class V4 {
127
127
  Authorization: await this._getAuthorizationHeader(),
128
128
  "X-Fern-Language": "JavaScript",
129
129
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.14.4",
130
+ "X-Fern-SDK-Version": "0.15.0",
131
131
  },
132
132
  contentType: "application/json",
133
133
  timeoutMs: 60000,
@@ -162,7 +162,7 @@ class V4 {
162
162
  Authorization: await this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.14.4",
165
+ "X-Fern-SDK-Version": "0.15.0",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
@@ -198,7 +198,7 @@ class V4 {
198
198
  Authorization: await this._getAuthorizationHeader(),
199
199
  "X-Fern-Language": "JavaScript",
200
200
  "X-Fern-SDK-Name": "candidhealth",
201
- "X-Fern-SDK-Version": "0.14.4",
201
+ "X-Fern-SDK-Version": "0.15.0",
202
202
  },
203
203
  contentType: "application/json",
204
204
  body: await serializers.patientPayments.v4.PatientPaymentUpdate.jsonOrThrow(request, {
@@ -234,7 +234,7 @@ class V4 {
234
234
  Authorization: await this._getAuthorizationHeader(),
235
235
  "X-Fern-Language": "JavaScript",
236
236
  "X-Fern-SDK-Name": "candidhealth",
237
- "X-Fern-SDK-Version": "0.14.4",
237
+ "X-Fern-SDK-Version": "0.15.0",
238
238
  },
239
239
  contentType: "application/json",
240
240
  timeoutMs: 60000,
@@ -93,7 +93,7 @@ class V1 {
93
93
  Authorization: await this._getAuthorizationHeader(),
94
94
  "X-Fern-Language": "JavaScript",
95
95
  "X-Fern-SDK-Name": "candidhealth",
96
- "X-Fern-SDK-Version": "0.14.4",
96
+ "X-Fern-SDK-Version": "0.15.0",
97
97
  },
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
@@ -127,7 +127,7 @@ class V1 {
127
127
  Authorization: await this._getAuthorizationHeader(),
128
128
  "X-Fern-Language": "JavaScript",
129
129
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.14.4",
130
+ "X-Fern-SDK-Version": "0.15.0",
131
131
  },
132
132
  contentType: "application/json",
133
133
  timeoutMs: 60000,
@@ -162,7 +162,7 @@ class V1 {
162
162
  Authorization: await this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.14.4",
165
+ "X-Fern-SDK-Version": "0.15.0",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
@@ -198,7 +198,7 @@ class V1 {
198
198
  Authorization: await this._getAuthorizationHeader(),
199
199
  "X-Fern-Language": "JavaScript",
200
200
  "X-Fern-SDK-Name": "candidhealth",
201
- "X-Fern-SDK-Version": "0.14.4",
201
+ "X-Fern-SDK-Version": "0.15.0",
202
202
  },
203
203
  contentType: "application/json",
204
204
  body: await serializers.patientRefunds.v1.PatientRefundUpdate.jsonOrThrow(request, {
@@ -234,7 +234,7 @@ class V1 {
234
234
  Authorization: await this._getAuthorizationHeader(),
235
235
  "X-Fern-Language": "JavaScript",
236
236
  "X-Fern-SDK-Name": "candidhealth",
237
- "X-Fern-SDK-Version": "0.14.4",
237
+ "X-Fern-SDK-Version": "0.15.0",
238
238
  },
239
239
  contentType: "application/json",
240
240
  timeoutMs: 60000,
@@ -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.14.4",
52
+ "X-Fern-SDK-Version": "0.15.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class V3 {
89
89
  Authorization: await this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.14.4",
92
+ "X-Fern-SDK-Version": "0.15.0",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as CandidApi from "../../..";
7
+ export declare namespace ServiceFacility {
8
+ interface Options {
9
+ environment?: environments.CandidApiEnvironment | string;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ }
13
+ export declare class ServiceFacility {
14
+ protected readonly options: ServiceFacility.Options;
15
+ constructor(options: ServiceFacility.Options);
16
+ update(serviceFacilityId: CandidApi.ServiceFacilityId, request?: CandidApi.EncounterServiceFacilityUpdate): Promise<core.APIResponse<CandidApi.EncounterServiceFacility, CandidApi.serviceFacility.update.Error>>;
17
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
18
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.ServiceFacility = void 0;
33
+ const environments = __importStar(require("../../../../environments"));
34
+ const core = __importStar(require("../../../../core"));
35
+ const CandidApi = __importStar(require("../../.."));
36
+ const serializers = __importStar(require("../../../../serialization"));
37
+ const url_join_1 = __importDefault(require("url-join"));
38
+ class ServiceFacility {
39
+ options;
40
+ constructor(options) {
41
+ this.options = options;
42
+ }
43
+ async update(serviceFacilityId, request = {}) {
44
+ const _response = await core.fetcher({
45
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/service_facility/v2/${await serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId)}`),
46
+ method: "PATCH",
47
+ headers: {
48
+ Authorization: await this._getAuthorizationHeader(),
49
+ "X-Fern-Language": "JavaScript",
50
+ "X-Fern-SDK-Name": "candidhealth",
51
+ "X-Fern-SDK-Version": "0.15.0",
52
+ },
53
+ contentType: "application/json",
54
+ body: await serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, {
55
+ unrecognizedObjectKeys: "strip",
56
+ }),
57
+ timeoutMs: 60000,
58
+ });
59
+ if (_response.ok) {
60
+ return {
61
+ ok: true,
62
+ body: await serializers.EncounterServiceFacility.parseOrThrow(_response.body, {
63
+ unrecognizedObjectKeys: "passthrough",
64
+ allowUnrecognizedUnionMembers: true,
65
+ allowUnrecognizedEnumValues: true,
66
+ breadcrumbsPrefix: ["response"],
67
+ }),
68
+ };
69
+ }
70
+ return {
71
+ ok: false,
72
+ error: CandidApi.serviceFacility.update.Error._unknown(_response.error),
73
+ };
74
+ }
75
+ async _getAuthorizationHeader() {
76
+ const bearer = await core.Supplier.get(this.options.token);
77
+ if (bearer != null) {
78
+ return `Bearer ${bearer}`;
79
+ }
80
+ return undefined;
81
+ }
82
+ }
83
+ exports.ServiceFacility = ServiceFacility;
@@ -0,0 +1,2 @@
1
+ export * from "./requests";
2
+ export * as update from "./update";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.update = void 0;
30
+ __exportStar(require("./requests"), exports);
31
+ exports.update = __importStar(require("./update"));
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../..";
5
+ export interface EncounterServiceFacilityUpdate {
6
+ organizationName?: string;
7
+ /**
8
+ * An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.
9
+ * Box 32 section (a) of the CMS-1500 claim form.
10
+ *
11
+ */
12
+ npi?: string;
13
+ /**
14
+ * zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use "9998" as per CMS documentation.
15
+ *
16
+ */
17
+ address?: CandidApi.StreetAddressLongZip;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { EncounterServiceFacilityUpdate } from "./EncounterServiceFacilityUpdate";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ import * as core from "../../../../core";
6
+ export declare type Error = CandidApi.serviceFacility.update.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.serviceFacility.update.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.serviceFacility.update.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.serviceFacility.update.Error, visitor: CandidApi.serviceFacility.update.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../.."));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.serviceFacility.update.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -1 +1,2 @@
1
1
  export * from "./types";
2
+ export * from "./client";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -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.14.4",
52
+ "X-Fern-SDK-Version": "0.15.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -119,7 +119,7 @@ class V3 {
119
119
  Authorization: await this._getAuthorizationHeader(),
120
120
  "X-Fern-Language": "JavaScript",
121
121
  "X-Fern-SDK-Name": "candidhealth",
122
- "X-Fern-SDK-Version": "0.14.4",
122
+ "X-Fern-SDK-Version": "0.15.0",
123
123
  },
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
@@ -163,7 +163,7 @@ class V3 {
163
163
  Authorization: await this._getAuthorizationHeader(),
164
164
  "X-Fern-Language": "JavaScript",
165
165
  "X-Fern-SDK-Name": "candidhealth",
166
- "X-Fern-SDK-Version": "0.14.4",
166
+ "X-Fern-SDK-Version": "0.15.0",
167
167
  },
168
168
  contentType: "application/json",
169
169
  timeoutMs: 60000,
@@ -207,7 +207,7 @@ class V3 {
207
207
  Authorization: await this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "candidhealth",
210
- "X-Fern-SDK-Version": "0.14.4",
210
+ "X-Fern-SDK-Version": "0.15.0",
211
211
  },
212
212
  contentType: "application/json",
213
213
  body: await serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class V3 {
237
237
  Authorization: await this._getAuthorizationHeader(),
238
238
  "X-Fern-Language": "JavaScript",
239
239
  "X-Fern-SDK-Name": "candidhealth",
240
- "X-Fern-SDK-Version": "0.14.4",
240
+ "X-Fern-SDK-Version": "0.15.0",
241
241
  },
242
242
  contentType: "application/json",
243
243
  body: await serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -92,7 +92,7 @@ class V1 {
92
92
  Authorization: await this._getAuthorizationHeader(),
93
93
  "X-Fern-Language": "JavaScript",
94
94
  "X-Fern-SDK-Name": "candidhealth",
95
- "X-Fern-SDK-Version": "0.14.4",
95
+ "X-Fern-SDK-Version": "0.15.0",
96
96
  },
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
@@ -126,7 +126,7 @@ class V1 {
126
126
  Authorization: await this._getAuthorizationHeader(),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.14.4",
129
+ "X-Fern-SDK-Version": "0.15.0",
130
130
  },
131
131
  contentType: "application/json",
132
132
  timeoutMs: 60000,
@@ -161,7 +161,7 @@ class V1 {
161
161
  Authorization: await this._getAuthorizationHeader(),
162
162
  "X-Fern-Language": "JavaScript",
163
163
  "X-Fern-SDK-Name": "candidhealth",
164
- "X-Fern-SDK-Version": "0.14.4",
164
+ "X-Fern-SDK-Version": "0.15.0",
165
165
  },
166
166
  contentType: "application/json",
167
167
  body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -197,7 +197,7 @@ class V1 {
197
197
  Authorization: await this._getAuthorizationHeader(),
198
198
  "X-Fern-Language": "JavaScript",
199
199
  "X-Fern-SDK-Name": "candidhealth",
200
- "X-Fern-SDK-Version": "0.14.4",
200
+ "X-Fern-SDK-Version": "0.15.0",
201
201
  },
202
202
  contentType: "application/json",
203
203
  timeoutMs: 60000,
@@ -43,3 +43,4 @@ export * from "./serviceFacility/types";
43
43
  export * as tags from "./tags";
44
44
  export * from "./tags/types";
45
45
  export * as eligibility from "./eligibility";
46
+ export * from "./serviceFacility/client/requests";
@@ -72,3 +72,4 @@ __exportStar(require("./serviceFacility/types"), exports);
72
72
  exports.tags = __importStar(require("./tags"));
73
73
  __exportStar(require("./tags/types"), exports);
74
74
  exports.eligibility = __importStar(require("./eligibility"));
75
+ __exportStar(require("./serviceFacility/client/requests"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../..";
5
+ import * as CandidApi from "../../../../../api";
6
+ import * as core from "../../../../../core";
7
+ export declare const EncounterServiceFacilityUpdate: core.serialization.Schema<serializers.EncounterServiceFacilityUpdate.Raw, CandidApi.EncounterServiceFacilityUpdate>;
8
+ export declare namespace EncounterServiceFacilityUpdate {
9
+ interface Raw {
10
+ organization_name?: string | null;
11
+ npi?: string | null;
12
+ address?: serializers.StreetAddressLongZip.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.EncounterServiceFacilityUpdate = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.EncounterServiceFacilityUpdate = core.serialization.object({
32
+ organizationName: core.serialization.property("organization_name", core.serialization.string().optional()),
33
+ npi: core.serialization.string().optional(),
34
+ address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).StreetAddressLongZip).optional(),
35
+ });
@@ -0,0 +1 @@
1
+ export { EncounterServiceFacilityUpdate } from "./EncounterServiceFacilityUpdate";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EncounterServiceFacilityUpdate = void 0;
4
+ var EncounterServiceFacilityUpdate_1 = require("./EncounterServiceFacilityUpdate");
5
+ Object.defineProperty(exports, "EncounterServiceFacilityUpdate", { enumerable: true, get: function () { return EncounterServiceFacilityUpdate_1.EncounterServiceFacilityUpdate; } });
@@ -1 +1,2 @@
1
1
  export * from "./types";
2
+ export * from "./client";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.14.4",
3
+ "version": "0.15.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
@@ -43,3 +43,4 @@ export * from "./serviceFacility/types";
43
43
  export * as tags from "./tags";
44
44
  export * from "./tags/types";
45
45
  export * as eligibility from "./eligibility";
46
+ export * from "./serviceFacility/client/requests";
@@ -72,3 +72,4 @@ __exportStar(require("./serviceFacility/types"), exports);
72
72
  exports.tags = __importStar(require("./tags"));
73
73
  __exportStar(require("./tags/types"), exports);
74
74
  exports.eligibility = __importStar(require("./eligibility"));
75
+ __exportStar(require("./serviceFacility/client/requests"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../..";
5
+ import * as CandidApi from "../../../../../api";
6
+ import * as core from "../../../../../core";
7
+ export declare const EncounterServiceFacilityUpdate: core.serialization.Schema<serializers.EncounterServiceFacilityUpdate.Raw, CandidApi.EncounterServiceFacilityUpdate>;
8
+ export declare namespace EncounterServiceFacilityUpdate {
9
+ interface Raw {
10
+ organization_name?: string | null;
11
+ npi?: string | null;
12
+ address?: serializers.StreetAddressLongZip.Raw | null;
13
+ }
14
+ }