candidhealth 0.40.3 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +19 -14
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +11 -0
  6. package/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  7. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  8. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  9. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  10. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  11. package/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  12. package/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +79 -0
  13. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  14. package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  15. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  16. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  19. package/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  20. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  21. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  23. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  24. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  25. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  26. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  27. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  28. package/api/resources/diagnoses/client/Client.js +3 -3
  29. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  30. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  31. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  32. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  33. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  34. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  35. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  36. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  37. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  38. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  39. package/api/resources/index.d.ts +1 -0
  40. package/api/resources/index.js +3 -1
  41. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  42. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  43. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  44. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  45. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  46. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  47. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  48. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  49. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  50. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  51. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  52. package/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  53. package/api/resources/payerPlanGroups/client/Client.js +17 -0
  54. package/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  55. package/api/resources/payerPlanGroups/client/index.js +2 -0
  56. package/api/resources/payerPlanGroups/index.d.ts +2 -0
  57. package/api/resources/payerPlanGroups/index.js +18 -0
  58. package/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  59. package/api/resources/payerPlanGroups/resources/index.js +37 -0
  60. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  61. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  62. package/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  63. package/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  64. package/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  65. package/api/resources/payerPlanGroups/resources/v1/client/deactivate.js +79 -0
  66. package/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  67. package/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
  68. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  69. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  70. package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  71. package/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  72. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  73. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
  74. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  75. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  76. package/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  77. package/api/resources/payerPlanGroups/resources/v1/client/update.js +90 -0
  78. package/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  79. package/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  80. package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  81. package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
  82. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  83. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
  84. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  85. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  86. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  87. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  88. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  89. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  90. package/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  91. package/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  92. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  93. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  94. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  95. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  96. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  97. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  98. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  99. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  100. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  101. package/api/resources/serviceFacility/client/Client.js +1 -1
  102. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  103. package/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  104. package/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  105. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  106. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  107. package/dist/Client.d.ts +3 -0
  108. package/dist/Client.js +19 -14
  109. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  110. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  111. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +11 -0
  112. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  113. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  114. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  115. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  116. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +5 -0
  117. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  118. package/dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  119. package/dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +79 -0
  120. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  121. package/dist/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  122. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +5 -0
  123. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  124. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  125. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  126. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  127. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  128. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  129. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  130. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  131. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  132. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  133. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  134. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  135. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  136. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  137. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  138. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  139. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  140. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  141. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  142. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  143. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  144. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  145. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  146. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  147. package/dist/api/resources/index.d.ts +1 -0
  148. package/dist/api/resources/index.js +3 -1
  149. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  150. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  151. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  152. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  153. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  154. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  155. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  156. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  157. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  158. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  159. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  160. package/dist/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  161. package/dist/api/resources/payerPlanGroups/client/Client.js +17 -0
  162. package/dist/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  163. package/dist/api/resources/payerPlanGroups/client/index.js +2 -0
  164. package/dist/api/resources/payerPlanGroups/index.d.ts +2 -0
  165. package/dist/api/resources/payerPlanGroups/index.js +18 -0
  166. package/dist/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  167. package/dist/api/resources/payerPlanGroups/resources/index.js +37 -0
  168. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  169. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  170. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  171. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  172. package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  173. package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.js +79 -0
  174. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  175. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
  176. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  177. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  178. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  179. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  180. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  181. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
  182. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  183. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  184. package/dist/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  185. package/dist/api/resources/payerPlanGroups/resources/v1/client/update.js +90 -0
  186. package/dist/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  187. package/dist/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  188. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  189. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
  190. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  191. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
  192. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  193. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  194. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  195. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  196. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  197. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  198. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  199. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  200. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  201. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  202. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  203. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  204. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  205. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  206. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  207. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  208. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  209. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  210. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  211. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  212. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  213. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  214. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  215. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  216. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  217. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  218. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  219. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  220. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  221. package/dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  222. package/dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +77 -0
  223. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  224. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  225. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  226. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  227. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  228. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  229. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  230. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  231. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  232. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  233. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  234. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  235. package/dist/serialization/resources/index.d.ts +1 -0
  236. package/dist/serialization/resources/index.js +3 -1
  237. package/dist/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  238. package/dist/serialization/resources/payerPlanGroups/index.js +17 -0
  239. package/dist/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  240. package/dist/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  241. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  242. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  243. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +20 -0
  244. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js +77 -0
  245. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts +20 -0
  246. package/{serialization/resources/chargeCaptureBundles → dist/serialization/resources/payerPlanGroups}/resources/v1/client/get.js +11 -5
  247. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  248. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/client/get.js → payerPlanGroups/resources/v1/client/getMulti.js} +5 -5
  249. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  250. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  251. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
  252. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
  253. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  254. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  255. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  256. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
  257. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  258. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  259. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  260. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +45 -0
  261. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  262. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  263. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  264. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  265. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  266. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  267. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  268. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  269. package/dist/version.d.ts +1 -1
  270. package/dist/version.js +1 -1
  271. package/package.json +1 -1
  272. package/reference.md +406 -0
  273. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  274. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  275. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  276. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  277. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  278. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  279. package/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  280. package/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +77 -0
  281. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  282. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  283. package/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  284. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  285. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  286. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  287. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  288. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  289. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  290. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  291. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  292. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  293. package/serialization/resources/index.d.ts +1 -0
  294. package/serialization/resources/index.js +3 -1
  295. package/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  296. package/serialization/resources/payerPlanGroups/index.js +17 -0
  297. package/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  298. package/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  299. package/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  300. package/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  301. package/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +20 -0
  302. package/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js +77 -0
  303. package/serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts +20 -0
  304. package/serialization/resources/{chargeCaptureBundles/resources/v1/client/getAll.js → payerPlanGroups/resources/v1/client/get.js} +11 -5
  305. package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  306. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js → serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js} +5 -5
  307. package/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  308. package/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  309. package/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
  310. package/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
  311. package/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  312. package/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  313. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  314. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
  315. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  316. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  317. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  318. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +45 -0
  319. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  320. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  321. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  322. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  323. package/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  324. package/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  325. package/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  326. package/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  327. package/version.d.ts +1 -1
  328. package/version.js +1 -1
  329. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  330. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  331. package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  332. package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  333. /package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js} +0 -0
  334. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +0 -0
@@ -0,0 +1,77 @@
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 PayerPlanGroupAlreadyExistsError_1 = require("../types/PayerPlanGroupAlreadyExistsError");
55
+ exports.Error = core.serialization
56
+ .union("errorName", {
57
+ EntityNotFoundError: core.serialization.object({
58
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
59
+ }),
60
+ PayerPlanGroupAlreadyExistsHttpError: core.serialization.object({
61
+ content: PayerPlanGroupAlreadyExistsError_1.PayerPlanGroupAlreadyExistsError,
62
+ }),
63
+ })
64
+ .transform({
65
+ transform: (value) => {
66
+ switch (value.errorName) {
67
+ case "EntityNotFoundError":
68
+ return CandidApi.payerPlanGroups.v1.create.Error.entityNotFoundError(value.content);
69
+ case "PayerPlanGroupAlreadyExistsHttpError":
70
+ return CandidApi.payerPlanGroups.v1.create.Error.payerPlanGroupAlreadyExistsHttpError(value.content);
71
+ }
72
+ },
73
+ untransform: (_a) => {
74
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
75
+ return value;
76
+ },
77
+ });
@@ -0,0 +1,20 @@
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
+ export declare const Error: core.serialization.Schema<serializers.payerPlanGroups.v1.deactivate.Error.Raw, CandidApi.payerPlanGroups.v1.deactivate.Error>;
10
+ export declare namespace Error {
11
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
12
+ interface EntityNotFoundError {
13
+ errorName: "EntityNotFoundError";
14
+ content: EntityNotFoundErrorMessage.Raw;
15
+ }
16
+ interface UnauthorizedError {
17
+ errorName: "UnauthorizedError";
18
+ content: UnauthorizedErrorMessage.Raw;
19
+ }
20
+ }
@@ -0,0 +1,77 @@
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
+ exports.Error = core.serialization
56
+ .union("errorName", {
57
+ EntityNotFoundError: core.serialization.object({
58
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
59
+ }),
60
+ UnauthorizedError: core.serialization.object({
61
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
62
+ }),
63
+ })
64
+ .transform({
65
+ transform: (value) => {
66
+ switch (value.errorName) {
67
+ case "EntityNotFoundError":
68
+ return CandidApi.payerPlanGroups.v1.deactivate.Error.entityNotFoundError(value.content);
69
+ case "UnauthorizedError":
70
+ return CandidApi.payerPlanGroups.v1.deactivate.Error.unauthorizedError(value.content);
71
+ }
72
+ },
73
+ untransform: (_a) => {
74
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
75
+ return value;
76
+ },
77
+ });
@@ -0,0 +1,20 @@
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
+ export declare const Error: core.serialization.Schema<serializers.payerPlanGroups.v1.get.Error.Raw, CandidApi.payerPlanGroups.v1.get.Error>;
10
+ export declare namespace Error {
11
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
12
+ interface EntityNotFoundError {
13
+ errorName: "EntityNotFoundError";
14
+ content: EntityNotFoundErrorMessage.Raw;
15
+ }
16
+ interface UnauthorizedError {
17
+ errorName: "UnauthorizedError";
18
+ content: UnauthorizedErrorMessage.Raw;
19
+ }
20
+ }
@@ -50,18 +50,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
50
50
  exports.Error = void 0;
51
51
  const CandidApi = __importStar(require("../../../../../../api/index"));
52
52
  const core = __importStar(require("../../../../../../core"));
53
- const NotImplementedErrorMessage_1 = require("../../../../commons/types/NotImplementedErrorMessage");
53
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
54
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
54
55
  exports.Error = core.serialization
55
56
  .union("errorName", {
56
- NotImplementedError: core.serialization.object({
57
- content: NotImplementedErrorMessage_1.NotImplementedErrorMessage,
57
+ EntityNotFoundError: core.serialization.object({
58
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
59
+ }),
60
+ UnauthorizedError: core.serialization.object({
61
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
58
62
  }),
59
63
  })
60
64
  .transform({
61
65
  transform: (value) => {
62
66
  switch (value.errorName) {
63
- case "NotImplementedError":
64
- return CandidApi.chargeCaptureBundles.v1.get.Error.notImplementedError(value.content);
67
+ case "EntityNotFoundError":
68
+ return CandidApi.payerPlanGroups.v1.get.Error.entityNotFoundError(value.content);
69
+ case "UnauthorizedError":
70
+ return CandidApi.payerPlanGroups.v1.get.Error.unauthorizedError(value.content);
65
71
  }
66
72
  },
67
73
  untransform: (_a) => {
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
8
+ export declare const Error: core.serialization.Schema<serializers.payerPlanGroups.v1.getMulti.Error.Raw, CandidApi.payerPlanGroups.v1.getMulti.Error>;
9
+ export declare namespace Error {
10
+ type Raw = Error.UnprocessableEntityError;
11
+ interface UnprocessableEntityError {
12
+ errorName: "UnprocessableEntityError";
13
+ content: UnprocessableEntityErrorMessage.Raw;
14
+ }
15
+ }
@@ -50,18 +50,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
50
50
  exports.Error = void 0;
51
51
  const CandidApi = __importStar(require("../../../../../../api/index"));
52
52
  const core = __importStar(require("../../../../../../core"));
53
- const NotImplementedErrorMessage_1 = require("../../../../commons/types/NotImplementedErrorMessage");
53
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
54
54
  exports.Error = core.serialization
55
55
  .union("errorName", {
56
- NotImplementedError: core.serialization.object({
57
- content: NotImplementedErrorMessage_1.NotImplementedErrorMessage,
56
+ UnprocessableEntityError: core.serialization.object({
57
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
58
58
  }),
59
59
  })
60
60
  .transform({
61
61
  transform: (value) => {
62
62
  switch (value.errorName) {
63
- case "NotImplementedError":
64
- return CandidApi.chargeCaptureBundles.v1.get.Error.notImplementedError(value.content);
63
+ case "UnprocessableEntityError":
64
+ return CandidApi.payerPlanGroups.v1.getMulti.Error.unprocessableEntityError(value.content);
65
65
  }
66
66
  },
67
67
  untransform: (_a) => {
@@ -0,0 +1,5 @@
1
+ export * as getMulti from "./getMulti";
2
+ export * as get from "./get";
3
+ export * as create from "./create";
4
+ export * as update from "./update";
5
+ export * as deactivate from "./deactivate";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.deactivate = exports.update = exports.create = exports.get = exports.getMulti = void 0;
37
+ exports.getMulti = __importStar(require("./getMulti"));
38
+ exports.get = __importStar(require("./get"));
39
+ exports.create = __importStar(require("./create"));
40
+ exports.update = __importStar(require("./update"));
41
+ exports.deactivate = __importStar(require("./deactivate"));
@@ -0,0 +1,25 @@
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 { PayerPlanGroupAlreadyExistsError } from "../types/PayerPlanGroupAlreadyExistsError";
10
+ export declare const Error: core.serialization.Schema<serializers.payerPlanGroups.v1.update.Error.Raw, CandidApi.payerPlanGroups.v1.update.Error>;
11
+ export declare namespace Error {
12
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.PayerPlanGroupAlreadyExistsHttpError;
13
+ interface EntityNotFoundError {
14
+ errorName: "EntityNotFoundError";
15
+ content: EntityNotFoundErrorMessage.Raw;
16
+ }
17
+ interface UnauthorizedError {
18
+ errorName: "UnauthorizedError";
19
+ content: UnauthorizedErrorMessage.Raw;
20
+ }
21
+ interface PayerPlanGroupAlreadyExistsHttpError {
22
+ errorName: "PayerPlanGroupAlreadyExistsHttpError";
23
+ content: PayerPlanGroupAlreadyExistsError.Raw;
24
+ }
25
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
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 PayerPlanGroupAlreadyExistsError_1 = require("../types/PayerPlanGroupAlreadyExistsError");
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
+ PayerPlanGroupAlreadyExistsHttpError: core.serialization.object({
65
+ content: PayerPlanGroupAlreadyExistsError_1.PayerPlanGroupAlreadyExistsError,
66
+ }),
67
+ })
68
+ .transform({
69
+ transform: (value) => {
70
+ switch (value.errorName) {
71
+ case "EntityNotFoundError":
72
+ return CandidApi.payerPlanGroups.v1.update.Error.entityNotFoundError(value.content);
73
+ case "UnauthorizedError":
74
+ return CandidApi.payerPlanGroups.v1.update.Error.unauthorizedError(value.content);
75
+ case "PayerPlanGroupAlreadyExistsHttpError":
76
+ return CandidApi.payerPlanGroups.v1.update.Error.payerPlanGroupAlreadyExistsHttpError(value.content);
77
+ }
78
+ },
79
+ untransform: (_a) => {
80
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
81
+ return value;
82
+ },
83
+ });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,16 @@
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 { PayerUuid } from "../../../../payers/resources/v3/types/PayerUuid";
8
+ import { SourceOfPaymentCode } from "../../../../commons/types/SourceOfPaymentCode";
9
+ export declare const MutablePayerPlanGroup: core.serialization.ObjectSchema<serializers.payerPlanGroups.v1.MutablePayerPlanGroup.Raw, CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup>;
10
+ export declare namespace MutablePayerPlanGroup {
11
+ interface Raw {
12
+ plan_group_name: string;
13
+ payer_uuid: PayerUuid.Raw;
14
+ plan_type: SourceOfPaymentCode.Raw;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
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.MutablePayerPlanGroup = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const PayerUuid_1 = require("../../../../payers/resources/v3/types/PayerUuid");
42
+ const SourceOfPaymentCode_1 = require("../../../../commons/types/SourceOfPaymentCode");
43
+ exports.MutablePayerPlanGroup = core.serialization.object({
44
+ planGroupName: core.serialization.property("plan_group_name", core.serialization.string()),
45
+ payerUuid: core.serialization.property("payer_uuid", PayerUuid_1.PayerUuid),
46
+ planType: core.serialization.property("plan_type", SourceOfPaymentCode_1.SourceOfPaymentCode),
47
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { PayerPlanGroupId } from "../../../../commons/types/PayerPlanGroupId";
8
+ import { Payer } from "../../../../payers/resources/v3/types/Payer";
9
+ import { MutablePayerPlanGroup } from "./MutablePayerPlanGroup";
10
+ export declare const PayerPlanGroup: core.serialization.ObjectSchema<serializers.payerPlanGroups.v1.PayerPlanGroup.Raw, CandidApi.payerPlanGroups.v1.PayerPlanGroup>;
11
+ export declare namespace PayerPlanGroup {
12
+ interface Raw extends MutablePayerPlanGroup.Raw {
13
+ payer_plan_group_id: PayerPlanGroupId.Raw;
14
+ payer: Payer.Raw;
15
+ is_active: boolean;
16
+ }
17
+ }
@@ -0,0 +1,50 @@
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.PayerPlanGroup = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const PayerPlanGroupId_1 = require("../../../../commons/types/PayerPlanGroupId");
42
+ const Payer_1 = require("../../../../payers/resources/v3/types/Payer");
43
+ const MutablePayerPlanGroup_1 = require("./MutablePayerPlanGroup");
44
+ exports.PayerPlanGroup = core.serialization
45
+ .object({
46
+ payerPlanGroupId: core.serialization.property("payer_plan_group_id", PayerPlanGroupId_1.PayerPlanGroupId),
47
+ payer: Payer_1.Payer,
48
+ isActive: core.serialization.property("is_active", core.serialization.boolean()),
49
+ })
50
+ .extend(MutablePayerPlanGroup_1.MutablePayerPlanGroup);
@@ -0,0 +1,14 @@
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 { PayerPlanGroupId } from "../../../../commons/types/PayerPlanGroupId";
8
+ export declare const PayerPlanGroupAlreadyExistsError: core.serialization.ObjectSchema<serializers.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError.Raw, CandidApi.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError>;
9
+ export declare namespace PayerPlanGroupAlreadyExistsError {
10
+ interface Raw {
11
+ message: string;
12
+ id: PayerPlanGroupId.Raw;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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.PayerPlanGroupAlreadyExistsError = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const PayerPlanGroupId_1 = require("../../../../commons/types/PayerPlanGroupId");
42
+ exports.PayerPlanGroupAlreadyExistsError = core.serialization.object({
43
+ message: core.serialization.string(),
44
+ id: PayerPlanGroupId_1.PayerPlanGroupId,
45
+ });