candidhealth 0.40.3 → 0.40.4

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 (242) 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.js +5 -5
  6. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  7. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  8. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  9. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  10. package/api/resources/diagnoses/client/Client.js +3 -3
  11. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  12. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  13. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  14. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  15. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  16. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  17. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  18. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  19. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  20. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  21. package/api/resources/index.d.ts +1 -0
  22. package/api/resources/index.js +3 -1
  23. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  24. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  25. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  26. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  27. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  28. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  29. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  30. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  31. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  32. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  33. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  34. package/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  35. package/api/resources/payerPlanGroups/client/Client.js +17 -0
  36. package/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  37. package/api/resources/payerPlanGroups/client/index.js +2 -0
  38. package/api/resources/payerPlanGroups/index.d.ts +2 -0
  39. package/api/resources/payerPlanGroups/index.js +18 -0
  40. package/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  41. package/api/resources/payerPlanGroups/resources/index.js +37 -0
  42. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  43. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  44. package/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  45. package/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  46. package/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  47. package/api/resources/payerPlanGroups/resources/v1/client/deactivate.js +79 -0
  48. package/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  49. package/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
  50. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  51. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  52. package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  53. package/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  54. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  55. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
  56. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  57. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  58. package/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  59. package/api/resources/payerPlanGroups/resources/v1/client/update.js +90 -0
  60. package/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  61. package/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  62. package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  63. package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
  64. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  65. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
  66. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  67. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  68. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  69. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  70. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  71. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  72. package/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  73. package/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  74. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  75. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  76. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  77. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  78. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  79. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  80. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  81. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  82. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  83. package/api/resources/serviceFacility/client/Client.js +1 -1
  84. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  85. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  86. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  87. package/dist/Client.d.ts +3 -0
  88. package/dist/Client.js +19 -14
  89. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  90. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  91. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  92. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  93. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  94. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  95. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  96. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  97. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  98. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  99. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  100. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  101. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  102. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  103. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  104. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  105. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  106. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  107. package/dist/api/resources/index.d.ts +1 -0
  108. package/dist/api/resources/index.js +3 -1
  109. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  110. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  111. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  112. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  113. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  114. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  115. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  116. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  117. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  118. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  119. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  120. package/dist/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  121. package/dist/api/resources/payerPlanGroups/client/Client.js +17 -0
  122. package/dist/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  123. package/dist/api/resources/payerPlanGroups/client/index.js +2 -0
  124. package/dist/api/resources/payerPlanGroups/index.d.ts +2 -0
  125. package/dist/api/resources/payerPlanGroups/index.js +18 -0
  126. package/dist/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  127. package/dist/api/resources/payerPlanGroups/resources/index.js +37 -0
  128. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  129. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  130. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  131. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  132. package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  133. package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.js +79 -0
  134. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  135. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
  136. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  137. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  138. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  139. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  140. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  141. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
  142. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  143. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  144. package/dist/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  145. package/dist/api/resources/payerPlanGroups/resources/v1/client/update.js +90 -0
  146. package/dist/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  147. package/dist/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  148. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  149. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
  150. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  151. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
  152. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  153. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  154. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  155. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  156. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  157. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  158. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  159. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  160. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  161. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  162. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  163. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  164. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  165. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  166. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  167. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  168. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  169. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  170. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  171. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  172. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  173. package/dist/serialization/resources/index.d.ts +1 -0
  174. package/dist/serialization/resources/index.js +3 -1
  175. package/dist/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  176. package/dist/serialization/resources/payerPlanGroups/index.js +17 -0
  177. package/dist/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  178. package/dist/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  179. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  180. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  181. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +20 -0
  182. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js +77 -0
  183. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts +20 -0
  184. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/get.js +77 -0
  185. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  186. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js +71 -0
  187. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  188. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  189. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
  190. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
  191. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  192. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  193. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  194. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
  195. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  196. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  197. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  198. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +45 -0
  199. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  200. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  201. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  202. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  203. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  204. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -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 +345 -0
  209. package/serialization/resources/index.d.ts +1 -0
  210. package/serialization/resources/index.js +3 -1
  211. package/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  212. package/serialization/resources/payerPlanGroups/index.js +17 -0
  213. package/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  214. package/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  215. package/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  216. package/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  217. package/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +20 -0
  218. package/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js +77 -0
  219. package/serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts +20 -0
  220. package/serialization/resources/payerPlanGroups/resources/v1/client/get.js +77 -0
  221. package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  222. package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js +71 -0
  223. package/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  224. package/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  225. package/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
  226. package/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
  227. package/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  228. package/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  229. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  230. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
  231. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  232. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  233. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  234. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +45 -0
  235. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  236. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  237. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  238. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  239. package/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  240. package/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  241. package/version.d.ts +1 -1
  242. package/version.js +1 -1
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.payerPlanGroups.v1.deactivate.Error.EntityNotFoundError | CandidApi.payerPlanGroups.v1.deactivate.Error.UnauthorizedError | CandidApi.payerPlanGroups.v1.deactivate.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 _Unknown extends _Utils {
17
+ errorName: void;
18
+ content: core.Fetcher.Error;
19
+ }
20
+ interface _Utils {
21
+ _visit: <_Result>(visitor: CandidApi.payerPlanGroups.v1.deactivate.Error._Visitor<_Result>) => _Result;
22
+ }
23
+ interface _Visitor<_Result> {
24
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
26
+ _other: (value: core.Fetcher.Error) => _Result;
27
+ }
28
+ }
29
+ export declare const Error: {
30
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.payerPlanGroups.v1.deactivate.Error.EntityNotFoundError;
31
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.payerPlanGroups.v1.deactivate.Error.UnauthorizedError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payerPlanGroups.v1.deactivate.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.payerPlanGroups.v1.deactivate.Error, visitor: CandidApi.payerPlanGroups.v1.deactivate.Error._Visitor<_Result>) => _Result;
34
+ };
@@ -0,0 +1,79 @@
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.payerPlanGroups.v1.deactivate.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.payerPlanGroups.v1.deactivate.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ _unknown: (fetcherError) => {
61
+ return {
62
+ errorName: undefined,
63
+ content: fetcherError,
64
+ _visit: function (visitor) {
65
+ return CandidApi.payerPlanGroups.v1.deactivate.Error._visit(this, visitor);
66
+ },
67
+ };
68
+ },
69
+ _visit: (value, visitor) => {
70
+ switch (value.errorName) {
71
+ case "EntityNotFoundError":
72
+ return visitor.entityNotFoundError(value.content);
73
+ case "UnauthorizedError":
74
+ return visitor.unauthorizedError(value.content);
75
+ default:
76
+ return visitor._other(value);
77
+ }
78
+ },
79
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.payerPlanGroups.v1.get.Error.EntityNotFoundError | CandidApi.payerPlanGroups.v1.get.Error.UnauthorizedError | CandidApi.payerPlanGroups.v1.get.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 _Unknown extends _Utils {
17
+ errorName: void;
18
+ content: core.Fetcher.Error;
19
+ }
20
+ interface _Utils {
21
+ _visit: <_Result>(visitor: CandidApi.payerPlanGroups.v1.get.Error._Visitor<_Result>) => _Result;
22
+ }
23
+ interface _Visitor<_Result> {
24
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
26
+ _other: (value: core.Fetcher.Error) => _Result;
27
+ }
28
+ }
29
+ export declare const Error: {
30
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.payerPlanGroups.v1.get.Error.EntityNotFoundError;
31
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.payerPlanGroups.v1.get.Error.UnauthorizedError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payerPlanGroups.v1.get.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.payerPlanGroups.v1.get.Error, visitor: CandidApi.payerPlanGroups.v1.get.Error._Visitor<_Result>) => _Result;
34
+ };
@@ -0,0 +1,79 @@
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.payerPlanGroups.v1.get.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.payerPlanGroups.v1.get.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ _unknown: (fetcherError) => {
61
+ return {
62
+ errorName: undefined,
63
+ content: fetcherError,
64
+ _visit: function (visitor) {
65
+ return CandidApi.payerPlanGroups.v1.get.Error._visit(this, visitor);
66
+ },
67
+ };
68
+ },
69
+ _visit: (value, visitor) => {
70
+ switch (value.errorName) {
71
+ case "EntityNotFoundError":
72
+ return visitor.entityNotFoundError(value.content);
73
+ case "UnauthorizedError":
74
+ return visitor.unauthorizedError(value.content);
75
+ default:
76
+ return visitor._other(value);
77
+ }
78
+ },
79
+ };
@@ -0,0 +1,28 @@
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.payerPlanGroups.v1.getMulti.Error.UnprocessableEntityError | CandidApi.payerPlanGroups.v1.getMulti.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface UnprocessableEntityError extends _Utils {
9
+ errorName: "UnprocessableEntityError";
10
+ content: CandidApi.UnprocessableEntityErrorMessage;
11
+ }
12
+ interface _Unknown extends _Utils {
13
+ errorName: void;
14
+ content: core.Fetcher.Error;
15
+ }
16
+ interface _Utils {
17
+ _visit: <_Result>(visitor: CandidApi.payerPlanGroups.v1.getMulti.Error._Visitor<_Result>) => _Result;
18
+ }
19
+ interface _Visitor<_Result> {
20
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
21
+ _other: (value: core.Fetcher.Error) => _Result;
22
+ }
23
+ }
24
+ export declare const Error: {
25
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.payerPlanGroups.v1.getMulti.Error.UnprocessableEntityError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payerPlanGroups.v1.getMulti.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.payerPlanGroups.v1.getMulti.Error, visitor: CandidApi.payerPlanGroups.v1.getMulti.Error._Visitor<_Result>) => _Result;
28
+ };
@@ -0,0 +1,68 @@
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
+ unprocessableEntityError: (value) => {
43
+ return {
44
+ content: value,
45
+ errorName: "UnprocessableEntityError",
46
+ _visit: function (visitor) {
47
+ return CandidApi.payerPlanGroups.v1.getMulti.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _unknown: (fetcherError) => {
52
+ return {
53
+ errorName: undefined,
54
+ content: fetcherError,
55
+ _visit: function (visitor) {
56
+ return CandidApi.payerPlanGroups.v1.getMulti.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ _visit: (value, visitor) => {
61
+ switch (value.errorName) {
62
+ case "UnprocessableEntityError":
63
+ return visitor.unprocessableEntityError(value.content);
64
+ default:
65
+ return visitor._other(value);
66
+ }
67
+ },
68
+ };
@@ -0,0 +1,6 @@
1
+ export * from "./requests";
2
+ export * as getMulti from "./getMulti";
3
+ export * as get from "./get";
4
+ export * as create from "./create";
5
+ export * as update from "./update";
6
+ export * as deactivate from "./deactivate";
@@ -0,0 +1,45 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
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.deactivate = exports.update = exports.create = exports.get = exports.getMulti = void 0;
40
+ __exportStar(require("./requests"), exports);
41
+ exports.getMulti = __importStar(require("./getMulti"));
42
+ exports.get = __importStar(require("./get"));
43
+ exports.create = __importStar(require("./create"));
44
+ exports.update = __importStar(require("./update"));
45
+ exports.deactivate = __importStar(require("./deactivate"));
@@ -0,0 +1,47 @@
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
+ * planGroupName: "string",
9
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
10
+ * payerId: CandidApi.payers.v3.PayerId("string"),
11
+ * planType: "09",
12
+ * isActive: true,
13
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
14
+ * limit: 1,
15
+ * sortBySimilarity: "string",
16
+ * sort: "plan_group_name",
17
+ * sortDirection: "asc",
18
+ * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
19
+ * }
20
+ */
21
+ export interface PayerPlanGroupGetMultiRequest {
22
+ planGroupName?: string | string[];
23
+ payerUuid?: CandidApi.payers.v3.PayerUuid | CandidApi.payers.v3.PayerUuid[];
24
+ payerId?: CandidApi.payers.v3.PayerId | CandidApi.payers.v3.PayerId[];
25
+ planType?: CandidApi.SourceOfPaymentCode | CandidApi.SourceOfPaymentCode[];
26
+ isActive?: boolean;
27
+ payerPlanGroupId?: CandidApi.PayerPlanGroupId | CandidApi.PayerPlanGroupId[];
28
+ /**
29
+ * Defaults to 100. Cannot exc
30
+ */
31
+ limit?: number;
32
+ /**
33
+ * If this property is passed, the results will be ordered by those that contain a payer_id, payer_name, plan_group_name, or
34
+ * payer_address most similar to the value passed. This will take precedence over the sort and sort_direction properties. This
35
+ * will always sort in order of most similar to least similar.
36
+ */
37
+ sortBySimilarity?: string;
38
+ /**
39
+ * Defaults to plan_group_name. If sort_by_similarity is passed, that sort will takes precedence over this property.
40
+ */
41
+ sort?: CandidApi.payerPlanGroups.v1.PayerPlanGroupSortField;
42
+ /**
43
+ * Sort direction. Defaults to ascending order if not provided.
44
+ */
45
+ sortDirection?: CandidApi.SortDirection;
46
+ pageToken?: CandidApi.PageToken;
47
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type PayerPlanGroupGetMultiRequest } from "./PayerPlanGroupGetMultiRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
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.payerPlanGroups.v1.update.Error.EntityNotFoundError | CandidApi.payerPlanGroups.v1.update.Error.UnauthorizedError | CandidApi.payerPlanGroups.v1.update.Error.PayerPlanGroupAlreadyExistsHttpError | CandidApi.payerPlanGroups.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 PayerPlanGroupAlreadyExistsHttpError extends _Utils {
17
+ errorName: "PayerPlanGroupAlreadyExistsHttpError";
18
+ content: CandidApi.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError;
19
+ }
20
+ interface _Unknown extends _Utils {
21
+ errorName: void;
22
+ content: core.Fetcher.Error;
23
+ }
24
+ interface _Utils {
25
+ _visit: <_Result>(visitor: CandidApi.payerPlanGroups.v1.update.Error._Visitor<_Result>) => _Result;
26
+ }
27
+ interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ payerPlanGroupAlreadyExistsHttpError: (value: CandidApi.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError) => _Result;
31
+ _other: (value: core.Fetcher.Error) => _Result;
32
+ }
33
+ }
34
+ export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.payerPlanGroups.v1.update.Error.EntityNotFoundError;
36
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.payerPlanGroups.v1.update.Error.UnauthorizedError;
37
+ readonly payerPlanGroupAlreadyExistsHttpError: (value: CandidApi.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError) => CandidApi.payerPlanGroups.v1.update.Error.PayerPlanGroupAlreadyExistsHttpError;
38
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payerPlanGroups.v1.update.Error._Unknown;
39
+ readonly _visit: <_Result>(value: CandidApi.payerPlanGroups.v1.update.Error, visitor: CandidApi.payerPlanGroups.v1.update.Error._Visitor<_Result>) => _Result;
40
+ };
@@ -0,0 +1,90 @@
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.payerPlanGroups.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.payerPlanGroups.v1.update.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ payerPlanGroupAlreadyExistsHttpError: (value) => {
61
+ return {
62
+ content: value,
63
+ errorName: "PayerPlanGroupAlreadyExistsHttpError",
64
+ _visit: function (visitor) {
65
+ return CandidApi.payerPlanGroups.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.payerPlanGroups.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 "PayerPlanGroupAlreadyExistsHttpError":
85
+ return visitor.payerPlanGroupAlreadyExistsHttpError(value.content);
86
+ default:
87
+ return visitor._other(value);
88
+ }
89
+ },
90
+ };
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface MutablePayerPlanGroup {
6
+ planGroupName: string;
7
+ payerUuid: CandidApi.payers.v3.PayerUuid;
8
+ planType: CandidApi.SourceOfPaymentCode;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface PayerPlanGroup extends CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup {
6
+ payerPlanGroupId: CandidApi.PayerPlanGroupId;
7
+ payer: CandidApi.payers.v3.Payer;
8
+ isActive: boolean;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface PayerPlanGroupAlreadyExistsError {
6
+ message: string;
7
+ id: CandidApi.PayerPlanGroupId;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface PayerPlanGroupPage extends CandidApi.ResourcePage {
6
+ items: CandidApi.payerPlanGroups.v1.PayerPlanGroup[];
7
+ }