candidhealth 0.45.0 → 0.46.1

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 (425) hide show
  1. package/README.md +4 -18
  2. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  3. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  5. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  6. package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  7. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  8. package/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  9. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  10. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  11. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  12. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  13. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  17. package/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  18. package/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  19. package/api/resources/contracts/resources/v2/client/Client.js +19 -73
  20. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  21. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  22. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  23. package/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  24. package/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  25. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  26. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  27. package/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  28. package/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  29. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  30. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  31. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  32. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  33. package/api/resources/diagnoses/client/Client.d.ts +3 -8
  34. package/api/resources/diagnoses/client/Client.js +6 -11
  35. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  36. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  37. package/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  38. package/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  39. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  40. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  41. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  42. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  43. package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  44. package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  45. package/api/resources/encounters/resources/v4/client/Client.d.ts +49 -674
  46. package/api/resources/encounters/resources/v4/client/Client.js +54 -679
  47. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
  48. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
  49. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  50. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  51. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +7 -7
  52. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  53. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  54. package/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  55. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  56. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  57. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  58. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  59. package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  60. package/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  61. package/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  62. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  63. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  64. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  65. package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  66. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  67. package/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  68. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  69. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  70. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  71. package/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  72. package/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  73. package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  74. package/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  75. package/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  76. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  77. package/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  78. package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  79. package/api/resources/index.d.ts +2 -0
  80. package/api/resources/index.js +3 -1
  81. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  82. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  83. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  84. package/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  85. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  86. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  87. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  88. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  89. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  90. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  91. package/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  92. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  93. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  94. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  95. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  96. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  97. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  98. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  99. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  100. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  101. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  102. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  103. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  104. package/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  105. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  106. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  107. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  108. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  109. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  110. package/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  111. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  112. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  113. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  114. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  115. package/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  116. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  117. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  118. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  119. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  120. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  121. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  122. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  123. package/api/resources/pipelineCommons/index.d.ts +1 -0
  124. package/api/resources/pipelineCommons/index.js +17 -0
  125. package/api/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +8 -0
  126. package/api/resources/pipelineCommons/types/ConfigurableRuleId.js +9 -0
  127. package/api/resources/pipelineCommons/types/index.d.ts +1 -0
  128. package/api/resources/pipelineCommons/types/index.js +17 -0
  129. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  130. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  131. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  132. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  133. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  134. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  135. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  136. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  137. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  138. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  139. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  140. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  141. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  142. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  143. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  144. package/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  145. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  146. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  147. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  148. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  149. package/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  150. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  151. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  152. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  153. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  154. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  155. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  156. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  157. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  158. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  159. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  160. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  161. package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  162. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  163. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  164. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  165. package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  166. package/api/resources/serviceFacility/client/Client.d.ts +1 -11
  167. package/api/resources/serviceFacility/client/Client.js +2 -12
  168. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  169. package/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  170. package/api/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +2 -1
  171. package/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  172. package/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  173. package/api/resources/superbills/resources/v1/client/Client.js +3 -11
  174. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  175. package/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  176. package/api/resources/tasks/resources/v3/client/Client.js +9 -30
  177. package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  178. package/api/resources/tasks/resources/v3/types/Task.d.ts +1 -0
  179. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  180. package/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  181. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  182. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  183. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  184. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  185. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  186. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  187. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  188. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  189. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  190. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  191. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  192. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  193. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  194. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  195. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  196. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  197. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  198. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  199. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  200. package/dist/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  201. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  202. package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -73
  203. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  204. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  205. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  206. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  207. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  208. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  209. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  210. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  211. package/dist/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  212. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  213. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  214. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  215. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  216. package/dist/api/resources/diagnoses/client/Client.d.ts +3 -8
  217. package/dist/api/resources/diagnoses/client/Client.js +6 -11
  218. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  219. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  220. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  221. package/dist/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  222. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  223. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  224. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  225. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  226. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  227. package/dist/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  228. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +49 -674
  229. package/dist/api/resources/encounters/resources/v4/client/Client.js +54 -679
  230. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
  231. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
  232. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  233. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  234. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +7 -7
  235. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  236. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  237. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  238. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  239. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  240. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  241. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  242. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  243. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  244. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  245. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  246. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  247. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  248. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  249. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  250. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  251. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  252. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  253. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  254. package/dist/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  255. package/dist/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  256. package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  257. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  258. package/dist/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  259. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  260. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  261. package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  262. package/dist/api/resources/index.d.ts +2 -0
  263. package/dist/api/resources/index.js +3 -1
  264. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  265. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  266. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  267. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  268. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  269. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  270. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  271. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  272. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  273. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  274. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  275. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  276. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  277. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  278. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  279. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  280. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  281. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  282. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  283. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  284. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  285. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  286. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  287. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  288. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  289. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  290. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  291. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  292. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  293. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  294. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  295. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  296. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  297. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  298. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  299. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  300. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  301. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  302. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  303. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  304. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  305. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  306. package/dist/api/resources/pipelineCommons/index.d.ts +1 -0
  307. package/dist/api/resources/pipelineCommons/index.js +17 -0
  308. package/dist/api/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +8 -0
  309. package/dist/api/resources/pipelineCommons/types/ConfigurableRuleId.js +9 -0
  310. package/dist/api/resources/pipelineCommons/types/index.d.ts +1 -0
  311. package/dist/api/resources/pipelineCommons/types/index.js +17 -0
  312. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  313. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  314. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  315. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  316. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  317. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  318. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  319. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  320. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  321. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  322. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  323. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  324. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  325. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  326. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  327. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  328. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  329. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  330. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  331. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  332. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  333. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  334. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  335. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  336. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  337. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  338. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  339. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  340. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  341. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  342. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  343. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  344. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  345. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  346. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  347. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  348. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  349. package/dist/api/resources/serviceFacility/client/Client.d.ts +1 -11
  350. package/dist/api/resources/serviceFacility/client/Client.js +2 -12
  351. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  352. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  353. package/dist/api/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +2 -1
  354. package/dist/api/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  355. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  356. package/dist/api/resources/superbills/resources/v1/client/Client.js +3 -11
  357. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  358. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  359. package/dist/api/resources/tasks/resources/v3/client/Client.js +9 -30
  360. package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  361. package/dist/api/resources/tasks/resources/v3/types/Task.d.ts +1 -0
  362. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  363. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  364. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  365. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  366. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  367. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  368. package/dist/environments.d.ts +5 -1
  369. package/dist/environments.js +4 -0
  370. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  371. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  372. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  373. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  374. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  375. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  376. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  377. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  378. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  379. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  380. package/dist/serialization/resources/index.d.ts +2 -0
  381. package/dist/serialization/resources/index.js +3 -1
  382. package/dist/serialization/resources/pipelineCommons/index.d.ts +1 -0
  383. package/dist/serialization/resources/pipelineCommons/index.js +17 -0
  384. package/dist/serialization/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +10 -0
  385. package/dist/serialization/resources/pipelineCommons/types/ConfigurableRuleId.js +45 -0
  386. package/dist/serialization/resources/pipelineCommons/types/index.d.ts +1 -0
  387. package/dist/serialization/resources/pipelineCommons/types/index.js +17 -0
  388. package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
  389. package/dist/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  390. package/dist/serialization/resources/tasks/resources/v3/types/Task.d.ts +2 -0
  391. package/dist/serialization/resources/tasks/resources/v3/types/Task.js +2 -0
  392. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  393. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  394. package/dist/version.d.ts +1 -1
  395. package/dist/version.js +1 -1
  396. package/environments.d.ts +5 -1
  397. package/environments.js +4 -0
  398. package/package.json +1 -1
  399. package/reference.md +772 -2366
  400. package/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  401. package/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  402. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  403. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  404. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  405. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  406. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  407. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  408. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  409. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  410. package/serialization/resources/index.d.ts +2 -0
  411. package/serialization/resources/index.js +3 -1
  412. package/serialization/resources/pipelineCommons/index.d.ts +1 -0
  413. package/serialization/resources/pipelineCommons/index.js +17 -0
  414. package/serialization/resources/pipelineCommons/types/ConfigurableRuleId.d.ts +10 -0
  415. package/serialization/resources/pipelineCommons/types/ConfigurableRuleId.js +45 -0
  416. package/serialization/resources/pipelineCommons/types/index.d.ts +1 -0
  417. package/serialization/resources/pipelineCommons/types/index.js +17 -0
  418. package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.d.ts +1 -1
  419. package/serialization/resources/serviceLines/resources/v2/types/DenialReasonContent.js +1 -0
  420. package/serialization/resources/tasks/resources/v3/types/Task.d.ts +2 -0
  421. package/serialization/resources/tasks/resources/v3/types/Task.js +2 -0
  422. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  423. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  424. package/version.d.ts +1 -1
  425. package/version.js +1 -1
@@ -71,7 +71,7 @@ class V2 {
71
71
  const _response = yield core.fetcher({
72
72
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -114,20 +114,12 @@ class V2 {
114
114
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
115
115
  *
116
116
  * @example
117
- * await client.contracts.v2.getMulti({
118
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
119
- * limit: 1,
120
- * contractingProviderId: CandidApi.contracts.v2.ContractingProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
121
- * renderingProviderIds: CandidApi.contracts.v2.RenderingProviderid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
122
- * payerNames: "string",
123
- * states: "AA",
124
- * contractStatus: "pending"
125
- * })
117
+ * await client.contracts.v2.getMulti()
126
118
  */
127
119
  getMulti() {
128
120
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
129
121
  var _a, _b;
130
- const { pageToken, limit, contractingProviderId, renderingProviderIds, payerNames, states, contractStatus } = request;
122
+ const { pageToken, limit, contractingProviderId, renderingProviderIds, payerNames, states, contractStatus, sort, sortDirection, } = request;
131
123
  const _queryParams = {};
132
124
  if (pageToken != null) {
133
125
  _queryParams["page_token"] = pageToken;
@@ -167,10 +159,20 @@ class V2 {
167
159
  unrecognizedObjectKeys: "strip",
168
160
  });
169
161
  }
162
+ if (sort != null) {
163
+ _queryParams["sort"] = serializers.contracts.v2.ContractSortField.jsonOrThrow(sort, {
164
+ unrecognizedObjectKeys: "strip",
165
+ });
166
+ }
167
+ if (sortDirection != null) {
168
+ _queryParams["sort_direction"] = serializers.SortDirection.jsonOrThrow(sortDirection, {
169
+ unrecognizedObjectKeys: "strip",
170
+ });
171
+ }
170
172
  const _response = yield core.fetcher({
171
173
  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/contracts/v2"),
172
174
  method: "GET",
173
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
176
  contentType: "application/json",
175
177
  queryParameters: _queryParams,
176
178
  requestType: "json",
@@ -205,30 +207,7 @@ class V2 {
205
207
  * await client.contracts.v2.create({
206
208
  * contractingProviderId: CandidApi.contracts.v2.ContractingProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
207
209
  * renderingProviderIds: new Set([CandidApi.contracts.v2.RenderingProviderid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]),
208
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
209
- * effectiveDate: CandidApi.Date_("string"),
210
- * expirationDate: CandidApi.Date_("string"),
211
- * regions: {
212
- * type: "states"
213
- * },
214
- * contractStatus: "pending",
215
- * authorizedSignatory: {
216
- * firstName: "string",
217
- * lastName: "string",
218
- * title: "string",
219
- * email: "string",
220
- * phone: "string",
221
- * fax: "string"
222
- * },
223
- * commercialInsuranceTypes: {
224
- * type: "allApply"
225
- * },
226
- * medicareInsuranceTypes: {
227
- * type: "allApply"
228
- * },
229
- * medicaidInsuranceTypes: {
230
- * type: "allApply"
231
- * }
210
+ * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
232
211
  * })
233
212
  */
234
213
  create(request, requestOptions) {
@@ -237,7 +216,7 @@ class V2 {
237
216
  const _response = yield core.fetcher({
238
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/contracts/v2"),
239
218
  method: "POST",
240
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
220
  contentType: "application/json",
242
221
  requestType: "json",
243
222
  body: serializers.contracts.v2.ContractCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -275,7 +254,7 @@ class V2 {
275
254
  const _response = yield core.fetcher({
276
255
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
277
256
  method: "DELETE",
278
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
257
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
258
  contentType: "application/json",
280
259
  requestType: "json",
281
260
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,40 +293,7 @@ class V2 {
314
293
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
315
294
  *
316
295
  * @example
317
- * await client.contracts.v2.update(CandidApi.contracts.v2.ContractId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
318
- * renderingProviderIds: new Set([CandidApi.contracts.v2.RenderingProviderid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]),
319
- * effectiveDate: CandidApi.Date_("string"),
320
- * expirationDate: {
321
- * type: "set",
322
- * value: CandidApi.Date_("string")
323
- * },
324
- * regions: {
325
- * type: "set",
326
- * value: {
327
- * type: "states",
328
- * states: ["AA"]
329
- * }
330
- * },
331
- * contractStatus: "pending",
332
- * authorizedSignatory: {
333
- * type: "set",
334
- * firstName: "string",
335
- * lastName: "string",
336
- * title: "string",
337
- * email: "string",
338
- * phone: "string",
339
- * fax: "string"
340
- * },
341
- * commercialInsuranceTypes: {
342
- * type: "allApply"
343
- * },
344
- * medicareInsuranceTypes: {
345
- * type: "allApply"
346
- * },
347
- * medicaidInsuranceTypes: {
348
- * type: "allApply"
349
- * }
350
- * })
296
+ * await client.contracts.v2.update(CandidApi.contracts.v2.ContractId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
351
297
  */
352
298
  update(contractId_1) {
353
299
  return __awaiter(this, arguments, void 0, function* (contractId, request = {}, requestOptions) {
@@ -355,7 +301,7 @@ class V2 {
355
301
  const _response = yield core.fetcher({
356
302
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
357
303
  method: "PATCH",
358
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
304
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
305
  contentType: "application/json",
360
306
  requestType: "json",
361
307
  body: serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,30 +7,7 @@ import * as CandidApi from "../../../../../../index";
7
7
  * {
8
8
  * contractingProviderId: CandidApi.contracts.v2.ContractingProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
9
9
  * renderingProviderIds: new Set([CandidApi.contracts.v2.RenderingProviderid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]),
10
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11
- * effectiveDate: CandidApi.Date_("string"),
12
- * expirationDate: CandidApi.Date_("string"),
13
- * regions: {
14
- * type: "states"
15
- * },
16
- * contractStatus: "pending",
17
- * authorizedSignatory: {
18
- * firstName: "string",
19
- * lastName: "string",
20
- * title: "string",
21
- * email: "string",
22
- * phone: "string",
23
- * fax: "string"
24
- * },
25
- * commercialInsuranceTypes: {
26
- * type: "allApply"
27
- * },
28
- * medicareInsuranceTypes: {
29
- * type: "allApply"
30
- * },
31
- * medicaidInsuranceTypes: {
32
- * type: "allApply"
33
- * }
10
+ * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
34
11
  * }
35
12
  */
36
13
  export interface ContractCreate extends CandidApi.contracts.v2.ContractBase {
@@ -40,7 +17,6 @@ export interface ContractCreate extends CandidApi.contracts.v2.ContractBase {
40
17
  * A rendering provider isn't contracted directly with the payer but can render
41
18
  * services under the contract held by the contracting provider.
42
19
  * Max items is 100.
43
- *
44
20
  */
45
21
  renderingProviderIds: Set<CandidApi.contracts.v2.RenderingProviderid>;
46
22
  /** The UUID of the insurance company under agreement to the contract */
@@ -4,47 +4,13 @@
4
4
  import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * renderingProviderIds: new Set([CandidApi.contracts.v2.RenderingProviderid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]),
9
- * effectiveDate: CandidApi.Date_("string"),
10
- * expirationDate: {
11
- * type: "set",
12
- * value: CandidApi.Date_("string")
13
- * },
14
- * regions: {
15
- * type: "set",
16
- * value: {
17
- * type: "states",
18
- * states: ["AA"]
19
- * }
20
- * },
21
- * contractStatus: "pending",
22
- * authorizedSignatory: {
23
- * type: "set",
24
- * firstName: "string",
25
- * lastName: "string",
26
- * title: "string",
27
- * email: "string",
28
- * phone: "string",
29
- * fax: "string"
30
- * },
31
- * commercialInsuranceTypes: {
32
- * type: "allApply"
33
- * },
34
- * medicareInsuranceTypes: {
35
- * type: "allApply"
36
- * },
37
- * medicaidInsuranceTypes: {
38
- * type: "allApply"
39
- * }
40
- * }
7
+ * {}
41
8
  */
42
9
  export interface ContractUpdate {
43
10
  /**
44
11
  * A rendering provider isn't contracted directly with the payer but can render
45
12
  * services under the contract held by the contracting provider.
46
13
  * Max items is 100.
47
- *
48
14
  */
49
15
  renderingProviderIds?: Set<CandidApi.contracts.v2.RenderingProviderid>;
50
16
  /** The starting day upon which the contract is effective */
@@ -54,7 +20,6 @@ export interface ContractUpdate {
54
20
  /**
55
21
  * If present, the contract's rendering providers will be patched to this exact
56
22
  * value, overriding what was set before.
57
- *
58
23
  */
59
24
  regions?: CandidApi.contracts.v2.RegionsUpdate;
60
25
  contractStatus?: CandidApi.contracts.v2.ContractStatus;
@@ -4,15 +4,7 @@
4
4
  import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
9
- * limit: 1,
10
- * contractingProviderId: CandidApi.contracts.v2.ContractingProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
11
- * renderingProviderIds: CandidApi.contracts.v2.RenderingProviderid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
12
- * payerNames: "string",
13
- * states: "AA",
14
- * contractStatus: "pending"
15
- * }
7
+ * {}
16
8
  */
17
9
  export interface GetMultiContractsRequest {
18
10
  pageToken?: CandidApi.PageToken;
@@ -31,4 +23,12 @@ export interface GetMultiContractsRequest {
31
23
  * The status of the contract. Defaults to `pending`
32
24
  */
33
25
  contractStatus?: CandidApi.contracts.v2.ContractStatus;
26
+ /**
27
+ * Potentially sort by a contract related attribute. Defaults to created_at
28
+ */
29
+ sort?: CandidApi.contracts.v2.ContractSortField;
30
+ /**
31
+ * Direction of sort, defaulting to desc
32
+ */
33
+ sortDirection?: CandidApi.SortDirection;
34
34
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ContractSortField = "created_at" | "payer_name" | "payer_id" | "billing_provider_name" | "effective_date" | "contract_status";
5
+ export declare const ContractSortField: {
6
+ readonly CreatedAt: "created_at";
7
+ readonly PayerName: "payer_name";
8
+ readonly PayerId: "payer_id";
9
+ readonly BillingProviderName: "billing_provider_name";
10
+ readonly EffectiveDate: "effective_date";
11
+ readonly ContractStatus: "contract_status";
12
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ContractSortField = void 0;
7
+ exports.ContractSortField = {
8
+ CreatedAt: "created_at",
9
+ PayerName: "payer_name",
10
+ PayerId: "payer_id",
11
+ BillingProviderName: "billing_provider_name",
12
+ EffectiveDate: "effective_date",
13
+ ContractStatus: "contract_status",
14
+ };
@@ -12,4 +12,5 @@ export * from "./Contract";
12
12
  export * from "./ContractWithProviders";
13
13
  export * from "./ContractsPage";
14
14
  export * from "./ContractStatus";
15
+ export * from "./ContractSortField";
15
16
  export * from "./AuthorizedSignatory";
@@ -28,4 +28,5 @@ __exportStar(require("./Contract"), exports);
28
28
  __exportStar(require("./ContractWithProviders"), exports);
29
29
  __exportStar(require("./ContractsPage"), exports);
30
30
  __exportStar(require("./ContractStatus"), exports);
31
+ __exportStar(require("./ContractSortField"), exports);
31
32
  __exportStar(require("./AuthorizedSignatory"), exports);
@@ -34,14 +34,10 @@ export declare class V2 {
34
34
  * renderingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
35
35
  * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
36
36
  * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
37
- * startDate: "2023-01-15",
38
- * endDate: "2023-01-15",
39
37
  * regions: {
40
38
  * type: "states",
41
- * states: ["AA"]
42
- * },
43
- * submittedDate: "2023-01-15",
44
- * payerLoadedDate: "2023-01-15"
39
+ * states: ["AA", "AA"]
40
+ * }
45
41
  * })
46
42
  */
47
43
  create(request: CandidApi.credentialing.v2.ProviderCredentialingSpanCreate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.credentialing.v2.ProviderCredentialingSpan, CandidApi.credentialing.v2.create.Error>>;
@@ -58,14 +54,7 @@ export declare class V2 {
58
54
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
59
55
  *
60
56
  * @example
61
- * await client.credentialing.v2.getAll({
62
- * limit: 1,
63
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
64
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
65
- * providerId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
66
- * asRenderingProvider: true,
67
- * asContractingProvider: true
68
- * })
57
+ * await client.credentialing.v2.getAll()
69
58
  */
70
59
  getAll(request?: CandidApi.credentialing.v2.GetAllProviderCredentialingSpansRequest, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.credentialing.v2.ProviderCredentialingSpanPage, CandidApi.credentialing.v2.getAll.Error>>;
71
60
  /**
@@ -84,18 +73,7 @@ export declare class V2 {
84
73
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
85
74
  *
86
75
  * @example
87
- * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
88
- * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
89
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
90
- * startDate: "2023-01-15",
91
- * endDate: "2023-01-15",
92
- * regions: {
93
- * type: "states",
94
- * states: ["AA"]
95
- * },
96
- * submittedDate: "2023-01-15",
97
- * payerLoadedDate: "2023-01-15"
98
- * })
76
+ * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
99
77
  */
100
78
  update(providerCredentialingId: CandidApi.ProviderCredentialingSpanId, request?: CandidApi.credentialing.v2.ProviderCredentialingSpanUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.credentialing.v2.ProviderCredentialingSpan, CandidApi.credentialing.v2.update.Error>>;
101
79
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -67,14 +67,10 @@ class V2 {
67
67
  * renderingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
68
68
  * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
69
69
  * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
70
- * startDate: "2023-01-15",
71
- * endDate: "2023-01-15",
72
70
  * regions: {
73
71
  * type: "states",
74
- * states: ["AA"]
75
- * },
76
- * submittedDate: "2023-01-15",
77
- * payerLoadedDate: "2023-01-15"
72
+ * states: ["AA", "AA"]
73
+ * }
78
74
  * })
79
75
  */
80
76
  create(request, requestOptions) {
@@ -83,7 +79,7 @@ class V2 {
83
79
  const _response = yield core.fetcher({
84
80
  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/provider-credentialing-span/v2"),
85
81
  method: "POST",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
83
  contentType: "application/json",
88
84
  requestType: "json",
89
85
  body: serializers.credentialing.v2.ProviderCredentialingSpanCreate.jsonOrThrow(request, {
@@ -138,7 +134,7 @@ class V2 {
138
134
  const _response = yield core.fetcher({
139
135
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
140
136
  method: "GET",
141
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
138
  contentType: "application/json",
143
139
  requestType: "json",
144
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -182,14 +178,7 @@ class V2 {
182
178
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
183
179
  *
184
180
  * @example
185
- * await client.credentialing.v2.getAll({
186
- * limit: 1,
187
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
188
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
189
- * providerId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
190
- * asRenderingProvider: true,
191
- * asContractingProvider: true
192
- * })
181
+ * await client.credentialing.v2.getAll()
193
182
  */
194
183
  getAll() {
195
184
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
@@ -217,7 +206,7 @@ class V2 {
217
206
  const _response = yield core.fetcher({
218
207
  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/provider-credentialing-span/v2"),
219
208
  method: "GET",
220
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
210
  contentType: "application/json",
222
211
  queryParameters: _queryParams,
223
212
  requestType: "json",
@@ -272,7 +261,7 @@ class V2 {
272
261
  const _response = yield core.fetcher({
273
262
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
274
263
  method: "DELETE",
275
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
265
  contentType: "application/json",
277
266
  requestType: "json",
278
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -312,18 +301,7 @@ class V2 {
312
301
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
313
302
  *
314
303
  * @example
315
- * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
316
- * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
317
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
318
- * startDate: "2023-01-15",
319
- * endDate: "2023-01-15",
320
- * regions: {
321
- * type: "states",
322
- * states: ["AA"]
323
- * },
324
- * submittedDate: "2023-01-15",
325
- * payerLoadedDate: "2023-01-15"
326
- * })
304
+ * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
327
305
  */
328
306
  update(providerCredentialingId_1) {
329
307
  return __awaiter(this, arguments, void 0, function* (providerCredentialingId, request = {}, requestOptions) {
@@ -331,7 +309,7 @@ class V2 {
331
309
  const _response = yield core.fetcher({
332
310
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
333
311
  method: "PATCH",
334
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
335
313
  contentType: "application/json",
336
314
  requestType: "json",
337
315
  body: serializers.credentialing.v2.ProviderCredentialingSpanUpdate.jsonOrThrow(request, {
@@ -4,14 +4,7 @@
4
4
  import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * limit: 1,
9
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
10
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11
- * providerId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
12
- * asRenderingProvider: true,
13
- * asContractingProvider: true
14
- * }
7
+ * {}
15
8
  */
16
9
  export interface GetAllProviderCredentialingSpansRequest {
17
10
  /**
@@ -8,23 +8,16 @@ import * as CandidApi from "../../../../../../index";
8
8
  * renderingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
9
9
  * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
10
10
  * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11
- * startDate: "2023-01-15",
12
- * endDate: "2023-01-15",
13
11
  * regions: {
14
12
  * type: "states",
15
- * states: ["AA"]
16
- * },
17
- * submittedDate: "2023-01-15",
18
- * payerLoadedDate: "2023-01-15"
13
+ * states: ["AA", "AA"]
14
+ * }
19
15
  * }
20
16
  */
21
17
  export interface ProviderCredentialingSpanCreate {
22
18
  /** The ID of the rendering provider covered by the credentialing span. */
23
19
  renderingProviderId: string;
24
- /**
25
- * The ID of the practice location at which the rendering provider is covered by the credentialing span.
26
- *
27
- */
20
+ /** The ID of the practice location at which the rendering provider is covered by the credentialing span. */
28
21
  contractingProviderId: string;
29
22
  /** The ID of the payer covered by the credentialing span. */
30
23
  payerUuid: string;
@@ -32,10 +25,7 @@ export interface ProviderCredentialingSpanCreate {
32
25
  startDate?: string;
33
26
  /** End date of the credentialing span. */
34
27
  endDate?: string;
35
- /**
36
- * The states covered by the credentialing span. A span may be national and cover all states.
37
- *
38
- */
28
+ /** The states covered by the credentialing span. A span may be national and cover all states. */
39
29
  regions: CandidApi.Regions;
40
30
  /** Date that the credential paperwork was submitted. */
41
31
  submittedDate?: string;
@@ -4,24 +4,10 @@
4
4
  import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * contractingProviderId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
9
- * payerUuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
10
- * startDate: "2023-01-15",
11
- * endDate: "2023-01-15",
12
- * regions: {
13
- * type: "states",
14
- * states: ["AA"]
15
- * },
16
- * submittedDate: "2023-01-15",
17
- * payerLoadedDate: "2023-01-15"
18
- * }
7
+ * {}
19
8
  */
20
9
  export interface ProviderCredentialingSpanUpdate {
21
- /**
22
- * The ID of the practice location at which the rendering provider is covered by the credentialing span.
23
- *
24
- */
10
+ /** The ID of the practice location at which the rendering provider is covered by the credentialing span. */
25
11
  contractingProviderId?: string;
26
12
  /** The ID of the payer doing the credentialing. */
27
13
  payerUuid?: string;
@@ -29,10 +15,7 @@ export interface ProviderCredentialingSpanUpdate {
29
15
  startDate?: string;
30
16
  /** End date of the credentialing span. */
31
17
  endDate?: string;
32
- /**
33
- * The states covered by the credentialing span. A span may be national and cover all states.
34
- *
35
- */
18
+ /** The states covered by the credentialing span. A span may be national and cover all states. */
36
19
  regions?: CandidApi.Regions;
37
20
  /** Date that the credential paperwork was submitted. */
38
21
  submittedDate?: string;
@@ -72,7 +72,7 @@ class V1 {
72
72
  const _response = yield core.fetcher({
73
73
  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/custom-schemas/v1"),
74
74
  method: "GET",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +125,7 @@ class V1 {
125
125
  const _response = yield core.fetcher({
126
126
  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/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
127
127
  method: "GET",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -196,7 +196,7 @@ class V1 {
196
196
  const _response = yield core.fetcher({
197
197
  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/custom-schemas/v1"),
198
198
  method: "POST",
199
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.customSchemas.v1.SchemaCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
260
260
  method: "PATCH",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.1", "User-Agent": "candidhealth/0.46.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  body: serializers.customSchemas.v1.SchemaUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),