candidhealth 0.17.3 → 0.17.5

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 (247) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -2
  4. package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +0 -1
  5. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +1 -1
  6. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +1 -1
  7. package/api/resources/claims/types/Claim.d.ts +3 -1
  8. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  9. package/api/resources/eligibility/resources/v2/client/Client.js +2 -2
  10. package/api/resources/encounters/resources/v4/client/Client.js +8 -5
  11. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +19 -0
  12. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  13. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +4 -0
  14. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +18 -1
  15. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -14
  16. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -1
  17. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  18. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  19. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  20. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  21. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  22. package/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
  23. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
  24. package/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
  25. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
  26. package/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
  27. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
  28. package/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
  29. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
  30. package/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
  31. package/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
  32. package/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
  33. package/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
  34. package/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
  35. package/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
  36. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
  37. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
  38. package/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
  39. package/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
  40. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  41. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  42. package/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
  43. package/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
  44. package/api/resources/patientPayments/resources/v4/client/create.js +33 -0
  45. package/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
  46. package/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
  47. package/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
  48. package/api/resources/patientPayments/resources/v4/client/get.js +22 -0
  49. package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
  50. package/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
  51. package/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
  52. package/api/resources/patientPayments/resources/v4/client/update.js +33 -0
  53. package/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
  54. package/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
  55. package/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
  56. package/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
  57. package/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
  58. package/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
  59. package/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
  60. package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
  61. package/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
  62. package/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
  63. package/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
  64. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  65. package/api/resources/serviceFacility/client/Client.js +1 -1
  66. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -1
  67. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  68. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  69. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  70. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  71. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  72. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -2
  73. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +0 -1
  74. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +1 -1
  75. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +1 -1
  76. package/dist/api/resources/claims/types/Claim.d.ts +3 -1
  77. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  78. package/dist/api/resources/eligibility/resources/v2/client/Client.js +2 -2
  79. package/dist/api/resources/encounters/resources/v4/client/Client.js +8 -5
  80. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +19 -0
  81. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  82. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +4 -0
  83. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +18 -1
  84. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -14
  85. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -1
  86. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  87. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  88. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  89. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  90. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  91. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
  92. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
  93. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
  94. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
  95. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
  96. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
  97. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
  98. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
  99. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
  100. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
  101. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
  102. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
  103. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
  104. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
  105. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
  106. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
  107. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
  108. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
  109. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  110. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  111. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
  112. package/dist/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
  113. package/dist/api/resources/patientPayments/resources/v4/client/create.js +33 -0
  114. package/dist/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
  115. package/dist/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
  116. package/dist/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
  117. package/dist/api/resources/patientPayments/resources/v4/client/get.js +22 -0
  118. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
  119. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
  120. package/dist/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
  121. package/dist/api/resources/patientPayments/resources/v4/client/update.js +33 -0
  122. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
  123. package/dist/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
  124. package/dist/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
  125. package/dist/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
  126. package/dist/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
  127. package/dist/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
  128. package/dist/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
  129. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
  130. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
  131. package/dist/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
  132. package/dist/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
  133. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  134. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  135. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -1
  136. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  137. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  138. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  139. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -1
  140. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +1 -1
  141. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  142. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
  143. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  144. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  145. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
  146. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -2
  147. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
  148. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
  149. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
  150. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
  151. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
  152. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
  153. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  154. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
  155. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  156. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
  157. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
  158. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
  159. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
  160. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
  161. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
  162. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
  163. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  164. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
  165. package/dist/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  166. package/dist/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
  167. package/dist/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  168. package/dist/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
  169. package/dist/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
  170. package/dist/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
  171. package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
  172. package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
  173. package/dist/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
  174. package/dist/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
  175. package/dist/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  176. package/dist/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
  177. package/dist/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  178. package/dist/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
  179. package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  180. package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
  181. package/dist/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
  182. package/dist/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
  183. package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
  184. package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
  185. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
  186. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
  187. package/dist/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  188. package/dist/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
  189. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  190. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  191. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  192. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
  193. package/package.json +1 -1
  194. package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -1
  195. package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +1 -1
  196. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  197. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
  198. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  199. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  200. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
  201. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -2
  202. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
  203. package/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
  204. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
  205. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
  206. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
  207. package/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
  208. package/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  209. package/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
  210. package/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  211. package/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
  212. package/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
  213. package/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
  214. package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
  215. package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
  216. package/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
  217. package/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
  218. package/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  219. package/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
  220. package/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  221. package/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
  222. package/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  223. package/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
  224. package/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
  225. package/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
  226. package/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
  227. package/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
  228. package/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
  229. package/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
  230. package/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  231. package/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
  232. package/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  233. package/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
  234. package/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  235. package/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
  236. package/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
  237. package/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
  238. package/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
  239. package/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
  240. package/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
  241. package/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
  242. package/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  243. package/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
  244. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  245. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  246. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  247. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
@@ -47,6 +47,15 @@ exports.Error = {
47
47
  },
48
48
  };
49
49
  },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
50
59
  _unknown: (fetcherError) => {
51
60
  return {
52
61
  errorName: undefined,
@@ -62,6 +71,8 @@ exports.Error = {
62
71
  return visitor.entityNotFoundError(value.content);
63
72
  case "UnauthorizedError":
64
73
  return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
65
76
  default:
66
77
  return visitor._other(value);
67
78
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insurancePayments.v1.update.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.update.Error.UnauthorizedError | CandidApi.insurancePayments.v1.update.Error._Unknown;
6
+ export declare type Error = CandidApi.insurancePayments.v1.update.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.update.Error.UnauthorizedError | CandidApi.insurancePayments.v1.update.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.update.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EntityNotFoundError extends _Utils {
9
9
  errorName: "EntityNotFoundError";
@@ -13,6 +13,10 @@ export declare namespace Error {
13
13
  errorName: "UnauthorizedError";
14
14
  content: CandidApi.UnauthorizedErrorMessage;
15
15
  }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
16
20
  interface _Unknown extends _Utils {
17
21
  errorName: void;
18
22
  content: core.Fetcher.Error;
@@ -23,12 +27,14 @@ export declare namespace Error {
23
27
  interface _Visitor<_Result> {
24
28
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
29
  unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
26
31
  _other: (value: core.Fetcher.Error) => _Result;
27
32
  }
28
33
  }
29
34
  export declare const Error: {
30
35
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.update.Error.EntityNotFoundError;
31
36
  readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.update.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.update.Error.UnprocessableEntityError;
32
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.update.Error._Unknown;
33
39
  readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.update.Error, visitor: CandidApi.insurancePayments.v1.update.Error._Visitor<_Result>) => _Result;
34
40
  };
@@ -47,6 +47,15 @@ exports.Error = {
47
47
  },
48
48
  };
49
49
  },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insurancePayments.v1.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
50
59
  _unknown: (fetcherError) => {
51
60
  return {
52
61
  errorName: undefined,
@@ -62,6 +71,8 @@ exports.Error = {
62
71
  return visitor.entityNotFoundError(value.content);
63
72
  case "UnauthorizedError":
64
73
  return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
65
76
  default:
66
77
  return visitor._other(value);
67
78
  }
@@ -79,7 +79,7 @@ class V1 {
79
79
  Authorization: await this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "candidhealth",
82
- "X-Fern-SDK-Version": "0.17.3",
82
+ "X-Fern-SDK-Version": "0.17.5",
83
83
  },
84
84
  contentType: "application/json",
85
85
  queryParameters: _queryParams,
@@ -96,6 +96,21 @@ class V1 {
96
96
  }),
97
97
  };
98
98
  }
99
+ if (_response.error.reason === "status-code") {
100
+ switch (_response.error.body?.errorName) {
101
+ case "UnauthorizedError":
102
+ case "UnprocessableEntityError":
103
+ return {
104
+ ok: false,
105
+ error: await serializers.insuranceRefunds.v1.getMulti.Error.parseOrThrow(_response.error.body, {
106
+ unrecognizedObjectKeys: "passthrough",
107
+ allowUnrecognizedUnionMembers: true,
108
+ allowUnrecognizedEnumValues: true,
109
+ breadcrumbsPrefix: ["response"],
110
+ }),
111
+ };
112
+ }
113
+ }
99
114
  return {
100
115
  ok: false,
101
116
  error: CandidApi.insuranceRefunds.v1.getMulti.Error._unknown(_response.error),
@@ -113,7 +128,7 @@ class V1 {
113
128
  Authorization: await this._getAuthorizationHeader(),
114
129
  "X-Fern-Language": "JavaScript",
115
130
  "X-Fern-SDK-Name": "candidhealth",
116
- "X-Fern-SDK-Version": "0.17.3",
131
+ "X-Fern-SDK-Version": "0.17.5",
117
132
  },
118
133
  contentType: "application/json",
119
134
  timeoutMs: 60000,
@@ -129,6 +144,21 @@ class V1 {
129
144
  }),
130
145
  };
131
146
  }
147
+ if (_response.error.reason === "status-code") {
148
+ switch (_response.error.body?.errorName) {
149
+ case "EntityNotFoundError":
150
+ case "UnauthorizedError":
151
+ return {
152
+ ok: false,
153
+ error: await serializers.insuranceRefunds.v1.get.Error.parseOrThrow(_response.error.body, {
154
+ unrecognizedObjectKeys: "passthrough",
155
+ allowUnrecognizedUnionMembers: true,
156
+ allowUnrecognizedEnumValues: true,
157
+ breadcrumbsPrefix: ["response"],
158
+ }),
159
+ };
160
+ }
161
+ }
132
162
  return {
133
163
  ok: false,
134
164
  error: CandidApi.insuranceRefunds.v1.get.Error._unknown(_response.error),
@@ -147,7 +177,7 @@ class V1 {
147
177
  Authorization: await this._getAuthorizationHeader(),
148
178
  "X-Fern-Language": "JavaScript",
149
179
  "X-Fern-SDK-Name": "candidhealth",
150
- "X-Fern-SDK-Version": "0.17.3",
180
+ "X-Fern-SDK-Version": "0.17.5",
151
181
  },
152
182
  contentType: "application/json",
153
183
  body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -166,6 +196,22 @@ class V1 {
166
196
  }),
167
197
  };
168
198
  }
199
+ if (_response.error.reason === "status-code") {
200
+ switch (_response.error.body?.errorName) {
201
+ case "EntityNotFoundError":
202
+ case "UnauthorizedError":
203
+ case "UnprocessableEntityError":
204
+ return {
205
+ ok: false,
206
+ error: await serializers.insuranceRefunds.v1.create.Error.parseOrThrow(_response.error.body, {
207
+ unrecognizedObjectKeys: "passthrough",
208
+ allowUnrecognizedUnionMembers: true,
209
+ allowUnrecognizedEnumValues: true,
210
+ breadcrumbsPrefix: ["response"],
211
+ }),
212
+ };
213
+ }
214
+ }
169
215
  return {
170
216
  ok: false,
171
217
  error: CandidApi.insuranceRefunds.v1.create.Error._unknown(_response.error),
@@ -183,7 +229,7 @@ class V1 {
183
229
  Authorization: await this._getAuthorizationHeader(),
184
230
  "X-Fern-Language": "JavaScript",
185
231
  "X-Fern-SDK-Name": "candidhealth",
186
- "X-Fern-SDK-Version": "0.17.3",
232
+ "X-Fern-SDK-Version": "0.17.5",
187
233
  },
188
234
  contentType: "application/json",
189
235
  body: await serializers.insuranceRefunds.v1.InsuranceRefundUpdate.jsonOrThrow(request, {
@@ -202,6 +248,22 @@ class V1 {
202
248
  }),
203
249
  };
204
250
  }
251
+ if (_response.error.reason === "status-code") {
252
+ switch (_response.error.body?.errorName) {
253
+ case "EntityNotFoundError":
254
+ case "UnauthorizedError":
255
+ case "UnprocessableEntityError":
256
+ return {
257
+ ok: false,
258
+ error: await serializers.insuranceRefunds.v1.update.Error.parseOrThrow(_response.error.body, {
259
+ unrecognizedObjectKeys: "passthrough",
260
+ allowUnrecognizedUnionMembers: true,
261
+ allowUnrecognizedEnumValues: true,
262
+ breadcrumbsPrefix: ["response"],
263
+ }),
264
+ };
265
+ }
266
+ }
205
267
  return {
206
268
  ok: false,
207
269
  error: CandidApi.insuranceRefunds.v1.update.Error._unknown(_response.error),
@@ -220,7 +282,7 @@ class V1 {
220
282
  Authorization: await this._getAuthorizationHeader(),
221
283
  "X-Fern-Language": "JavaScript",
222
284
  "X-Fern-SDK-Name": "candidhealth",
223
- "X-Fern-SDK-Version": "0.17.3",
285
+ "X-Fern-SDK-Version": "0.17.5",
224
286
  },
225
287
  contentType: "application/json",
226
288
  timeoutMs: 60000,
@@ -231,6 +293,22 @@ class V1 {
231
293
  body: undefined,
232
294
  };
233
295
  }
296
+ if (_response.error.reason === "status-code") {
297
+ switch (_response.error.body?.errorName) {
298
+ case "EntityNotFoundError":
299
+ case "UnauthorizedError":
300
+ case "UnprocessableEntityError":
301
+ return {
302
+ ok: false,
303
+ error: await serializers.insuranceRefunds.v1.delete.Error.parseOrThrow(_response.error.body, {
304
+ unrecognizedObjectKeys: "passthrough",
305
+ allowUnrecognizedUnionMembers: true,
306
+ allowUnrecognizedEnumValues: true,
307
+ breadcrumbsPrefix: ["response"],
308
+ }),
309
+ };
310
+ }
311
+ }
234
312
  return {
235
313
  ok: false,
236
314
  error: CandidApi.insuranceRefunds.v1.delete.Error._unknown(_response.error),
@@ -3,8 +3,20 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insuranceRefunds.v1.create.Error._Unknown;
6
+ export declare type Error = CandidApi.insuranceRefunds.v1.create.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.create.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.create.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.create.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
8
20
  interface _Unknown extends _Utils {
9
21
  errorName: void;
10
22
  content: core.Fetcher.Error;
@@ -13,10 +25,16 @@ export declare namespace Error {
13
25
  _visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.create.Error._Visitor<_Result>) => _Result;
14
26
  }
15
27
  interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
16
31
  _other: (value: core.Fetcher.Error) => _Result;
17
32
  }
18
33
  }
19
34
  export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.create.Error.EntityNotFoundError;
36
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.create.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.create.Error.UnprocessableEntityError;
20
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.create.Error._Unknown;
21
39
  readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.create.Error, visitor: CandidApi.insuranceRefunds.v1.create.Error._Visitor<_Result>) => _Result;
22
40
  };
@@ -29,6 +29,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.insuranceRefunds.v1.create.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unauthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnauthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.insuranceRefunds.v1.create.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insuranceRefunds.v1.create.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
32
59
  _unknown: (fetcherError) => {
33
60
  return {
34
61
  errorName: undefined,
@@ -40,6 +67,12 @@ exports.Error = {
40
67
  },
41
68
  _visit: (value, visitor) => {
42
69
  switch (value.errorName) {
70
+ case "EntityNotFoundError":
71
+ return visitor.entityNotFoundError(value.content);
72
+ case "UnauthorizedError":
73
+ return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
43
76
  default:
44
77
  return visitor._other(value);
45
78
  }
@@ -3,8 +3,20 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insuranceRefunds.v1.delete.Error._Unknown;
6
+ export declare type Error = CandidApi.insuranceRefunds.v1.delete.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.delete.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.delete.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.delete.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
8
20
  interface _Unknown extends _Utils {
9
21
  errorName: void;
10
22
  content: core.Fetcher.Error;
@@ -13,10 +25,16 @@ export declare namespace Error {
13
25
  _visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.delete.Error._Visitor<_Result>) => _Result;
14
26
  }
15
27
  interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
16
31
  _other: (value: core.Fetcher.Error) => _Result;
17
32
  }
18
33
  }
19
34
  export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.delete.Error.EntityNotFoundError;
36
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.delete.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.delete.Error.UnprocessableEntityError;
20
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.delete.Error._Unknown;
21
39
  readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.delete.Error, visitor: CandidApi.insuranceRefunds.v1.delete.Error._Visitor<_Result>) => _Result;
22
40
  };
@@ -29,6 +29,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.insuranceRefunds.v1.delete.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unauthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnauthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.insuranceRefunds.v1.delete.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insuranceRefunds.v1.delete.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
32
59
  _unknown: (fetcherError) => {
33
60
  return {
34
61
  errorName: undefined,
@@ -40,6 +67,12 @@ exports.Error = {
40
67
  },
41
68
  _visit: (value, visitor) => {
42
69
  switch (value.errorName) {
70
+ case "EntityNotFoundError":
71
+ return visitor.entityNotFoundError(value.content);
72
+ case "UnauthorizedError":
73
+ return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
43
76
  default:
44
77
  return visitor._other(value);
45
78
  }
@@ -3,8 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insuranceRefunds.v1.get.Error._Unknown;
6
+ export declare type Error = CandidApi.insuranceRefunds.v1.get.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.get.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.get.Error._Unknown;
7
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
+ }
8
16
  interface _Unknown extends _Utils {
9
17
  errorName: void;
10
18
  content: core.Fetcher.Error;
@@ -13,10 +21,14 @@ export declare namespace Error {
13
21
  _visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.get.Error._Visitor<_Result>) => _Result;
14
22
  }
15
23
  interface _Visitor<_Result> {
24
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
16
26
  _other: (value: core.Fetcher.Error) => _Result;
17
27
  }
18
28
  }
19
29
  export declare const Error: {
30
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.get.Error.EntityNotFoundError;
31
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.get.Error.UnauthorizedError;
20
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.get.Error._Unknown;
21
33
  readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.get.Error, visitor: CandidApi.insuranceRefunds.v1.get.Error._Visitor<_Result>) => _Result;
22
34
  };
@@ -29,6 +29,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.insuranceRefunds.v1.get.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unauthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnauthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.insuranceRefunds.v1.get.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
32
50
  _unknown: (fetcherError) => {
33
51
  return {
34
52
  errorName: undefined,
@@ -40,6 +58,10 @@ exports.Error = {
40
58
  },
41
59
  _visit: (value, visitor) => {
42
60
  switch (value.errorName) {
61
+ case "EntityNotFoundError":
62
+ return visitor.entityNotFoundError(value.content);
63
+ case "UnauthorizedError":
64
+ return visitor.unauthorizedError(value.content);
43
65
  default:
44
66
  return visitor._other(value);
45
67
  }
@@ -3,8 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
6
+ export declare type Error = CandidApi.insuranceRefunds.v1.getMulti.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.getMulti.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface UnauthorizedError extends _Utils {
9
+ errorName: "UnauthorizedError";
10
+ content: CandidApi.UnauthorizedErrorMessage;
11
+ }
12
+ interface UnprocessableEntityError extends _Utils {
13
+ errorName: "UnprocessableEntityError";
14
+ content: CandidApi.UnprocessableEntityErrorMessage;
15
+ }
8
16
  interface _Unknown extends _Utils {
9
17
  errorName: void;
10
18
  content: core.Fetcher.Error;
@@ -13,10 +21,14 @@ export declare namespace Error {
13
21
  _visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
14
22
  }
15
23
  interface _Visitor<_Result> {
24
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
25
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
16
26
  _other: (value: core.Fetcher.Error) => _Result;
17
27
  }
18
28
  }
19
29
  export declare const Error: {
30
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.getMulti.Error.UnauthorizedError;
31
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.getMulti.Error.UnprocessableEntityError;
20
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
21
33
  readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.getMulti.Error, visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
22
34
  };
@@ -29,6 +29,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
+ unauthorizedError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "UnauthorizedError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.insuranceRefunds.v1.getMulti.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unprocessableEntityError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnprocessableEntityError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.insuranceRefunds.v1.getMulti.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
32
50
  _unknown: (fetcherError) => {
33
51
  return {
34
52
  errorName: undefined,
@@ -40,6 +58,10 @@ exports.Error = {
40
58
  },
41
59
  _visit: (value, visitor) => {
42
60
  switch (value.errorName) {
61
+ case "UnauthorizedError":
62
+ return visitor.unauthorizedError(value.content);
63
+ case "UnprocessableEntityError":
64
+ return visitor.unprocessableEntityError(value.content);
43
65
  default:
44
66
  return visitor._other(value);
45
67
  }
@@ -3,8 +3,20 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insuranceRefunds.v1.update.Error._Unknown;
6
+ export declare type Error = CandidApi.insuranceRefunds.v1.update.Error.EntityNotFoundError | CandidApi.insuranceRefunds.v1.update.Error.UnauthorizedError | CandidApi.insuranceRefunds.v1.update.Error.UnprocessableEntityError | CandidApi.insuranceRefunds.v1.update.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
8
20
  interface _Unknown extends _Utils {
9
21
  errorName: void;
10
22
  content: core.Fetcher.Error;
@@ -13,10 +25,16 @@ export declare namespace Error {
13
25
  _visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.update.Error._Visitor<_Result>) => _Result;
14
26
  }
15
27
  interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
16
31
  _other: (value: core.Fetcher.Error) => _Result;
17
32
  }
18
33
  }
19
34
  export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insuranceRefunds.v1.update.Error.EntityNotFoundError;
36
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insuranceRefunds.v1.update.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insuranceRefunds.v1.update.Error.UnprocessableEntityError;
20
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.update.Error._Unknown;
21
39
  readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.update.Error, visitor: CandidApi.insuranceRefunds.v1.update.Error._Visitor<_Result>) => _Result;
22
40
  };
@@ -29,6 +29,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.insuranceRefunds.v1.update.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unauthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnauthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.insuranceRefunds.v1.update.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insuranceRefunds.v1.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
32
59
  _unknown: (fetcherError) => {
33
60
  return {
34
61
  errorName: undefined,
@@ -40,6 +67,12 @@ exports.Error = {
40
67
  },
41
68
  _visit: (value, visitor) => {
42
69
  switch (value.errorName) {
70
+ case "EntityNotFoundError":
71
+ return visitor.entityNotFoundError(value.content);
72
+ case "UnauthorizedError":
73
+ return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
43
76
  default:
44
77
  return visitor._other(value);
45
78
  }