candidhealth 0.14.3 → 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 (123) 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 +19 -5
  7. package/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
  8. package/api/resources/contracts/resources/v2/client/delete.js +11 -0
  9. package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
  10. package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
  11. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  12. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  13. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  14. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  15. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  16. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  17. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  18. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  19. package/api/resources/index.d.ts +1 -0
  20. package/api/resources/index.js +1 -0
  21. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  22. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  23. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  24. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  25. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  26. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  27. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  28. package/api/resources/serviceFacility/client/Client.d.ts +18 -0
  29. package/api/resources/serviceFacility/client/Client.js +83 -0
  30. package/api/resources/serviceFacility/client/index.d.ts +2 -0
  31. package/api/resources/serviceFacility/client/index.js +31 -0
  32. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  33. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  34. package/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  35. package/api/resources/serviceFacility/client/requests/index.js +2 -0
  36. package/api/resources/serviceFacility/client/update.d.ts +22 -0
  37. package/api/resources/serviceFacility/client/update.js +47 -0
  38. package/api/resources/serviceFacility/index.d.ts +1 -0
  39. package/api/resources/serviceFacility/index.js +1 -0
  40. package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +4 -0
  41. package/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +4 -0
  42. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  43. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  44. package/dist/Client.d.ts +3 -0
  45. package/dist/Client.js +5 -0
  46. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  47. package/dist/api/resources/auth/resources/v2/client/Client.js +2 -2
  48. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  49. package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -5
  50. package/dist/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
  51. package/dist/api/resources/contracts/resources/v2/client/delete.js +11 -0
  52. package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
  53. package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
  54. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  55. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  56. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  57. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  58. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  59. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  60. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  61. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  62. package/dist/api/resources/index.d.ts +1 -0
  63. package/dist/api/resources/index.js +1 -0
  64. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  65. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  66. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  67. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  68. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  69. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  70. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  71. package/dist/api/resources/serviceFacility/client/Client.d.ts +18 -0
  72. package/dist/api/resources/serviceFacility/client/Client.js +83 -0
  73. package/dist/api/resources/serviceFacility/client/index.d.ts +2 -0
  74. package/dist/api/resources/serviceFacility/client/index.js +31 -0
  75. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  76. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  77. package/dist/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  78. package/dist/api/resources/serviceFacility/client/requests/index.js +2 -0
  79. package/dist/api/resources/serviceFacility/client/update.d.ts +22 -0
  80. package/dist/api/resources/serviceFacility/client/update.js +47 -0
  81. package/dist/api/resources/serviceFacility/index.d.ts +1 -0
  82. package/dist/api/resources/serviceFacility/index.js +1 -0
  83. package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +4 -0
  84. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +4 -0
  85. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  86. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  87. package/dist/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
  88. package/dist/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
  89. package/dist/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
  90. package/dist/serialization/resources/contracts/resources/v2/client/index.js +2 -1
  91. package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
  92. package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
  93. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  94. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  95. package/dist/serialization/resources/index.d.ts +1 -0
  96. package/dist/serialization/resources/index.js +1 -0
  97. package/dist/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  98. package/dist/serialization/resources/serviceFacility/client/index.js +17 -0
  99. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  100. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  101. package/dist/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  102. package/dist/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  103. package/dist/serialization/resources/serviceFacility/index.d.ts +1 -0
  104. package/dist/serialization/resources/serviceFacility/index.js +1 -0
  105. package/package.json +1 -1
  106. package/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
  107. package/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
  108. package/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
  109. package/serialization/resources/contracts/resources/v2/client/index.js +2 -1
  110. package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
  111. package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
  112. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  113. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  114. package/serialization/resources/index.d.ts +1 -0
  115. package/serialization/resources/index.js +1 -0
  116. package/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  117. package/serialization/resources/serviceFacility/client/index.js +17 -0
  118. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  119. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  120. package/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  121. package/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  122. package/serialization/resources/serviceFacility/index.d.ts +1 -0
  123. package/serialization/resources/serviceFacility/index.js +1 -0
@@ -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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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.3",
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);
@@ -26,5 +26,9 @@ export interface EncounterServiceFacility {
26
26
  *
27
27
  */
28
28
  npi?: string;
29
+ /**
30
+ * 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.
31
+ *
32
+ */
29
33
  address: CandidApi.StreetAddressLongZip;
30
34
  }
@@ -20,5 +20,9 @@ export interface EncounterServiceFacilityBase {
20
20
  *
21
21
  */
22
22
  npi?: string;
23
+ /**
24
+ * 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.
25
+ *
26
+ */
23
27
  address: CandidApi.StreetAddressLongZip;
24
28
  }
@@ -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.3",
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.3",
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.3",
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.3",
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.3",
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" }),