candidhealth 0.1.1 → 0.2.0

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 (315) 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/Email.js +10 -0
  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 -0
  12. package/api/resources/commons/types/index.js +4 -0
  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/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
  23. package/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +5 -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/GuarantorUpdate.js +5 -0
  45. package/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  46. package/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
  47. package/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
  48. package/api/resources/guarantor/resources/v1/client/update.js +47 -0
  49. package/api/resources/guarantor/resources/v1/index.d.ts +2 -0
  50. package/api/resources/guarantor/resources/v1/index.js +18 -0
  51. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
  52. package/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
  53. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
  54. package/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
  55. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  56. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
  57. package/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
  58. package/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
  59. package/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  60. package/api/resources/guarantor/resources/v1/types/index.js +20 -0
  61. package/api/resources/index.d.ts +1 -0
  62. package/api/resources/index.js +2 -1
  63. package/api/resources/individual/types/Patient.d.ts +1 -1
  64. package/api/resources/individual/types/PatientBase.d.ts +17 -0
  65. package/api/resources/individual/types/PatientBase.js +5 -0
  66. package/api/resources/individual/types/PatientCreate.d.ts +1 -11
  67. package/api/resources/individual/types/index.d.ts +1 -0
  68. package/api/resources/individual/types/index.js +1 -0
  69. package/api/resources/patientPayments/resources/index.d.ts +1 -1
  70. package/api/resources/patientPayments/resources/index.js +2 -2
  71. package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
  72. package/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
  73. package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
  74. package/api/resources/payers/client/Client.js +2 -2
  75. package/dist/Client.d.ts +3 -0
  76. package/dist/Client.js +11 -6
  77. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  78. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  79. package/dist/api/resources/commons/types/ContactInfo.d.ts +10 -0
  80. package/dist/api/resources/commons/types/ContactInfo.js +5 -0
  81. package/dist/api/resources/commons/types/Email.d.ts +8 -0
  82. package/dist/api/resources/commons/types/Email.js +10 -0
  83. package/dist/api/resources/commons/types/PhoneNumber.d.ts +8 -0
  84. package/dist/api/resources/commons/types/PhoneNumber.js +5 -0
  85. package/dist/api/resources/commons/types/PhoneNumberType.d.ts +9 -0
  86. package/dist/api/resources/commons/types/PhoneNumberType.js +11 -0
  87. package/dist/api/resources/commons/types/index.d.ts +4 -0
  88. package/dist/api/resources/commons/types/index.js +4 -0
  89. package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProviderBase.d.ts +3 -3
  90. package/dist/api/resources/encounters/resources/v4/client/Client.js +36 -8
  91. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  92. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  93. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -0
  94. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +7 -0
  95. package/dist/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
  96. package/dist/api/resources/encounters/resources/v4/client/update.js +11 -0
  97. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  98. package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +7 -0
  99. package/dist/api/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +5 -0
  100. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  101. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  102. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  103. package/dist/api/resources/guarantor/client/Client.d.ts +18 -0
  104. package/dist/api/resources/guarantor/client/Client.js +18 -0
  105. package/dist/api/resources/guarantor/client/index.d.ts +1 -0
  106. package/dist/api/resources/guarantor/client/index.js +2 -0
  107. package/dist/api/resources/guarantor/index.d.ts +2 -0
  108. package/dist/api/resources/guarantor/index.js +18 -0
  109. package/dist/api/resources/guarantor/resources/index.d.ts +1 -0
  110. package/dist/api/resources/guarantor/resources/index.js +27 -0
  111. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +20 -0
  112. package/dist/api/resources/guarantor/resources/v1/client/Client.js +144 -0
  113. package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +22 -0
  114. package/dist/api/resources/guarantor/resources/v1/client/create.js +47 -0
  115. package/dist/api/resources/guarantor/resources/v1/client/get.d.ts +22 -0
  116. package/dist/api/resources/guarantor/resources/v1/client/get.js +47 -0
  117. package/dist/api/resources/guarantor/resources/v1/client/index.d.ts +4 -0
  118. package/dist/api/resources/guarantor/resources/v1/client/index.js +33 -0
  119. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +12 -0
  120. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +5 -0
  121. package/dist/api/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  122. package/dist/api/resources/guarantor/resources/v1/client/requests/index.js +2 -0
  123. package/dist/api/resources/guarantor/resources/v1/client/update.d.ts +22 -0
  124. package/dist/api/resources/guarantor/resources/v1/client/update.js +47 -0
  125. package/dist/api/resources/guarantor/resources/v1/index.d.ts +2 -0
  126. package/dist/api/resources/guarantor/resources/v1/index.js +18 -0
  127. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +7 -0
  128. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.js +5 -0
  129. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +12 -0
  130. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.js +5 -0
  131. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  132. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.js +5 -0
  133. package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.d.ts +8 -0
  134. package/dist/api/resources/guarantor/resources/v1/types/GuarantorId.js +10 -0
  135. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  136. package/dist/api/resources/guarantor/resources/v1/types/index.js +20 -0
  137. package/dist/api/resources/index.d.ts +1 -0
  138. package/dist/api/resources/index.js +2 -1
  139. package/dist/api/resources/individual/types/Patient.d.ts +1 -1
  140. package/dist/api/resources/individual/types/PatientBase.d.ts +17 -0
  141. package/dist/api/resources/individual/types/PatientBase.js +5 -0
  142. package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -11
  143. package/dist/api/resources/individual/types/index.d.ts +1 -0
  144. package/dist/api/resources/individual/types/index.js +1 -0
  145. package/dist/api/resources/patientPayments/resources/index.d.ts +1 -1
  146. package/dist/api/resources/patientPayments/resources/index.js +2 -2
  147. package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +4 -4
  148. package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.js +5 -0
  149. package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +2 -2
  150. package/dist/api/resources/payers/client/Client.js +2 -2
  151. package/dist/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
  152. package/dist/serialization/resources/commons/types/ContactInfo.js +36 -0
  153. package/dist/serialization/resources/commons/types/Email.d.ts +10 -0
  154. package/dist/serialization/resources/commons/types/Email.js +37 -0
  155. package/dist/serialization/resources/commons/types/PhoneNumber.d.ts +13 -0
  156. package/dist/serialization/resources/commons/types/PhoneNumber.js +34 -0
  157. package/dist/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
  158. package/dist/serialization/resources/commons/types/PhoneNumberType.js +31 -0
  159. package/dist/serialization/resources/commons/types/index.d.ts +4 -0
  160. package/dist/serialization/resources/commons/types/index.js +4 -0
  161. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
  162. package/dist/serialization/resources/encounters/resources/v4/client/create.js +46 -0
  163. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
  164. package/dist/serialization/resources/encounters/resources/v4/client/index.js +3 -1
  165. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  166. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
  167. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  168. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  169. package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +14 -0
  170. package/dist/serialization/resources/encounters/resources/v4/client/update.js +46 -0
  171. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  172. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
  173. package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
  174. package/dist/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -0
  175. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  176. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  177. package/dist/serialization/resources/guarantor/index.d.ts +1 -0
  178. package/dist/serialization/resources/guarantor/index.js +17 -0
  179. package/dist/serialization/resources/guarantor/resources/index.d.ts +1 -0
  180. package/dist/serialization/resources/guarantor/resources/index.js +27 -0
  181. package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  182. package/dist/serialization/resources/guarantor/resources/v1/client/index.js +17 -0
  183. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
  184. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
  185. package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  186. package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
  187. package/dist/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
  188. package/dist/serialization/resources/guarantor/resources/v1/index.js +18 -0
  189. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
  190. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
  191. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
  192. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
  193. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
  194. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
  195. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
  196. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
  197. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  198. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
  199. package/dist/serialization/resources/index.d.ts +1 -0
  200. package/dist/serialization/resources/index.js +2 -1
  201. package/dist/serialization/resources/individual/types/Patient.d.ts +1 -1
  202. package/dist/serialization/resources/individual/types/Patient.js +1 -1
  203. package/dist/serialization/resources/individual/types/PatientBase.d.ts +15 -0
  204. package/dist/serialization/resources/individual/types/PatientBase.js +38 -0
  205. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
  206. package/dist/serialization/resources/individual/types/PatientCreate.js +2 -6
  207. package/dist/serialization/resources/individual/types/index.d.ts +1 -0
  208. package/dist/serialization/resources/individual/types/index.js +1 -0
  209. package/dist/serialization/resources/patientPayments/resources/index.d.ts +1 -1
  210. package/dist/serialization/resources/patientPayments/resources/index.js +2 -2
  211. package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +5 -5
  212. package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.js +4 -4
  213. package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +1 -1
  214. package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +1 -1
  215. package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
  216. package/{serialization/resources/patientPayments/resources/v2 → dist/serialization/resources/patientPayments/resources/v3}/types/PatientPaymentStatus.d.ts +1 -1
  217. package/package.json +1 -1
  218. package/serialization/resources/commons/types/ContactInfo.d.ts +15 -0
  219. package/serialization/resources/commons/types/ContactInfo.js +36 -0
  220. package/serialization/resources/commons/types/Email.d.ts +10 -0
  221. package/serialization/resources/commons/types/Email.js +37 -0
  222. package/serialization/resources/commons/types/PhoneNumber.d.ts +13 -0
  223. package/serialization/resources/commons/types/PhoneNumber.js +34 -0
  224. package/serialization/resources/commons/types/PhoneNumberType.d.ts +10 -0
  225. package/serialization/resources/commons/types/PhoneNumberType.js +31 -0
  226. package/serialization/resources/commons/types/index.d.ts +4 -0
  227. package/serialization/resources/commons/types/index.js +4 -0
  228. package/serialization/resources/encounters/resources/v4/client/create.d.ts +14 -0
  229. package/serialization/resources/encounters/resources/v4/client/create.js +46 -0
  230. package/serialization/resources/encounters/resources/v4/client/index.d.ts +2 -0
  231. package/serialization/resources/encounters/resources/v4/client/index.js +3 -1
  232. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  233. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +4 -0
  234. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  235. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  236. package/serialization/resources/encounters/resources/v4/client/update.d.ts +14 -0
  237. package/serialization/resources/encounters/resources/v4/client/update.js +46 -0
  238. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  239. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -1
  240. package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.d.ts +12 -0
  241. package/serialization/resources/encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType.js +33 -0
  242. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  243. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  244. package/serialization/resources/guarantor/index.d.ts +1 -0
  245. package/serialization/resources/guarantor/index.js +17 -0
  246. package/serialization/resources/guarantor/resources/index.d.ts +1 -0
  247. package/serialization/resources/guarantor/resources/index.js +27 -0
  248. package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  249. package/serialization/resources/guarantor/resources/v1/client/index.js +17 -0
  250. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +17 -0
  251. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +40 -0
  252. package/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +1 -0
  253. package/serialization/resources/guarantor/resources/v1/client/requests/index.js +5 -0
  254. package/serialization/resources/guarantor/resources/v1/index.d.ts +2 -0
  255. package/serialization/resources/guarantor/resources/v1/index.js +18 -0
  256. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +12 -0
  257. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +35 -0
  258. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +17 -0
  259. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +38 -0
  260. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +11 -0
  261. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +33 -0
  262. package/serialization/resources/guarantor/resources/v1/types/GuarantorId.d.ts +10 -0
  263. package/serialization/resources/guarantor/resources/v1/types/GuarantorId.js +35 -0
  264. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +4 -0
  265. package/serialization/resources/guarantor/resources/v1/types/index.js +20 -0
  266. package/serialization/resources/index.d.ts +1 -0
  267. package/serialization/resources/index.js +2 -1
  268. package/serialization/resources/individual/types/Patient.d.ts +1 -1
  269. package/serialization/resources/individual/types/Patient.js +1 -1
  270. package/serialization/resources/individual/types/PatientBase.d.ts +15 -0
  271. package/serialization/resources/individual/types/PatientBase.js +38 -0
  272. package/serialization/resources/individual/types/PatientCreate.d.ts +1 -4
  273. package/serialization/resources/individual/types/PatientCreate.js +2 -6
  274. package/serialization/resources/individual/types/index.d.ts +1 -0
  275. package/serialization/resources/individual/types/index.js +1 -0
  276. package/serialization/resources/patientPayments/resources/index.d.ts +1 -1
  277. package/serialization/resources/patientPayments/resources/index.js +2 -2
  278. package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.d.ts +5 -5
  279. package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPayment.js +4 -4
  280. package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.d.ts +1 -1
  281. package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +1 -1
  282. package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentSource.d.ts +1 -1
  283. package/{dist/serialization/resources/patientPayments/resources/v2 → serialization/resources/patientPayments/resources/v3}/types/PatientPaymentStatus.d.ts +1 -1
  284. /package/api/resources/{patientPayments/resources/v2/types/PatientPayment.js → commons/types/ContactInfo.js} +0 -0
  285. /package/{dist/api/resources/patientPayments/resources/v2/types/PatientPayment.js → api/resources/commons/types/PhoneNumber.js} +0 -0
  286. /package/api/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
  287. /package/api/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
  288. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
  289. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
  290. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  291. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
  292. /package/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  293. /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  294. /package/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
  295. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
  296. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
  297. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentId.js +0 -0
  298. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.d.ts +0 -0
  299. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  300. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.d.ts +0 -0
  301. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  302. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  303. /package/dist/api/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
  304. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
  305. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
  306. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  307. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  308. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  309. /package/dist/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
  310. /package/serialization/resources/patientPayments/resources/{v2 → v3}/index.d.ts +0 -0
  311. /package/serialization/resources/patientPayments/resources/{v2 → v3}/index.js +0 -0
  312. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentSource.js +0 -0
  313. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/PatientPaymentStatus.js +0 -0
  314. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.d.ts +0 -0
  315. /package/serialization/resources/patientPayments/resources/{v2 → v3}/types/index.js +0 -0
@@ -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.v1 = void 0;
27
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
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("./requests"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../..";
5
+ import * as CandidApi from "../../../../../../../api";
6
+ import * as core from "../../../../../../../core";
7
+ export declare const GuarantorUpdate: core.serialization.Schema<serializers.guarantor.v1.GuarantorUpdate.Raw, CandidApi.guarantor.v1.GuarantorUpdate>;
8
+ export declare namespace GuarantorUpdate {
9
+ interface Raw {
10
+ first_name?: string | null;
11
+ last_name?: string | null;
12
+ external_id?: string | null;
13
+ date_of_birth: string;
14
+ address?: serializers.StreetAddressLongZip.Raw | null;
15
+ contact_info?: serializers.ContactInfo.Raw | null;
16
+ }
17
+ }
@@ -0,0 +1,40 @@
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.GuarantorUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ exports.GuarantorUpdate = core.serialization.object({
32
+ firstName: core.serialization.property("first_name", core.serialization.string().optional()),
33
+ lastName: core.serialization.property("last_name", core.serialization.string().optional()),
34
+ externalId: core.serialization.property("external_id", core.serialization.string().optional()),
35
+ dateOfBirth: core.serialization.property("date_of_birth", core.serialization.string()),
36
+ address: core.serialization
37
+ .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).StreetAddressLongZip)
38
+ .optional(),
39
+ contactInfo: core.serialization.property("contact_info", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).ContactInfo).optional()),
40
+ });
@@ -0,0 +1 @@
1
+ export { GuarantorUpdate } from "./GuarantorUpdate";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GuarantorUpdate = void 0;
4
+ var GuarantorUpdate_1 = require("./GuarantorUpdate");
5
+ Object.defineProperty(exports, "GuarantorUpdate", { enumerable: true, get: function () { return GuarantorUpdate_1.GuarantorUpdate; } });
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const Guarantor: core.serialization.ObjectSchema<serializers.guarantor.v1.Guarantor.Raw, CandidApi.guarantor.v1.Guarantor>;
8
+ export declare namespace Guarantor {
9
+ interface Raw extends serializers.guarantor.v1.GuarantorBase.Raw {
10
+ guarantor_id: serializers.guarantor.v1.GuarantorId.Raw;
11
+ }
12
+ }
@@ -0,0 +1,35 @@
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.Guarantor = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.Guarantor = core.serialization
32
+ .object({
33
+ guarantorId: core.serialization.property("guarantor_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).guarantor.v1.GuarantorId)),
34
+ })
35
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).guarantor.v1.GuarantorBase));
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const GuarantorBase: core.serialization.ObjectSchema<serializers.guarantor.v1.GuarantorBase.Raw, CandidApi.guarantor.v1.GuarantorBase>;
8
+ export declare namespace GuarantorBase {
9
+ interface Raw {
10
+ first_name: string;
11
+ last_name: string;
12
+ external_id: string;
13
+ date_of_birth: string;
14
+ address: serializers.StreetAddressLongZip.Raw;
15
+ contact_info: serializers.ContactInfo.Raw;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
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.GuarantorBase = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.GuarantorBase = core.serialization.object({
32
+ firstName: core.serialization.property("first_name", core.serialization.string()),
33
+ lastName: core.serialization.property("last_name", core.serialization.string()),
34
+ externalId: core.serialization.property("external_id", core.serialization.string()),
35
+ dateOfBirth: core.serialization.property("date_of_birth", core.serialization.string()),
36
+ address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).StreetAddressLongZip),
37
+ contactInfo: core.serialization.property("contact_info", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ContactInfo)),
38
+ });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const GuarantorCreate: core.serialization.ObjectSchema<serializers.guarantor.v1.GuarantorCreate.Raw, CandidApi.guarantor.v1.GuarantorCreate>;
8
+ export declare namespace GuarantorCreate {
9
+ interface Raw extends serializers.guarantor.v1.GuarantorBase.Raw {
10
+ }
11
+ }
@@ -0,0 +1,33 @@
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.GuarantorCreate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.GuarantorCreate = core.serialization
32
+ .object({})
33
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).guarantor.v1.GuarantorBase));
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const GuarantorId: core.serialization.Schema<serializers.guarantor.v1.GuarantorId.Raw, CandidApi.guarantor.v1.GuarantorId>;
8
+ export declare namespace GuarantorId {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,35 @@
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.GuarantorId = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../api"));
31
+ const core = __importStar(require("../../../../../../core"));
32
+ exports.GuarantorId = core.serialization.string().transform({
33
+ transform: CandidApi.guarantor.v1.GuarantorId,
34
+ untransform: (value) => value,
35
+ });
@@ -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,6 +1,7 @@
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";
6
7
  export * as workQueues from "./workQueues";
@@ -26,10 +26,11 @@ 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.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.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"));
35
36
  exports.workQueues = __importStar(require("./workQueues"));
@@ -6,7 +6,7 @@ import * as CandidApi from "../../../../api";
6
6
  import * as core from "../../../../core";
7
7
  export declare const Patient: core.serialization.ObjectSchema<serializers.Patient.Raw, CandidApi.Patient>;
8
8
  export declare namespace Patient {
9
- interface Raw extends serializers.PatientCreate.Raw {
9
+ interface Raw extends serializers.PatientBase.Raw {
10
10
  individual_id: serializers.IndividualId.Raw;
11
11
  }
12
12
  }
@@ -32,4 +32,4 @@ exports.Patient = core.serialization
32
32
  .object({
33
33
  individualId: core.serialization.property("individual_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).IndividualId)),
34
34
  })
35
- .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PatientCreate));
35
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PatientBase));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const PatientBase: core.serialization.ObjectSchema<serializers.PatientBase.Raw, CandidApi.PatientBase>;
8
+ export declare namespace PatientBase {
9
+ interface Raw extends serializers.IndividualBase.Raw {
10
+ external_id: string;
11
+ date_of_birth: serializers.Date_.Raw;
12
+ address: serializers.StreetAddressShortZip.Raw;
13
+ contact_info?: serializers.ContactInfo.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,38 @@
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.PatientBase = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PatientBase = core.serialization
32
+ .object({
33
+ externalId: core.serialization.property("external_id", core.serialization.string()),
34
+ dateOfBirth: core.serialization.property("date_of_birth", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Date_)),
35
+ address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).StreetAddressShortZip),
36
+ contactInfo: core.serialization.property("contact_info", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ContactInfo).optional()),
37
+ })
38
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).IndividualBase));
@@ -6,9 +6,6 @@ import * as CandidApi from "../../../../api";
6
6
  import * as core from "../../../../core";
7
7
  export declare const PatientCreate: core.serialization.ObjectSchema<serializers.PatientCreate.Raw, CandidApi.PatientCreate>;
8
8
  export declare namespace PatientCreate {
9
- interface Raw extends serializers.IndividualBase.Raw {
10
- external_id: string;
11
- date_of_birth: serializers.Date_.Raw;
12
- address: serializers.StreetAddressShortZip.Raw;
9
+ interface Raw extends serializers.PatientBase.Raw {
13
10
  }
14
11
  }
@@ -29,9 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PatientCreate = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.PatientCreate = core.serialization
32
- .object({
33
- externalId: core.serialization.property("external_id", core.serialization.string()),
34
- dateOfBirth: core.serialization.property("date_of_birth", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Date_)),
35
- address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).StreetAddressShortZip),
36
- })
37
- .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).IndividualBase));
32
+ .object({})
33
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PatientBase));
@@ -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";
@@ -20,5 +20,6 @@ __exportStar(require("./SubscriberBase"), exports);
20
20
  __exportStar(require("./SubscriberCreate"), exports);
21
21
  __exportStar(require("./Subscriber"), exports);
22
22
  __exportStar(require("./PatientCreate"), exports);
23
+ __exportStar(require("./PatientBase"), exports);
23
24
  __exportStar(require("./Patient"), exports);
24
25
  __exportStar(require("./Gender"), exports);
@@ -1 +1 @@
1
- export * as v2 from "./v2";
1
+ export * as v3 from "./v3";
@@ -23,5 +23,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.v2 = void 0;
27
- exports.v2 = __importStar(require("./v2"));
26
+ exports.v3 = void 0;
27
+ exports.v3 = __importStar(require("./v3"));
@@ -4,20 +4,20 @@
4
4
  import * as serializers from "../../../../..";
5
5
  import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
- export declare const PatientPayment: core.serialization.ObjectSchema<serializers.patientPayments.v2.PatientPayment.Raw, CandidApi.patientPayments.v2.PatientPayment>;
7
+ export declare const PatientPayment: core.serialization.ObjectSchema<serializers.patientPayments.v3.PatientPayment.Raw, CandidApi.patientPayments.v3.PatientPayment>;
8
8
  export declare namespace PatientPayment {
9
9
  interface Raw {
10
- patient_payment_id: serializers.patientPayments.v2.PatientPaymentId.Raw;
10
+ patient_payment_id: serializers.patientPayments.v3.PatientPaymentId.Raw;
11
11
  organization_id: serializers.OrganizationId.Raw;
12
12
  source_internal_id: string;
13
- source: serializers.patientPayments.v2.PatientPaymentSource.Raw;
13
+ source: serializers.patientPayments.v3.PatientPaymentSource.Raw;
14
14
  amount_cents: number;
15
15
  payment_timestamp?: string | null;
16
- status?: serializers.patientPayments.v2.PatientPaymentStatus.Raw | null;
16
+ status?: serializers.patientPayments.v3.PatientPaymentStatus.Raw | null;
17
17
  payment_name?: string | null;
18
18
  payment_note?: string | null;
19
19
  patient_external_id?: serializers.PatientExternalId.Raw | null;
20
- encounter_id?: serializers.EncounterId.Raw | null;
20
+ encounter_external_id?: serializers.EncounterExternalId.Raw | null;
21
21
  service_line_id?: serializers.ServiceLineId.Raw | null;
22
22
  }
23
23
  }
@@ -29,18 +29,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PatientPayment = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  exports.PatientPayment = core.serialization.object({
32
- patientPaymentId: core.serialization.property("patient_payment_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.v2.PatientPaymentId)),
32
+ patientPaymentId: core.serialization.property("patient_payment_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.v3.PatientPaymentId)),
33
33
  organizationId: core.serialization.property("organization_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).OrganizationId)),
34
34
  sourceInternalId: core.serialization.property("source_internal_id", core.serialization.string()),
35
- source: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.v2.PatientPaymentSource),
35
+ source: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.v3.PatientPaymentSource),
36
36
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
37
37
  paymentTimestamp: core.serialization.property("payment_timestamp", core.serialization.date().optional()),
38
38
  status: core.serialization
39
- .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.v2.PatientPaymentStatus)
39
+ .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).patientPayments.v3.PatientPaymentStatus)
40
40
  .optional(),
41
41
  paymentName: core.serialization.property("payment_name", core.serialization.string().optional()),
42
42
  paymentNote: core.serialization.property("payment_note", core.serialization.string().optional()),
43
43
  patientExternalId: core.serialization.property("patient_external_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).PatientExternalId).optional()),
44
- encounterId: core.serialization.property("encounter_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EncounterId).optional()),
44
+ encounterExternalId: core.serialization.property("encounter_external_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EncounterExternalId).optional()),
45
45
  serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId).optional()),
46
46
  });
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../../../..";
5
5
  import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
- export declare const PatientPaymentId: core.serialization.Schema<serializers.patientPayments.v2.PatientPaymentId.Raw, CandidApi.patientPayments.v2.PatientPaymentId>;
7
+ export declare const PatientPaymentId: core.serialization.Schema<serializers.patientPayments.v3.PatientPaymentId.Raw, CandidApi.patientPayments.v3.PatientPaymentId>;
8
8
  export declare namespace PatientPaymentId {
9
9
  type Raw = string;
10
10
  }
@@ -30,6 +30,6 @@ exports.PatientPaymentId = void 0;
30
30
  const CandidApi = __importStar(require("../../../../../../api"));
31
31
  const core = __importStar(require("../../../../../../core"));
32
32
  exports.PatientPaymentId = core.serialization.string().transform({
33
- transform: CandidApi.patientPayments.v2.PatientPaymentId,
33
+ transform: CandidApi.patientPayments.v3.PatientPaymentId,
34
34
  untransform: (value) => value,
35
35
  });
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../../../..";
5
5
  import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
- export declare const PatientPaymentSource: core.serialization.Schema<serializers.patientPayments.v2.PatientPaymentSource.Raw, CandidApi.patientPayments.v2.PatientPaymentSource>;
7
+ export declare const PatientPaymentSource: core.serialization.Schema<serializers.patientPayments.v3.PatientPaymentSource.Raw, CandidApi.patientPayments.v3.PatientPaymentSource>;
8
8
  export declare namespace PatientPaymentSource {
9
9
  type Raw = "MANUAL_ENTRY" | "CHARGEBEE_PAYMENTS" | "CHARGEBEE MANUALLY VOIDED BY CANDID" | "CHARGEBEE_REFUNDS" | "SQUARE_REFUNDS" | "SQUARE_PAYMENTS" | "STRIPE_CHARGES" | "STRIPE_REFUNDS" | "ELATION_PAYMENTS";
10
10
  }
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../../../..";
5
5
  import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
- export declare const PatientPaymentStatus: core.serialization.Schema<serializers.patientPayments.v2.PatientPaymentStatus.Raw, CandidApi.patientPayments.v2.PatientPaymentStatus>;
7
+ export declare const PatientPaymentStatus: core.serialization.Schema<serializers.patientPayments.v3.PatientPaymentStatus.Raw, CandidApi.patientPayments.v3.PatientPaymentStatus>;
8
8
  export declare namespace PatientPaymentStatus {
9
9
  type Raw = "PENDING" | "paid" | "CANCELED" | "voided" | "FAILED" | "COMPLETED" | "succeeded" | "pending" | "failed" | "requires_action" | "canceled";
10
10
  }