candidhealth 0.6.0 → 0.6.1

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 (316) hide show
  1. package/Client.d.ts +3 -6
  2. package/Client.js +19 -24
  3. package/api/resources/auth/resources/v2/client/Client.d.ts +14 -0
  4. package/api/resources/auth/resources/v2/client/Client.js +15 -1
  5. package/api/resources/billingNotes/client/Client.d.ts +3 -3
  6. package/api/resources/billingNotes/client/Client.js +4 -69
  7. package/api/resources/billingNotes/client/index.d.ts +1 -2
  8. package/api/resources/billingNotes/client/index.js +0 -29
  9. package/api/resources/billingNotes/index.d.ts +1 -1
  10. package/api/resources/billingNotes/index.js +1 -1
  11. package/api/resources/billingNotes/resources/index.d.ts +1 -0
  12. package/api/resources/billingNotes/resources/index.js +27 -0
  13. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +18 -0
  14. package/{dist/api/resources/tasks/resources/v3 → api/resources/billingNotes/resources/v2}/client/Client.js +12 -9
  15. package/{dist/api/resources/payers/client/get.d.ts → api/resources/billingNotes/resources/v2/client/create.d.ts} +6 -6
  16. package/{dist/api/resources/billingNotes → api/resources/billingNotes/resources/v2}/client/create.js +2 -2
  17. package/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  18. package/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/client/index.js +6 -2
  19. package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +7 -0
  20. package/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.d.ts +3 -3
  21. package/{dist/api/resources/billingNotes → api/resources/billingNotes/resources/v2}/types/BillingNoteId.d.ts +3 -3
  22. package/api/resources/commons/types/index.d.ts +0 -1
  23. package/api/resources/commons/types/index.js +0 -1
  24. package/api/resources/eligibility/resources/v2/client/Client.d.ts +6 -2
  25. package/api/resources/eligibility/resources/v2/client/Client.js +7 -3
  26. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  27. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  28. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  29. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  30. package/api/resources/exports/resources/v3/client/Client.d.ts +15 -0
  31. package/api/resources/exports/resources/v3/client/Client.js +16 -1
  32. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  33. package/api/resources/index.d.ts +2 -7
  34. package/api/resources/index.js +3 -8
  35. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  36. package/api/resources/payers/client/Client.d.ts +3 -4
  37. package/api/resources/payers/client/Client.js +4 -108
  38. package/api/resources/payers/client/index.d.ts +1 -3
  39. package/api/resources/payers/client/index.js +0 -30
  40. package/api/resources/payers/index.d.ts +1 -1
  41. package/api/resources/payers/index.js +1 -1
  42. package/api/resources/{tasks → payers}/resources/v3/client/Client.d.ts +2 -1
  43. package/api/resources/payers/resources/v3/client/Client.js +122 -0
  44. package/api/resources/{tasks/resources/v3/client/getActions.d.ts → payers/resources/v3/client/get.d.ts} +4 -4
  45. package/api/resources/{tasks/resources/v3/client/getActions.js → payers/resources/v3/client/get.js} +1 -1
  46. package/{dist/api/resources/tasks/resources/v3/client/getActions.d.ts → api/resources/payers/resources/v3/client/getAll.d.ts} +4 -4
  47. package/{dist/api/resources/tasks/resources/v3/client/getActions.js → api/resources/payers/resources/v3/client/getAll.js} +1 -1
  48. package/api/resources/payers/resources/v3/client/index.d.ts +3 -0
  49. package/api/resources/payers/resources/v3/client/index.js +32 -0
  50. package/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.d.ts +1 -1
  51. package/api/resources/payers/{types → resources/v3/types}/Payer.d.ts +2 -2
  52. package/api/resources/payers/{types → resources/v3/types}/PayerPage.d.ts +2 -2
  53. package/api/resources/payers/resources/v3/types/PayerUuid.d.ts +8 -0
  54. package/dist/Client.d.ts +3 -6
  55. package/dist/Client.js +19 -24
  56. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +14 -0
  57. package/dist/api/resources/auth/resources/v2/client/Client.js +15 -1
  58. package/dist/api/resources/billingNotes/client/Client.d.ts +3 -3
  59. package/dist/api/resources/billingNotes/client/Client.js +4 -69
  60. package/dist/api/resources/billingNotes/client/index.d.ts +1 -2
  61. package/dist/api/resources/billingNotes/client/index.js +0 -29
  62. package/dist/api/resources/billingNotes/index.d.ts +1 -1
  63. package/dist/api/resources/billingNotes/index.js +1 -1
  64. package/dist/api/resources/billingNotes/resources/index.d.ts +1 -0
  65. package/dist/api/resources/billingNotes/resources/index.js +27 -0
  66. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +18 -0
  67. package/{api/resources/tasks/resources/v3 → dist/api/resources/billingNotes/resources/v2}/client/Client.js +12 -9
  68. package/{api/resources/payers/client/get.d.ts → dist/api/resources/billingNotes/resources/v2/client/create.d.ts} +6 -6
  69. package/{api/resources/billingNotes → dist/api/resources/billingNotes/resources/v2}/client/create.js +2 -2
  70. package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  71. package/dist/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/client/index.js +6 -2
  72. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +7 -0
  73. package/dist/api/resources/billingNotes/resources/v2/index.d.ts +2 -0
  74. package/dist/api/resources/billingNotes/resources/v2/index.js +18 -0
  75. package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.d.ts +3 -3
  76. package/{api/resources/billingNotes → dist/api/resources/billingNotes/resources/v2}/types/BillingNoteId.d.ts +3 -3
  77. package/dist/api/resources/commons/types/index.d.ts +0 -1
  78. package/dist/api/resources/commons/types/index.js +0 -1
  79. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +6 -2
  80. package/dist/api/resources/eligibility/resources/v2/client/Client.js +7 -3
  81. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  82. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  83. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  84. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  85. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +15 -0
  86. package/dist/api/resources/exports/resources/v3/client/Client.js +16 -1
  87. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  88. package/dist/api/resources/index.d.ts +2 -7
  89. package/dist/api/resources/index.js +3 -8
  90. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  91. package/dist/api/resources/payers/client/Client.d.ts +3 -4
  92. package/dist/api/resources/payers/client/Client.js +4 -108
  93. package/dist/api/resources/payers/client/index.d.ts +1 -3
  94. package/dist/api/resources/payers/client/index.js +0 -30
  95. package/dist/api/resources/payers/index.d.ts +1 -1
  96. package/dist/api/resources/payers/index.js +1 -1
  97. package/dist/api/resources/{tasks → payers}/resources/v3/client/Client.d.ts +2 -1
  98. package/dist/api/resources/payers/resources/v3/client/Client.js +122 -0
  99. package/dist/api/resources/payers/{client/getAll.d.ts → resources/v3/client/get.d.ts} +6 -6
  100. package/{api/resources/payers/client/getAll.js → dist/api/resources/payers/resources/v3/client/get.js} +2 -2
  101. package/dist/api/resources/payers/resources/v3/client/getAll.d.ts +22 -0
  102. package/dist/api/resources/payers/{client → resources/v3/client}/getAll.js +2 -2
  103. package/dist/api/resources/payers/resources/v3/client/index.d.ts +3 -0
  104. package/dist/api/resources/payers/resources/v3/client/index.js +32 -0
  105. package/dist/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.d.ts +1 -1
  106. package/dist/api/resources/payers/resources/v3/index.d.ts +2 -0
  107. package/dist/api/resources/payers/resources/v3/index.js +18 -0
  108. package/dist/api/resources/payers/{types → resources/v3/types}/Payer.d.ts +2 -2
  109. package/dist/api/resources/payers/{types → resources/v3/types}/PayerPage.d.ts +2 -2
  110. package/dist/api/resources/payers/resources/v3/types/PayerUuid.d.ts +8 -0
  111. package/dist/serialization/resources/billingNotes/index.d.ts +1 -2
  112. package/dist/serialization/resources/billingNotes/index.js +1 -2
  113. package/dist/serialization/resources/billingNotes/resources/index.d.ts +1 -0
  114. package/dist/serialization/resources/billingNotes/resources/index.js +27 -0
  115. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +12 -0
  116. package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +3 -3
  117. package/dist/serialization/resources/billingNotes/resources/v2/index.d.ts +2 -0
  118. package/dist/serialization/resources/billingNotes/resources/v2/index.js +18 -0
  119. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
  120. package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +4 -4
  121. package/{serialization/resources/tasks/resources/v3/types/TaskActions.d.ts → dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBase.d.ts} +3 -3
  122. package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +1 -1
  123. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteId.d.ts +10 -0
  124. package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +3 -3
  125. package/dist/serialization/resources/commons/types/index.d.ts +0 -1
  126. package/dist/serialization/resources/commons/types/index.js +0 -1
  127. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  128. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -1
  129. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  130. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
  131. package/dist/serialization/resources/index.d.ts +2 -6
  132. package/dist/serialization/resources/index.js +3 -7
  133. package/dist/serialization/resources/payers/index.d.ts +1 -1
  134. package/dist/serialization/resources/payers/index.js +1 -1
  135. package/dist/serialization/resources/payers/resources/v3/types/Payer.d.ts +14 -0
  136. package/{serialization/resources/payers → dist/serialization/resources/payers/resources/v3}/types/Payer.js +2 -2
  137. package/dist/serialization/resources/payers/resources/v3/types/PayerPage.d.ts +12 -0
  138. package/dist/serialization/resources/payers/{types → resources/v3/types}/PayerPage.js +3 -3
  139. package/dist/serialization/resources/payers/resources/v3/types/PayerUuid.d.ts +10 -0
  140. package/dist/serialization/resources/{tasks/resources/v3/types/TaskActionExecutionMethod.js → payers/resources/v3/types/PayerUuid.js} +4 -7
  141. package/package.json +1 -1
  142. package/serialization/resources/billingNotes/index.d.ts +1 -2
  143. package/serialization/resources/billingNotes/index.js +1 -2
  144. package/serialization/resources/billingNotes/resources/index.d.ts +1 -0
  145. package/serialization/resources/billingNotes/resources/index.js +27 -0
  146. package/serialization/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +12 -0
  147. package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +3 -3
  148. package/serialization/resources/billingNotes/resources/v2/index.d.ts +2 -0
  149. package/serialization/resources/billingNotes/resources/v2/index.js +18 -0
  150. package/serialization/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
  151. package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +4 -4
  152. package/{dist/serialization/resources/tasks/resources/v3/types/TaskActions.d.ts → serialization/resources/billingNotes/resources/v2/types/BillingNoteBase.d.ts} +3 -3
  153. package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +1 -1
  154. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteId.d.ts +10 -0
  155. package/serialization/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +3 -3
  156. package/serialization/resources/commons/types/index.d.ts +0 -1
  157. package/serialization/resources/commons/types/index.js +0 -1
  158. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  159. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -1
  160. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  161. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
  162. package/serialization/resources/index.d.ts +2 -6
  163. package/serialization/resources/index.js +3 -7
  164. package/serialization/resources/payers/index.d.ts +1 -1
  165. package/serialization/resources/payers/index.js +1 -1
  166. package/serialization/resources/payers/resources/v3/types/Payer.d.ts +14 -0
  167. package/{dist/serialization/resources/payers → serialization/resources/payers/resources/v3}/types/Payer.js +2 -2
  168. package/serialization/resources/payers/resources/v3/types/PayerPage.d.ts +12 -0
  169. package/serialization/resources/payers/{types → resources/v3/types}/PayerPage.js +3 -3
  170. package/serialization/resources/payers/resources/v3/types/PayerUuid.d.ts +10 -0
  171. package/serialization/resources/{tasks/resources/v3/types/TaskActionExecutionMethod.js → payers/resources/v3/types/PayerUuid.js} +4 -7
  172. package/api/resources/billingNotes/client/create.d.ts +0 -22
  173. package/api/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -7
  174. package/api/resources/commons/types/TaskId.d.ts +0 -8
  175. package/api/resources/commons/types/TaskId.js +0 -10
  176. package/api/resources/payers/client/get.js +0 -47
  177. package/api/resources/payers/client/getAll.d.ts +0 -22
  178. package/api/resources/payers/types/PayerUuid.d.ts +0 -8
  179. package/api/resources/tasks/client/Client.d.ts +0 -18
  180. package/api/resources/tasks/client/Client.js +0 -18
  181. package/api/resources/tasks/client/index.d.ts +0 -1
  182. package/api/resources/tasks/index.d.ts +0 -2
  183. package/api/resources/tasks/index.js +0 -18
  184. package/api/resources/tasks/resources/v3/client/index.d.ts +0 -1
  185. package/api/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -8
  186. package/api/resources/tasks/resources/v3/types/TaskAction.js +0 -5
  187. package/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -10
  188. package/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +0 -5
  189. package/api/resources/tasks/resources/v3/types/TaskActions.d.ts +0 -7
  190. package/api/resources/tasks/resources/v3/types/TaskActions.js +0 -5
  191. package/api/resources/tasks/resources/v3/types/index.d.ts +0 -3
  192. package/api/resources/tasks/resources/v3/types/index.js +0 -19
  193. package/dist/api/resources/billingNotes/client/create.d.ts +0 -22
  194. package/dist/api/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -7
  195. package/dist/api/resources/commons/types/TaskId.d.ts +0 -8
  196. package/dist/api/resources/commons/types/TaskId.js +0 -10
  197. package/dist/api/resources/payers/client/get.js +0 -47
  198. package/dist/api/resources/payers/client/requests/index.js +0 -2
  199. package/dist/api/resources/payers/types/PayerUuid.d.ts +0 -8
  200. package/dist/api/resources/tasks/client/Client.d.ts +0 -18
  201. package/dist/api/resources/tasks/client/Client.js +0 -18
  202. package/dist/api/resources/tasks/client/index.d.ts +0 -1
  203. package/dist/api/resources/tasks/client/index.js +0 -2
  204. package/dist/api/resources/tasks/index.d.ts +0 -2
  205. package/dist/api/resources/tasks/index.js +0 -18
  206. package/dist/api/resources/tasks/resources/v3/client/index.d.ts +0 -1
  207. package/dist/api/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -8
  208. package/dist/api/resources/tasks/resources/v3/types/TaskAction.js +0 -5
  209. package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -10
  210. package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +0 -5
  211. package/dist/api/resources/tasks/resources/v3/types/TaskActions.d.ts +0 -7
  212. package/dist/api/resources/tasks/resources/v3/types/TaskActions.js +0 -5
  213. package/dist/api/resources/tasks/resources/v3/types/index.d.ts +0 -3
  214. package/dist/api/resources/tasks/resources/v3/types/index.js +0 -19
  215. package/dist/serialization/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -12
  216. package/dist/serialization/resources/billingNotes/types/BillingNote.d.ts +0 -16
  217. package/dist/serialization/resources/billingNotes/types/BillingNoteBase.d.ts +0 -12
  218. package/dist/serialization/resources/billingNotes/types/BillingNoteId.d.ts +0 -10
  219. package/dist/serialization/resources/commons/types/TaskId.d.ts +0 -10
  220. package/dist/serialization/resources/commons/types/TaskId.js +0 -37
  221. package/dist/serialization/resources/payers/types/Payer.d.ts +0 -14
  222. package/dist/serialization/resources/payers/types/PayerPage.d.ts +0 -12
  223. package/dist/serialization/resources/payers/types/PayerUuid.d.ts +0 -10
  224. package/dist/serialization/resources/payers/types/PayerUuid.js +0 -37
  225. package/dist/serialization/resources/tasks/index.d.ts +0 -1
  226. package/dist/serialization/resources/tasks/index.js +0 -17
  227. package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -13
  228. package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.js +0 -34
  229. package/dist/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -13
  230. package/dist/serialization/resources/tasks/resources/v3/types/TaskActions.js +0 -33
  231. package/dist/serialization/resources/tasks/resources/v3/types/index.d.ts +0 -3
  232. package/dist/serialization/resources/tasks/resources/v3/types/index.js +0 -19
  233. package/serialization/resources/billingNotes/client/requests/StandaloneBillingNoteCreate.d.ts +0 -12
  234. package/serialization/resources/billingNotes/types/BillingNote.d.ts +0 -16
  235. package/serialization/resources/billingNotes/types/BillingNoteBase.d.ts +0 -12
  236. package/serialization/resources/billingNotes/types/BillingNoteId.d.ts +0 -10
  237. package/serialization/resources/commons/types/TaskId.d.ts +0 -10
  238. package/serialization/resources/commons/types/TaskId.js +0 -37
  239. package/serialization/resources/payers/types/Payer.d.ts +0 -14
  240. package/serialization/resources/payers/types/PayerPage.d.ts +0 -12
  241. package/serialization/resources/payers/types/PayerUuid.d.ts +0 -10
  242. package/serialization/resources/payers/types/PayerUuid.js +0 -37
  243. package/serialization/resources/tasks/index.d.ts +0 -1
  244. package/serialization/resources/tasks/index.js +0 -17
  245. package/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +0 -13
  246. package/serialization/resources/tasks/resources/v3/types/TaskAction.js +0 -34
  247. package/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +0 -13
  248. package/serialization/resources/tasks/resources/v3/types/TaskActions.js +0 -33
  249. package/serialization/resources/tasks/resources/v3/types/index.d.ts +0 -3
  250. package/serialization/resources/tasks/resources/v3/types/index.js +0 -19
  251. /package/api/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +0 -0
  252. /package/api/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
  253. /package/api/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
  254. /package/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/index.d.ts +0 -0
  255. /package/api/resources/{tasks/resources/v3 → billingNotes/resources/v2}/index.js +0 -0
  256. /package/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +0 -0
  257. /package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.d.ts +0 -0
  258. /package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +0 -0
  259. /package/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +0 -0
  260. /package/api/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
  261. /package/api/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
  262. /package/api/resources/{tasks → payers}/resources/index.d.ts +0 -0
  263. /package/api/resources/{tasks → payers}/resources/index.js +0 -0
  264. /package/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.js +0 -0
  265. /package/api/resources/payers/{client → resources/v3/client}/requests/index.d.ts +0 -0
  266. /package/api/resources/payers/{client → resources/v3/client}/requests/index.js +0 -0
  267. /package/{dist/api/resources/tasks → api/resources/payers}/resources/v3/index.d.ts +0 -0
  268. /package/{dist/api/resources/tasks → api/resources/payers}/resources/v3/index.js +0 -0
  269. /package/api/resources/payers/{types → resources/v3/types}/Payer.js +0 -0
  270. /package/api/resources/payers/{types → resources/v3/types}/PayerPage.js +0 -0
  271. /package/api/resources/payers/{types → resources/v3/types}/PayerUuid.js +0 -0
  272. /package/api/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
  273. /package/api/resources/payers/{types → resources/v3/types}/index.js +0 -0
  274. /package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/StandaloneBillingNoteCreate.js +0 -0
  275. /package/dist/api/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
  276. /package/{api/resources/tasks/client → dist/api/resources/billingNotes/resources/v2/client/requests}/index.js +0 -0
  277. /package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNote.js +0 -0
  278. /package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.d.ts +0 -0
  279. /package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteBase.js +0 -0
  280. /package/dist/api/resources/billingNotes/{types → resources/v2/types}/BillingNoteId.js +0 -0
  281. /package/dist/api/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
  282. /package/dist/api/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
  283. /package/dist/api/resources/{tasks → payers}/resources/index.d.ts +0 -0
  284. /package/dist/api/resources/{tasks → payers}/resources/index.js +0 -0
  285. /package/dist/api/resources/payers/{client → resources/v3/client}/requests/GetAllPayersRequest.js +0 -0
  286. /package/dist/api/resources/payers/{client → resources/v3/client}/requests/index.d.ts +0 -0
  287. /package/dist/api/resources/{billingNotes → payers/resources/v3}/client/requests/index.js +0 -0
  288. /package/dist/api/resources/payers/{types → resources/v3/types}/Payer.js +0 -0
  289. /package/dist/api/resources/payers/{types → resources/v3/types}/PayerPage.js +0 -0
  290. /package/dist/api/resources/payers/{types → resources/v3/types}/PayerUuid.js +0 -0
  291. /package/dist/api/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
  292. /package/dist/api/resources/payers/{types → resources/v3/types}/index.js +0 -0
  293. /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/index.d.ts +0 -0
  294. /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/index.js +0 -0
  295. /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
  296. /package/dist/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
  297. /package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
  298. /package/dist/serialization/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
  299. /package/dist/serialization/resources/{tasks → payers}/resources/index.d.ts +0 -0
  300. /package/dist/serialization/resources/{tasks → payers}/resources/index.js +0 -0
  301. /package/dist/serialization/resources/{tasks → payers}/resources/v3/index.d.ts +0 -0
  302. /package/dist/serialization/resources/{tasks → payers}/resources/v3/index.js +0 -0
  303. /package/dist/serialization/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
  304. /package/dist/serialization/resources/payers/{types → resources/v3/types}/index.js +0 -0
  305. /package/serialization/resources/billingNotes/{client → resources/v2/client}/index.d.ts +0 -0
  306. /package/serialization/resources/billingNotes/{client → resources/v2/client}/index.js +0 -0
  307. /package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.d.ts +0 -0
  308. /package/serialization/resources/billingNotes/{client → resources/v2/client}/requests/index.js +0 -0
  309. /package/serialization/resources/billingNotes/{types → resources/v2/types}/index.d.ts +0 -0
  310. /package/serialization/resources/billingNotes/{types → resources/v2/types}/index.js +0 -0
  311. /package/serialization/resources/{tasks → payers}/resources/index.d.ts +0 -0
  312. /package/serialization/resources/{tasks → payers}/resources/index.js +0 -0
  313. /package/serialization/resources/{tasks → payers}/resources/v3/index.d.ts +0 -0
  314. /package/serialization/resources/{tasks → payers}/resources/v3/index.js +0 -0
  315. /package/serialization/resources/payers/{types → resources/v3/types}/index.d.ts +0 -0
  316. /package/serialization/resources/payers/{types → resources/v3/types}/index.js +0 -0
package/Client.d.ts CHANGED
@@ -4,14 +4,13 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Auth } from "./api/resources/auth/client/Client";
7
+ import { BillingNotes } from "./api/resources/billingNotes/client/Client";
7
8
  import { Eligibility } from "./api/resources/eligibility/client/Client";
8
9
  import { Encounters } from "./api/resources/encounters/client/Client";
9
10
  import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/client/Client";
10
11
  import { Exports } from "./api/resources/exports/client/Client";
11
12
  import { Guarantor } from "./api/resources/guarantor/client/Client";
12
13
  import { OrganizationProviders } from "./api/resources/organizationProviders/client/Client";
13
- import { Tasks } from "./api/resources/tasks/client/Client";
14
- import { BillingNotes } from "./api/resources/billingNotes/client/Client";
15
14
  import { Payers } from "./api/resources/payers/client/Client";
16
15
  export declare namespace CandidApiClient {
17
16
  interface Options {
@@ -24,6 +23,8 @@ export declare class CandidApiClient {
24
23
  constructor(options: CandidApiClient.Options);
25
24
  protected _auth: Auth | undefined;
26
25
  get auth(): Auth;
26
+ protected _billingNotes: BillingNotes | undefined;
27
+ get billingNotes(): BillingNotes;
27
28
  protected _eligibility: Eligibility | undefined;
28
29
  get eligibility(): Eligibility;
29
30
  protected _encounters: Encounters | undefined;
@@ -36,10 +37,6 @@ export declare class CandidApiClient {
36
37
  get guarantor(): Guarantor;
37
38
  protected _organizationProviders: OrganizationProviders | undefined;
38
39
  get organizationProviders(): OrganizationProviders;
39
- protected _tasks: Tasks | undefined;
40
- get tasks(): Tasks;
41
- protected _billingNotes: BillingNotes | undefined;
42
- get billingNotes(): BillingNotes;
43
40
  protected _payers: Payers | undefined;
44
41
  get payers(): Payers;
45
42
  }
package/Client.js CHANGED
@@ -5,15 +5,14 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CandidApiClient = void 0;
7
7
  const Client_1 = require("./api/resources/auth/client/Client");
8
- const Client_2 = require("./api/resources/eligibility/client/Client");
9
- const Client_3 = require("./api/resources/encounters/client/Client");
10
- const Client_4 = require("./api/resources/expectedNetworkStatus/client/Client");
11
- const Client_5 = require("./api/resources/exports/client/Client");
12
- const Client_6 = require("./api/resources/guarantor/client/Client");
13
- const Client_7 = require("./api/resources/organizationProviders/client/Client");
14
- const Client_8 = require("./api/resources/tasks/client/Client");
15
- const Client_9 = require("./api/resources/billingNotes/client/Client");
16
- const Client_10 = require("./api/resources/payers/client/Client");
8
+ const Client_2 = require("./api/resources/billingNotes/client/Client");
9
+ const Client_3 = require("./api/resources/eligibility/client/Client");
10
+ const Client_4 = require("./api/resources/encounters/client/Client");
11
+ const Client_5 = require("./api/resources/expectedNetworkStatus/client/Client");
12
+ const Client_6 = require("./api/resources/exports/client/Client");
13
+ const Client_7 = require("./api/resources/guarantor/client/Client");
14
+ const Client_8 = require("./api/resources/organizationProviders/client/Client");
15
+ const Client_9 = require("./api/resources/payers/client/Client");
17
16
  class CandidApiClient {
18
17
  options;
19
18
  constructor(options) {
@@ -23,41 +22,37 @@ class CandidApiClient {
23
22
  get auth() {
24
23
  return (this._auth ??= new Client_1.Auth(this.options));
25
24
  }
25
+ _billingNotes;
26
+ get billingNotes() {
27
+ return (this._billingNotes ??= new Client_2.BillingNotes(this.options));
28
+ }
26
29
  _eligibility;
27
30
  get eligibility() {
28
- return (this._eligibility ??= new Client_2.Eligibility(this.options));
31
+ return (this._eligibility ??= new Client_3.Eligibility(this.options));
29
32
  }
30
33
  _encounters;
31
34
  get encounters() {
32
- return (this._encounters ??= new Client_3.Encounters(this.options));
35
+ return (this._encounters ??= new Client_4.Encounters(this.options));
33
36
  }
34
37
  _expectedNetworkStatus;
35
38
  get expectedNetworkStatus() {
36
- return (this._expectedNetworkStatus ??= new Client_4.ExpectedNetworkStatus(this.options));
39
+ return (this._expectedNetworkStatus ??= new Client_5.ExpectedNetworkStatus(this.options));
37
40
  }
38
41
  _exports;
39
42
  get exports() {
40
- return (this._exports ??= new Client_5.Exports(this.options));
43
+ return (this._exports ??= new Client_6.Exports(this.options));
41
44
  }
42
45
  _guarantor;
43
46
  get guarantor() {
44
- return (this._guarantor ??= new Client_6.Guarantor(this.options));
47
+ return (this._guarantor ??= new Client_7.Guarantor(this.options));
45
48
  }
46
49
  _organizationProviders;
47
50
  get organizationProviders() {
48
- return (this._organizationProviders ??= new Client_7.OrganizationProviders(this.options));
49
- }
50
- _tasks;
51
- get tasks() {
52
- return (this._tasks ??= new Client_8.Tasks(this.options));
53
- }
54
- _billingNotes;
55
- get billingNotes() {
56
- return (this._billingNotes ??= new Client_9.BillingNotes(this.options));
51
+ return (this._organizationProviders ??= new Client_8.OrganizationProviders(this.options));
57
52
  }
58
53
  _payers;
59
54
  get payers() {
60
- return (this._payers ??= new Client_10.Payers(this.options));
55
+ return (this._payers ??= new Client_9.Payers(this.options));
61
56
  }
62
57
  }
63
58
  exports.CandidApiClient = CandidApiClient;
@@ -13,6 +13,20 @@ export declare namespace V2 {
13
13
  export declare class V2 {
14
14
  protected readonly options: V2.Options;
15
15
  constructor(options: V2.Options);
16
+ /**
17
+ * Authenticating with the Candid Health API.
18
+ *
19
+ * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
20
+ * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
21
+ *
22
+ * The bearer token should be provided in the `Authorization` header for all subsequent API calls.
23
+ *
24
+ * **Warning:**
25
+ *
26
+ * The bearer token expires 5 hours after it has been created. After it has expired, the client will receive an "HTTP 401
27
+ * Unauthorized" error, at which point the client should generate a new token. It is important that tokens be reused between requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an "HTTP 429 Too Many Requests" error.
28
+ *
29
+ */
16
30
  getToken(request: CandidApi.auth.v2.AuthGetTokenRequest): Promise<core.APIResponse<CandidApi.auth.v2.AuthGetTokenResponse, CandidApi.auth.v2.getToken.Error>>;
17
31
  protected _getAuthorizationHeader(): Promise<string | undefined>;
18
32
  }
@@ -40,6 +40,20 @@ class V2 {
40
40
  constructor(options) {
41
41
  this.options = options;
42
42
  }
43
+ /**
44
+ * Authenticating with the Candid Health API.
45
+ *
46
+ * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
47
+ * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
48
+ *
49
+ * The bearer token should be provided in the `Authorization` header for all subsequent API calls.
50
+ *
51
+ * **Warning:**
52
+ *
53
+ * The bearer token expires 5 hours after it has been created. After it has expired, the client will receive an "HTTP 401
54
+ * Unauthorized" error, at which point the client should generate a new token. It is important that tokens be reused between requests; if the client attempts to generate a token too often, it will be rate-limited and will receive an "HTTP 429 Too Many Requests" error.
55
+ *
56
+ */
43
57
  async getToken(request) {
44
58
  const _response = await core.fetcher({
45
59
  url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/auth/v2/token"),
@@ -48,7 +62,7 @@ class V2 {
48
62
  Authorization: await this._getAuthorizationHeader(),
49
63
  "X-Fern-Language": "JavaScript",
50
64
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.6.0",
65
+ "X-Fern-SDK-Version": "0.6.1",
52
66
  },
53
67
  contentType: "application/json",
54
68
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import * as CandidApi from "../../..";
6
+ import { V2 } from "../resources/v2/client/Client";
7
7
  export declare namespace BillingNotes {
8
8
  interface Options {
9
9
  environment?: environments.CandidApiEnvironment | string;
@@ -13,6 +13,6 @@ export declare namespace BillingNotes {
13
13
  export declare class BillingNotes {
14
14
  protected readonly options: BillingNotes.Options;
15
15
  constructor(options: BillingNotes.Options);
16
- create(request: CandidApi.StandaloneBillingNoteCreate): Promise<core.APIResponse<CandidApi.BillingNote, CandidApi.billingNotes.create.Error>>;
17
- protected _getAuthorizationHeader(): Promise<string | undefined>;
16
+ protected _v2: V2 | undefined;
17
+ get v2(): V2;
18
18
  }
@@ -2,82 +2,17 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
5
  Object.defineProperty(exports, "__esModule", { value: true });
32
6
  exports.BillingNotes = void 0;
33
- const environments = __importStar(require("../../../../environments"));
34
- const core = __importStar(require("../../../../core"));
35
- const CandidApi = __importStar(require("../../.."));
36
- const serializers = __importStar(require("../../../../serialization"));
37
- const url_join_1 = __importDefault(require("url-join"));
7
+ const Client_1 = require("../resources/v2/client/Client");
38
8
  class BillingNotes {
39
9
  options;
40
10
  constructor(options) {
41
11
  this.options = options;
42
12
  }
43
- async create(request) {
44
- const _response = await core.fetcher({
45
- url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/billing_notes/v2"),
46
- method: "POST",
47
- headers: {
48
- Authorization: await this._getAuthorizationHeader(),
49
- "X-Fern-Language": "JavaScript",
50
- "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.6.0",
52
- },
53
- contentType: "application/json",
54
- body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
55
- unrecognizedObjectKeys: "strip",
56
- }),
57
- timeoutMs: 60000,
58
- });
59
- if (_response.ok) {
60
- return {
61
- ok: true,
62
- body: await serializers.BillingNote.parseOrThrow(_response.body, {
63
- unrecognizedObjectKeys: "passthrough",
64
- allowUnrecognizedUnionMembers: true,
65
- allowUnrecognizedEnumValues: true,
66
- breadcrumbsPrefix: ["response"],
67
- }),
68
- };
69
- }
70
- return {
71
- ok: false,
72
- error: CandidApi.billingNotes.create.Error._unknown(_response.error),
73
- };
74
- }
75
- async _getAuthorizationHeader() {
76
- const bearer = await core.Supplier.get(this.options.token);
77
- if (bearer != null) {
78
- return `Bearer ${bearer}`;
79
- }
80
- return undefined;
13
+ _v2;
14
+ get v2() {
15
+ return (this._v2 ??= new Client_1.V2(this.options));
81
16
  }
82
17
  }
83
18
  exports.BillingNotes = BillingNotes;
@@ -1,2 +1 @@
1
- export * from "./requests";
2
- export * as create from "./create";
1
+ export {};
@@ -1,31 +1,2 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
2
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.create = void 0;
30
- __exportStar(require("./requests"), exports);
31
- exports.create = __importStar(require("./create"));
@@ -1,2 +1,2 @@
1
- export * from "./types";
1
+ export * from "./resources";
2
2
  export * from "./client";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
17
+ __exportStar(require("./resources"), exports);
18
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1 @@
1
+ export * as v2 from "./v2";
@@ -0,0 +1,27 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v2 = void 0;
27
+ exports.v2 = __importStar(require("./v2"));
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as CandidApi from "../../../../..";
7
+ export declare namespace V2 {
8
+ interface Options {
9
+ environment?: environments.CandidApiEnvironment | string;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ }
13
+ export declare class V2 {
14
+ protected readonly options: V2.Options;
15
+ constructor(options: V2.Options);
16
+ create(request: CandidApi.billingNotes.v2.StandaloneBillingNoteCreate): Promise<core.APIResponse<CandidApi.billingNotes.v2.BillingNote, CandidApi.billingNotes.v2.create.Error>>;
17
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
18
+ }
@@ -29,34 +29,37 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.V3 = void 0;
32
+ exports.V2 = void 0;
33
33
  const environments = __importStar(require("../../../../../../environments"));
34
34
  const core = __importStar(require("../../../../../../core"));
35
35
  const CandidApi = __importStar(require("../../../../.."));
36
36
  const serializers = __importStar(require("../../../../../../serialization"));
37
37
  const url_join_1 = __importDefault(require("url-join"));
38
- class V3 {
38
+ class V2 {
39
39
  options;
40
40
  constructor(options) {
41
41
  this.options = options;
42
42
  }
43
- async getActions(taskId) {
43
+ async create(request) {
44
44
  const _response = await core.fetcher({
45
- url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/tasks/v3/${await serializers.TaskId.jsonOrThrow(taskId)}/actions`),
46
- method: "GET",
45
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/billing_notes/v2"),
46
+ method: "POST",
47
47
  headers: {
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.6.0",
51
+ "X-Fern-SDK-Version": "0.6.1",
52
52
  },
53
53
  contentType: "application/json",
54
+ body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
55
+ unrecognizedObjectKeys: "strip",
56
+ }),
54
57
  timeoutMs: 60000,
55
58
  });
56
59
  if (_response.ok) {
57
60
  return {
58
61
  ok: true,
59
- body: await serializers.tasks.v3.TaskActions.parseOrThrow(_response.body, {
62
+ body: await serializers.billingNotes.v2.BillingNote.parseOrThrow(_response.body, {
60
63
  unrecognizedObjectKeys: "passthrough",
61
64
  allowUnrecognizedUnionMembers: true,
62
65
  allowUnrecognizedEnumValues: true,
@@ -66,7 +69,7 @@ class V3 {
66
69
  }
67
70
  return {
68
71
  ok: false,
69
- error: CandidApi.tasks.v3.getActions.Error._unknown(_response.error),
72
+ error: CandidApi.billingNotes.v2.create.Error._unknown(_response.error),
70
73
  };
71
74
  }
72
75
  async _getAuthorizationHeader() {
@@ -77,4 +80,4 @@ class V3 {
77
80
  return undefined;
78
81
  }
79
82
  }
80
- exports.V3 = V3;
83
+ exports.V2 = V2;
@@ -1,22 +1,22 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as CandidApi from "../../..";
5
- import * as core from "../../../../core";
6
- export declare type Error = CandidApi.payers.get.Error._Unknown;
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.billingNotes.v2.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface _Unknown extends _Utils {
9
9
  errorName: void;
10
10
  content: core.Fetcher.Error;
11
11
  }
12
12
  interface _Utils {
13
- _visit: <_Result>(visitor: CandidApi.payers.get.Error._Visitor<_Result>) => _Result;
13
+ _visit: <_Result>(visitor: CandidApi.billingNotes.v2.create.Error._Visitor<_Result>) => _Result;
14
14
  }
15
15
  interface _Visitor<_Result> {
16
16
  _other: (value: core.Fetcher.Error) => _Result;
17
17
  }
18
18
  }
19
19
  export declare const Error: {
20
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payers.get.Error._Unknown;
21
- readonly _visit: <_Result>(value: CandidApi.payers.get.Error, visitor: CandidApi.payers.get.Error._Visitor<_Result>) => _Result;
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.billingNotes.v2.create.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.billingNotes.v2.create.Error, visitor: CandidApi.billingNotes.v2.create.Error._Visitor<_Result>) => _Result;
22
22
  };
@@ -27,14 +27,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
- const CandidApi = __importStar(require("../../.."));
30
+ const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
32
  _unknown: (fetcherError) => {
33
33
  return {
34
34
  errorName: undefined,
35
35
  content: fetcherError,
36
36
  _visit: function (visitor) {
37
- return CandidApi.billingNotes.create.Error._visit(this, visitor);
37
+ return CandidApi.billingNotes.v2.create.Error._visit(this, visitor);
38
38
  },
39
39
  };
40
40
  },
@@ -0,0 +1,2 @@
1
+ export * from "./requests";
2
+ export * as create from "./create";
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
18
21
  var __importStar = (this && this.__importStar) || function (mod) {
19
22
  if (mod && mod.__esModule) return mod;
20
23
  var result = {};
@@ -23,5 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
26
  return result;
24
27
  };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getActions = void 0;
27
- exports.getActions = __importStar(require("./getActions"));
29
+ exports.create = void 0;
30
+ __exportStar(require("./requests"), exports);
31
+ exports.create = __importStar(require("./create"));
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../..";
5
+ export interface StandaloneBillingNoteCreate extends CandidApi.billingNotes.v2.BillingNoteBase {
6
+ encounterId: CandidApi.EncounterId;
7
+ }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as CandidApi from "../../..";
5
- export interface BillingNote extends CandidApi.BillingNoteBase {
6
- billingNoteId: CandidApi.BillingNoteId;
4
+ import * as CandidApi from "../../../../..";
5
+ export interface BillingNote extends CandidApi.billingNotes.v2.BillingNoteBase {
6
+ billingNoteId: CandidApi.billingNotes.v2.BillingNoteId;
7
7
  encounterId: CandidApi.EncounterId;
8
8
  createdAt: Date;
9
9
  authorAuth0Id?: string;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as CandidApi from "../../..";
4
+ import * as CandidApi from "../../../../..";
5
5
  export declare type BillingNoteId = string & {
6
- BillingNoteId: void;
6
+ billingNotes_v2_BillingNoteId: void;
7
7
  };
8
- export declare function BillingNoteId(value: string): CandidApi.BillingNoteId;
8
+ export declare function BillingNoteId(value: string): CandidApi.billingNotes.v2.BillingNoteId;
@@ -6,7 +6,6 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
- export * from "./TaskId";
10
9
  export * from "./LinkUrl";
11
10
  export * from "./PageToken";
12
11
  export * from "./Date_";
@@ -22,7 +22,6 @@ __exportStar(require("./PatientExternalId"), exports);
22
22
  __exportStar(require("./EncounterExternalId"), exports);
23
23
  __exportStar(require("./Npi"), exports);
24
24
  __exportStar(require("./WorkQueueId"), exports);
25
- __exportStar(require("./TaskId"), exports);
26
25
  __exportStar(require("./LinkUrl"), exports);
27
26
  __exportStar(require("./PageToken"), exports);
28
27
  __exportStar(require("./Date_"), exports);
@@ -16,8 +16,12 @@ export declare class V2 {
16
16
  /**
17
17
  * This API is a wrapper around Change Healthcare's eligibility API. Below are some helpful documentation links:
18
18
  *
19
- * - [Candid Health Support article](https://support.joincandidhealth.com/hc/en-us/articles/7937415468820)
20
- * - [Change Healthcare - API Reference: Check Eligibility](https://developers.changehealthcare.com/eligibilityandclaims/reference/medicaleligibility)
19
+ * - [Change Healthcare - Guides: Contents of the Eligibility Request Body](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-request-body)
20
+ * - [Change Healthcare - Guides: Use "Bare Minimum" Eligibility Requests](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-bare-minimum-eligibility-requests)
21
+ * - [Change Healthcare - Guides: Contents of the Eligibility Response](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-response)
22
+ * - [Change Healthcare - Guides: Eligibility JSON-to-EDI API Contents](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-json-to-edi-api-contents)
23
+ * - [Change Healthcare - Guides: Eligibility Error Messages](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-error-messages)
24
+ * - [Change Healthcare - Guides: FAQ](https://developers.changehealthcare.com/eligibilityandclaims/docs/frequently-asked-questions)
21
25
  * - [Change Healthcare - Guides: Eligibility FAQs](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-api-requests)
22
26
  * - [Change Healthcare - Guides: Sandbox API Values and Test Responses](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-sandbox-api-values-and-test-responses)
23
27
  * - [Change Healthcare - Guides: Sandbox Predefined Fields and Values](https://developers.changehealthcare.com/eligibilityandclaims/docs/sandbox-predefined-fields-and-values)
@@ -43,8 +43,12 @@ class V2 {
43
43
  /**
44
44
  * This API is a wrapper around Change Healthcare's eligibility API. Below are some helpful documentation links:
45
45
  *
46
- * - [Candid Health Support article](https://support.joincandidhealth.com/hc/en-us/articles/7937415468820)
47
- * - [Change Healthcare - API Reference: Check Eligibility](https://developers.changehealthcare.com/eligibilityandclaims/reference/medicaleligibility)
46
+ * - [Change Healthcare - Guides: Contents of the Eligibility Request Body](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-request-body)
47
+ * - [Change Healthcare - Guides: Use "Bare Minimum" Eligibility Requests](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-bare-minimum-eligibility-requests)
48
+ * - [Change Healthcare - Guides: Contents of the Eligibility Response](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-response)
49
+ * - [Change Healthcare - Guides: Eligibility JSON-to-EDI API Contents](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-json-to-edi-api-contents)
50
+ * - [Change Healthcare - Guides: Eligibility Error Messages](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-error-messages)
51
+ * - [Change Healthcare - Guides: FAQ](https://developers.changehealthcare.com/eligibilityandclaims/docs/frequently-asked-questions)
48
52
  * - [Change Healthcare - Guides: Eligibility FAQs](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-api-requests)
49
53
  * - [Change Healthcare - Guides: Sandbox API Values and Test Responses](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-sandbox-api-values-and-test-responses)
50
54
  * - [Change Healthcare - Guides: Sandbox Predefined Fields and Values](https://developers.changehealthcare.com/eligibilityandclaims/docs/sandbox-predefined-fields-and-values)
@@ -61,7 +65,7 @@ class V2 {
61
65
  Authorization: await this._getAuthorizationHeader(),
62
66
  "X-Fern-Language": "JavaScript",
63
67
  "X-Fern-SDK-Name": "candidhealth",
64
- "X-Fern-SDK-Version": "0.6.0",
68
+ "X-Fern-SDK-Version": "0.6.1",
65
69
  },
66
70
  contentType: "application/json",
67
71
  body: request,