candidhealth 0.41.2 → 0.41.5

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 (238) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +15 -10
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -3
  6. package/api/resources/chargeCapture/resources/v1/client/Client.js +7 -9
  7. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -8
  8. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +0 -7
  9. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +0 -5
  10. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +1 -3
  11. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +0 -2
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  13. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  14. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -2
  15. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  16. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  17. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  18. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  19. package/api/resources/diagnoses/client/Client.js +3 -3
  20. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  21. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  22. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  23. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  24. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  25. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  26. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  27. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  28. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  29. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  30. package/api/resources/index.d.ts +1 -0
  31. package/api/resources/index.js +3 -2
  32. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  33. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  34. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  35. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  36. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  37. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  38. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  39. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  40. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  41. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  42. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  43. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  44. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  45. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  46. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  47. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  48. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  49. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  50. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  51. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  52. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  53. package/api/resources/serviceFacility/client/Client.js +1 -1
  54. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  55. package/api/resources/superbills/client/Client.d.ts +30 -0
  56. package/api/resources/superbills/client/Client.js +17 -0
  57. package/api/resources/superbills/client/index.d.ts +1 -0
  58. package/api/resources/superbills/client/index.js +2 -0
  59. package/api/resources/superbills/index.d.ts +2 -0
  60. package/api/resources/superbills/index.js +18 -0
  61. package/api/resources/superbills/resources/index.d.ts +1 -0
  62. package/api/resources/superbills/resources/index.js +37 -0
  63. package/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  64. package/api/resources/superbills/resources/v1/client/Client.js +137 -0
  65. package/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  66. package/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  67. package/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  68. package/api/resources/superbills/resources/v1/client/index.js +41 -0
  69. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  70. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  71. package/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  72. package/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  73. package/api/resources/superbills/resources/v1/index.d.ts +2 -0
  74. package/api/resources/superbills/resources/v1/index.js +18 -0
  75. package/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  76. package/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  77. package/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  78. package/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  79. package/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  80. package/api/resources/superbills/resources/v1/types/index.js +18 -0
  81. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  82. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  83. package/dist/Client.d.ts +3 -0
  84. package/dist/Client.js +15 -10
  85. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  86. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  87. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -3
  88. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +7 -9
  89. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -8
  90. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +0 -7
  91. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +0 -5
  92. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +1 -3
  93. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +0 -2
  94. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  95. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  96. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -2
  97. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  98. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  99. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  100. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  101. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  102. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  103. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  104. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  105. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  106. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  107. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  108. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  109. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  110. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  111. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  112. package/dist/api/resources/index.d.ts +1 -0
  113. package/dist/api/resources/index.js +3 -2
  114. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  115. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  116. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  117. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  118. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  119. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  120. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  121. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  122. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  123. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  124. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  125. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  126. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  127. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  128. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  129. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  130. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  131. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  132. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  133. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  134. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  135. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  136. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  137. package/dist/api/resources/superbills/client/Client.d.ts +30 -0
  138. package/dist/api/resources/superbills/client/Client.js +17 -0
  139. package/dist/api/resources/superbills/client/index.d.ts +1 -0
  140. package/dist/api/resources/superbills/client/index.js +2 -0
  141. package/dist/api/resources/superbills/index.d.ts +2 -0
  142. package/dist/api/resources/superbills/index.js +18 -0
  143. package/dist/api/resources/superbills/resources/index.d.ts +1 -0
  144. package/dist/api/resources/superbills/resources/index.js +37 -0
  145. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  146. package/dist/api/resources/superbills/resources/v1/client/Client.js +137 -0
  147. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  148. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  149. package/dist/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  150. package/dist/api/resources/superbills/resources/v1/client/index.js +41 -0
  151. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  152. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  153. package/dist/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  154. package/dist/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  155. package/dist/api/resources/superbills/resources/v1/index.d.ts +2 -0
  156. package/dist/api/resources/superbills/resources/v1/index.js +18 -0
  157. package/dist/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  158. package/dist/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  159. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  160. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  161. package/dist/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  162. package/dist/api/resources/superbills/resources/v1/types/index.js +18 -0
  163. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  164. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  165. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +0 -1
  166. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +0 -1
  167. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +0 -1
  168. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +0 -1
  169. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +0 -1
  170. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +0 -1
  171. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +1 -1
  172. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +1 -9
  173. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  174. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  175. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  176. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  177. package/dist/serialization/resources/index.d.ts +1 -0
  178. package/dist/serialization/resources/index.js +3 -2
  179. package/dist/serialization/resources/superbills/index.d.ts +1 -0
  180. package/dist/serialization/resources/superbills/index.js +17 -0
  181. package/dist/serialization/resources/superbills/resources/index.d.ts +1 -0
  182. package/dist/serialization/resources/superbills/resources/index.js +37 -0
  183. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  184. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  185. package/dist/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  186. package/dist/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  187. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  188. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  189. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  190. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  191. package/dist/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  192. package/dist/serialization/resources/superbills/resources/v1/index.js +18 -0
  193. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  194. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  195. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  196. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  197. package/dist/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  198. package/dist/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  199. package/dist/version.d.ts +1 -1
  200. package/dist/version.js +1 -1
  201. package/package.json +1 -1
  202. package/reference.md +62 -2
  203. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +0 -1
  204. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +0 -1
  205. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +0 -1
  206. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +0 -1
  207. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +0 -1
  208. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +0 -1
  209. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +1 -1
  210. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +1 -9
  211. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  212. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  213. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  214. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  215. package/serialization/resources/index.d.ts +1 -0
  216. package/serialization/resources/index.js +3 -2
  217. package/serialization/resources/superbills/index.d.ts +1 -0
  218. package/serialization/resources/superbills/index.js +17 -0
  219. package/serialization/resources/superbills/resources/index.d.ts +1 -0
  220. package/serialization/resources/superbills/resources/index.js +37 -0
  221. package/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  222. package/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  223. package/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  224. package/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  225. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  226. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  227. package/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  228. package/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  229. package/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  230. package/serialization/resources/superbills/resources/v1/index.js +18 -0
  231. package/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  232. package/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  233. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  234. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  235. package/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  236. package/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  237. package/version.d.ts +1 -1
  238. package/version.js +1 -1
@@ -127,7 +127,7 @@ class V1 {
127
127
  const _response = yield core.fetcher({
128
128
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/write-offs/v1"),
129
129
  method: "GET",
130
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
131
  contentType: "application/json",
132
132
  queryParameters: _queryParams,
133
133
  requestType: "json",
@@ -167,7 +167,7 @@ class V1 {
167
167
  const _response = yield core.fetcher({
168
168
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
169
169
  method: "GET",
170
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +216,7 @@ class V1 {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/write-offs/v1"),
218
218
  method: "POST",
219
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
260
260
  method: "POST",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -297,7 +297,7 @@ class V1 {
297
297
  const _response = yield core.fetcher({
298
298
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert`),
299
299
  method: "POST",
300
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
301
  contentType: "application/json",
302
302
  requestType: "json",
303
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -336,7 +336,7 @@ class V1 {
336
336
  const _response = yield core.fetcher({
337
337
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert-era-originated`),
338
338
  method: "POST",
339
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.2", "User-Agent": "candidhealth/0.41.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
339
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.5", "User-Agent": "candidhealth/0.41.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
340
  contentType: "application/json",
341
341
  requestType: "json",
342
342
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -14,6 +14,5 @@ export declare namespace ChargeCaptureUpdate {
14
14
  ehr_source_url?: string | null;
15
15
  patient_external_id?: string | null;
16
16
  status?: ChargeCaptureStatus.Raw | null;
17
- date_of_service?: string | null;
18
17
  }
19
18
  }
@@ -46,5 +46,4 @@ exports.ChargeCaptureUpdate = core.serialization.object({
46
46
  ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
47
47
  patientExternalId: core.serialization.property("patient_external_id", core.serialization.string().optional()),
48
48
  status: ChargeCaptureStatus_1.ChargeCaptureStatus.optional(),
49
- dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
50
49
  });
@@ -12,7 +12,6 @@ export declare namespace CreateChargeCaptureRequest {
12
12
  data: ChargeCaptureData.Raw;
13
13
  charge_external_id: string;
14
14
  ehr_source_url?: string | null;
15
- date_of_service?: string | null;
16
15
  patient_external_id: string;
17
16
  status: ChargeCaptureStatus.Raw;
18
17
  }
@@ -44,7 +44,6 @@ exports.CreateChargeCaptureRequest = core.serialization.object({
44
44
  data: ChargeCaptureData_1.ChargeCaptureData,
45
45
  chargeExternalId: core.serialization.property("charge_external_id", core.serialization.string()),
46
46
  ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
47
- dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
48
47
  patientExternalId: core.serialization.property("patient_external_id", core.serialization.string()),
49
48
  status: ChargeCaptureStatus_1.ChargeCaptureStatus,
50
49
  });
@@ -20,7 +20,6 @@ export declare namespace ChargeCapture {
20
20
  patient_external_id: PatientExternalId.Raw;
21
21
  charge_external_id: string;
22
22
  ehr_source_url?: string | null;
23
- date_of_service?: string | null;
24
23
  error?: ChargeCaptureError.Raw | null;
25
24
  updates: ChargeCapturePostBilledChange.Raw[];
26
25
  bundle_id?: ChargeCaptureBundleId.Raw | null;
@@ -52,7 +52,6 @@ exports.ChargeCapture = core.serialization.object({
52
52
  patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
53
53
  chargeExternalId: core.serialization.property("charge_external_id", core.serialization.string()),
54
54
  ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
55
- dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
56
55
  error: ChargeCaptureError_1.ChargeCaptureError.optional(),
57
56
  updates: core.serialization.list(ChargeCapturePostBilledChange_1.ChargeCapturePostBilledChange),
58
57
  bundleId: core.serialization.property("bundle_id", ChargeCaptureBundleId_1.ChargeCaptureBundleId.optional()),
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const ChargeCaptureStatus: core.serialization.Schema<serializers.chargeCapture.v1.ChargeCaptureStatus.Raw, CandidApi.chargeCapture.v1.ChargeCaptureStatus>;
8
8
  export declare namespace ChargeCaptureStatus {
9
- type Raw = "planned" | "not-billable" | "billable" | "aborted" | "billed" | "entered-in-error" | "unknown";
9
+ type Raw = "planned" | "not-billable" | "billable" | "aborted" | "entered-in-error";
10
10
  }
@@ -38,12 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChargeCaptureStatus = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.ChargeCaptureStatus = core.serialization.enum_([
42
- "planned",
43
- "not-billable",
44
- "billable",
45
- "aborted",
46
- "billed",
47
- "entered-in-error",
48
- "unknown",
49
- ]);
41
+ exports.ChargeCaptureStatus = core.serialization.enum_(["planned", "not-billable", "billable", "aborted", "entered-in-error"]);
@@ -15,6 +15,7 @@ export declare namespace ChargeCaptureBundle {
15
15
  id: ChargeCaptureBundleId.Raw;
16
16
  created_encounter_id?: EncounterId.Raw | null;
17
17
  status: ChargeCaptureBundleStatus.Raw;
18
+ characteristics: Record<string, string>;
18
19
  charge_captures: ChargeCapture.Raw[];
19
20
  errors: ChargeCaptureError.Raw[];
20
21
  }
@@ -47,6 +47,7 @@ exports.ChargeCaptureBundle = core.serialization.object({
47
47
  id: ChargeCaptureBundleId_1.ChargeCaptureBundleId,
48
48
  createdEncounterId: core.serialization.property("created_encounter_id", EncounterId_1.EncounterId.optional()),
49
49
  status: ChargeCaptureBundleStatus_1.ChargeCaptureBundleStatus,
50
+ characteristics: core.serialization.record(core.serialization.string(), core.serialization.string()),
50
51
  chargeCaptures: core.serialization.property("charge_captures", core.serialization.list(ChargeCapture_1.ChargeCapture)),
51
52
  errors: core.serialization.list(ChargeCaptureError_1.ChargeCaptureError),
52
53
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const ChargeCaptureBundleStatus: core.serialization.Schema<serializers.chargeCaptureBundles.v1.ChargeCaptureBundleStatus.Raw, CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleStatus>;
8
8
  export declare namespace ChargeCaptureBundleStatus {
9
- type Raw = "not-started" | "in-progress" | "in-error" | "successful" | "successful-dry-run" | "aborted";
9
+ type Raw = "not-started" | "in-error" | "successful" | "successful-dry-run" | "aborted" | "held";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChargeCaptureBundleStatus = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.ChargeCaptureBundleStatus = core.serialization.enum_(["not-started", "in-progress", "in-error", "successful", "successful-dry-run", "aborted"]);
41
+ exports.ChargeCaptureBundleStatus = core.serialization.enum_(["not-started", "in-error", "successful", "successful-dry-run", "aborted", "held"]);
@@ -35,6 +35,7 @@ export * as payers from "./payers";
35
35
  export * as remitDrafts from "./remitDrafts";
36
36
  export * as remits from "./remits";
37
37
  export * as serviceLines from "./serviceLines";
38
+ export * as superbills from "./superbills";
38
39
  export * as tasks from "./tasks";
39
40
  export * as writeOffs from "./writeOffs";
40
41
  export * as x12 from "./x12";
@@ -36,8 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.remitDrafts = exports.payers = exports.payerPlanGroups = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.credentialing = exports.contracts = exports.clinicalTrials = exports.claimSubmission = exports.chargeCapture = exports.chargeCaptureBundles = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
40
- exports.eligibility = void 0;
39
+ exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.superbills = exports.serviceLines = exports.remits = exports.remitDrafts = exports.payers = exports.payerPlanGroups = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.credentialing = exports.contracts = exports.clinicalTrials = exports.claimSubmission = exports.chargeCapture = exports.chargeCaptureBundles = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
40
+ exports.eligibility = exports.tags = void 0;
41
41
  exports.feeSchedules = __importStar(require("./feeSchedules"));
42
42
  exports.commons = __importStar(require("./commons"));
43
43
  __exportStar(require("./commons/errors"), exports);
@@ -75,6 +75,7 @@ exports.payers = __importStar(require("./payers"));
75
75
  exports.remitDrafts = __importStar(require("./remitDrafts"));
76
76
  exports.remits = __importStar(require("./remits"));
77
77
  exports.serviceLines = __importStar(require("./serviceLines"));
78
+ exports.superbills = __importStar(require("./superbills"));
78
79
  exports.tasks = __importStar(require("./tasks"));
79
80
  exports.writeOffs = __importStar(require("./writeOffs"));
80
81
  exports.x12 = __importStar(require("./x12"));
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -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("./resources"), exports);
@@ -0,0 +1 @@
1
+ export * as v1 from "./v1";
@@ -0,0 +1,37 @@
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 __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.v1 = void 0;
37
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
8
+ export declare const Error: core.serialization.Schema<serializers.superbills.v1.createSuperbill.Error.Raw, CandidApi.superbills.v1.createSuperbill.Error>;
9
+ export declare namespace Error {
10
+ type Raw = Error.UnprocessableEntityError;
11
+ interface UnprocessableEntityError {
12
+ errorName: "UnprocessableEntityError";
13
+ content: UnprocessableEntityErrorMessage.Raw;
14
+ }
15
+ }
@@ -0,0 +1,71 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __rest = (this && this.__rest) || function (s, e) {
39
+ var t = {};
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
+ t[p] = s[p];
42
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
+ t[p[i]] = s[p[i]];
46
+ }
47
+ return t;
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.Error = void 0;
51
+ const CandidApi = __importStar(require("../../../../../../api/index"));
52
+ const core = __importStar(require("../../../../../../core"));
53
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
54
+ exports.Error = core.serialization
55
+ .union("errorName", {
56
+ UnprocessableEntityError: core.serialization.object({
57
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
58
+ }),
59
+ })
60
+ .transform({
61
+ transform: (value) => {
62
+ switch (value.errorName) {
63
+ case "UnprocessableEntityError":
64
+ return CandidApi.superbills.v1.createSuperbill.Error.unprocessableEntityError(value.content);
65
+ }
66
+ },
67
+ untransform: (_a) => {
68
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
69
+ return value;
70
+ },
71
+ });
@@ -0,0 +1,2 @@
1
+ export * as createSuperbill from "./createSuperbill";
2
+ export * from "./requests";
@@ -0,0 +1,41 @@
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 __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.createSuperbill = void 0;
40
+ exports.createSuperbill = __importStar(require("./createSuperbill"));
41
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ import { PatientExternalId } from "../../../../../commons/types/PatientExternalId";
8
+ import { StreetAddressShortZip } from "../../../../../commons/types/StreetAddressShortZip";
9
+ export declare const CreateSuperbillRequest: core.serialization.Schema<serializers.superbills.v1.CreateSuperbillRequest.Raw, CandidApi.superbills.v1.CreateSuperbillRequest>;
10
+ export declare namespace CreateSuperbillRequest {
11
+ interface Raw {
12
+ patient_external_id: PatientExternalId.Raw;
13
+ date_range_min: string;
14
+ date_range_max: string;
15
+ pay_to_address?: StreetAddressShortZip.Raw | null;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CreateSuperbillRequest = void 0;
40
+ const core = __importStar(require("../../../../../../../core"));
41
+ const PatientExternalId_1 = require("../../../../../commons/types/PatientExternalId");
42
+ const StreetAddressShortZip_1 = require("../../../../../commons/types/StreetAddressShortZip");
43
+ exports.CreateSuperbillRequest = core.serialization.object({
44
+ patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
45
+ dateRangeMin: core.serialization.property("date_range_min", core.serialization.string()),
46
+ dateRangeMax: core.serialization.property("date_range_max", core.serialization.string()),
47
+ payToAddress: core.serialization.property("pay_to_address", StreetAddressShortZip_1.StreetAddressShortZip.optional()),
48
+ });
@@ -0,0 +1 @@
1
+ export { CreateSuperbillRequest } from "./CreateSuperbillRequest";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateSuperbillRequest = void 0;
4
+ var CreateSuperbillRequest_1 = require("./CreateSuperbillRequest");
5
+ Object.defineProperty(exports, "CreateSuperbillRequest", { enumerable: true, get: function () { return CreateSuperbillRequest_1.CreateSuperbillRequest; } });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
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("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { PatientExternalId } from "../../../../commons/types/PatientExternalId";
8
+ export declare const Superbill: core.serialization.ObjectSchema<serializers.superbills.v1.Superbill.Raw, CandidApi.superbills.v1.Superbill>;
9
+ export declare namespace Superbill {
10
+ interface Raw {
11
+ superbill_id: string;
12
+ patient_external_id: PatientExternalId.Raw;
13
+ authed_url: string;
14
+ date_range_min: string;
15
+ date_range_max: string;
16
+ file_name: string;
17
+ }
18
+ }
@@ -0,0 +1,49 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Superbill = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const PatientExternalId_1 = require("../../../../commons/types/PatientExternalId");
42
+ exports.Superbill = core.serialization.object({
43
+ superbillId: core.serialization.property("superbill_id", core.serialization.string()),
44
+ patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
45
+ authedUrl: core.serialization.property("authed_url", core.serialization.string()),
46
+ dateRangeMin: core.serialization.property("date_range_min", core.serialization.string()),
47
+ dateRangeMax: core.serialization.property("date_range_max", core.serialization.string()),
48
+ fileName: core.serialization.property("file_name", core.serialization.string()),
49
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { Superbill } from "./Superbill";
8
+ export declare const SuperbillResponse: core.serialization.ObjectSchema<serializers.superbills.v1.SuperbillResponse.Raw, CandidApi.superbills.v1.SuperbillResponse>;
9
+ export declare namespace SuperbillResponse {
10
+ interface Raw {
11
+ superbills: Superbill.Raw[];
12
+ }
13
+ }