candidhealth 0.1.1 → 0.2.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 (459) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/client/Client.js +1 -1
  5. package/api/resources/commons/types/ContactInfo.d.ts +10 -0
  6. package/api/resources/commons/types/Email.d.ts +8 -0
  7. package/api/resources/commons/types/{Auth0Id.js → Email.js} +3 -3
  8. package/api/resources/commons/types/PhoneNumber.d.ts +8 -0
  9. package/api/resources/commons/types/PhoneNumberType.d.ts +9 -0
  10. package/api/resources/commons/types/PhoneNumberType.js +11 -0
  11. package/api/resources/commons/types/index.d.ts +4 -1
  12. package/api/resources/commons/types/index.js +4 -1
  13. package/api/resources/encounterProviders/resources/v2/types/EncounterProviderBase.d.ts +3 -3
  14. package/api/resources/encounters/resources/v4/client/Client.js +36 -8
  15. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  16. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  17. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
  18. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +7 -0
  19. package/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
  20. package/api/resources/encounters/resources/v4/client/update.js +11 -0
  21. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  22. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
  23. package/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
  24. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  25. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  26. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  27. package/api/resources/guarantor/client/Client.d.ts +18 -0
  28. package/api/resources/guarantor/client/Client.js +18 -0
  29. package/api/resources/guarantor/client/index.d.ts +1 -0
  30. package/api/resources/guarantor/client/index.js +2 -0
  31. package/api/resources/guarantor/index.d.ts +2 -0
  32. package/api/resources/guarantor/index.js +18 -0
  33. package/api/resources/guarantor/resources/index.d.ts +1 -0
  34. package/api/resources/guarantor/resources/index.js +27 -0
  35. package/api/resources/guarantor/resources/v1/client/Client.d.ts +20 -0
  36. package/api/resources/guarantor/resources/v1/client/Client.js +144 -0
  37. package/api/resources/guarantor/resources/v1/client/create.d.ts +22 -0
  38. package/api/resources/guarantor/resources/v1/client/create.js +47 -0
  39. package/api/resources/guarantor/resources/v1/client/get.d.ts +22 -0
  40. package/api/resources/guarantor/resources/v1/client/get.js +47 -0
  41. package/api/resources/guarantor/resources/v1/client/index.d.ts +4 -0
  42. package/api/resources/guarantor/resources/v1/client/index.js +33 -0
  43. package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +12 -0
  44. package/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  45. package/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
  46. package/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
  47. package/api/resources/guarantor/resources/v1/client/update.js +47 -0
  48. package/api/resources/guarantor/resources/v1/index.d.ts +2 -0
  49. package/api/resources/guarantor/resources/v1/index.js +18 -0
  50. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
  51. package/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
  52. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
  53. package/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
  54. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  55. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
  56. package/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
  57. package/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
  58. package/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  59. package/api/resources/guarantor/resources/v1/types/index.js +20 -0
  60. package/api/resources/index.d.ts +2 -2
  61. package/api/resources/index.js +3 -3
  62. package/api/resources/individual/types/Patient.d.ts +1 -1
  63. package/api/resources/individual/types/PatientBase.d.ts +17 -0
  64. package/api/resources/individual/types/PatientBase.js +5 -0
  65. package/api/resources/individual/types/PatientCreate.d.ts +1 -11
  66. package/api/resources/individual/types/index.d.ts +1 -0
  67. package/api/resources/individual/types/index.js +1 -0
  68. package/api/resources/patientPayments/resources/index.d.ts +1 -1
  69. package/api/resources/patientPayments/resources/index.js +2 -2
  70. package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
  71. package/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
  72. package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
  73. package/api/resources/payers/client/Client.d.ts +1 -1
  74. package/api/resources/payers/client/Client.js +4 -4
  75. package/api/resources/payers/types/Payer.d.ts +2 -1
  76. package/api/resources/payers/types/PayerUuid.d.ts +8 -0
  77. package/api/resources/payers/types/PayerUuid.js +10 -0
  78. package/api/resources/payers/types/index.d.ts +1 -0
  79. package/api/resources/payers/types/index.js +1 -0
  80. package/api/resources/users/index.d.ts +1 -1
  81. package/api/resources/users/index.js +1 -1
  82. package/api/resources/users/resources/index.d.ts +1 -0
  83. package/api/resources/users/resources/index.js +27 -0
  84. package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
  85. package/api/resources/users/resources/v2/types/AuthZeroMetadata.js +5 -0
  86. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
  87. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +5 -0
  88. package/{dist/api/resources/users/types/User.d.ts → api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
  89. package/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
  90. package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
  91. package/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
  92. package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
  93. package/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
  94. package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
  95. package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
  96. package/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
  97. package/{dist/api/resources/commons/types/Auth0Id.js → api/resources/users/resources/v2/types/UserId.js} +3 -3
  98. package/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
  99. package/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
  100. package/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
  101. package/api/resources/users/resources/v2/types/UserV2.js +5 -0
  102. package/api/resources/users/resources/v2/types/index.d.ts +9 -0
  103. package/api/resources/users/resources/v2/types/index.js +25 -0
  104. package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  105. package/dist/Client.d.ts +3 -0
  106. package/dist/Client.js +11 -6
  107. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  108. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  109. package/dist/api/resources/commons/types/ContactInfo.d.ts +10 -0
  110. package/dist/api/resources/commons/types/ContactInfo.js +5 -0
  111. package/dist/api/resources/commons/types/Email.d.ts +8 -0
  112. package/dist/api/resources/commons/types/Email.js +10 -0
  113. package/dist/api/resources/commons/types/PhoneNumber.d.ts +8 -0
  114. package/dist/api/resources/commons/types/PhoneNumber.js +5 -0
  115. package/dist/api/resources/commons/types/PhoneNumberType.d.ts +9 -0
  116. package/dist/api/resources/commons/types/PhoneNumberType.js +11 -0
  117. package/dist/api/resources/commons/types/index.d.ts +4 -1
  118. package/dist/api/resources/commons/types/index.js +4 -1
  119. package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProviderBase.d.ts +3 -3
  120. package/dist/api/resources/encounters/resources/v4/client/Client.js +36 -8
  121. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  122. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  123. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
  124. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +7 -0
  125. package/dist/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
  126. package/dist/api/resources/encounters/resources/v4/client/update.js +11 -0
  127. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  128. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
  129. package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
  130. package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +5 -0
  131. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  132. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  133. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  134. package/dist/api/resources/guarantor/client/Client.d.ts +18 -0
  135. package/dist/api/resources/guarantor/client/Client.js +18 -0
  136. package/dist/api/resources/guarantor/client/index.d.ts +1 -0
  137. package/dist/api/resources/guarantor/client/index.js +2 -0
  138. package/dist/api/resources/guarantor/index.d.ts +2 -0
  139. package/dist/api/resources/guarantor/index.js +18 -0
  140. package/dist/api/resources/guarantor/resources/index.d.ts +1 -0
  141. package/dist/api/resources/guarantor/resources/index.js +27 -0
  142. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +20 -0
  143. package/dist/api/resources/guarantor/resources/v1/client/Client.js +144 -0
  144. package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +22 -0
  145. package/dist/api/resources/guarantor/resources/v1/client/create.js +47 -0
  146. package/dist/api/resources/guarantor/resources/v1/client/get.d.ts +22 -0
  147. package/dist/api/resources/guarantor/resources/v1/client/get.js +47 -0
  148. package/dist/api/resources/guarantor/resources/v1/client/index.d.ts +4 -0
  149. package/dist/api/resources/guarantor/resources/v1/client/index.js +33 -0
  150. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +12 -0
  151. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +5 -0
  152. package/dist/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  153. package/dist/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
  154. package/dist/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
  155. package/dist/api/resources/guarantor/resources/v1/client/update.js +47 -0
  156. package/dist/api/resources/guarantor/resources/v1/index.d.ts +2 -0
  157. package/dist/api/resources/guarantor/resources/v1/index.js +18 -0
  158. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
  159. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
  160. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
  161. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
  162. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  163. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
  164. package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
  165. package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
  166. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  167. package/dist/api/resources/guarantor/resources/v1/types/index.js +20 -0
  168. package/dist/api/resources/index.d.ts +2 -2
  169. package/dist/api/resources/index.js +3 -3
  170. package/dist/api/resources/individual/types/Patient.d.ts +1 -1
  171. package/dist/api/resources/individual/types/PatientBase.d.ts +17 -0
  172. package/dist/api/resources/individual/types/PatientBase.js +5 -0
  173. package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -11
  174. package/dist/api/resources/individual/types/index.d.ts +1 -0
  175. package/dist/api/resources/individual/types/index.js +1 -0
  176. package/dist/api/resources/patientPayments/resources/index.d.ts +1 -1
  177. package/dist/api/resources/patientPayments/resources/index.js +2 -2
  178. package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
  179. package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
  180. package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
  181. package/dist/api/resources/payers/client/Client.d.ts +1 -1
  182. package/dist/api/resources/payers/client/Client.js +4 -4
  183. package/dist/api/resources/payers/types/Payer.d.ts +2 -1
  184. package/dist/api/resources/payers/types/PayerUuid.d.ts +8 -0
  185. package/dist/api/resources/payers/types/PayerUuid.js +10 -0
  186. package/dist/api/resources/payers/types/index.d.ts +1 -0
  187. package/dist/api/resources/payers/types/index.js +1 -0
  188. package/dist/api/resources/users/index.d.ts +1 -1
  189. package/dist/api/resources/users/index.js +1 -1
  190. package/dist/api/resources/users/resources/index.d.ts +1 -0
  191. package/dist/api/resources/users/resources/index.js +27 -0
  192. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
  193. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +5 -0
  194. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
  195. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +5 -0
  196. package/{api/resources/users/types/User.d.ts → dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
  197. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
  198. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
  199. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
  200. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
  201. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
  202. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
  203. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
  204. package/dist/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
  205. package/dist/api/resources/users/resources/v2/types/UserId.js +10 -0
  206. package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
  207. package/dist/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
  208. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
  209. package/dist/api/resources/users/resources/v2/types/UserV2.js +5 -0
  210. package/dist/api/resources/users/resources/v2/types/index.d.ts +9 -0
  211. package/dist/api/resources/users/resources/v2/types/index.js +25 -0
  212. package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  213. package/dist/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
  214. package/dist/serialization/resources/commons/types/ContactInfo.js +36 -0
  215. package/dist/serialization/resources/commons/types/{Auth0Id.d.ts → Email.d.ts} +2 -2
  216. package/dist/serialization/resources/commons/types/{Auth0Id.js → Email.js} +3 -3
  217. package/dist/serialization/resources/{users/types/User.d.ts → commons/types/PhoneNumber.d.ts} +4 -5
  218. package/dist/serialization/resources/commons/types/PhoneNumber.js +34 -0
  219. package/dist/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
  220. package/dist/serialization/resources/commons/types/PhoneNumberType.js +31 -0
  221. package/dist/serialization/resources/commons/types/index.d.ts +4 -1
  222. package/dist/serialization/resources/commons/types/index.js +4 -1
  223. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
  224. package/dist/serialization/resources/encounters/resources/v4/client/create.js +46 -0
  225. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
  226. package/dist/serialization/resources/encounters/resources/v4/client/index.js +3 -1
  227. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  228. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
  229. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  230. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  231. package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +14 -0
  232. package/dist/serialization/resources/encounters/resources/v4/client/update.js +46 -0
  233. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  234. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
  235. package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
  236. package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -0
  237. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  238. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  239. package/dist/serialization/resources/guarantor/index.d.ts +1 -0
  240. package/dist/serialization/resources/guarantor/index.js +17 -0
  241. package/dist/serialization/resources/guarantor/resources/index.d.ts +1 -0
  242. package/dist/serialization/resources/guarantor/resources/index.js +27 -0
  243. package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  244. package/{api/resources/users/types → dist/serialization/resources/guarantor/resources/v1/client}/index.js +1 -1
  245. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
  246. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
  247. package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  248. package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
  249. package/dist/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
  250. package/dist/serialization/resources/guarantor/resources/v1/index.js +18 -0
  251. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
  252. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
  253. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
  254. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
  255. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
  256. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
  257. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
  258. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
  259. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  260. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
  261. package/dist/serialization/resources/index.d.ts +2 -2
  262. package/dist/serialization/resources/index.js +3 -3
  263. package/dist/serialization/resources/individual/types/Patient.d.ts +1 -1
  264. package/dist/serialization/resources/individual/types/Patient.js +1 -1
  265. package/dist/serialization/resources/individual/types/PatientBase.d.ts +15 -0
  266. package/dist/serialization/resources/individual/types/PatientBase.js +38 -0
  267. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
  268. package/dist/serialization/resources/individual/types/PatientCreate.js +2 -6
  269. package/dist/serialization/resources/individual/types/index.d.ts +1 -0
  270. package/dist/serialization/resources/individual/types/index.js +1 -0
  271. package/dist/serialization/resources/patientPayments/resources/index.d.ts +1 -1
  272. package/dist/serialization/resources/patientPayments/resources/index.js +2 -2
  273. package/dist/serialization/resources/patientPayments/resources/v3/index.d.ts +1 -0
  274. package/dist/serialization/resources/patientPayments/resources/v3/index.js +17 -0
  275. package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPayment.d.ts +5 -5
  276. package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPayment.js +4 -4
  277. package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.d.ts +1 -1
  278. package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.js +1 -1
  279. package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
  280. package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +1 -1
  281. package/dist/serialization/resources/payers/types/Payer.d.ts +1 -1
  282. package/dist/serialization/resources/payers/types/Payer.js +1 -1
  283. package/dist/serialization/resources/payers/types/PayerUuid.d.ts +10 -0
  284. package/dist/serialization/resources/payers/types/PayerUuid.js +37 -0
  285. package/dist/serialization/resources/payers/types/index.d.ts +1 -0
  286. package/dist/serialization/resources/payers/types/index.js +1 -0
  287. package/dist/serialization/resources/users/index.d.ts +1 -1
  288. package/dist/serialization/resources/users/index.js +1 -1
  289. package/dist/serialization/resources/users/resources/index.d.ts +1 -0
  290. package/dist/serialization/resources/users/resources/index.js +27 -0
  291. package/dist/serialization/resources/users/resources/v2/index.d.ts +1 -0
  292. package/dist/serialization/resources/users/resources/v2/index.js +17 -0
  293. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
  294. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
  295. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
  296. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
  297. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  298. package/dist/serialization/resources/users/{types/User.js → resources/v2/types/HumanUserMetadata.js} +3 -4
  299. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  300. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
  301. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
  302. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
  303. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
  304. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
  305. package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
  306. package/dist/serialization/resources/users/resources/v2/types/UserId.js +35 -0
  307. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
  308. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
  309. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  310. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
  311. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
  312. package/dist/serialization/resources/users/resources/v2/types/index.js +25 -0
  313. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  314. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  315. package/package.json +1 -1
  316. package/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
  317. package/serialization/resources/commons/types/ContactInfo.js +36 -0
  318. package/serialization/resources/commons/types/{Auth0Id.d.ts → Email.d.ts} +2 -2
  319. package/serialization/resources/commons/types/{Auth0Id.js → Email.js} +3 -3
  320. package/serialization/resources/{users/types/User.d.ts → commons/types/PhoneNumber.d.ts} +4 -5
  321. package/serialization/resources/commons/types/PhoneNumber.js +34 -0
  322. package/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
  323. package/serialization/resources/commons/types/PhoneNumberType.js +31 -0
  324. package/serialization/resources/commons/types/index.d.ts +4 -1
  325. package/serialization/resources/commons/types/index.js +4 -1
  326. package/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
  327. package/serialization/resources/encounters/resources/v4/client/create.js +46 -0
  328. package/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
  329. package/serialization/resources/encounters/resources/v4/client/index.js +3 -1
  330. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  331. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
  332. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  333. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  334. package/serialization/resources/encounters/resources/v4/client/update.d.ts +14 -0
  335. package/serialization/resources/encounters/resources/v4/client/update.js +46 -0
  336. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  337. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
  338. package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
  339. package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -0
  340. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  341. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  342. package/serialization/resources/guarantor/index.d.ts +1 -0
  343. package/serialization/resources/guarantor/index.js +17 -0
  344. package/serialization/resources/guarantor/resources/index.d.ts +1 -0
  345. package/serialization/resources/guarantor/resources/index.js +27 -0
  346. package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  347. package/{dist/api/resources/users/types → serialization/resources/guarantor/resources/v1/client}/index.js +1 -1
  348. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
  349. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
  350. package/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  351. package/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
  352. package/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
  353. package/serialization/resources/guarantor/resources/v1/index.js +18 -0
  354. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
  355. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
  356. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
  357. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
  358. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
  359. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
  360. package/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
  361. package/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
  362. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  363. package/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
  364. package/serialization/resources/index.d.ts +2 -2
  365. package/serialization/resources/index.js +3 -3
  366. package/serialization/resources/individual/types/Patient.d.ts +1 -1
  367. package/serialization/resources/individual/types/Patient.js +1 -1
  368. package/serialization/resources/individual/types/PatientBase.d.ts +15 -0
  369. package/serialization/resources/individual/types/PatientBase.js +38 -0
  370. package/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
  371. package/serialization/resources/individual/types/PatientCreate.js +2 -6
  372. package/serialization/resources/individual/types/index.d.ts +1 -0
  373. package/serialization/resources/individual/types/index.js +1 -0
  374. package/serialization/resources/patientPayments/resources/index.d.ts +1 -1
  375. package/serialization/resources/patientPayments/resources/index.js +2 -2
  376. package/serialization/resources/patientPayments/resources/v3/index.d.ts +1 -0
  377. package/serialization/resources/patientPayments/resources/v3/index.js +17 -0
  378. package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPayment.d.ts +5 -5
  379. package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPayment.js +4 -4
  380. package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.d.ts +1 -1
  381. package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentId.js +1 -1
  382. package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
  383. package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +1 -1
  384. package/serialization/resources/payers/types/Payer.d.ts +1 -1
  385. package/serialization/resources/payers/types/Payer.js +1 -1
  386. package/serialization/resources/payers/types/PayerUuid.d.ts +10 -0
  387. package/serialization/resources/payers/types/PayerUuid.js +37 -0
  388. package/serialization/resources/payers/types/index.d.ts +1 -0
  389. package/serialization/resources/payers/types/index.js +1 -0
  390. package/serialization/resources/users/index.d.ts +1 -1
  391. package/serialization/resources/users/index.js +1 -1
  392. package/serialization/resources/users/resources/index.d.ts +1 -0
  393. package/serialization/resources/users/resources/index.js +27 -0
  394. package/serialization/resources/users/resources/v2/index.d.ts +1 -0
  395. package/serialization/resources/users/resources/v2/index.js +17 -0
  396. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
  397. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
  398. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
  399. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
  400. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  401. package/serialization/resources/users/{types/User.js → resources/v2/types/HumanUserMetadata.js} +3 -4
  402. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  403. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
  404. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
  405. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
  406. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
  407. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
  408. package/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
  409. package/serialization/resources/users/resources/v2/types/UserId.js +35 -0
  410. package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
  411. package/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
  412. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  413. package/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
  414. package/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
  415. package/serialization/resources/users/resources/v2/types/index.js +25 -0
  416. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  417. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  418. package/api/resources/commons/types/Auth0Id.d.ts +0 -8
  419. package/api/resources/users/types/index.d.ts +0 -1
  420. package/dist/api/resources/commons/types/Auth0Id.d.ts +0 -8
  421. package/dist/api/resources/users/types/index.d.ts +0 -1
  422. package/dist/serialization/resources/users/types/index.d.ts +0 -1
  423. package/dist/serialization/resources/users/types/index.js +0 -17
  424. package/serialization/resources/users/types/index.d.ts +0 -1
  425. package/serialization/resources/users/types/index.js +0 -17
  426. /package/api/resources/{patientPayments/resources/v2/types/PatientPayment.js → commons/types/ContactInfo.js} +0 -0
  427. /package/api/resources/{users/types/User.js → commons/types/PhoneNumber.js} +0 -0
  428. /package/{dist/api/resources/patientPayments/resources/v2/types/PatientPayment.js → api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js} +0 -0
  429. /package/{dist/api/resources/users/types/User.js → api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js} +0 -0
  430. /package/api/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
  431. /package/api/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
  432. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
  433. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
  434. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  435. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
  436. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  437. /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  438. /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
  439. /package/{dist/api/resources/patientPayments → api/resources/users}/resources/v2/index.d.ts +0 -0
  440. /package/{dist/api/resources/patientPayments → api/resources/users}/resources/v2/index.js +0 -0
  441. /package/dist/{serialization/resources/patientPayments/resources/v2 → api/resources/patientPayments/resources/v3}/index.d.ts +0 -0
  442. /package/dist/{serialization/resources/patientPayments/resources/v2 → api/resources/patientPayments/resources/v3}/index.js +0 -0
  443. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
  444. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
  445. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  446. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
  447. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  448. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  449. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
  450. /package/{serialization/resources/patientPayments → dist/api/resources/users}/resources/v2/index.d.ts +0 -0
  451. /package/{serialization/resources/patientPayments → dist/api/resources/users}/resources/v2/index.js +0 -0
  452. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  453. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  454. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  455. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
  456. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  457. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  458. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  459. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (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
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.V1 = 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"));
38
+ class V1 {
39
+ options;
40
+ constructor(options) {
41
+ this.options = options;
42
+ }
43
+ async create(request) {
44
+ const _response = await core.fetcher({
45
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/guarantors/v1"),
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.2.1",
52
+ },
53
+ contentType: "application/json",
54
+ body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
55
+ unrecognizedObjectKeys: "strip",
56
+ }),
57
+ timeoutMs: 60000,
58
+ });
59
+ if (_response.ok) {
60
+ return {
61
+ ok: true,
62
+ body: await serializers.guarantor.v1.Guarantor.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.guarantor.v1.create.Error._unknown(_response.error),
73
+ };
74
+ }
75
+ async get(guarantorId) {
76
+ const _response = await core.fetcher({
77
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId)}`),
78
+ method: "GET",
79
+ headers: {
80
+ Authorization: await this._getAuthorizationHeader(),
81
+ "X-Fern-Language": "JavaScript",
82
+ "X-Fern-SDK-Name": "candidhealth",
83
+ "X-Fern-SDK-Version": "0.2.1",
84
+ },
85
+ contentType: "application/json",
86
+ timeoutMs: 60000,
87
+ });
88
+ if (_response.ok) {
89
+ return {
90
+ ok: true,
91
+ body: await serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
92
+ unrecognizedObjectKeys: "passthrough",
93
+ allowUnrecognizedUnionMembers: true,
94
+ allowUnrecognizedEnumValues: true,
95
+ breadcrumbsPrefix: ["response"],
96
+ }),
97
+ };
98
+ }
99
+ return {
100
+ ok: false,
101
+ error: CandidApi.guarantor.v1.get.Error._unknown(_response.error),
102
+ };
103
+ }
104
+ async update(guarantorId, request) {
105
+ const _response = await core.fetcher({
106
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId)}`),
107
+ method: "PATCH",
108
+ headers: {
109
+ Authorization: await this._getAuthorizationHeader(),
110
+ "X-Fern-Language": "JavaScript",
111
+ "X-Fern-SDK-Name": "candidhealth",
112
+ "X-Fern-SDK-Version": "0.2.1",
113
+ },
114
+ contentType: "application/json",
115
+ body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
116
+ unrecognizedObjectKeys: "strip",
117
+ }),
118
+ timeoutMs: 60000,
119
+ });
120
+ if (_response.ok) {
121
+ return {
122
+ ok: true,
123
+ body: await serializers.guarantor.v1.Guarantor.parseOrThrow(_response.body, {
124
+ unrecognizedObjectKeys: "passthrough",
125
+ allowUnrecognizedUnionMembers: true,
126
+ allowUnrecognizedEnumValues: true,
127
+ breadcrumbsPrefix: ["response"],
128
+ }),
129
+ };
130
+ }
131
+ return {
132
+ ok: false,
133
+ error: CandidApi.guarantor.v1.update.Error._unknown(_response.error),
134
+ };
135
+ }
136
+ async _getAuthorizationHeader() {
137
+ const bearer = await core.Supplier.get(this.options.token);
138
+ if (bearer != null) {
139
+ return `Bearer ${bearer}`;
140
+ }
141
+ return undefined;
142
+ }
143
+ }
144
+ exports.V1 = V1;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.guarantor.v1.create.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.guarantor.v1.create.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.guarantor.v1.create.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.guarantor.v1.create.Error, visitor: CandidApi.guarantor.v1.create.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (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
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../.."));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.guarantor.v1.create.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.guarantor.v1.get.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.guarantor.v1.get.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.guarantor.v1.get.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.guarantor.v1.get.Error, visitor: CandidApi.guarantor.v1.get.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (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
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../.."));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.guarantor.v1.get.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./requests";
2
+ export * as create from "./create";
3
+ export * as get from "./get";
4
+ export * as update from "./update";
@@ -0,0 +1,33 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.update = exports.get = exports.create = void 0;
30
+ __exportStar(require("./requests"), exports);
31
+ exports.create = __importStar(require("./create"));
32
+ exports.get = __importStar(require("./get"));
33
+ exports.update = __importStar(require("./update"));
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../..";
5
+ export interface GuarantorUpdate {
6
+ firstName?: string;
7
+ lastName?: string;
8
+ externalId?: string;
9
+ dateOfBirth: string;
10
+ address?: CandidApi.StreetAddressLongZip;
11
+ contactInfo?: CandidApi.ContactInfo;
12
+ }
@@ -0,0 +1 @@
1
+ export { GuarantorUpdate } from "./GuarantorUpdate";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.guarantor.v1.update.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.guarantor.v1.update.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.guarantor.v1.update.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.guarantor.v1.update.Error, visitor: CandidApi.guarantor.v1.update.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (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
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../.."));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.guarantor.v1.update.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ export interface Guarantor extends CandidApi.guarantor.v1.GuarantorBase {
6
+ guarantorId: CandidApi.guarantor.v1.GuarantorId;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ export interface GuarantorBase {
6
+ firstName: string;
7
+ lastName: string;
8
+ externalId: string;
9
+ dateOfBirth: string;
10
+ address: CandidApi.StreetAddressLongZip;
11
+ contactInfo: CandidApi.ContactInfo;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ export interface GuarantorCreate extends CandidApi.guarantor.v1.GuarantorBase {
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ export declare type GuarantorId = string & {
6
+ guarantor_v1_GuarantorId: void;
7
+ };
8
+ export declare function GuarantorId(value: string): CandidApi.guarantor.v1.GuarantorId;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GuarantorId = void 0;
7
+ function GuarantorId(value) {
8
+ return value;
9
+ }
10
+ exports.GuarantorId = GuarantorId;
@@ -0,0 +1,4 @@
1
+ export * from "./GuarantorId";
2
+ export * from "./GuarantorBase";
3
+ export * from "./Guarantor";
4
+ export * from "./GuarantorCreate";
@@ -0,0 +1,20 @@
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("./GuarantorId"), exports);
18
+ __exportStar(require("./GuarantorBase"), exports);
19
+ __exportStar(require("./Guarantor"), exports);
20
+ __exportStar(require("./GuarantorCreate"), exports);
@@ -1,8 +1,10 @@
1
1
  export * as auth from "./auth";
2
2
  export * as encounterProviders from "./encounterProviders";
3
3
  export * as encounters from "./encounters";
4
+ export * as guarantor from "./guarantor";
4
5
  export * as organizationProviders from "./organizationProviders";
5
6
  export * as patientPayments from "./patientPayments";
7
+ export * as users from "./users";
6
8
  export * as workQueues from "./workQueues";
7
9
  export * as billingNotes from "./billingNotes";
8
10
  export * from "./billingNotes/types";
@@ -36,8 +38,6 @@ export * as tags from "./tags";
36
38
  export * from "./tags/types";
37
39
  export * as tasks from "./tasks";
38
40
  export * from "./tasks/types";
39
- export * as users from "./users";
40
- export * from "./users/types";
41
41
  export * from "./billingNotes/client/requests";
42
42
  export * from "./expectedNetworkStatus/client/requests";
43
43
  export * from "./payers/client/requests";
@@ -26,12 +26,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.users = exports.tasks = exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.patientPayments = exports.organizationProviders = exports.encounters = exports.encounterProviders = exports.auth = void 0;
29
+ exports.tasks = exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.users = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.encounterProviders = __importStar(require("./encounterProviders"));
32
32
  exports.encounters = __importStar(require("./encounters"));
33
+ exports.guarantor = __importStar(require("./guarantor"));
33
34
  exports.organizationProviders = __importStar(require("./organizationProviders"));
34
35
  exports.patientPayments = __importStar(require("./patientPayments"));
36
+ exports.users = __importStar(require("./users"));
35
37
  exports.workQueues = __importStar(require("./workQueues"));
36
38
  exports.billingNotes = __importStar(require("./billingNotes"));
37
39
  __exportStar(require("./billingNotes/types"), exports);
@@ -65,8 +67,6 @@ exports.tags = __importStar(require("./tags"));
65
67
  __exportStar(require("./tags/types"), exports);
66
68
  exports.tasks = __importStar(require("./tasks"));
67
69
  __exportStar(require("./tasks/types"), exports);
68
- exports.users = __importStar(require("./users"));
69
- __exportStar(require("./users/types"), exports);
70
70
  __exportStar(require("./billingNotes/client/requests"), exports);
71
71
  __exportStar(require("./expectedNetworkStatus/client/requests"), exports);
72
72
  __exportStar(require("./payers/client/requests"), exports);
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
- export interface Patient extends CandidApi.PatientCreate {
5
+ export interface Patient extends CandidApi.PatientBase {
6
6
  individualId: CandidApi.IndividualId;
7
7
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface PatientBase extends CandidApi.IndividualBase {
6
+ /**
7
+ * Another ID you want to associate with this patient.
8
+ * For example, your internal patient ID or a Dr. Chrono patient ID. Box 1a on the CMS-1500 claim form
9
+ *
10
+ */
11
+ externalId: string;
12
+ /** Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01) */
13
+ dateOfBirth: CandidApi.Date_;
14
+ /** Box 5 on the CMS-1500 claim form. */
15
+ address: CandidApi.StreetAddressShortZip;
16
+ contactInfo?: CandidApi.ContactInfo;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,15 +2,5 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
- export interface PatientCreate extends CandidApi.IndividualBase {
6
- /**
7
- * Another ID you want to associate with this patient.
8
- * For example, your internal patient ID or a Dr. Chrono patient ID. Box 1a on the CMS-1500 claim form
9
- *
10
- */
11
- externalId: string;
12
- /** Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01) */
13
- dateOfBirth: CandidApi.Date_;
14
- /** Box 5 on the CMS-1500 claim form. */
15
- address: CandidApi.StreetAddressShortZip;
5
+ export interface PatientCreate extends CandidApi.PatientBase {
16
6
  }
@@ -4,5 +4,6 @@ export * from "./SubscriberBase";
4
4
  export * from "./SubscriberCreate";
5
5
  export * from "./Subscriber";
6
6
  export * from "./PatientCreate";
7
+ export * from "./PatientBase";
7
8
  export * from "./Patient";
8
9
  export * from "./Gender";