candidhealth 1.14.0 → 1.14.2

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 (370) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +38 -43
  3. package/api/resources/commons/types/index.d.ts +0 -2
  4. package/api/resources/commons/types/index.js +0 -2
  5. package/api/resources/era/types/index.d.ts +0 -1
  6. package/api/resources/era/types/index.js +0 -1
  7. package/api/resources/index.d.ts +0 -5
  8. package/api/resources/index.js +2 -7
  9. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
  10. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
  11. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
  12. package/api/resources/serviceLines/resources/v2/client/Client.js +1 -0
  13. package/api/resources/serviceLines/resources/v2/client/delete.d.ts +7 -1
  14. package/api/resources/serviceLines/resources/v2/client/delete.js +11 -0
  15. package/api/resources/x12/resources/v1/types/index.d.ts +0 -4
  16. package/api/resources/x12/resources/v1/types/index.js +0 -4
  17. package/dist/Client.d.ts +0 -3
  18. package/dist/Client.js +38 -43
  19. package/dist/api/resources/commons/types/index.d.ts +0 -2
  20. package/dist/api/resources/commons/types/index.js +0 -2
  21. package/dist/api/resources/era/types/index.d.ts +0 -1
  22. package/dist/api/resources/era/types/index.js +0 -1
  23. package/dist/api/resources/index.d.ts +0 -5
  24. package/dist/api/resources/index.js +2 -7
  25. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
  26. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
  27. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
  28. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +1 -0
  29. package/dist/api/resources/serviceLines/resources/v2/client/delete.d.ts +7 -1
  30. package/dist/api/resources/serviceLines/resources/v2/client/delete.js +11 -0
  31. package/dist/api/resources/x12/resources/v1/types/index.d.ts +0 -4
  32. package/dist/api/resources/x12/resources/v1/types/index.js +0 -4
  33. package/dist/serialization/resources/commons/types/index.d.ts +0 -2
  34. package/dist/serialization/resources/commons/types/index.js +0 -2
  35. package/dist/serialization/resources/era/types/index.d.ts +0 -1
  36. package/dist/serialization/resources/era/types/index.js +0 -1
  37. package/dist/serialization/resources/index.d.ts +0 -5
  38. package/dist/serialization/resources/index.js +2 -7
  39. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  40. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  41. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  42. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  43. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  44. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  45. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +6 -1
  46. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.js +6 -0
  47. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +0 -4
  48. package/dist/serialization/resources/x12/resources/v1/types/index.js +0 -4
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.js +1 -1
  51. package/package.json +1 -1
  52. package/reference.md +0 -295
  53. package/serialization/resources/commons/types/index.d.ts +0 -2
  54. package/serialization/resources/commons/types/index.js +0 -2
  55. package/serialization/resources/era/types/index.d.ts +0 -1
  56. package/serialization/resources/era/types/index.js +0 -1
  57. package/serialization/resources/index.d.ts +0 -5
  58. package/serialization/resources/index.js +2 -7
  59. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  60. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  61. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  62. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  63. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  64. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  65. package/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +6 -1
  66. package/serialization/resources/serviceLines/resources/v2/client/delete.js +6 -0
  67. package/serialization/resources/x12/resources/v1/types/index.d.ts +0 -4
  68. package/serialization/resources/x12/resources/v1/types/index.js +0 -4
  69. package/version.d.ts +1 -1
  70. package/version.js +1 -1
  71. package/api/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -13
  72. package/api/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -16
  73. package/api/resources/commons/types/TaxId.d.ts +0 -5
  74. package/api/resources/commons/types/TaxId.js +0 -7
  75. package/api/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -5
  76. package/api/resources/era/types/EraNotFullyProcessedErrorMessage.js +0 -3
  77. package/api/resources/eraCommons/index.d.ts +0 -1
  78. package/api/resources/eraCommons/index.js +0 -17
  79. package/api/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -13
  80. package/api/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -16
  81. package/api/resources/eraCommons/types/index.d.ts +0 -1
  82. package/api/resources/eraCommons/types/index.js +0 -17
  83. package/api/resources/insuranceAdjudications/client/Client.d.ts +0 -14
  84. package/api/resources/insuranceAdjudications/client/Client.js +0 -15
  85. package/api/resources/insuranceAdjudications/client/index.d.ts +0 -1
  86. package/api/resources/insuranceAdjudications/client/index.js +0 -2
  87. package/api/resources/insuranceAdjudications/index.d.ts +0 -2
  88. package/api/resources/insuranceAdjudications/index.js +0 -18
  89. package/api/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  90. package/api/resources/insuranceAdjudications/resources/index.js +0 -37
  91. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +0 -153
  92. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +0 -342
  93. package/api/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -25
  94. package/api/resources/insuranceAdjudications/resources/v1/client/create.js +0 -66
  95. package/api/resources/insuranceAdjudications/resources/v1/client/delete.d.ts +0 -19
  96. package/api/resources/insuranceAdjudications/resources/v1/client/delete.js +0 -55
  97. package/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +0 -19
  98. package/api/resources/insuranceAdjudications/resources/v1/client/get.js +0 -55
  99. package/api/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -3
  100. package/api/resources/insuranceAdjudications/resources/v1/client/index.js +0 -39
  101. package/api/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  102. package/api/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  103. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -10
  104. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +0 -3
  105. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -9
  106. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +0 -3
  107. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -10
  108. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -3
  109. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -12
  110. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +0 -3
  111. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -5
  112. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -7
  113. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -13
  114. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +0 -3
  115. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -12
  116. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +0 -3
  117. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -5
  118. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js +0 -7
  119. package/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  120. package/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  121. package/api/resources/remitDrafts/index.d.ts +0 -1
  122. package/api/resources/remitDrafts/index.js +0 -17
  123. package/api/resources/remitDrafts/resources/index.d.ts +0 -1
  124. package/api/resources/remitDrafts/resources/index.js +0 -37
  125. package/api/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  126. package/api/resources/remitDrafts/resources/v1/index.js +0 -17
  127. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -5
  128. package/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +0 -7
  129. package/api/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  130. package/api/resources/remitDrafts/resources/v1/types/index.js +0 -17
  131. package/api/resources/remits/index.d.ts +0 -1
  132. package/api/resources/remits/index.js +0 -17
  133. package/api/resources/remits/resources/index.d.ts +0 -1
  134. package/api/resources/remits/resources/index.js +0 -37
  135. package/api/resources/remits/resources/v1/index.d.ts +0 -1
  136. package/api/resources/remits/resources/v1/index.js +0 -17
  137. package/api/resources/remits/resources/v1/types/Payee.d.ts +0 -5
  138. package/api/resources/remits/resources/v1/types/Payee.js +0 -3
  139. package/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -16
  140. package/api/resources/remits/resources/v1/types/PayeeIdentifier.js +0 -3
  141. package/api/resources/remits/resources/v1/types/index.d.ts +0 -2
  142. package/api/resources/remits/resources/v1/types/index.js +0 -18
  143. package/api/resources/x12/resources/v1/types/Carc.d.ts +0 -407
  144. package/api/resources/x12/resources/v1/types/Carc.js +0 -410
  145. package/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -6
  146. package/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -3
  147. package/api/resources/x12/resources/v1/types/Rarc.d.ts +0 -1190
  148. package/api/resources/x12/resources/v1/types/Rarc.js +0 -1193
  149. package/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -4
  150. package/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -3
  151. package/dist/api/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -13
  152. package/dist/api/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -16
  153. package/dist/api/resources/commons/types/TaxId.d.ts +0 -5
  154. package/dist/api/resources/commons/types/TaxId.js +0 -7
  155. package/dist/api/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -5
  156. package/dist/api/resources/era/types/EraNotFullyProcessedErrorMessage.js +0 -3
  157. package/dist/api/resources/eraCommons/index.d.ts +0 -1
  158. package/dist/api/resources/eraCommons/index.js +0 -17
  159. package/dist/api/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -13
  160. package/dist/api/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -16
  161. package/dist/api/resources/eraCommons/types/index.d.ts +0 -1
  162. package/dist/api/resources/eraCommons/types/index.js +0 -17
  163. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +0 -14
  164. package/dist/api/resources/insuranceAdjudications/client/Client.js +0 -15
  165. package/dist/api/resources/insuranceAdjudications/client/index.d.ts +0 -1
  166. package/dist/api/resources/insuranceAdjudications/client/index.js +0 -2
  167. package/dist/api/resources/insuranceAdjudications/index.d.ts +0 -2
  168. package/dist/api/resources/insuranceAdjudications/index.js +0 -18
  169. package/dist/api/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  170. package/dist/api/resources/insuranceAdjudications/resources/index.js +0 -37
  171. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +0 -153
  172. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +0 -342
  173. package/dist/api/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -25
  174. package/dist/api/resources/insuranceAdjudications/resources/v1/client/create.js +0 -66
  175. package/dist/api/resources/insuranceAdjudications/resources/v1/client/delete.d.ts +0 -19
  176. package/dist/api/resources/insuranceAdjudications/resources/v1/client/delete.js +0 -55
  177. package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.d.ts +0 -19
  178. package/dist/api/resources/insuranceAdjudications/resources/v1/client/get.js +0 -55
  179. package/dist/api/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -3
  180. package/dist/api/resources/insuranceAdjudications/resources/v1/client/index.js +0 -39
  181. package/dist/api/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  182. package/dist/api/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  183. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -10
  184. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +0 -3
  185. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -9
  186. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +0 -3
  187. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -10
  188. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -3
  189. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -12
  190. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +0 -3
  191. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -5
  192. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -7
  193. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -13
  194. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +0 -3
  195. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -12
  196. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +0 -3
  197. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -5
  198. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js +0 -7
  199. package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  200. package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  201. package/dist/api/resources/remitDrafts/index.d.ts +0 -1
  202. package/dist/api/resources/remitDrafts/index.js +0 -17
  203. package/dist/api/resources/remitDrafts/resources/index.d.ts +0 -1
  204. package/dist/api/resources/remitDrafts/resources/index.js +0 -37
  205. package/dist/api/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  206. package/dist/api/resources/remitDrafts/resources/v1/index.js +0 -17
  207. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -5
  208. package/dist/api/resources/remitDrafts/resources/v1/types/RemitDraftId.js +0 -7
  209. package/dist/api/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  210. package/dist/api/resources/remitDrafts/resources/v1/types/index.js +0 -17
  211. package/dist/api/resources/remits/index.d.ts +0 -1
  212. package/dist/api/resources/remits/index.js +0 -17
  213. package/dist/api/resources/remits/resources/index.d.ts +0 -1
  214. package/dist/api/resources/remits/resources/index.js +0 -37
  215. package/dist/api/resources/remits/resources/v1/index.d.ts +0 -1
  216. package/dist/api/resources/remits/resources/v1/index.js +0 -17
  217. package/dist/api/resources/remits/resources/v1/types/Payee.d.ts +0 -5
  218. package/dist/api/resources/remits/resources/v1/types/Payee.js +0 -3
  219. package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -16
  220. package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.js +0 -3
  221. package/dist/api/resources/remits/resources/v1/types/index.d.ts +0 -2
  222. package/dist/api/resources/remits/resources/v1/types/index.js +0 -18
  223. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +0 -407
  224. package/dist/api/resources/x12/resources/v1/types/Carc.js +0 -410
  225. package/dist/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -6
  226. package/dist/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -3
  227. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +0 -1190
  228. package/dist/api/resources/x12/resources/v1/types/Rarc.js +0 -1193
  229. package/dist/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -4
  230. package/dist/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -3
  231. package/dist/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -7
  232. package/dist/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -39
  233. package/dist/serialization/resources/commons/types/TaxId.d.ts +0 -7
  234. package/dist/serialization/resources/commons/types/TaxId.js +0 -45
  235. package/dist/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -11
  236. package/dist/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.js +0 -43
  237. package/dist/serialization/resources/eraCommons/index.d.ts +0 -1
  238. package/dist/serialization/resources/eraCommons/index.js +0 -17
  239. package/dist/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -7
  240. package/dist/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -39
  241. package/dist/serialization/resources/eraCommons/types/index.d.ts +0 -1
  242. package/dist/serialization/resources/eraCommons/types/index.js +0 -17
  243. package/dist/serialization/resources/insuranceAdjudications/index.d.ts +0 -1
  244. package/dist/serialization/resources/insuranceAdjudications/index.js +0 -17
  245. package/dist/serialization/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  246. package/dist/serialization/resources/insuranceAdjudications/resources/index.js +0 -37
  247. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -12
  248. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/create.js +0 -69
  249. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -1
  250. package/dist/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +0 -37
  251. package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  252. package/dist/serialization/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  253. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -19
  254. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +0 -51
  255. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -18
  256. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +0 -50
  257. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -19
  258. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -51
  259. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -22
  260. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +0 -54
  261. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -7
  262. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -43
  263. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -21
  264. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +0 -53
  265. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -19
  266. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +0 -51
  267. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -7
  268. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js +0 -43
  269. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  270. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  271. package/dist/serialization/resources/remitDrafts/index.d.ts +0 -1
  272. package/dist/serialization/resources/remitDrafts/index.js +0 -17
  273. package/dist/serialization/resources/remitDrafts/resources/index.d.ts +0 -1
  274. package/dist/serialization/resources/remitDrafts/resources/index.js +0 -37
  275. package/dist/serialization/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  276. package/dist/serialization/resources/remitDrafts/resources/v1/index.js +0 -17
  277. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -7
  278. package/dist/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.js +0 -43
  279. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  280. package/dist/serialization/resources/remitDrafts/resources/v1/types/index.js +0 -17
  281. package/dist/serialization/resources/remits/index.d.ts +0 -1
  282. package/dist/serialization/resources/remits/index.js +0 -17
  283. package/dist/serialization/resources/remits/resources/index.d.ts +0 -1
  284. package/dist/serialization/resources/remits/resources/index.js +0 -37
  285. package/dist/serialization/resources/remits/resources/v1/index.d.ts +0 -1
  286. package/dist/serialization/resources/remits/resources/v1/index.js +0 -17
  287. package/dist/serialization/resources/remits/resources/v1/types/Payee.d.ts +0 -11
  288. package/dist/serialization/resources/remits/resources/v1/types/Payee.js +0 -43
  289. package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -21
  290. package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.js +0 -56
  291. package/dist/serialization/resources/remits/resources/v1/types/index.d.ts +0 -2
  292. package/dist/serialization/resources/remits/resources/v1/types/index.js +0 -18
  293. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +0 -7
  294. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +0 -444
  295. package/dist/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -13
  296. package/dist/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -45
  297. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +0 -7
  298. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +0 -1227
  299. package/dist/serialization/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -10
  300. package/dist/serialization/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -42
  301. package/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.d.ts +0 -7
  302. package/serialization/resources/commons/types/ClaimAdjustmentGroupCodes.js +0 -39
  303. package/serialization/resources/commons/types/TaxId.d.ts +0 -7
  304. package/serialization/resources/commons/types/TaxId.js +0 -45
  305. package/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.d.ts +0 -11
  306. package/serialization/resources/era/types/EraNotFullyProcessedErrorMessage.js +0 -43
  307. package/serialization/resources/eraCommons/index.d.ts +0 -1
  308. package/serialization/resources/eraCommons/index.js +0 -17
  309. package/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.d.ts +0 -7
  310. package/serialization/resources/eraCommons/types/ClaimStatusCodeCreate.js +0 -39
  311. package/serialization/resources/eraCommons/types/index.d.ts +0 -1
  312. package/serialization/resources/eraCommons/types/index.js +0 -17
  313. package/serialization/resources/insuranceAdjudications/index.d.ts +0 -1
  314. package/serialization/resources/insuranceAdjudications/index.js +0 -17
  315. package/serialization/resources/insuranceAdjudications/resources/index.d.ts +0 -1
  316. package/serialization/resources/insuranceAdjudications/resources/index.js +0 -37
  317. package/serialization/resources/insuranceAdjudications/resources/v1/client/create.d.ts +0 -12
  318. package/serialization/resources/insuranceAdjudications/resources/v1/client/create.js +0 -69
  319. package/serialization/resources/insuranceAdjudications/resources/v1/client/index.d.ts +0 -1
  320. package/serialization/resources/insuranceAdjudications/resources/v1/client/index.js +0 -37
  321. package/serialization/resources/insuranceAdjudications/resources/v1/index.d.ts +0 -2
  322. package/serialization/resources/insuranceAdjudications/resources/v1/index.js +0 -18
  323. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +0 -19
  324. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +0 -51
  325. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +0 -18
  326. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +0 -50
  327. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -19
  328. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -51
  329. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +0 -22
  330. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +0 -54
  331. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.d.ts +0 -7
  332. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationId.js +0 -43
  333. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +0 -21
  334. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +0 -53
  335. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +0 -19
  336. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +0 -51
  337. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.d.ts +0 -7
  338. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationId.js +0 -43
  339. package/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -8
  340. package/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -24
  341. package/serialization/resources/remitDrafts/index.d.ts +0 -1
  342. package/serialization/resources/remitDrafts/index.js +0 -17
  343. package/serialization/resources/remitDrafts/resources/index.d.ts +0 -1
  344. package/serialization/resources/remitDrafts/resources/index.js +0 -37
  345. package/serialization/resources/remitDrafts/resources/v1/index.d.ts +0 -1
  346. package/serialization/resources/remitDrafts/resources/v1/index.js +0 -17
  347. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.d.ts +0 -7
  348. package/serialization/resources/remitDrafts/resources/v1/types/RemitDraftId.js +0 -43
  349. package/serialization/resources/remitDrafts/resources/v1/types/index.d.ts +0 -1
  350. package/serialization/resources/remitDrafts/resources/v1/types/index.js +0 -17
  351. package/serialization/resources/remits/index.d.ts +0 -1
  352. package/serialization/resources/remits/index.js +0 -17
  353. package/serialization/resources/remits/resources/index.d.ts +0 -1
  354. package/serialization/resources/remits/resources/index.js +0 -37
  355. package/serialization/resources/remits/resources/v1/index.d.ts +0 -1
  356. package/serialization/resources/remits/resources/v1/index.js +0 -17
  357. package/serialization/resources/remits/resources/v1/types/Payee.d.ts +0 -11
  358. package/serialization/resources/remits/resources/v1/types/Payee.js +0 -43
  359. package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +0 -21
  360. package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.js +0 -56
  361. package/serialization/resources/remits/resources/v1/types/index.d.ts +0 -2
  362. package/serialization/resources/remits/resources/v1/types/index.js +0 -18
  363. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +0 -7
  364. package/serialization/resources/x12/resources/v1/types/Carc.js +0 -444
  365. package/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -13
  366. package/serialization/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -45
  367. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +0 -7
  368. package/serialization/resources/x12/resources/v1/types/Rarc.js +0 -1227
  369. package/serialization/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -10
  370. package/serialization/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -42
@@ -1,342 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.V1 = void 0;
47
- const core = __importStar(require("../../../../../../core"));
48
- const headers_1 = require("../../../../../../core/headers");
49
- const environments = __importStar(require("../../../../../../environments"));
50
- const serializers = __importStar(require("../../../../../../serialization/index"));
51
- const CandidApi = __importStar(require("../../../../../index"));
52
- class V1 {
53
- constructor(_options = {}) {
54
- this._options = _options;
55
- }
56
- /**
57
- * Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
58
- *
59
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId} insuranceAdjudicationId
60
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
61
- *
62
- * @example
63
- * await client.insuranceAdjudications.v1.get(CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
64
- */
65
- get(insuranceAdjudicationId, requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__get(insuranceAdjudicationId, requestOptions));
67
- }
68
- __get(insuranceAdjudicationId, requestOptions) {
69
- return __awaiter(this, void 0, void 0, function* () {
70
- var _a, _b, _c, _d, _e, _f, _g, _h;
71
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
72
- const _response = yield core.fetcher({
73
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-adjudications/v1/${core.url.encodePathParam(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
74
- method: "GET",
75
- headers: _headers,
76
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
77
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
78
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
79
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
- });
81
- if (_response.ok) {
82
- return {
83
- data: {
84
- ok: true,
85
- body: serializers.insuranceAdjudications.v1.InsuranceAdjudication.parseOrThrow(_response.body, {
86
- unrecognizedObjectKeys: "passthrough",
87
- allowUnrecognizedUnionMembers: true,
88
- allowUnrecognizedEnumValues: true,
89
- breadcrumbsPrefix: ["response"],
90
- }),
91
- headers: _response.headers,
92
- rawResponse: _response.rawResponse,
93
- },
94
- rawResponse: _response.rawResponse,
95
- };
96
- }
97
- return {
98
- data: {
99
- ok: false,
100
- error: CandidApi.insuranceAdjudications.v1.get.Error._unknown(_response.error),
101
- rawResponse: _response.rawResponse,
102
- },
103
- rawResponse: _response.rawResponse,
104
- };
105
- });
106
- }
107
- /**
108
- * Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
109
- *
110
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationCreate} request
111
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
112
- *
113
- * @example
114
- * await client.insuranceAdjudications.v1.create({
115
- * payerIdentifier: {
116
- * type: "payer_info",
117
- * payerId: CandidApi.payers.v3.PayerId("payer_id"),
118
- * payerName: CandidApi.payers.v3.PayerName("payer_name")
119
- * },
120
- * payee: {
121
- * payeeName: "payee_name",
122
- * payeeIdentifier: {
123
- * type: "npi",
124
- * value: CandidApi.Npi("payee_identifier")
125
- * }
126
- * },
127
- * checkDate: "2023-01-15",
128
- * claims: {
129
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
130
- * claimStatusCode: "1",
131
- * serviceLines: {
132
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
133
- * carcs: [{
134
- * groupCode: "CO",
135
- * reasonCode: "1",
136
- * amountCents: 1
137
- * }, {
138
- * groupCode: "CO",
139
- * reasonCode: "1",
140
- * amountCents: 1
141
- * }],
142
- * rarcs: [{
143
- * reasonCode: "M1"
144
- * }, {
145
- * reasonCode: "M1"
146
- * }]
147
- * }, {
148
- * carcs: [{
149
- * groupCode: "CO",
150
- * reasonCode: "1",
151
- * amountCents: 1
152
- * }, {
153
- * groupCode: "CO",
154
- * reasonCode: "1",
155
- * amountCents: 1
156
- * }],
157
- * rarcs: [{
158
- * reasonCode: "M1"
159
- * }, {
160
- * reasonCode: "M1"
161
- * }]
162
- * }]
163
- * },
164
- * carcs: [{
165
- * groupCode: "CO",
166
- * reasonCode: "1",
167
- * amountCents: 1
168
- * }, {
169
- * groupCode: "CO",
170
- * reasonCode: "1",
171
- * amountCents: 1
172
- * }]
173
- * }, {
174
- * claimStatusCode: "1",
175
- * serviceLines: {
176
- * "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{
177
- * carcs: [{
178
- * groupCode: "CO",
179
- * reasonCode: "1",
180
- * amountCents: 1
181
- * }, {
182
- * groupCode: "CO",
183
- * reasonCode: "1",
184
- * amountCents: 1
185
- * }],
186
- * rarcs: [{
187
- * reasonCode: "M1"
188
- * }, {
189
- * reasonCode: "M1"
190
- * }]
191
- * }, {
192
- * carcs: [{
193
- * groupCode: "CO",
194
- * reasonCode: "1",
195
- * amountCents: 1
196
- * }, {
197
- * groupCode: "CO",
198
- * reasonCode: "1",
199
- * amountCents: 1
200
- * }],
201
- * rarcs: [{
202
- * reasonCode: "M1"
203
- * }, {
204
- * reasonCode: "M1"
205
- * }]
206
- * }]
207
- * },
208
- * carcs: [{
209
- * groupCode: "CO",
210
- * reasonCode: "1",
211
- * amountCents: 1
212
- * }, {
213
- * groupCode: "CO",
214
- * reasonCode: "1",
215
- * amountCents: 1
216
- * }]
217
- * }]
218
- * }
219
- * })
220
- */
221
- create(request, requestOptions) {
222
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
223
- }
224
- __create(request, requestOptions) {
225
- return __awaiter(this, void 0, void 0, function* () {
226
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
227
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
228
- const _response = yield core.fetcher({
229
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/insurance-adjudications/v1"),
230
- method: "POST",
231
- headers: _headers,
232
- contentType: "application/json",
233
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
234
- requestType: "json",
235
- body: serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
236
- unrecognizedObjectKeys: "strip",
237
- }),
238
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
239
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
240
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
241
- });
242
- if (_response.ok) {
243
- return {
244
- data: {
245
- ok: true,
246
- body: serializers.insuranceAdjudications.v1.InsuranceAdjudication.parseOrThrow(_response.body, {
247
- unrecognizedObjectKeys: "passthrough",
248
- allowUnrecognizedUnionMembers: true,
249
- allowUnrecognizedEnumValues: true,
250
- breadcrumbsPrefix: ["response"],
251
- }),
252
- headers: _response.headers,
253
- rawResponse: _response.rawResponse,
254
- },
255
- rawResponse: _response.rawResponse,
256
- };
257
- }
258
- if (_response.error.reason === "status-code") {
259
- switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
260
- case "EraNotFullyProcessedError":
261
- return {
262
- data: {
263
- ok: false,
264
- error: serializers.insuranceAdjudications.v1.create.Error.parseOrThrow(_response.error.body, {
265
- unrecognizedObjectKeys: "passthrough",
266
- allowUnrecognizedUnionMembers: true,
267
- allowUnrecognizedEnumValues: true,
268
- breadcrumbsPrefix: ["response"],
269
- }),
270
- rawResponse: _response.rawResponse,
271
- },
272
- rawResponse: _response.rawResponse,
273
- };
274
- }
275
- }
276
- return {
277
- data: {
278
- ok: false,
279
- error: CandidApi.insuranceAdjudications.v1.create.Error._unknown(_response.error),
280
- rawResponse: _response.rawResponse,
281
- },
282
- rawResponse: _response.rawResponse,
283
- };
284
- });
285
- }
286
- /**
287
- * Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
288
- *
289
- * @param {CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId} insuranceAdjudicationId
290
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
291
- *
292
- * @example
293
- * await client.insuranceAdjudications.v1.delete(CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
294
- */
295
- delete(insuranceAdjudicationId, requestOptions) {
296
- return core.HttpResponsePromise.fromPromise(this.__delete(insuranceAdjudicationId, requestOptions));
297
- }
298
- __delete(insuranceAdjudicationId, requestOptions) {
299
- return __awaiter(this, void 0, void 0, function* () {
300
- var _a, _b, _c, _d, _e, _f, _g, _h;
301
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
302
- const _response = yield core.fetcher({
303
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-adjudications/v1/${core.url.encodePathParam(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
304
- method: "DELETE",
305
- headers: _headers,
306
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
307
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
308
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
309
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
310
- });
311
- if (_response.ok) {
312
- return {
313
- data: {
314
- ok: true,
315
- body: undefined,
316
- headers: _response.headers,
317
- rawResponse: _response.rawResponse,
318
- },
319
- rawResponse: _response.rawResponse,
320
- };
321
- }
322
- return {
323
- data: {
324
- ok: false,
325
- error: CandidApi.insuranceAdjudications.v1.delete.Error._unknown(_response.error),
326
- rawResponse: _response.rawResponse,
327
- },
328
- rawResponse: _response.rawResponse,
329
- };
330
- });
331
- }
332
- _getAuthorizationHeader() {
333
- return __awaiter(this, void 0, void 0, function* () {
334
- const bearer = yield core.Supplier.get(this._options.token);
335
- if (bearer != null) {
336
- return `Bearer ${bearer}`;
337
- }
338
- return undefined;
339
- });
340
- }
341
- }
342
- exports.V1 = V1;
@@ -1,25 +0,0 @@
1
- import type * as core from "../../../../../../core";
2
- import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.insuranceAdjudications.v1.create.Error.EraNotFullyProcessedError | CandidApi.insuranceAdjudications.v1.create.Error._Unknown;
4
- export declare namespace Error {
5
- interface EraNotFullyProcessedError extends _Utils {
6
- errorName: "EraNotFullyProcessedError";
7
- content: CandidApi.EraNotFullyProcessedErrorMessage;
8
- }
9
- interface _Unknown extends _Utils {
10
- errorName: void;
11
- content: core.Fetcher.Error;
12
- }
13
- interface _Utils {
14
- _visit: <_Result>(visitor: CandidApi.insuranceAdjudications.v1.create.Error._Visitor<_Result>) => _Result;
15
- }
16
- interface _Visitor<_Result> {
17
- eraNotFullyProcessedError: (value: CandidApi.EraNotFullyProcessedErrorMessage) => _Result;
18
- _other: (value: core.Fetcher.Error) => _Result;
19
- }
20
- }
21
- export declare const Error: {
22
- readonly eraNotFullyProcessedError: (value: CandidApi.EraNotFullyProcessedErrorMessage) => CandidApi.insuranceAdjudications.v1.create.Error.EraNotFullyProcessedError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceAdjudications.v1.create.Error._Unknown;
24
- readonly _visit: <_Result>(value: CandidApi.insuranceAdjudications.v1.create.Error, visitor: CandidApi.insuranceAdjudications.v1.create.Error._Visitor<_Result>) => _Result;
25
- };
@@ -1,66 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Error = void 0;
38
- const CandidApi = __importStar(require("../../../../../index"));
39
- exports.Error = {
40
- eraNotFullyProcessedError: (value) => {
41
- return {
42
- content: value,
43
- errorName: "EraNotFullyProcessedError",
44
- _visit: function (visitor) {
45
- return CandidApi.insuranceAdjudications.v1.create.Error._visit(this, visitor);
46
- },
47
- };
48
- },
49
- _unknown: (fetcherError) => {
50
- return {
51
- errorName: undefined,
52
- content: fetcherError,
53
- _visit: function (visitor) {
54
- return CandidApi.insuranceAdjudications.v1.create.Error._visit(this, visitor);
55
- },
56
- };
57
- },
58
- _visit: (value, visitor) => {
59
- switch (value.errorName) {
60
- case "EraNotFullyProcessedError":
61
- return visitor.eraNotFullyProcessedError(value.content);
62
- default:
63
- return visitor._other(value);
64
- }
65
- },
66
- };
@@ -1,19 +0,0 @@
1
- import type * as core from "../../../../../../core";
2
- import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.insuranceAdjudications.v1.delete.Error._Unknown;
4
- export declare namespace Error {
5
- interface _Unknown extends _Utils {
6
- errorName: void;
7
- content: core.Fetcher.Error;
8
- }
9
- interface _Utils {
10
- _visit: <_Result>(visitor: CandidApi.insuranceAdjudications.v1.delete.Error._Visitor<_Result>) => _Result;
11
- }
12
- interface _Visitor<_Result> {
13
- _other: (value: core.Fetcher.Error) => _Result;
14
- }
15
- }
16
- export declare const Error: {
17
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceAdjudications.v1.delete.Error._Unknown;
18
- readonly _visit: <_Result>(value: CandidApi.insuranceAdjudications.v1.delete.Error, visitor: CandidApi.insuranceAdjudications.v1.delete.Error._Visitor<_Result>) => _Result;
19
- };
@@ -1,55 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Error = void 0;
38
- const CandidApi = __importStar(require("../../../../../index"));
39
- exports.Error = {
40
- _unknown: (fetcherError) => {
41
- return {
42
- errorName: undefined,
43
- content: fetcherError,
44
- _visit: function (visitor) {
45
- return CandidApi.insuranceAdjudications.v1.delete.Error._visit(this, visitor);
46
- },
47
- };
48
- },
49
- _visit: (value, visitor) => {
50
- switch (value.errorName) {
51
- default:
52
- return visitor._other(value);
53
- }
54
- },
55
- };
@@ -1,19 +0,0 @@
1
- import type * as core from "../../../../../../core";
2
- import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.insuranceAdjudications.v1.get.Error._Unknown;
4
- export declare namespace Error {
5
- interface _Unknown extends _Utils {
6
- errorName: void;
7
- content: core.Fetcher.Error;
8
- }
9
- interface _Utils {
10
- _visit: <_Result>(visitor: CandidApi.insuranceAdjudications.v1.get.Error._Visitor<_Result>) => _Result;
11
- }
12
- interface _Visitor<_Result> {
13
- _other: (value: core.Fetcher.Error) => _Result;
14
- }
15
- }
16
- export declare const Error: {
17
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceAdjudications.v1.get.Error._Unknown;
18
- readonly _visit: <_Result>(value: CandidApi.insuranceAdjudications.v1.get.Error, visitor: CandidApi.insuranceAdjudications.v1.get.Error._Visitor<_Result>) => _Result;
19
- };
@@ -1,55 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Error = void 0;
38
- const CandidApi = __importStar(require("../../../../../index"));
39
- exports.Error = {
40
- _unknown: (fetcherError) => {
41
- return {
42
- errorName: undefined,
43
- content: fetcherError,
44
- _visit: function (visitor) {
45
- return CandidApi.insuranceAdjudications.v1.get.Error._visit(this, visitor);
46
- },
47
- };
48
- },
49
- _visit: (value, visitor) => {
50
- switch (value.errorName) {
51
- default:
52
- return visitor._other(value);
53
- }
54
- },
55
- };
@@ -1,3 +0,0 @@
1
- export * as create from "./create";
2
- export * as delete from "./delete";
3
- export * as get from "./get";
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.get = exports.delete = exports.create = void 0;
37
- exports.create = __importStar(require("./create"));
38
- exports.delete = __importStar(require("./delete"));
39
- exports.get = __importStar(require("./get"));
@@ -1,2 +0,0 @@
1
- export * from "./client";
2
- export * from "./types";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
18
- __exportStar(require("./types"), exports);