candidhealth 0.40.1 → 0.40.3

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 (282) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +3 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +22 -6
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +15 -0
  6. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  7. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  8. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  9. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  10. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  11. package/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +12 -2
  13. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +58 -6
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +17 -2
  19. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  20. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  21. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  23. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  24. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  25. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  26. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  27. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  28. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  29. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  30. package/api/resources/commons/types/index.d.ts +1 -0
  31. package/api/resources/commons/types/index.js +1 -0
  32. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  33. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  34. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  35. package/api/resources/diagnoses/client/Client.js +3 -3
  36. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  37. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  38. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  39. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  40. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  41. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  42. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  43. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  44. package/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  45. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  46. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  47. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  48. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  49. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  50. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  51. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  52. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  53. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  54. package/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  55. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  56. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  57. package/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  58. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  59. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  60. package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  61. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  62. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  63. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  64. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  65. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  66. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  67. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  68. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  69. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  70. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  71. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  72. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  73. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  74. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  75. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  76. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  77. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  78. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  79. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  80. package/api/resources/serviceFacility/client/Client.js +1 -1
  81. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  82. package/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  83. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  84. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  85. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  86. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  87. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  88. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  89. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +3 -0
  90. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +22 -6
  91. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +15 -0
  92. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  93. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  94. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  95. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  96. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  97. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  98. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +12 -2
  99. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +58 -6
  100. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  101. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  102. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  103. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  104. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +17 -2
  105. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  106. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  107. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  108. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  109. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  110. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  111. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  112. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  113. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  114. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  115. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  116. package/dist/api/resources/commons/types/index.d.ts +1 -0
  117. package/dist/api/resources/commons/types/index.js +1 -0
  118. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  119. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  120. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  121. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  122. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  123. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  124. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  125. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  126. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  127. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  128. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  129. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  130. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  131. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  132. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  133. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  134. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  135. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  136. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  137. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  138. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  139. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  140. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  141. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  142. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  143. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  144. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  145. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  146. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  147. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  148. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  149. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  150. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  151. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  152. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  153. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  154. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  155. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  156. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  157. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  158. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  159. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  160. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  161. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  162. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  163. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  164. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  165. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  166. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  167. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  168. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  169. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  170. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  171. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  172. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  173. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  174. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  175. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  176. package/dist/serialization/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +7 -6
  177. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  178. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  179. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  180. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  181. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  182. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  183. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  184. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  185. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  186. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
  187. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  188. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  189. package/dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  190. package/{serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js} +6 -6
  191. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  192. package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  193. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  194. package/dist/serialization/resources/commons/types/index.js +1 -0
  195. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  196. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  197. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  198. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  199. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  200. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  201. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  202. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  203. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  204. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  205. package/dist/version.d.ts +1 -1
  206. package/dist/version.js +1 -1
  207. package/package.json +1 -1
  208. package/reference.md +53 -231
  209. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  210. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  211. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  212. package/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +6 -9
  213. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  214. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  215. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  216. package/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  217. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  218. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  219. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  220. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  221. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  222. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +45 -0
  223. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  224. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  225. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  226. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js +45 -0
  227. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  228. package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  229. package/serialization/resources/commons/types/index.d.ts +1 -0
  230. package/serialization/resources/commons/types/index.js +1 -0
  231. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  232. package/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  233. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  234. package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  235. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  236. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  237. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  238. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  239. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  240. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  241. package/version.d.ts +1 -1
  242. package/version.js +1 -1
  243. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  244. package/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  245. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  246. package/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  247. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  248. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  249. package/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  250. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  251. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  252. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  253. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  254. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  255. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  256. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  257. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  258. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  259. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  260. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  261. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  262. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  263. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  264. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  265. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  266. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  267. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  268. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  269. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  270. package/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  271. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  272. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  273. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  274. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  275. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  276. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  277. package/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  278. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  279. /package/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +0 -0
  280. /package/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
  281. /package/dist/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +0 -0
  282. /package/dist/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as CandidApi from "../../../../../index";
5
- export interface InsurancePaymentCreate {
6
- payerIdentifier: CandidApi.payers.v3.PayerIdentifier;
7
- amountCents: number;
8
- paymentTimestamp?: Date;
9
- paymentNote?: string;
10
- allocations: CandidApi.AllocationCreate[];
11
- }
@@ -1,40 +0,0 @@
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.insurancePayments.v1.create.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.create.Error._Unknown;
7
- export declare namespace Error {
8
- interface EntityNotFoundError extends _Utils {
9
- errorName: "EntityNotFoundError";
10
- content: CandidApi.EntityNotFoundErrorMessage;
11
- }
12
- interface UnauthorizedError extends _Utils {
13
- errorName: "UnauthorizedError";
14
- content: CandidApi.UnauthorizedErrorMessage;
15
- }
16
- interface UnprocessableEntityError extends _Utils {
17
- errorName: "UnprocessableEntityError";
18
- content: CandidApi.UnprocessableEntityErrorMessage;
19
- }
20
- interface _Unknown extends _Utils {
21
- errorName: void;
22
- content: core.Fetcher.Error;
23
- }
24
- interface _Utils {
25
- _visit: <_Result>(visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
26
- }
27
- interface _Visitor<_Result> {
28
- entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
- unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
- unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
31
- _other: (value: core.Fetcher.Error) => _Result;
32
- }
33
- }
34
- export declare const Error: {
35
- readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.create.Error.EntityNotFoundError;
36
- readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnauthorizedError;
37
- readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError;
38
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.create.Error._Unknown;
39
- readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.create.Error, visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
40
- };
@@ -1,90 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Error = void 0;
40
- const CandidApi = __importStar(require("../../../../../index"));
41
- exports.Error = {
42
- entityNotFoundError: (value) => {
43
- return {
44
- content: value,
45
- errorName: "EntityNotFoundError",
46
- _visit: function (visitor) {
47
- return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
48
- },
49
- };
50
- },
51
- unauthorizedError: (value) => {
52
- return {
53
- content: value,
54
- errorName: "UnauthorizedError",
55
- _visit: function (visitor) {
56
- return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
57
- },
58
- };
59
- },
60
- unprocessableEntityError: (value) => {
61
- return {
62
- content: value,
63
- errorName: "UnprocessableEntityError",
64
- _visit: function (visitor) {
65
- return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
66
- },
67
- };
68
- },
69
- _unknown: (fetcherError) => {
70
- return {
71
- errorName: undefined,
72
- content: fetcherError,
73
- _visit: function (visitor) {
74
- return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
75
- },
76
- };
77
- },
78
- _visit: (value, visitor) => {
79
- switch (value.errorName) {
80
- case "EntityNotFoundError":
81
- return visitor.entityNotFoundError(value.content);
82
- case "UnauthorizedError":
83
- return visitor.unauthorizedError(value.content);
84
- case "UnprocessableEntityError":
85
- return visitor.unprocessableEntityError(value.content);
86
- default:
87
- return visitor._other(value);
88
- }
89
- },
90
- };
@@ -1,40 +0,0 @@
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.insurancePayments.v1.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
7
- export declare namespace Error {
8
- interface EntityNotFoundError extends _Utils {
9
- errorName: "EntityNotFoundError";
10
- content: CandidApi.EntityNotFoundErrorMessage;
11
- }
12
- interface UnauthorizedError extends _Utils {
13
- errorName: "UnauthorizedError";
14
- content: CandidApi.UnauthorizedErrorMessage;
15
- }
16
- interface UnprocessableEntityError extends _Utils {
17
- errorName: "UnprocessableEntityError";
18
- content: CandidApi.UnprocessableEntityErrorMessage;
19
- }
20
- interface _Unknown extends _Utils {
21
- errorName: void;
22
- content: core.Fetcher.Error;
23
- }
24
- interface _Utils {
25
- _visit: <_Result>(visitor: CandidApi.insurancePayments.v1.delete.Error._Visitor<_Result>) => _Result;
26
- }
27
- interface _Visitor<_Result> {
28
- entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
- unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
- unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
31
- _other: (value: core.Fetcher.Error) => _Result;
32
- }
33
- }
34
- export declare const Error: {
35
- readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError;
36
- readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError;
37
- readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError;
38
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.delete.Error._Unknown;
39
- readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.delete.Error, visitor: CandidApi.insurancePayments.v1.delete.Error._Visitor<_Result>) => _Result;
40
- };
@@ -1,90 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Error = void 0;
40
- const CandidApi = __importStar(require("../../../../../index"));
41
- exports.Error = {
42
- entityNotFoundError: (value) => {
43
- return {
44
- content: value,
45
- errorName: "EntityNotFoundError",
46
- _visit: function (visitor) {
47
- return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
48
- },
49
- };
50
- },
51
- unauthorizedError: (value) => {
52
- return {
53
- content: value,
54
- errorName: "UnauthorizedError",
55
- _visit: function (visitor) {
56
- return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
57
- },
58
- };
59
- },
60
- unprocessableEntityError: (value) => {
61
- return {
62
- content: value,
63
- errorName: "UnprocessableEntityError",
64
- _visit: function (visitor) {
65
- return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
66
- },
67
- };
68
- },
69
- _unknown: (fetcherError) => {
70
- return {
71
- errorName: undefined,
72
- content: fetcherError,
73
- _visit: function (visitor) {
74
- return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
75
- },
76
- };
77
- },
78
- _visit: (value, visitor) => {
79
- switch (value.errorName) {
80
- case "EntityNotFoundError":
81
- return visitor.entityNotFoundError(value.content);
82
- case "UnauthorizedError":
83
- return visitor.unauthorizedError(value.content);
84
- case "UnprocessableEntityError":
85
- return visitor.unprocessableEntityError(value.content);
86
- default:
87
- return visitor._other(value);
88
- }
89
- },
90
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as CandidApi from "../../../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * paymentTimestamp: "2024-01-15T09:30:00Z",
9
- * paymentNote: {
10
- * type: "set",
11
- * value: "string"
12
- * }
13
- * }
14
- */
15
- export interface InsurancePaymentUpdate {
16
- paymentTimestamp?: Date;
17
- paymentNote?: CandidApi.NoteUpdate;
18
- }
@@ -1,40 +0,0 @@
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.insurancePayments.v1.update.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.update.Error.UnauthorizedError | CandidApi.insurancePayments.v1.update.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.update.Error._Unknown;
7
- export declare namespace Error {
8
- interface EntityNotFoundError extends _Utils {
9
- errorName: "EntityNotFoundError";
10
- content: CandidApi.EntityNotFoundErrorMessage;
11
- }
12
- interface UnauthorizedError extends _Utils {
13
- errorName: "UnauthorizedError";
14
- content: CandidApi.UnauthorizedErrorMessage;
15
- }
16
- interface UnprocessableEntityError extends _Utils {
17
- errorName: "UnprocessableEntityError";
18
- content: CandidApi.UnprocessableEntityErrorMessage;
19
- }
20
- interface _Unknown extends _Utils {
21
- errorName: void;
22
- content: core.Fetcher.Error;
23
- }
24
- interface _Utils {
25
- _visit: <_Result>(visitor: CandidApi.insurancePayments.v1.update.Error._Visitor<_Result>) => _Result;
26
- }
27
- interface _Visitor<_Result> {
28
- entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
- unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
- unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
31
- _other: (value: core.Fetcher.Error) => _Result;
32
- }
33
- }
34
- export declare const Error: {
35
- readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.update.Error.EntityNotFoundError;
36
- readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.update.Error.UnauthorizedError;
37
- readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.update.Error.UnprocessableEntityError;
38
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.update.Error._Unknown;
39
- readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.update.Error, visitor: CandidApi.insurancePayments.v1.update.Error._Visitor<_Result>) => _Result;
40
- };
@@ -1,90 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Error = void 0;
40
- const CandidApi = __importStar(require("../../../../../index"));
41
- exports.Error = {
42
- entityNotFoundError: (value) => {
43
- return {
44
- content: value,
45
- errorName: "EntityNotFoundError",
46
- _visit: function (visitor) {
47
- return CandidApi.insurancePayments.v1.update.Error._visit(this, visitor);
48
- },
49
- };
50
- },
51
- unauthorizedError: (value) => {
52
- return {
53
- content: value,
54
- errorName: "UnauthorizedError",
55
- _visit: function (visitor) {
56
- return CandidApi.insurancePayments.v1.update.Error._visit(this, visitor);
57
- },
58
- };
59
- },
60
- unprocessableEntityError: (value) => {
61
- return {
62
- content: value,
63
- errorName: "UnprocessableEntityError",
64
- _visit: function (visitor) {
65
- return CandidApi.insurancePayments.v1.update.Error._visit(this, visitor);
66
- },
67
- };
68
- },
69
- _unknown: (fetcherError) => {
70
- return {
71
- errorName: undefined,
72
- content: fetcherError,
73
- _visit: function (visitor) {
74
- return CandidApi.insurancePayments.v1.update.Error._visit(this, visitor);
75
- },
76
- };
77
- },
78
- _visit: (value, visitor) => {
79
- switch (value.errorName) {
80
- case "EntityNotFoundError":
81
- return visitor.entityNotFoundError(value.content);
82
- case "UnauthorizedError":
83
- return visitor.unauthorizedError(value.content);
84
- case "UnprocessableEntityError":
85
- return visitor.unprocessableEntityError(value.content);
86
- default:
87
- return visitor._other(value);
88
- }
89
- },
90
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as CandidApi from "../../../../../index";
5
- export interface InsurancePaymentCreate {
6
- payerIdentifier: CandidApi.payers.v3.PayerIdentifier;
7
- amountCents: number;
8
- paymentTimestamp?: Date;
9
- paymentNote?: string;
10
- allocations: CandidApi.AllocationCreate[];
11
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../index";
5
- import * as CandidApi from "../../../../../../api/index";
6
- import * as core from "../../../../../../core";
7
- import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
- import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
- import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
10
- export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.create.Error.Raw, CandidApi.insurancePayments.v1.create.Error>;
11
- export declare namespace Error {
12
- type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
13
- interface EntityNotFoundError {
14
- errorName: "EntityNotFoundError";
15
- content: EntityNotFoundErrorMessage.Raw;
16
- }
17
- interface UnauthorizedError {
18
- errorName: "UnauthorizedError";
19
- content: UnauthorizedErrorMessage.Raw;
20
- }
21
- interface UnprocessableEntityError {
22
- errorName: "UnprocessableEntityError";
23
- content: UnprocessableEntityErrorMessage.Raw;
24
- }
25
- }
@@ -1,83 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __rest = (this && this.__rest) || function (s, e) {
39
- var t = {};
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
- t[p] = s[p];
42
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
- t[p[i]] = s[p[i]];
46
- }
47
- return t;
48
- };
49
- Object.defineProperty(exports, "__esModule", { value: true });
50
- exports.Error = void 0;
51
- const CandidApi = __importStar(require("../../../../../../api/index"));
52
- const core = __importStar(require("../../../../../../core"));
53
- const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
54
- const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
55
- const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
56
- exports.Error = core.serialization
57
- .union("errorName", {
58
- EntityNotFoundError: core.serialization.object({
59
- content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
60
- }),
61
- UnauthorizedError: core.serialization.object({
62
- content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
63
- }),
64
- UnprocessableEntityError: core.serialization.object({
65
- content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
66
- }),
67
- })
68
- .transform({
69
- transform: (value) => {
70
- switch (value.errorName) {
71
- case "EntityNotFoundError":
72
- return CandidApi.insurancePayments.v1.create.Error.entityNotFoundError(value.content);
73
- case "UnauthorizedError":
74
- return CandidApi.insurancePayments.v1.create.Error.unauthorizedError(value.content);
75
- case "UnprocessableEntityError":
76
- return CandidApi.insurancePayments.v1.create.Error.unprocessableEntityError(value.content);
77
- }
78
- },
79
- untransform: (_a) => {
80
- var { _visit } = _a, value = __rest(_a, ["_visit"]);
81
- return value;
82
- },
83
- });
@@ -1,25 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../index";
5
- import * as CandidApi from "../../../../../../api/index";
6
- import * as core from "../../../../../../core";
7
- import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
- import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
- import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
10
- export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.delete.Error.Raw, CandidApi.insurancePayments.v1.delete.Error>;
11
- export declare namespace Error {
12
- type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
13
- interface EntityNotFoundError {
14
- errorName: "EntityNotFoundError";
15
- content: EntityNotFoundErrorMessage.Raw;
16
- }
17
- interface UnauthorizedError {
18
- errorName: "UnauthorizedError";
19
- content: UnauthorizedErrorMessage.Raw;
20
- }
21
- interface UnprocessableEntityError {
22
- errorName: "UnprocessableEntityError";
23
- content: UnprocessableEntityErrorMessage.Raw;
24
- }
25
- }
@@ -1,83 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __rest = (this && this.__rest) || function (s, e) {
39
- var t = {};
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
- t[p] = s[p];
42
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
- t[p[i]] = s[p[i]];
46
- }
47
- return t;
48
- };
49
- Object.defineProperty(exports, "__esModule", { value: true });
50
- exports.Error = void 0;
51
- const CandidApi = __importStar(require("../../../../../../api/index"));
52
- const core = __importStar(require("../../../../../../core"));
53
- const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
54
- const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
55
- const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
56
- exports.Error = core.serialization
57
- .union("errorName", {
58
- EntityNotFoundError: core.serialization.object({
59
- content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
60
- }),
61
- UnauthorizedError: core.serialization.object({
62
- content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
63
- }),
64
- UnprocessableEntityError: core.serialization.object({
65
- content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
66
- }),
67
- })
68
- .transform({
69
- transform: (value) => {
70
- switch (value.errorName) {
71
- case "EntityNotFoundError":
72
- return CandidApi.insurancePayments.v1.delete.Error.entityNotFoundError(value.content);
73
- case "UnauthorizedError":
74
- return CandidApi.insurancePayments.v1.delete.Error.unauthorizedError(value.content);
75
- case "UnprocessableEntityError":
76
- return CandidApi.insurancePayments.v1.delete.Error.unprocessableEntityError(value.content);
77
- }
78
- },
79
- untransform: (_a) => {
80
- var { _visit } = _a, value = __rest(_a, ["_visit"]);
81
- return value;
82
- },
83
- });