candidhealth 1.0.0 → 1.3.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 (675) hide show
  1. package/Client.js +2 -2
  2. package/README.md +1 -1
  3. package/api/resources/auth/client/Client.d.ts +3 -3
  4. package/api/resources/auth/client/Client.js +3 -3
  5. package/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
  6. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/Client.js +29 -12
  7. package/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
  8. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/getToken.js +13 -2
  9. package/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
  10. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
  11. package/{dist/serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.js +1 -0
  12. package/api/resources/auth/resources/index.d.ts +1 -1
  13. package/api/resources/auth/resources/index.js +2 -2
  14. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  15. package/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
  16. package/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  17. package/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  18. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  19. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  20. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  21. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  22. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  23. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  24. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  25. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  26. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  27. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  28. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  29. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  30. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  31. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  32. package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
  33. package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
  34. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  35. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
  36. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  37. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
  38. package/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  39. package/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
  40. package/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  41. package/api/resources/commons/types/PhoneNumberOptional.js +5 -0
  42. package/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  43. package/api/resources/commons/types/ProcedureModifier.js +2 -0
  44. package/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  45. package/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
  46. package/api/resources/commons/types/index.d.ts +2 -0
  47. package/api/resources/commons/types/index.js +2 -0
  48. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  49. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  50. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  51. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  52. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  53. package/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  54. package/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  55. package/api/resources/diagnoses/client/Client.js +3 -3
  56. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  57. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  58. package/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  59. package/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  60. package/api/resources/diagnoses/types/index.d.ts +1 -0
  61. package/api/resources/diagnoses/types/index.js +1 -0
  62. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  63. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  64. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  65. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  66. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  67. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  68. package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  69. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  70. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  71. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  72. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  73. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  74. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  75. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  76. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  77. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  78. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  79. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  80. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  81. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  82. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  83. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  84. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  85. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  86. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  87. package/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  88. package/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  89. package/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  90. package/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  91. package/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  92. package/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  93. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  94. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  95. package/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
  96. package/api/resources/encounters/resources/v4/types/index.js +10 -0
  97. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  98. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  99. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  100. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  101. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  102. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  103. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  104. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  105. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  106. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  107. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  108. package/api/resources/index.d.ts +2 -0
  109. package/api/resources/index.js +3 -1
  110. package/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  111. package/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  112. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  113. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  114. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  115. package/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  116. package/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  117. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  118. package/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  119. package/api/resources/individual/types/index.d.ts +4 -0
  120. package/api/resources/individual/types/index.js +4 -0
  121. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  122. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  123. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  124. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  125. package/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  126. package/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  127. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  128. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  129. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  130. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  131. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  132. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  133. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  134. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  135. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  136. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  137. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  138. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  139. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  140. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  141. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +3 -3
  142. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  143. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  144. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  145. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  146. package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  147. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  148. package/api/resources/serviceFacility/client/Client.js +1 -1
  149. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  150. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  151. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  152. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
  153. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  154. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  155. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  156. package/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  157. package/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  158. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  159. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  160. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  161. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  162. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  163. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  164. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  165. package/api/resources/yesNoIndicator/index.d.ts +1 -0
  166. package/api/resources/yesNoIndicator/index.js +17 -0
  167. package/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  168. package/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
  169. package/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  170. package/api/resources/yesNoIndicator/types/index.js +17 -0
  171. package/core/auth/OAuthTokenProvider.d.ts +2 -2
  172. package/dist/Client.js +2 -2
  173. package/dist/api/resources/auth/client/Client.d.ts +3 -3
  174. package/dist/api/resources/auth/client/Client.js +3 -3
  175. package/dist/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
  176. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/Client.js +29 -12
  177. package/dist/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
  178. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/getToken.js +13 -2
  179. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenRequest.js +5 -0
  180. package/dist/api/resources/auth/resources/default/types/AuthGetTokenResponse.js +5 -0
  181. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
  182. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +5 -0
  183. package/dist/api/resources/auth/resources/default/types/TooManyRequestsErrorType.js +5 -0
  184. package/dist/{serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
  185. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/types/index.js +1 -0
  186. package/dist/api/resources/auth/resources/index.d.ts +1 -1
  187. package/dist/api/resources/auth/resources/index.js +2 -2
  188. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  189. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
  190. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +5 -0
  191. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  192. package/dist/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  193. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  194. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  195. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  196. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  197. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  198. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  199. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  200. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  201. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  202. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  203. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  204. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  205. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  206. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +5 -0
  207. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  208. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
  209. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
  210. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  211. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
  212. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  213. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
  214. package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  215. package/dist/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
  216. package/dist/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  217. package/dist/api/resources/commons/types/PhoneNumberOptional.js +5 -0
  218. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  219. package/dist/api/resources/commons/types/ProcedureModifier.js +2 -0
  220. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  221. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
  222. package/dist/api/resources/commons/types/index.d.ts +2 -0
  223. package/dist/api/resources/commons/types/index.js +2 -0
  224. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  225. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  226. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  227. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  228. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  229. package/dist/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  230. package/dist/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  231. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  232. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  233. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  234. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  235. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  236. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  237. package/dist/api/resources/diagnoses/types/index.js +1 -0
  238. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  239. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  240. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  241. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  242. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  243. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  244. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  245. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  246. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  247. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  248. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  249. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  250. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  251. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  252. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  253. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  254. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  255. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  256. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  257. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  258. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  259. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  260. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  261. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  262. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  263. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  264. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  265. package/dist/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  266. package/dist/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  267. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  268. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  269. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  270. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  271. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
  272. package/dist/api/resources/encounters/resources/v4/types/index.js +10 -0
  273. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  274. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  275. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  276. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  277. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  278. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  279. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  280. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  281. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  282. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  283. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  284. package/dist/api/resources/index.d.ts +2 -0
  285. package/dist/api/resources/index.js +3 -1
  286. package/dist/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  287. package/dist/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  288. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  289. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  290. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  291. package/dist/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  292. package/dist/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  293. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  294. package/dist/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  295. package/dist/api/resources/individual/types/index.d.ts +4 -0
  296. package/dist/api/resources/individual/types/index.js +4 -0
  297. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  298. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  299. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  300. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  301. package/dist/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  302. package/dist/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  303. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  304. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  305. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  306. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  307. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  308. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  309. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  310. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  311. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  312. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  313. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  314. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  315. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  316. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  317. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +3 -3
  318. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  319. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  320. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  321. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  322. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  323. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  324. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  325. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  326. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  327. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  328. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
  329. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  330. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  331. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  332. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  333. package/dist/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  334. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  335. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  336. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  337. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  338. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  339. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  340. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  341. package/dist/api/resources/yesNoIndicator/index.d.ts +1 -0
  342. package/dist/api/resources/yesNoIndicator/index.js +17 -0
  343. package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  344. package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
  345. package/dist/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  346. package/dist/api/resources/yesNoIndicator/types/index.js +17 -0
  347. package/dist/core/auth/OAuthTokenProvider.d.ts +2 -2
  348. package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  349. package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
  350. package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  351. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
  352. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  353. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  354. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  355. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  356. package/dist/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.js +1 -0
  357. package/dist/serialization/resources/auth/resources/index.d.ts +1 -1
  358. package/dist/serialization/resources/auth/resources/index.js +2 -2
  359. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  360. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  361. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  362. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  363. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  364. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  365. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  366. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  367. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  368. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  369. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  370. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  371. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  372. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  373. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  374. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  375. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  376. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  377. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  378. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  379. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  380. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  381. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
  382. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
  383. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  384. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  385. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  386. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  387. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  388. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  389. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  390. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
  391. package/dist/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  392. package/dist/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  393. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  394. package/dist/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  395. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  396. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  397. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  398. package/dist/serialization/resources/commons/types/index.js +2 -0
  399. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  400. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  401. package/dist/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  402. package/dist/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  403. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  404. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  405. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  406. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  407. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  408. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  409. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  410. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  411. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  412. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  413. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  414. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  415. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  416. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  417. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  418. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  419. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  420. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  421. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  422. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  423. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  424. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  425. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  426. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  427. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  428. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  429. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  430. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  431. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  432. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  433. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  434. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  435. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  436. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  437. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  438. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  439. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  440. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  441. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
  442. package/dist/serialization/resources/encounters/resources/v4/types/index.js +10 -0
  443. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  444. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  445. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  446. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  447. package/dist/serialization/resources/index.d.ts +2 -0
  448. package/dist/serialization/resources/index.js +3 -1
  449. package/dist/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  450. package/dist/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  451. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  452. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  453. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  454. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  455. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  456. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  457. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  458. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  459. package/dist/serialization/resources/individual/types/index.d.ts +4 -0
  460. package/dist/serialization/resources/individual/types/index.js +4 -0
  461. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  462. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  463. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  464. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  465. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  466. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  467. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  468. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  469. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  470. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  471. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
  472. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
  473. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  474. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  475. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  476. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  477. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  478. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  479. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  480. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  481. package/dist/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  482. package/dist/serialization/resources/yesNoIndicator/index.js +17 -0
  483. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  484. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  485. package/dist/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  486. package/dist/serialization/resources/yesNoIndicator/types/index.js +17 -0
  487. package/dist/version.d.ts +1 -1
  488. package/dist/version.js +1 -1
  489. package/package.json +1 -1
  490. package/reference.md +77 -6
  491. package/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  492. package/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
  493. package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  494. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
  495. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  496. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  497. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  498. package/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  499. package/serialization/resources/auth/resources/{v2 → default}/types/index.js +1 -0
  500. package/serialization/resources/auth/resources/index.d.ts +1 -1
  501. package/serialization/resources/auth/resources/index.js +2 -2
  502. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  503. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  504. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  505. package/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  506. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  507. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  508. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  509. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  510. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  511. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  512. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  513. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  514. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  515. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  516. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  517. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  518. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  519. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  520. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  521. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  522. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  523. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  524. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
  525. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
  526. package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  527. package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  528. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  529. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  530. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  531. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  532. package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  533. package/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
  534. package/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  535. package/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  536. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  537. package/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  538. package/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  539. package/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  540. package/serialization/resources/commons/types/index.d.ts +2 -0
  541. package/serialization/resources/commons/types/index.js +2 -0
  542. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  543. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  544. package/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  545. package/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  546. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  547. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  548. package/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  549. package/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  550. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  551. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  552. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  553. package/serialization/resources/diagnoses/types/index.js +1 -0
  554. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  555. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  556. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  557. package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  558. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  559. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  560. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  561. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  562. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  563. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  564. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  565. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  566. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  567. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  568. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  569. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  570. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  571. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  572. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  573. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  574. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  575. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  576. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  577. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  578. package/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  579. package/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  580. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  581. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  582. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  583. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  584. package/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
  585. package/serialization/resources/encounters/resources/v4/types/index.js +10 -0
  586. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  587. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  588. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  589. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  590. package/serialization/resources/index.d.ts +2 -0
  591. package/serialization/resources/index.js +3 -1
  592. package/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  593. package/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  594. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  595. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  596. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  597. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  598. package/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  599. package/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  600. package/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  601. package/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  602. package/serialization/resources/individual/types/index.d.ts +4 -0
  603. package/serialization/resources/individual/types/index.js +4 -0
  604. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  605. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  606. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  607. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  608. package/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  609. package/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  610. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  611. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  612. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  613. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  614. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
  615. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
  616. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  617. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  618. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  619. package/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  620. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  621. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  622. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  623. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  624. package/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  625. package/serialization/resources/yesNoIndicator/index.js +17 -0
  626. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  627. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  628. package/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  629. package/serialization/resources/yesNoIndicator/types/index.js +17 -0
  630. package/version.d.ts +1 -1
  631. package/version.js +1 -1
  632. package/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  633. package/dist/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  634. /package/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  635. /package/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  636. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  637. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  638. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  639. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  640. /package/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  641. /package/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  642. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  643. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  644. /package/api/resources/auth/resources/{v2/types/TooManyRequestsErrorType.js → default/types/InvalidContentTypeErrorType.js} +0 -0
  645. /package/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  646. /package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/TooManyRequestsErrorType.js +0 -0
  647. /package/{dist/api/resources/auth/resources/v2/client/requests/AuthGetTokenRequest.js → api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js} +0 -0
  648. /package/{dist/api/resources/auth/resources/v2/types/AuthGetTokenResponse.js → api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js} +0 -0
  649. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  650. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  651. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  652. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  653. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  654. /package/dist/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  655. /package/dist/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  656. /package/dist/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  657. /package/dist/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  658. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  659. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  660. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  661. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  662. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  663. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  664. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  665. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  666. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
  667. /package/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  668. /package/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  669. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  670. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  671. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  672. /package/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  673. /package/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  674. /package/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  675. /package/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
package/Client.js CHANGED
@@ -47,7 +47,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.CandidApiClient = void 0;
49
49
  const core = __importStar(require("./core"));
50
- const Client_1 = require("./api/resources/auth/resources/v2/client/Client");
50
+ const Client_1 = require("./api/resources/auth/resources/default/client/Client");
51
51
  const Client_2 = require("./api/resources/auth/client/Client");
52
52
  const Client_3 = require("./api/resources/billingNotes/client/Client");
53
53
  const Client_4 = require("./api/resources/chargeCaptureBundles/client/Client");
@@ -91,7 +91,7 @@ class CandidApiClient {
91
91
  this._oauthTokenProvider = new core.OAuthTokenProvider({
92
92
  clientId: this._options.clientId,
93
93
  clientSecret: this._options.clientSecret,
94
- authClient: new Client_1.V2({
94
+ authClient: new Client_1.Default({
95
95
  environment: this._options.environment,
96
96
  }),
97
97
  });
package/README.md CHANGED
@@ -13,7 +13,7 @@ npm i -s candidhealth
13
13
 
14
14
  ## Reference
15
15
 
16
- A full reference for this library is available [here](./reference.md).
16
+ A full reference for this library is available [here](https://github.com/candidhealth/candid-node/blob/HEAD/./reference.md).
17
17
 
18
18
  ## Usage
19
19
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import { V2 } from "../resources/v2/client/Client";
6
+ import { Default } from "../resources/default/client/Client";
7
7
  export declare namespace Auth {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
@@ -24,7 +24,7 @@ export declare namespace Auth {
24
24
  }
25
25
  export declare class Auth {
26
26
  protected readonly _options: Auth.Options;
27
- protected _v2: V2 | undefined;
27
+ protected _default: Default | undefined;
28
28
  constructor(_options?: Auth.Options);
29
- get v2(): V2;
29
+ get default(): Default;
30
30
  }
@@ -4,14 +4,14 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Auth = void 0;
7
- const Client_1 = require("../resources/v2/client/Client");
7
+ const Client_1 = require("../resources/default/client/Client");
8
8
  class Auth {
9
9
  constructor(_options = {}) {
10
10
  this._options = _options;
11
11
  }
12
- get v2() {
12
+ get default() {
13
13
  var _a;
14
- return ((_a = this._v2) !== null && _a !== void 0 ? _a : (this._v2 = new Client_1.V2(this._options)));
14
+ return ((_a = this._default) !== null && _a !== void 0 ? _a : (this._default = new Client_1.Default(this._options)));
15
15
  }
16
16
  }
17
17
  exports.Auth = Auth;
@@ -4,7 +4,7 @@
4
4
  import * as environments from "../../../../../../environments";
5
5
  import * as core from "../../../../../../core";
6
6
  import * as CandidApi from "../../../../../index";
7
- export declare namespace V2 {
7
+ export declare namespace Default {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
@@ -22,9 +22,9 @@ export declare namespace V2 {
22
22
  headers?: Record<string, string>;
23
23
  }
24
24
  }
25
- export declare class V2 {
26
- protected readonly _options: V2.Options;
27
- constructor(_options?: V2.Options);
25
+ export declare class Default {
26
+ protected readonly _options: Default.Options;
27
+ constructor(_options?: Default.Options);
28
28
  /**
29
29
  * <Callout intent="info">
30
30
  * Candid Health SDKs automatically handle authentication workflows after configuring them with the `client_id` and
@@ -32,7 +32,21 @@ export declare class V2 {
32
32
  * </Callout>
33
33
  *
34
34
  * 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
35
- * 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.
35
+ * subsequent API requests via the `/auth/v2/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.
36
+ *
37
+ * The `/auth/v2/token` endpoint accepts both `Content-Type: application/json` and `Content-Type: application/x-www-form-urlencoded`. The request body should contain the `client_id` and `client_secret` as follows:
38
+ *
39
+ * ```json
40
+ * {
41
+ * "client_id": "YOUR_CLIENT_ID",
42
+ * "client_secret": "YOUR_CLIENT_SECRET"
43
+ * }
44
+ * ```
45
+ * or as URL-encoded form data:
46
+ *
47
+ * ```
48
+ * client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
49
+ * ```
36
50
  *
37
51
  * The bearer token is a signed [JWT](https://jwt.io/). The public key for the JWT can be found [here](https://candidhealth.auth0.com/pem) for any verification workflows.
38
52
  *
@@ -44,15 +58,15 @@ export declare class V2 {
44
58
  * requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an `HTTP 429 Too Many Requests` error.
45
59
  * </Callout>
46
60
  *
47
- * @param {CandidApi.auth.v2.AuthGetTokenRequest} request
48
- * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
61
+ * @param {CandidApi.auth.default_.AuthGetTokenRequest} request
62
+ * @param {Default.RequestOptions} requestOptions - Request-specific configuration.
49
63
  *
50
64
  * @example
51
- * await client.auth.v2.getToken({
65
+ * await client.auth.default.getToken({
52
66
  * clientId: "YOUR_CLIENT_ID",
53
67
  * clientSecret: "YOUR_CLIENT_SECRET"
54
68
  * })
55
69
  */
56
- getToken(request: CandidApi.auth.v2.AuthGetTokenRequest, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.auth.v2.AuthGetTokenResponse, CandidApi.auth.v2.getToken.Error>>;
70
+ getToken(request: CandidApi.auth.default_.AuthGetTokenRequest, requestOptions?: Default.RequestOptions): Promise<core.APIResponse<CandidApi.auth.default_.AuthGetTokenResponse, CandidApi.auth.default_.getToken.Error>>;
57
71
  protected _getAuthorizationHeader(): Promise<string | undefined>;
58
72
  }
@@ -48,13 +48,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
48
48
  return (mod && mod.__esModule) ? mod : { "default": mod };
49
49
  };
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.V2 = void 0;
51
+ exports.Default = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const CandidApi = __importStar(require("../../../../../index"));
55
55
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
- class V2 {
57
+ class Default {
58
58
  constructor(_options = {}) {
59
59
  this._options = _options;
60
60
  }
@@ -65,7 +65,21 @@ class V2 {
65
65
  * </Callout>
66
66
  *
67
67
  * 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
68
- * 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.
68
+ * subsequent API requests via the `/auth/v2/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.
69
+ *
70
+ * The `/auth/v2/token` endpoint accepts both `Content-Type: application/json` and `Content-Type: application/x-www-form-urlencoded`. The request body should contain the `client_id` and `client_secret` as follows:
71
+ *
72
+ * ```json
73
+ * {
74
+ * "client_id": "YOUR_CLIENT_ID",
75
+ * "client_secret": "YOUR_CLIENT_SECRET"
76
+ * }
77
+ * ```
78
+ * or as URL-encoded form data:
79
+ *
80
+ * ```
81
+ * client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
82
+ * ```
69
83
  *
70
84
  * The bearer token is a signed [JWT](https://jwt.io/). The public key for the JWT can be found [here](https://candidhealth.auth0.com/pem) for any verification workflows.
71
85
  *
@@ -77,11 +91,11 @@ class V2 {
77
91
  * requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an `HTTP 429 Too Many Requests` error.
78
92
  * </Callout>
79
93
  *
80
- * @param {CandidApi.auth.v2.AuthGetTokenRequest} request
81
- * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
94
+ * @param {CandidApi.auth.default_.AuthGetTokenRequest} request
95
+ * @param {Default.RequestOptions} requestOptions - Request-specific configuration.
82
96
  *
83
97
  * @example
84
- * await client.auth.v2.getToken({
98
+ * await client.auth.default.getToken({
85
99
  * clientId: "YOUR_CLIENT_ID",
86
100
  * clientSecret: "YOUR_CLIENT_SECRET"
87
101
  * })
@@ -92,10 +106,12 @@ class V2 {
92
106
  const _response = yield core.fetcher({
93
107
  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/auth/v2/token"),
94
108
  method: "POST",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
110
  contentType: "application/json",
97
111
  requestType: "json",
98
- body: serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
112
+ body: serializers.auth.default_.AuthGetTokenRequest.jsonOrThrow(request, {
113
+ unrecognizedObjectKeys: "strip",
114
+ }),
99
115
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
116
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
117
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -103,7 +119,7 @@ class V2 {
103
119
  if (_response.ok) {
104
120
  return {
105
121
  ok: true,
106
- body: serializers.auth.v2.AuthGetTokenResponse.parseOrThrow(_response.body, {
122
+ body: serializers.auth.default_.AuthGetTokenResponse.parseOrThrow(_response.body, {
107
123
  unrecognizedObjectKeys: "passthrough",
108
124
  allowUnrecognizedUnionMembers: true,
109
125
  allowUnrecognizedEnumValues: true,
@@ -114,9 +130,10 @@ class V2 {
114
130
  if (_response.error.reason === "status-code") {
115
131
  switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
116
132
  case "TooManyRequestsError":
133
+ case "InvalidContentTypeError":
117
134
  return {
118
135
  ok: false,
119
- error: serializers.auth.v2.getToken.Error.parseOrThrow(_response.error.body, {
136
+ error: serializers.auth.default_.getToken.Error.parseOrThrow(_response.error.body, {
120
137
  unrecognizedObjectKeys: "passthrough",
121
138
  allowUnrecognizedUnionMembers: true,
122
139
  allowUnrecognizedEnumValues: true,
@@ -127,7 +144,7 @@ class V2 {
127
144
  }
128
145
  return {
129
146
  ok: false,
130
- error: CandidApi.auth.v2.getToken.Error._unknown(_response.error),
147
+ error: CandidApi.auth.default_.getToken.Error._unknown(_response.error),
131
148
  };
132
149
  });
133
150
  }
@@ -141,4 +158,4 @@ class V2 {
141
158
  });
142
159
  }
143
160
  }
144
- exports.V2 = V2;
161
+ exports.Default = Default;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.auth.default_.getToken.Error.TooManyRequestsError | CandidApi.auth.default_.getToken.Error.InvalidContentTypeError | CandidApi.auth.default_.getToken.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface TooManyRequestsError extends _Utils {
9
+ errorName: "TooManyRequestsError";
10
+ content: CandidApi.auth.default_.TooManyRequestsErrorType;
11
+ }
12
+ interface InvalidContentTypeError extends _Utils {
13
+ errorName: "InvalidContentTypeError";
14
+ content: CandidApi.auth.default_.InvalidContentTypeErrorType;
15
+ }
16
+ interface _Unknown extends _Utils {
17
+ errorName: void;
18
+ content: core.Fetcher.Error;
19
+ }
20
+ interface _Utils {
21
+ _visit: <_Result>(visitor: CandidApi.auth.default_.getToken.Error._Visitor<_Result>) => _Result;
22
+ }
23
+ interface _Visitor<_Result> {
24
+ tooManyRequestsError: (value: CandidApi.auth.default_.TooManyRequestsErrorType) => _Result;
25
+ invalidContentTypeError: (value: CandidApi.auth.default_.InvalidContentTypeErrorType) => _Result;
26
+ _other: (value: core.Fetcher.Error) => _Result;
27
+ }
28
+ }
29
+ export declare const Error: {
30
+ readonly tooManyRequestsError: (value: CandidApi.auth.default_.TooManyRequestsErrorType) => CandidApi.auth.default_.getToken.Error.TooManyRequestsError;
31
+ readonly invalidContentTypeError: (value: CandidApi.auth.default_.InvalidContentTypeErrorType) => CandidApi.auth.default_.getToken.Error.InvalidContentTypeError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.auth.default_.getToken.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.auth.default_.getToken.Error, visitor: CandidApi.auth.default_.getToken.Error._Visitor<_Result>) => _Result;
34
+ };
@@ -44,7 +44,16 @@ exports.Error = {
44
44
  content: value,
45
45
  errorName: "TooManyRequestsError",
46
46
  _visit: function (visitor) {
47
- return CandidApi.auth.v2.getToken.Error._visit(this, visitor);
47
+ return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ invalidContentTypeError: (value) => {
52
+ return {
53
+ content: value,
54
+ errorName: "InvalidContentTypeError",
55
+ _visit: function (visitor) {
56
+ return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
48
57
  },
49
58
  };
50
59
  },
@@ -53,7 +62,7 @@ exports.Error = {
53
62
  errorName: undefined,
54
63
  content: fetcherError,
55
64
  _visit: function (visitor) {
56
- return CandidApi.auth.v2.getToken.Error._visit(this, visitor);
65
+ return CandidApi.auth.default_.getToken.Error._visit(this, visitor);
57
66
  },
58
67
  };
59
68
  },
@@ -61,6 +70,8 @@ exports.Error = {
61
70
  switch (value.errorName) {
62
71
  case "TooManyRequestsError":
63
72
  return visitor.tooManyRequestsError(value.content);
73
+ case "InvalidContentTypeError":
74
+ return visitor.invalidContentTypeError(value.content);
64
75
  default:
65
76
  return visitor._other(value);
66
77
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface InvalidContentTypeErrorType {
5
+ message: string;
6
+ }
@@ -1,2 +1,3 @@
1
1
  export * from "./AuthGetTokenResponse";
2
2
  export * from "./TooManyRequestsErrorType";
3
+ export * from "./InvalidContentTypeErrorType";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AuthGetTokenResponse"), exports);
18
18
  __exportStar(require("./TooManyRequestsErrorType"), exports);
19
+ __exportStar(require("./InvalidContentTypeErrorType"), exports);
@@ -1 +1 @@
1
- export * as v2 from "./v2";
1
+ export * as default_ from "./default";
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.v2 = void 0;
37
- exports.v2 = __importStar(require("./v2"));
36
+ exports.default_ = void 0;
37
+ exports.default_ = __importStar(require("./default"));
@@ -73,7 +73,7 @@ class V2 {
73
73
  const _response = yield core.fetcher({
74
74
  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/billing_notes/v2"),
75
75
  method: "POST",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -113,7 +113,7 @@ class V2 {
113
113
  const _response = yield core.fetcher({
114
114
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
115
115
  method: "DELETE",
116
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -164,7 +164,7 @@ class V2 {
164
164
  const _response = yield core.fetcher({
165
165
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
166
166
  method: "PATCH",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BillingNoteBaseOptional {
5
+ /** Empty string not allowed. */
6
+ text?: string;
7
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./BillingNoteId";
2
+ export * from "./BillingNoteBaseOptional";
2
3
  export * from "./BillingNoteBase";
3
4
  export * from "./BillingNote";
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BillingNoteId"), exports);
18
+ __exportStar(require("./BillingNoteBaseOptional"), exports);
18
19
  __exportStar(require("./BillingNoteBase"), exports);
19
20
  __exportStar(require("./BillingNote"), exports);
@@ -76,7 +76,7 @@ class V1 {
76
76
  const _response = yield core.fetcher({
77
77
  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/charge_captures/v1"),
78
78
  method: "POST",
79
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -136,7 +136,7 @@ class V1 {
136
136
  const _response = yield core.fetcher({
137
137
  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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
138
138
  method: "PATCH",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -194,7 +194,7 @@ class V1 {
194
194
  const _response = yield core.fetcher({
195
195
  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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
196
196
  method: "GET",
197
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
198
  contentType: "application/json",
199
199
  requestType: "json",
200
200
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -418,7 +418,7 @@ class V1 {
418
418
  const _response = yield core.fetcher({
419
419
  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/charge_captures/v1"),
420
420
  method: "GET",
421
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
421
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
422
422
  contentType: "application/json",
423
423
  queryParameters: _queryParams,
424
424
  requestType: "json",
@@ -459,7 +459,7 @@ class V1 {
459
459
  const _response = yield core.fetcher({
460
460
  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/charge_captures/v1/changes/"),
461
461
  method: "PATCH",
462
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
462
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
463
463
  contentType: "application/json",
464
464
  requestType: "json",
465
465
  body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
@@ -19,6 +19,10 @@ export interface ChargeCaptureUpdate {
19
19
  * Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123).
20
20
  */
21
21
  ehrSourceUrl?: string;
22
+ /** An optional string field denoting the originating system of the charge. */
23
+ originatingSystem?: string;
24
+ /** An optional string field denoting the user defined category of the claim creation. */
25
+ claimCreationCategory?: string;
22
26
  /** The patient ID from the external EMR platform for the patient */
23
27
  patientExternalId?: string;
24
28
  /** the status of the charge capture */
@@ -16,6 +16,10 @@ export interface CreateChargeCaptureRequest {
16
16
  data: CandidApi.chargeCapture.v1.ChargeCaptureData;
17
17
  /** A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI. */
18
18
  chargeExternalId: string;
19
+ /** An optional string field denoting the originating system of the charge. */
20
+ originatingSystem?: string;
21
+ /** An optional string field denoting the user defined category of the claim creation. */
22
+ claimCreationCategory?: string;
19
23
  /** External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123). */
20
24
  ehrSourceUrl?: string;
21
25
  /** The patient ID from the external EMR platform for the patient */
@@ -10,6 +10,8 @@ export interface ChargeCapture {
10
10
  patientExternalId: CandidApi.PatientExternalId;
11
11
  chargeExternalId: string;
12
12
  ehrSourceUrl?: string;
13
+ originatingSystem?: string;
14
+ claimCreationCategory?: string;
13
15
  error?: CandidApi.chargeCapture.v1.ChargeCaptureError;
14
16
  updates: CandidApi.chargeCapture.v1.ChargeCapturePostBilledChange[];
15
17
  claimCreationId?: CandidApi.ChargeCaptureClaimCreationId;
@@ -2,56 +2,5 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
- export interface ChargeCaptureData extends CandidApi.encounters.v4.EncounterOptional {
6
- /**
7
- * Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses
8
- * may be submitted at this time, and coders will later prioritize the 12 that will be
9
- * submitted to the payor.
10
- */
11
- diagnoses?: CandidApi.DiagnosisCreate[];
12
- interventions?: CandidApi.encounters.v4.Intervention[];
13
- /**
14
- * ***This field is in beta.***
15
- * To be included for claims that have been submitted outside of Candid.
16
- * Candid supports posting remits and payments to these claims and working them in-platform (e.g. editing, resubmitting).
17
- */
18
- externalClaimSubmission?: CandidApi.claimSubmission.v1.ExternalClaimSubmissionCreate;
19
- /**
20
- * Each service line must be linked to a diagnosis. Concretely,
21
- * `service_line.diagnosis_pointers`must contain at least one entry which should be
22
- * in bounds of the diagnoses list field.
23
- */
24
- serviceLines?: CandidApi.serviceLines.v2.ServiceLineCreate[];
25
- patientHistories?: CandidApi.encounters.v4.PatientHistoryCategory[];
26
- /**
27
- * Spot to store misc, human-readable, notes about this encounter to be
28
- * used in the billing process.
29
- */
30
- billingNotes?: CandidApi.billingNotes.v2.BillingNoteBase[];
31
- /** Contains the identification information of the individual receiving medical services. */
32
- patient?: CandidApi.PatientUpdateWithOptionalAddress;
33
- /** Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process. */
34
- serviceFacility?: CandidApi.EncounterServiceFacilityUpdateWithOptionalAddress;
35
- /**
36
- * The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.
37
- * For telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address.
38
- */
39
- renderingProvider?: CandidApi.encounterProviders.v2.RenderingProviderUpdateWithOptionalAddress;
40
- /**
41
- * The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in this loop to
42
- * indicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.
43
- */
44
- initialReferringProvider?: CandidApi.encounterProviders.v2.InitialReferringProviderUpdateWithOptionalAddress;
45
- /**
46
- * The final provider who referred the services that were rendered.
47
- * All physicians who order services or refer Medicare beneficiaries must
48
- * report this data.
49
- */
50
- referringProvider?: CandidApi.encounterProviders.v2.ReferringProviderUpdateWithOptionalAddress;
51
- /** Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send. */
52
- supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProviderUpdateWithOptionalAddress;
53
- /** The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form. */
54
- billingProvider?: CandidApi.encounterProviders.v2.BillingProviderUpdateWithOptionalAddress;
55
- /** Specifies the address to which payments for the claim should be sent. */
56
- payToAddress?: CandidApi.StreetAddressShortZipOptional;
5
+ export interface ChargeCaptureData extends CandidApi.encounters.v4.EncounterDeepOptional {
57
6
  }
@@ -12,6 +12,12 @@ export interface ChargeCaptureError {
12
12
  chargeCaptureId?: CandidApi.ChargeCaptureId;
13
13
  /** A human readable error explaining why this charge capture Claim Creation failed to create a claim. */
14
14
  message: string;
15
+ /** Whether or not the error has been resolved as part of user workflows */
16
+ resolved?: boolean;
17
+ /** A string denoting who resolved the error within candid's system. */
18
+ resolvedBy?: string;
19
+ /** A string denoting how or why an error was resolved. */
20
+ resolutionReason?: string;
15
21
  /**
16
22
  * The field of the corresponding underlying ChargeCapture that has a field that is failing validations,
17
23
  * is not present but marked as required, or otherwise in error.
@@ -1,6 +1,6 @@
1
+ export * from "./ChargeCaptureData";
1
2
  export * from "./ChargeCapturePage";
2
3
  export * from "./ChargeCapture";
3
- export * from "./ChargeCaptureData";
4
4
  export * from "./ChargeCaptureError";
5
5
  export * from "./ChargeCaptureSortField";
6
6
  export * from "./ChargeCaptureStatus";
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ChargeCaptureData"), exports);
17
18
  __exportStar(require("./ChargeCapturePage"), exports);
18
19
  __exportStar(require("./ChargeCapture"), exports);
19
- __exportStar(require("./ChargeCaptureData"), exports);
20
20
  __exportStar(require("./ChargeCaptureError"), exports);
21
21
  __exportStar(require("./ChargeCaptureSortField"), exports);
22
22
  __exportStar(require("./ChargeCaptureStatus"), exports);
@@ -40,6 +40,15 @@ export declare class V1 {
40
40
  * await client.chargeCaptureBundles.v1.getSummary()
41
41
  */
42
42
  getSummary(requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureClaimCreationSummary, CandidApi.chargeCaptureBundles.v1.getSummary.Error>>;
43
+ /**
44
+ * @param {string} chargeCaptureBundleErrorId
45
+ * @param {CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleErrorResolution} request
46
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @example
49
+ * await client.chargeCaptureBundles.v1.resolveChargeCreationError("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
50
+ */
51
+ resolveChargeCreationError(chargeCaptureBundleErrorId: string, request?: CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleErrorResolution, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.chargeCaptureBundles.v1.resolveChargeCreationError.Error>>;
43
52
  /**
44
53
  * @param {CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureClaimCreationsRequest} request
45
54
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.