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
package/Client.d.ts CHANGED
@@ -20,6 +20,7 @@ import { PatientRefunds } from "./api/resources/patientRefunds/client/Client";
20
20
  import { Payers } from "./api/resources/payers/client/Client";
21
21
  import { Tasks } from "./api/resources/tasks/client/Client";
22
22
  import { WriteOffs } from "./api/resources/writeOffs/client/Client";
23
+ import { ServiceFacility } from "./api/resources/serviceFacility/client/Client";
23
24
  export declare namespace CandidApiClient {
24
25
  interface Options {
25
26
  environment?: environments.CandidApiEnvironment | string;
@@ -63,4 +64,6 @@ export declare class CandidApiClient {
63
64
  get tasks(): Tasks;
64
65
  protected _writeOffs: WriteOffs | undefined;
65
66
  get writeOffs(): WriteOffs;
67
+ protected _serviceFacility: ServiceFacility | undefined;
68
+ get serviceFacility(): ServiceFacility;
66
69
  }
package/Client.js CHANGED
@@ -21,6 +21,7 @@ const Client_14 = require("./api/resources/patientRefunds/client/Client");
21
21
  const Client_15 = require("./api/resources/payers/client/Client");
22
22
  const Client_16 = require("./api/resources/tasks/client/Client");
23
23
  const Client_17 = require("./api/resources/writeOffs/client/Client");
24
+ const Client_18 = require("./api/resources/serviceFacility/client/Client");
24
25
  class CandidApiClient {
25
26
  options;
26
27
  constructor(options) {
@@ -94,5 +95,9 @@ class CandidApiClient {
94
95
  get writeOffs() {
95
96
  return (this._writeOffs ??= new Client_17.WriteOffs(this.options));
96
97
  }
98
+ _serviceFacility;
99
+ get serviceFacility() {
100
+ return (this._serviceFacility ??= new Client_18.ServiceFacility(this.options));
101
+ }
97
102
  }
98
103
  exports.CandidApiClient = CandidApiClient;
@@ -17,7 +17,7 @@ export declare class V2 {
17
17
  * Authenticating with the Candid Health API.
18
18
  *
19
19
  * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
20
- * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
20
+ * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
21
21
  *
22
22
  * The bearer token should be provided in the `Authorization` header for all subsequent API calls.
23
23
  *
@@ -44,7 +44,7 @@ class V2 {
44
44
  * Authenticating with the Candid Health API.
45
45
  *
46
46
  * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
47
- * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
47
+ * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
48
48
  *
49
49
  * The bearer token should be provided in the `Authorization` header for all subsequent API calls.
50
50
  *
@@ -62,7 +62,7 @@ class V2 {
62
62
  Authorization: await this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "candidhealth",
65
- "X-Fern-SDK-Version": "0.14.4",
65
+ "X-Fern-SDK-Version": "0.15.0",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.14.4",
51
+ "X-Fern-SDK-Version": "0.15.0",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.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.14.4",
52
+ "X-Fern-SDK-Version": "0.15.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -136,7 +136,7 @@ class V2 {
136
136
  Authorization: await this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "candidhealth",
139
- "X-Fern-SDK-Version": "0.14.4",
139
+ "X-Fern-SDK-Version": "0.15.0",
140
140
  },
141
141
  contentType: "application/json",
142
142
  queryParameters: _queryParams,
@@ -169,7 +169,7 @@ class V2 {
169
169
  Authorization: await this._getAuthorizationHeader(),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "candidhealth",
172
- "X-Fern-SDK-Version": "0.14.4",
172
+ "X-Fern-SDK-Version": "0.15.0",
173
173
  },
174
174
  contentType: "application/json",
175
175
  body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
@@ -201,7 +201,7 @@ class V2 {
201
201
  Authorization: await this._getAuthorizationHeader(),
202
202
  "X-Fern-Language": "JavaScript",
203
203
  "X-Fern-SDK-Name": "candidhealth",
204
- "X-Fern-SDK-Version": "0.14.4",
204
+ "X-Fern-SDK-Version": "0.15.0",
205
205
  },
206
206
  contentType: "application/json",
207
207
  timeoutMs: 60000,
@@ -239,7 +239,7 @@ class V2 {
239
239
  Authorization: await this._getAuthorizationHeader(),
240
240
  "X-Fern-Language": "JavaScript",
241
241
  "X-Fern-SDK-Name": "candidhealth",
242
- "X-Fern-SDK-Version": "0.14.4",
242
+ "X-Fern-SDK-Version": "0.15.0",
243
243
  },
244
244
  contentType: "application/json",
245
245
  body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
@@ -65,7 +65,7 @@ class V2 {
65
65
  Authorization: await this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.14.4",
68
+ "X-Fern-SDK-Version": "0.15.0",
69
69
  },
70
70
  contentType: "application/json",
71
71
  body: request,
@@ -103,7 +103,7 @@ class V4 {
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.14.4",
106
+ "X-Fern-SDK-Version": "0.15.0",
107
107
  },
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
@@ -133,7 +133,7 @@ class V4 {
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.14.4",
136
+ "X-Fern-SDK-Version": "0.15.0",
137
137
  },
138
138
  contentType: "application/json",
139
139
  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.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -213,7 +213,7 @@ class V4 {
213
213
  Authorization: await this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "candidhealth",
216
- "X-Fern-SDK-Version": "0.14.4",
216
+ "X-Fern-SDK-Version": "0.15.0",
217
217
  },
218
218
  contentType: "application/json",
219
219
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.14.4",
55
+ "X-Fern-SDK-Version": "0.15.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -54,7 +54,7 @@ class V2 {
54
54
  Authorization: await this._getAuthorizationHeader(),
55
55
  "X-Fern-Language": "JavaScript",
56
56
  "X-Fern-SDK-Name": "candidhealth",
57
- "X-Fern-SDK-Version": "0.14.4",
57
+ "X-Fern-SDK-Version": "0.15.0",
58
58
  },
59
59
  contentType: "application/json",
60
60
  body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -109,7 +109,7 @@ class V2 {
109
109
  Authorization: await this._getAuthorizationHeader(),
110
110
  "X-Fern-Language": "JavaScript",
111
111
  "X-Fern-SDK-Name": "candidhealth",
112
- "X-Fern-SDK-Version": "0.14.4",
112
+ "X-Fern-SDK-Version": "0.15.0",
113
113
  },
114
114
  contentType: "application/json",
115
115
  body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: await this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.14.4",
71
+ "X-Fern-SDK-Version": "0.15.0",
72
72
  },
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.14.4",
55
+ "X-Fern-SDK-Version": "0.15.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -102,7 +102,7 @@ class V1 {
102
102
  Authorization: await this._getAuthorizationHeader(),
103
103
  "X-Fern-Language": "JavaScript",
104
104
  "X-Fern-SDK-Name": "candidhealth",
105
- "X-Fern-SDK-Version": "0.14.4",
105
+ "X-Fern-SDK-Version": "0.15.0",
106
106
  },
107
107
  contentType: "application/json",
108
108
  timeoutMs: 60000,
@@ -135,7 +135,7 @@ class V1 {
135
135
  Authorization: await this._getAuthorizationHeader(),
136
136
  "X-Fern-Language": "JavaScript",
137
137
  "X-Fern-SDK-Name": "candidhealth",
138
- "X-Fern-SDK-Version": "0.14.4",
138
+ "X-Fern-SDK-Version": "0.15.0",
139
139
  },
140
140
  contentType: "application/json",
141
141
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -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);
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.14.4",
55
+ "X-Fern-SDK-Version": "0.15.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  timeoutMs: 60000,
@@ -85,7 +85,7 @@ class V1 {
85
85
  Authorization: await this._getAuthorizationHeader(),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "candidhealth",
88
- "X-Fern-SDK-Version": "0.14.4",
88
+ "X-Fern-SDK-Version": "0.15.0",
89
89
  },
90
90
  contentType: "application/json",
91
91
  body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -121,7 +121,7 @@ class V1 {
121
121
  Authorization: await this._getAuthorizationHeader(),
122
122
  "X-Fern-Language": "JavaScript",
123
123
  "X-Fern-SDK-Name": "candidhealth",
124
- "X-Fern-SDK-Version": "0.14.4",
124
+ "X-Fern-SDK-Version": "0.15.0",
125
125
  },
126
126
  contentType: "application/json",
127
127
  timeoutMs: 60000,
@@ -80,7 +80,7 @@ class V1 {
80
80
  Authorization: await this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "candidhealth",
83
- "X-Fern-SDK-Version": "0.14.4",
83
+ "X-Fern-SDK-Version": "0.15.0",
84
84
  },
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
@@ -115,7 +115,7 @@ class V1 {
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.14.4",
118
+ "X-Fern-SDK-Version": "0.15.0",
119
119
  },
120
120
  contentType: "application/json",
121
121
  timeoutMs: 60000,
@@ -150,7 +150,7 @@ class V1 {
150
150
  Authorization: await this._getAuthorizationHeader(),
151
151
  "X-Fern-Language": "JavaScript",
152
152
  "X-Fern-SDK-Name": "candidhealth",
153
- "X-Fern-SDK-Version": "0.14.4",
153
+ "X-Fern-SDK-Version": "0.15.0",
154
154
  },
155
155
  contentType: "application/json",
156
156
  body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -187,7 +187,7 @@ class V1 {
187
187
  Authorization: await this._getAuthorizationHeader(),
188
188
  "X-Fern-Language": "JavaScript",
189
189
  "X-Fern-SDK-Name": "candidhealth",
190
- "X-Fern-SDK-Version": "0.14.4",
190
+ "X-Fern-SDK-Version": "0.15.0",
191
191
  },
192
192
  contentType: "application/json",
193
193
  body: await serializers.insuranceRefunds.v1.InsuranceRefundUpdate.jsonOrThrow(request, {
@@ -225,7 +225,7 @@ class V1 {
225
225
  Authorization: await this._getAuthorizationHeader(),
226
226
  "X-Fern-Language": "JavaScript",
227
227
  "X-Fern-SDK-Name": "candidhealth",
228
- "X-Fern-SDK-Version": "0.14.4",
228
+ "X-Fern-SDK-Version": "0.15.0",
229
229
  },
230
230
  contentType: "application/json",
231
231
  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,
@@ -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.14.4",
118
+ "X-Fern-SDK-Version": "0.15.0",
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.14.4",
148
+ "X-Fern-SDK-Version": "0.15.0",
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.14.4",
195
+ "X-Fern-SDK-Version": "0.15.0",
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.14.4",
52
+ "X-Fern-SDK-Version": "0.15.0",
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.14.4",
106
+ "X-Fern-SDK-Version": "0.15.0",
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.14.4",
136
+ "X-Fern-SDK-Version": "0.15.0",
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.14.4",
180
+ "X-Fern-SDK-Version": "0.15.0",
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.14.4",
225
+ "X-Fern-SDK-Version": "0.15.0",
226
226
  },
227
227
  contentType: "application/json",
228
228
  timeoutMs: 60000,
@@ -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";