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
@@ -61,7 +61,7 @@ class V2 {
61
61
  Authorization: await this._getAuthorizationHeader(),
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "candidhealth",
64
- "X-Fern-SDK-Version": "0.17.3",
64
+ "X-Fern-SDK-Version": "0.17.5",
65
65
  },
66
66
  contentType: "application/json",
67
67
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.17.3",
51
+ "X-Fern-SDK-Version": "0.17.5",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ClaimFrequencyTypeCode = "1" | "6" | "7" | "8";
4
+ export declare type ClaimFrequencyTypeCode = "1" | "7" | "8";
5
5
  export declare const ClaimFrequencyTypeCode: {
6
6
  readonly Original: "1";
7
- readonly Corrected: "6";
8
7
  readonly Replacement: "7";
9
8
  readonly Void: "8";
10
9
  };
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ClaimFrequencyTypeCode = void 0;
7
7
  exports.ClaimFrequencyTypeCode = {
8
8
  Original: "1",
9
- Corrected: "6",
10
9
  Replacement: "7",
11
10
  Void: "8",
12
11
  };
@@ -15,7 +15,7 @@ import * as CandidApi from "../../../../..";
15
15
  * @example
16
16
  * {
17
17
  * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
18
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Corrected,
18
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
19
19
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
20
20
  * }
21
21
  */
@@ -13,7 +13,7 @@ import * as CandidApi from "../../../../..";
13
13
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
14
14
  * }, {
15
15
  * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
16
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Corrected,
16
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
17
17
  * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
18
18
  * }]
19
19
  * }
@@ -69,7 +69,9 @@ import * as CandidApi from "../../..";
69
69
  * dateOfServiceRange: {
70
70
  * startDate: CandidApi.Date_("2023-01-01"),
71
71
  * endDate: CandidApi.Date_("2023-01-03")
72
- * }
72
+ * },
73
+ * dateOfService: "2023-01-01",
74
+ * endDateOfService: "2023-01-03"
73
75
  * }],
74
76
  * eras: [{
75
77
  * eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
@@ -49,7 +49,7 @@ class V2 {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.17.3",
52
+ "X-Fern-SDK-Version": "0.17.5",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -136,7 +136,7 @@ class V2 {
136
136
  Authorization: await this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "candidhealth",
139
- "X-Fern-SDK-Version": "0.17.3",
139
+ "X-Fern-SDK-Version": "0.17.5",
140
140
  },
141
141
  contentType: "application/json",
142
142
  queryParameters: _queryParams,
@@ -169,7 +169,7 @@ class V2 {
169
169
  Authorization: await this._getAuthorizationHeader(),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "candidhealth",
172
- "X-Fern-SDK-Version": "0.17.3",
172
+ "X-Fern-SDK-Version": "0.17.5",
173
173
  },
174
174
  contentType: "application/json",
175
175
  body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
@@ -201,7 +201,7 @@ class V2 {
201
201
  Authorization: await this._getAuthorizationHeader(),
202
202
  "X-Fern-Language": "JavaScript",
203
203
  "X-Fern-SDK-Name": "candidhealth",
204
- "X-Fern-SDK-Version": "0.17.3",
204
+ "X-Fern-SDK-Version": "0.17.5",
205
205
  },
206
206
  contentType: "application/json",
207
207
  timeoutMs: 60000,
@@ -239,7 +239,7 @@ class V2 {
239
239
  Authorization: await this._getAuthorizationHeader(),
240
240
  "X-Fern-Language": "JavaScript",
241
241
  "X-Fern-SDK-Name": "candidhealth",
242
- "X-Fern-SDK-Version": "0.17.3",
242
+ "X-Fern-SDK-Version": "0.17.5",
243
243
  },
244
244
  contentType: "application/json",
245
245
  body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
@@ -64,7 +64,7 @@ class V2 {
64
64
  Authorization: await this._getAuthorizationHeader(),
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "candidhealth",
67
- "X-Fern-SDK-Version": "0.17.3",
67
+ "X-Fern-SDK-Version": "0.17.5",
68
68
  },
69
69
  contentType: "application/json",
70
70
  body: request,
@@ -115,7 +115,7 @@ class V2 {
115
115
  Authorization: await this._getAuthorizationHeader(),
116
116
  "X-Fern-Language": "JavaScript",
117
117
  "X-Fern-SDK-Name": "candidhealth",
118
- "X-Fern-SDK-Version": "0.17.3",
118
+ "X-Fern-SDK-Version": "0.17.5",
119
119
  },
120
120
  contentType: "application/json",
121
121
  timeoutMs: 60000,
@@ -42,7 +42,7 @@ class V4 {
42
42
  this.options = options;
43
43
  }
44
44
  async getAll(request = {}) {
45
- const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, } = request;
45
+ const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, patientExternalId, } = request;
46
46
  const _queryParams = new url_search_params_1.default();
47
47
  if (limit != null) {
48
48
  _queryParams.append("limit", limit.toString());
@@ -96,6 +96,9 @@ class V4 {
96
96
  if (ownerOfNextAction != null) {
97
97
  _queryParams.append("owner_of_next_action", ownerOfNextAction);
98
98
  }
99
+ if (patientExternalId != null) {
100
+ _queryParams.append("patient_external_id", patientExternalId);
101
+ }
99
102
  const _response = await core.fetcher({
100
103
  url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/encounters/v4"),
101
104
  method: "GET",
@@ -103,7 +106,7 @@ class V4 {
103
106
  Authorization: await this._getAuthorizationHeader(),
104
107
  "X-Fern-Language": "JavaScript",
105
108
  "X-Fern-SDK-Name": "candidhealth",
106
- "X-Fern-SDK-Version": "0.17.3",
109
+ "X-Fern-SDK-Version": "0.17.5",
107
110
  },
108
111
  contentType: "application/json",
109
112
  queryParameters: _queryParams,
@@ -133,7 +136,7 @@ class V4 {
133
136
  Authorization: await this._getAuthorizationHeader(),
134
137
  "X-Fern-Language": "JavaScript",
135
138
  "X-Fern-SDK-Name": "candidhealth",
136
- "X-Fern-SDK-Version": "0.17.3",
139
+ "X-Fern-SDK-Version": "0.17.5",
137
140
  },
138
141
  contentType: "application/json",
139
142
  timeoutMs: 60000,
@@ -162,7 +165,7 @@ class V4 {
162
165
  Authorization: await this._getAuthorizationHeader(),
163
166
  "X-Fern-Language": "JavaScript",
164
167
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.17.3",
168
+ "X-Fern-SDK-Version": "0.17.5",
166
169
  },
167
170
  contentType: "application/json",
168
171
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -213,7 +216,7 @@ class V4 {
213
216
  Authorization: await this._getAuthorizationHeader(),
214
217
  "X-Fern-Language": "JavaScript",
215
218
  "X-Fern-SDK-Name": "candidhealth",
216
- "X-Fern-SDK-Version": "0.17.3",
219
+ "X-Fern-SDK-Version": "0.17.5",
217
220
  },
218
221
  contentType: "application/json",
219
222
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -3,6 +3,25 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../..";
5
5
  export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
6
+ /**
7
+ * Date formatted as YYYY-MM-DD; eg: 2019-08-24.
8
+ * This date must be the local date in the timezone where the service occurred.
9
+ * Box 24a on the CMS-1500 claim form.
10
+ * If service occurred over a range of dates, this should be the start date.
11
+ * date_of_service must be defined on either the encounter or the service lines but not both.
12
+ * If there are greater than zero service lines, it is recommended to specify date_of_service on the service_line instead of on the encounter to prepare for future API versions.
13
+ *
14
+ */
15
+ dateOfService?: CandidApi.Date_;
16
+ /**
17
+ * Date formatted as YYYY-MM-DD; eg: 2019-08-25.
18
+ * This date must be the local date in the timezone where the service occurred.
19
+ * If omitted, the Encounter is assumed to be for a single day.
20
+ * Must not be temporally before the date_of_service field.
21
+ * If there are greater than zero service lines, it is recommended to specify end_date_of_service on the service_line instead of on the encounter to prepare for future API versions.
22
+ *
23
+ */
24
+ endDateOfService?: CandidApi.Date_;
6
25
  /**
7
26
  * Contains the identification information of the individual receiving medical services.
8
27
  *
@@ -17,6 +17,7 @@ export interface EncounterUpdate {
17
17
  * This date must be the local date in the timezone where the service occurred.
18
18
  * Box 24a on the CMS-1500 claim form.
19
19
  * If service occurred over a range of dates, this should be the start date.
20
+ * If service lines have distinct date_of_service values, updating the encounter's date_of_service will fail. If all service line date_of_service values are the same, updating the encounter's date_of_service will update all service line date_of_service values.
20
21
  *
21
22
  */
22
23
  dateOfService?: CandidApi.Date_;
@@ -73,6 +74,7 @@ export interface EncounterUpdate {
73
74
  * This date must be the local date in the timezone where the service occurred.
74
75
  * If omitted, the Encounter is assumed to be for a single day.
75
76
  * Must not be temporally before the date_of_service field.
77
+ * If service lines have distinct end_date_of_service values, updating the encounter's end_date_of_service will fail. If all service line end_date_of_service values are the same, updating the encounter's end_date_of_service will update all service line date_of_service values.
76
78
  *
77
79
  */
78
80
  endDateOfService?: CandidApi.Date_;
@@ -59,4 +59,8 @@ export interface GetAllEncountersRequest {
59
59
  * The party who is responsible for taking the next action on an Encounter, as defined by ownership of open Tasks.
60
60
  */
61
61
  ownerOfNextAction?: CandidApi.encounters.v4.EncounterOwnerOfNextActionType;
62
+ /**
63
+ * The patient ID from the external EMR platform for the patient
64
+ */
65
+ patientExternalId?: string;
62
66
  }
@@ -71,7 +71,9 @@ import * as CandidApi from "../../../../..";
71
71
  * dateOfServiceRange: {
72
72
  * startDate: CandidApi.Date_("2023-01-01"),
73
73
  * endDate: CandidApi.Date_("2023-01-03")
74
- * }
74
+ * },
75
+ * dateOfService: "2023-01-01",
76
+ * endDateOfService: "2023-01-03"
75
77
  * }],
76
78
  * eras: [{
77
79
  * eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
@@ -376,6 +378,21 @@ import * as CandidApi from "../../../../..";
376
378
  * }
377
379
  */
378
380
  export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
381
+ /**
382
+ * Date formatted as YYYY-MM-DD; eg: 2019-08-24.
383
+ * This date must be the local date in the timezone where the service occurred.
384
+ * Box 24a on the CMS-1500 claim form.
385
+ * If service occurred over a range of dates, this should be the start date.
386
+ * date_of_service must be defined on either the encounter or the service lines but not both.
387
+ */
388
+ dateOfService: CandidApi.Date_;
389
+ /**
390
+ * Date formatted as YYYY-MM-DD; eg: 2019-08-25.
391
+ * This date must be the local date in the timezone where the service occurred.
392
+ * If omitted, the Encounter is assumed to be for a single day.
393
+ * Must not be temporally before the date_of_service field.
394
+ */
395
+ endDateOfService?: CandidApi.Date_;
379
396
  encounterId: CandidApi.EncounterId;
380
397
  claims: CandidApi.Claim[];
381
398
  /** Contains the identification information of the individual receiving medical services. */
@@ -9,20 +9,6 @@ export interface EncounterBase {
9
9
  * This field should not contain PHI.
10
10
  */
11
11
  externalId: CandidApi.EncounterExternalId;
12
- /**
13
- * Date formatted as YYYY-MM-DD; eg: 2019-08-24.
14
- * This date must be the local date in the timezone where the service occurred.
15
- * Box 24a on the CMS-1500 claim form.
16
- * If service occurred over a range of dates, this should be the start date.
17
- */
18
- dateOfService: CandidApi.Date_;
19
- /**
20
- * Date formatted as YYYY-MM-DD; eg: 2019-08-25.
21
- * This date must be the local date in the timezone where the service occurred.
22
- * If omitted, the Encounter is assumed to be for a single day.
23
- * Must not be temporally before the date_of_service field.
24
- */
25
- endDateOfService?: CandidApi.Date_;
26
12
  /** Box 23 on the CMS-1500 claim form. */
27
13
  priorAuthorizationNumber?: CandidApi.encounters.v4.PriorAuthorizationNumber;
28
14
  /**
@@ -72,7 +72,9 @@ import * as CandidApi from "../../../../..";
72
72
  * dateOfServiceRange: {
73
73
  * startDate: CandidApi.Date_("2023-01-01"),
74
74
  * endDate: CandidApi.Date_("2023-01-03")
75
- * }
75
+ * },
76
+ * dateOfService: "2023-01-01",
77
+ * endDateOfService: "2023-01-03"
76
78
  * }],
77
79
  * eras: [{
78
80
  * eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
@@ -51,7 +51,7 @@ class V1 {
51
51
  Authorization: await this._getAuthorizationHeader(),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "candidhealth",
54
- "X-Fern-SDK-Version": "0.17.3",
54
+ "X-Fern-SDK-Version": "0.17.5",
55
55
  },
56
56
  contentType: "application/json",
57
57
  body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -53,7 +53,7 @@ class V2 {
53
53
  Authorization: await this._getAuthorizationHeader(),
54
54
  "X-Fern-Language": "JavaScript",
55
55
  "X-Fern-SDK-Name": "candidhealth",
56
- "X-Fern-SDK-Version": "0.17.3",
56
+ "X-Fern-SDK-Version": "0.17.5",
57
57
  },
58
58
  contentType: "application/json",
59
59
  body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -107,7 +107,7 @@ class V2 {
107
107
  Authorization: await this._getAuthorizationHeader(),
108
108
  "X-Fern-Language": "JavaScript",
109
109
  "X-Fern-SDK-Name": "candidhealth",
110
- "X-Fern-SDK-Version": "0.17.3",
110
+ "X-Fern-SDK-Version": "0.17.5",
111
111
  },
112
112
  contentType: "application/json",
113
113
  body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -67,7 +67,7 @@ class V3 {
67
67
  Authorization: await this._getAuthorizationHeader(),
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "candidhealth",
70
- "X-Fern-SDK-Version": "0.17.3",
70
+ "X-Fern-SDK-Version": "0.17.5",
71
71
  },
72
72
  contentType: "application/json",
73
73
  queryParameters: _queryParams,
@@ -51,7 +51,7 @@ class V1 {
51
51
  Authorization: await this._getAuthorizationHeader(),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "candidhealth",
54
- "X-Fern-SDK-Version": "0.17.3",
54
+ "X-Fern-SDK-Version": "0.17.5",
55
55
  },
56
56
  contentType: "application/json",
57
57
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -100,7 +100,7 @@ class V1 {
100
100
  Authorization: await this._getAuthorizationHeader(),
101
101
  "X-Fern-Language": "JavaScript",
102
102
  "X-Fern-SDK-Name": "candidhealth",
103
- "X-Fern-SDK-Version": "0.17.3",
103
+ "X-Fern-SDK-Version": "0.17.5",
104
104
  },
105
105
  contentType: "application/json",
106
106
  timeoutMs: 60000,
@@ -132,7 +132,7 @@ class V1 {
132
132
  Authorization: await this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.17.3",
135
+ "X-Fern-SDK-Version": "0.17.5",
136
136
  },
137
137
  contentType: "application/json",
138
138
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -51,7 +51,7 @@ class V1 {
51
51
  Authorization: await this._getAuthorizationHeader(),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "candidhealth",
54
- "X-Fern-SDK-Version": "0.17.3",
54
+ "X-Fern-SDK-Version": "0.17.5",
55
55
  },
56
56
  contentType: "application/json",
57
57
  timeoutMs: 60000,
@@ -83,7 +83,7 @@ class V1 {
83
83
  Authorization: await this._getAuthorizationHeader(),
84
84
  "X-Fern-Language": "JavaScript",
85
85
  "X-Fern-SDK-Name": "candidhealth",
86
- "X-Fern-SDK-Version": "0.17.3",
86
+ "X-Fern-SDK-Version": "0.17.5",
87
87
  },
88
88
  contentType: "application/json",
89
89
  body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -132,7 +132,7 @@ class V1 {
132
132
  Authorization: await this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.17.3",
135
+ "X-Fern-SDK-Version": "0.17.5",
136
136
  },
137
137
  contentType: "application/json",
138
138
  timeoutMs: 60000,
@@ -78,7 +78,7 @@ class V1 {
78
78
  Authorization: await this._getAuthorizationHeader(),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "candidhealth",
81
- "X-Fern-SDK-Version": "0.17.3",
81
+ "X-Fern-SDK-Version": "0.17.5",
82
82
  },
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
@@ -127,7 +127,7 @@ class V1 {
127
127
  Authorization: await this._getAuthorizationHeader(),
128
128
  "X-Fern-Language": "JavaScript",
129
129
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.17.3",
130
+ "X-Fern-SDK-Version": "0.17.5",
131
131
  },
132
132
  contentType: "application/json",
133
133
  timeoutMs: 60000,
@@ -176,7 +176,7 @@ class V1 {
176
176
  Authorization: await this._getAuthorizationHeader(),
177
177
  "X-Fern-Language": "JavaScript",
178
178
  "X-Fern-SDK-Name": "candidhealth",
179
- "X-Fern-SDK-Version": "0.17.3",
179
+ "X-Fern-SDK-Version": "0.17.5",
180
180
  },
181
181
  contentType: "application/json",
182
182
  body: await serializers.insurancePayments.v1.InsurancePaymentCreate.jsonOrThrow(request, {
@@ -197,7 +197,9 @@ class V1 {
197
197
  }
198
198
  if (_response.error.reason === "status-code") {
199
199
  switch (_response.error.body?.errorName) {
200
+ case "EntityNotFoundError":
200
201
  case "UnauthorizedError":
202
+ case "UnprocessableEntityError":
201
203
  return {
202
204
  ok: false,
203
205
  error: await serializers.insurancePayments.v1.create.Error.parseOrThrow(_response.error.body, {
@@ -226,7 +228,7 @@ class V1 {
226
228
  Authorization: await this._getAuthorizationHeader(),
227
229
  "X-Fern-Language": "JavaScript",
228
230
  "X-Fern-SDK-Name": "candidhealth",
229
- "X-Fern-SDK-Version": "0.17.3",
231
+ "X-Fern-SDK-Version": "0.17.5",
230
232
  },
231
233
  contentType: "application/json",
232
234
  body: await serializers.insurancePayments.v1.InsurancePaymentUpdate.jsonOrThrow(request, {
@@ -249,6 +251,7 @@ class V1 {
249
251
  switch (_response.error.body?.errorName) {
250
252
  case "EntityNotFoundError":
251
253
  case "UnauthorizedError":
254
+ case "UnprocessableEntityError":
252
255
  return {
253
256
  ok: false,
254
257
  error: await serializers.insurancePayments.v1.update.Error.parseOrThrow(_response.error.body, {
@@ -278,7 +281,7 @@ class V1 {
278
281
  Authorization: await this._getAuthorizationHeader(),
279
282
  "X-Fern-Language": "JavaScript",
280
283
  "X-Fern-SDK-Name": "candidhealth",
281
- "X-Fern-SDK-Version": "0.17.3",
284
+ "X-Fern-SDK-Version": "0.17.5",
282
285
  },
283
286
  contentType: "application/json",
284
287
  timeoutMs: 60000,
@@ -293,6 +296,7 @@ class V1 {
293
296
  switch (_response.error.body?.errorName) {
294
297
  case "EntityNotFoundError":
295
298
  case "UnauthorizedError":
299
+ case "UnprocessableEntityError":
296
300
  return {
297
301
  ok: false,
298
302
  error: await serializers.insurancePayments.v1.delete.Error.parseOrThrow(_response.error.body, {
@@ -3,12 +3,20 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error._Unknown;
6
+ export declare type Error = CandidApi.insurancePayments.v1.create.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.create.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
8
12
  interface UnauthorizedError extends _Utils {
9
13
  errorName: "UnauthorizedError";
10
14
  content: CandidApi.UnauthorizedErrorMessage;
11
15
  }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
12
20
  interface _Unknown extends _Utils {
13
21
  errorName: void;
14
22
  content: core.Fetcher.Error;
@@ -17,12 +25,16 @@ export declare namespace Error {
17
25
  _visit: <_Result>(visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
18
26
  }
19
27
  interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
20
29
  unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
21
31
  _other: (value: core.Fetcher.Error) => _Result;
22
32
  }
23
33
  }
24
34
  export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.create.Error.EntityNotFoundError;
25
36
  readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError;
26
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.create.Error._Unknown;
27
39
  readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.create.Error, visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
28
40
  };
@@ -29,6 +29,15 @@ 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.insurancePayments.v1.create.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
32
41
  unauthorizedError: (value) => {
33
42
  return {
34
43
  content: value,
@@ -38,6 +47,15 @@ exports.Error = {
38
47
  },
39
48
  };
40
49
  },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
41
59
  _unknown: (fetcherError) => {
42
60
  return {
43
61
  errorName: undefined,
@@ -49,8 +67,12 @@ exports.Error = {
49
67
  },
50
68
  _visit: (value, visitor) => {
51
69
  switch (value.errorName) {
70
+ case "EntityNotFoundError":
71
+ return visitor.entityNotFoundError(value.content);
52
72
  case "UnauthorizedError":
53
73
  return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
54
76
  default:
55
77
  return visitor._other(value);
56
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.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
6
+ export declare type Error = CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
7
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.delete.Error.EntityNotFoundError;
31
36
  readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError;
32
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.delete.Error._Unknown;
33
39
  readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.delete.Error, visitor: CandidApi.insurancePayments.v1.delete.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.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
  }