candidhealth 1.12.1 → 1.13.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 (346) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +63 -58
  3. package/api/resources/commons/types/index.d.ts +2 -0
  4. package/api/resources/commons/types/index.js +2 -0
  5. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +12 -1
  6. package/api/resources/encounterAttachments/resources/v1/client/Client.js +64 -1
  7. package/api/resources/encounterAttachments/resources/v1/client/createWithDescription.d.ts +19 -0
  8. package/api/resources/encounterAttachments/resources/v1/client/createWithDescription.js +55 -0
  9. package/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -0
  10. package/api/resources/encounterAttachments/resources/v1/client/index.js +2 -1
  11. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.d.ts +5 -0
  12. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.js +3 -0
  13. package/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
  14. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +2 -0
  15. package/api/resources/encounterSupplementalInformation/client/Client.d.ts +14 -0
  16. package/api/resources/encounterSupplementalInformation/client/Client.js +15 -0
  17. package/api/resources/encounterSupplementalInformation/client/index.d.ts +1 -0
  18. package/api/resources/encounterSupplementalInformation/client/index.js +2 -0
  19. package/api/resources/encounterSupplementalInformation/index.d.ts +2 -0
  20. package/api/resources/encounterSupplementalInformation/index.js +18 -0
  21. package/api/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  22. package/api/resources/encounterSupplementalInformation/resources/index.js +37 -0
  23. package/api/resources/encounterSupplementalInformation/resources/v1/client/Client.d.ts +59 -0
  24. package/api/resources/encounterSupplementalInformation/resources/v1/client/Client.js +328 -0
  25. package/api/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +25 -0
  26. package/api/resources/encounterSupplementalInformation/resources/v1/client/create.js +66 -0
  27. package/api/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +25 -0
  28. package/api/resources/encounterSupplementalInformation/resources/v1/client/delete.js +66 -0
  29. package/api/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +19 -0
  30. package/api/resources/encounterSupplementalInformation/resources/v1/client/get.js +55 -0
  31. package/api/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  32. package/api/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  33. package/api/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +25 -0
  34. package/api/resources/encounterSupplementalInformation/resources/v1/client/update.js +66 -0
  35. package/api/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  36. package/api/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  37. package/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +6 -0
  38. package/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +9 -0
  39. package/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +8 -0
  40. package/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +3 -0
  41. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +10 -0
  42. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +3 -0
  43. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +5 -0
  44. package/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +7 -0
  45. package/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +8 -0
  46. package/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +3 -0
  47. package/api/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  48. package/api/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  49. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  50. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  51. package/api/resources/encounters/resources/v4/types/index.d.ts +0 -2
  52. package/api/resources/encounters/resources/v4/types/index.js +0 -2
  53. package/api/resources/index.d.ts +2 -0
  54. package/api/resources/index.js +4 -2
  55. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
  56. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
  57. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
  58. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -1
  59. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -2
  60. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +6 -3
  61. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -0
  62. package/api/resources/users/index.d.ts +1 -0
  63. package/api/resources/users/index.js +17 -0
  64. package/api/resources/users/resources/index.d.ts +1 -0
  65. package/api/resources/users/resources/index.js +37 -0
  66. package/api/resources/users/resources/v2/index.d.ts +1 -0
  67. package/api/resources/users/resources/v2/index.js +17 -0
  68. package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  69. package/api/resources/users/resources/v2/types/AuthZeroMetadata.js +3 -0
  70. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +3 -0
  71. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +3 -0
  72. package/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  73. package/api/resources/users/resources/v2/types/HumanUserMetadata.js +3 -0
  74. package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +20 -0
  75. package/api/resources/users/resources/v2/types/IdpUserMetadata.js +3 -0
  76. package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +3 -0
  77. package/api/resources/users/resources/v2/types/MachineUserMetadata.js +3 -0
  78. package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +3 -0
  79. package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +3 -0
  80. package/api/resources/users/resources/v2/types/UserMetadata.d.ts +19 -0
  81. package/api/resources/users/resources/v2/types/UserMetadata.js +3 -0
  82. package/api/resources/users/resources/v2/types/UserV2.d.ts +24 -0
  83. package/api/resources/users/resources/v2/types/UserV2.js +3 -0
  84. package/api/resources/users/resources/v2/types/index.d.ts +8 -0
  85. package/api/resources/users/resources/v2/types/index.js +24 -0
  86. package/api/resources/x12/resources/v1/types/Carc.d.ts +1 -0
  87. package/api/resources/x12/resources/v1/types/Carc.js +1 -0
  88. package/dist/Client.d.ts +3 -0
  89. package/dist/Client.js +63 -58
  90. package/dist/api/resources/commons/types/index.d.ts +2 -0
  91. package/dist/api/resources/commons/types/index.js +2 -0
  92. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +12 -1
  93. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +64 -1
  94. package/dist/api/resources/encounterAttachments/resources/v1/client/createWithDescription.d.ts +19 -0
  95. package/dist/api/resources/encounterAttachments/resources/v1/client/createWithDescription.js +55 -0
  96. package/dist/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -0
  97. package/dist/api/resources/encounterAttachments/resources/v1/client/index.js +2 -1
  98. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.d.ts +5 -0
  99. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentV2Request.js +3 -0
  100. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
  101. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +2 -0
  102. package/dist/api/resources/encounterSupplementalInformation/client/Client.d.ts +14 -0
  103. package/dist/api/resources/encounterSupplementalInformation/client/Client.js +15 -0
  104. package/dist/api/resources/encounterSupplementalInformation/client/index.d.ts +1 -0
  105. package/dist/api/resources/encounterSupplementalInformation/client/index.js +2 -0
  106. package/dist/api/resources/encounterSupplementalInformation/index.d.ts +2 -0
  107. package/dist/api/resources/encounterSupplementalInformation/index.js +18 -0
  108. package/dist/api/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  109. package/dist/api/resources/encounterSupplementalInformation/resources/index.js +37 -0
  110. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/Client.d.ts +59 -0
  111. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/Client.js +328 -0
  112. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +25 -0
  113. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/create.js +66 -0
  114. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +25 -0
  115. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/delete.js +66 -0
  116. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +19 -0
  117. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/get.js +55 -0
  118. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  119. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  120. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +25 -0
  121. package/dist/api/resources/encounterSupplementalInformation/resources/v1/client/update.js +66 -0
  122. package/dist/api/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  123. package/dist/api/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  124. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +6 -0
  125. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +9 -0
  126. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +8 -0
  127. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +3 -0
  128. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +10 -0
  129. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +3 -0
  130. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +5 -0
  131. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +7 -0
  132. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +8 -0
  133. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +3 -0
  134. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  135. package/dist/api/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  136. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  137. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  138. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +0 -2
  139. package/dist/api/resources/encounters/resources/v4/types/index.js +0 -2
  140. package/dist/api/resources/index.d.ts +2 -0
  141. package/dist/api/resources/index.js +4 -2
  142. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +2 -0
  143. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +2 -0
  144. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +2 -0
  145. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -1
  146. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +2 -2
  147. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +6 -3
  148. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -0
  149. package/dist/api/resources/users/index.d.ts +1 -0
  150. package/dist/api/resources/users/index.js +17 -0
  151. package/dist/api/resources/users/resources/index.d.ts +1 -0
  152. package/dist/api/resources/users/resources/index.js +37 -0
  153. package/dist/api/resources/users/resources/v2/index.d.ts +1 -0
  154. package/dist/api/resources/users/resources/v2/index.js +17 -0
  155. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  156. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +3 -0
  157. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +3 -0
  158. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +3 -0
  159. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  160. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +3 -0
  161. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +20 -0
  162. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +3 -0
  163. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +3 -0
  164. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +3 -0
  165. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +3 -0
  166. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +3 -0
  167. package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +19 -0
  168. package/dist/api/resources/users/resources/v2/types/UserMetadata.js +3 -0
  169. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +24 -0
  170. package/dist/api/resources/users/resources/v2/types/UserV2.js +3 -0
  171. package/dist/api/resources/users/resources/v2/types/index.d.ts +8 -0
  172. package/dist/api/resources/users/resources/v2/types/index.js +24 -0
  173. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +1 -0
  174. package/dist/api/resources/x12/resources/v1/types/Carc.js +1 -0
  175. package/dist/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
  176. package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTransmissionCode.js +1 -1
  177. package/{serialization/resources/encounters/resources/v4 → dist/serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
  178. package/dist/serialization/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +1 -1
  179. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  180. package/dist/serialization/resources/commons/types/index.js +2 -0
  181. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +3 -0
  182. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +3 -0
  183. package/dist/serialization/resources/encounterSupplementalInformation/index.d.ts +1 -0
  184. package/dist/serialization/resources/encounterSupplementalInformation/index.js +17 -0
  185. package/dist/serialization/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  186. package/dist/serialization/resources/encounterSupplementalInformation/resources/index.js +37 -0
  187. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +12 -0
  188. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.js +69 -0
  189. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +12 -0
  190. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.js +69 -0
  191. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +8 -0
  192. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.js +40 -0
  193. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  194. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  195. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +12 -0
  196. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.js +69 -0
  197. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  198. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  199. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +7 -0
  200. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +39 -0
  201. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +17 -0
  202. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +49 -0
  203. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +21 -0
  204. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +53 -0
  205. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +7 -0
  206. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +43 -0
  207. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +17 -0
  208. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +49 -0
  209. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  210. package/dist/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  211. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  212. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +2 -2
  213. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  214. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +2 -2
  215. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -2
  216. package/dist/serialization/resources/encounters/resources/v4/types/index.js +0 -2
  217. package/dist/serialization/resources/index.d.ts +2 -0
  218. package/dist/serialization/resources/index.js +4 -2
  219. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  220. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  221. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  222. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  223. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  224. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  225. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -2
  226. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -2
  227. package/dist/serialization/resources/users/index.d.ts +1 -0
  228. package/dist/serialization/resources/users/index.js +17 -0
  229. package/dist/serialization/resources/users/resources/index.d.ts +1 -0
  230. package/dist/serialization/resources/users/resources/index.js +37 -0
  231. package/dist/serialization/resources/users/resources/v2/index.d.ts +1 -0
  232. package/dist/serialization/resources/users/resources/v2/index.js +17 -0
  233. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  234. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +41 -0
  235. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +9 -0
  236. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +41 -0
  237. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +11 -0
  238. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +43 -0
  239. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  240. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +51 -0
  241. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +9 -0
  242. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +41 -0
  243. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +9 -0
  244. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +41 -0
  245. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +15 -0
  246. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +49 -0
  247. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  248. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +48 -0
  249. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +8 -0
  250. package/dist/serialization/resources/users/resources/v2/types/index.js +24 -0
  251. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  252. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
  253. package/dist/version.d.ts +1 -1
  254. package/dist/version.js +1 -1
  255. package/package.json +1 -1
  256. package/reference.md +235 -2
  257. package/serialization/resources/commons/types/ReportTransmissionCode.d.ts +7 -0
  258. package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTransmissionCode.js +1 -1
  259. package/{dist/serialization/resources/encounters/resources/v4 → serialization/resources/commons}/types/ReportTypeCode.d.ts +4 -4
  260. package/serialization/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +1 -1
  261. package/serialization/resources/commons/types/index.d.ts +2 -0
  262. package/serialization/resources/commons/types/index.js +2 -0
  263. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +3 -0
  264. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +3 -0
  265. package/serialization/resources/encounterSupplementalInformation/index.d.ts +1 -0
  266. package/serialization/resources/encounterSupplementalInformation/index.js +17 -0
  267. package/serialization/resources/encounterSupplementalInformation/resources/index.d.ts +1 -0
  268. package/serialization/resources/encounterSupplementalInformation/resources/index.js +37 -0
  269. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.d.ts +12 -0
  270. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/create.js +69 -0
  271. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.d.ts +12 -0
  272. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/delete.js +69 -0
  273. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.d.ts +8 -0
  274. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/get.js +40 -0
  275. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.d.ts +4 -0
  276. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/index.js +40 -0
  277. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.d.ts +12 -0
  278. package/serialization/resources/encounterSupplementalInformation/resources/v1/client/update.js +69 -0
  279. package/serialization/resources/encounterSupplementalInformation/resources/v1/index.d.ts +2 -0
  280. package/serialization/resources/encounterSupplementalInformation/resources/v1/index.js +18 -0
  281. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.d.ts +7 -0
  282. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/AttachmentInclusion.js +39 -0
  283. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.d.ts +17 -0
  284. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/CreateSupplementalInformationRequest.js +49 -0
  285. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.d.ts +21 -0
  286. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformation.js +53 -0
  287. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.d.ts +7 -0
  288. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/SupplementalInformationId.js +43 -0
  289. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.d.ts +17 -0
  290. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/UpdateSupplementalInformationRequest.js +49 -0
  291. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.d.ts +5 -0
  292. package/serialization/resources/encounterSupplementalInformation/resources/v1/types/index.js +21 -0
  293. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.d.ts +2 -2
  294. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformation.js +2 -2
  295. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +2 -2
  296. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +2 -2
  297. package/serialization/resources/encounters/resources/v4/types/index.d.ts +0 -2
  298. package/serialization/resources/encounters/resources/v4/types/index.js +0 -2
  299. package/serialization/resources/index.d.ts +2 -0
  300. package/serialization/resources/index.js +4 -2
  301. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  302. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  303. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  304. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  305. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  306. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  307. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -2
  308. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -2
  309. package/serialization/resources/users/index.d.ts +1 -0
  310. package/serialization/resources/users/index.js +17 -0
  311. package/serialization/resources/users/resources/index.d.ts +1 -0
  312. package/serialization/resources/users/resources/index.js +37 -0
  313. package/serialization/resources/users/resources/v2/index.d.ts +1 -0
  314. package/serialization/resources/users/resources/v2/index.js +17 -0
  315. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +9 -0
  316. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +41 -0
  317. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +9 -0
  318. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +41 -0
  319. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +11 -0
  320. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +43 -0
  321. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  322. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +51 -0
  323. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +9 -0
  324. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +41 -0
  325. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +9 -0
  326. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +41 -0
  327. package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +15 -0
  328. package/serialization/resources/users/resources/v2/types/UserMetadata.js +49 -0
  329. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  330. package/serialization/resources/users/resources/v2/types/UserV2.js +48 -0
  331. package/serialization/resources/users/resources/v2/types/index.d.ts +8 -0
  332. package/serialization/resources/users/resources/v2/types/index.js +24 -0
  333. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  334. package/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
  335. package/version.d.ts +1 -1
  336. package/version.js +1 -1
  337. package/dist/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +0 -7
  338. package/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +0 -7
  339. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.d.ts +0 -0
  340. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +0 -0
  341. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.d.ts +0 -0
  342. /package/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +0 -0
  343. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.d.ts +0 -0
  344. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTransmissionCode.js +0 -0
  345. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.d.ts +0 -0
  346. /package/dist/api/resources/{encounters/resources/v4 → commons}/types/ReportTypeCode.js +0 -0
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * firstName: "John",
5
+ * lastName: "Doe",
6
+ * email: "john.doe@example.com"
7
+ * }
8
+ */
9
+ export interface HumanUserMetadata {
10
+ firstName: string;
11
+ lastName: string;
12
+ email: string;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as CandidApi from "../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * type: "auth_zero_metadata",
6
+ * auth0Id: "auth0|5f9b3b5a7b0b0d006a2b0b0b"
7
+ * }
8
+ */
9
+ export type IdpUserMetadata = CandidApi.users.v2.IdpUserMetadata.AuthZeroMetadata | CandidApi.users.v2.IdpUserMetadata.GoogleAppsMetadata | CandidApi.users.v2.IdpUserMetadata.OtherIdpMetadata;
10
+ export declare namespace IdpUserMetadata {
11
+ interface AuthZeroMetadata extends CandidApi.users.v2.AuthZeroMetadata {
12
+ type: "auth_zero_metadata";
13
+ }
14
+ interface GoogleAppsMetadata extends CandidApi.users.v2.GoogleAppsMetadata {
15
+ type: "google_apps_metadata";
16
+ }
17
+ interface OtherIdpMetadata extends CandidApi.users.v2.OtherIdpMetadata {
18
+ type: "other_idp_metadata";
19
+ }
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface MachineUserMetadata {
2
+ name: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface OtherIdpMetadata {
2
+ idpExternalId: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import type * as CandidApi from "../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * type: "human_user_metadata",
6
+ * firstName: "John",
7
+ * lastName: "Doe",
8
+ * email: "john.doe@example.com"
9
+ * }
10
+ */
11
+ export type UserMetadata = CandidApi.users.v2.UserMetadata.MachineUserMetadata | CandidApi.users.v2.UserMetadata.HumanUserMetadata;
12
+ export declare namespace UserMetadata {
13
+ interface MachineUserMetadata extends CandidApi.users.v2.MachineUserMetadata {
14
+ type: "machine_user_metadata";
15
+ }
16
+ interface HumanUserMetadata extends CandidApi.users.v2.HumanUserMetadata {
17
+ type: "human_user_metadata";
18
+ }
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import type * as CandidApi from "../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * userId: CandidApi.UserId("1503a782-35f6-45a7-b5c3-53ca2ebe8887"),
6
+ * idpMetadata: [{
7
+ * type: "auth_zero_metadata",
8
+ * auth0Id: "auth0|5f9b3b5a7b0b0d006a2b0b0b"
9
+ * }],
10
+ * primaryOrganizationId: CandidApi.OrganizationId("83a2a782-35f6-45a7-b5c3-53ca2ebe8887"),
11
+ * userMetadata: {
12
+ * type: "human_user_metadata",
13
+ * firstName: "John",
14
+ * lastName: "Doe",
15
+ * email: "john.doe@example.com"
16
+ * }
17
+ * }
18
+ */
19
+ export interface UserV2 {
20
+ userId: CandidApi.UserId;
21
+ idpMetadata: CandidApi.users.v2.IdpUserMetadata[];
22
+ primaryOrganizationId?: CandidApi.OrganizationId;
23
+ userMetadata: CandidApi.users.v2.UserMetadata;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export * from "./AuthZeroMetadata";
2
+ export * from "./GoogleAppsMetadata";
3
+ export * from "./HumanUserMetadata";
4
+ export * from "./IdpUserMetadata";
5
+ export * from "./MachineUserMetadata";
6
+ export * from "./OtherIdpMetadata";
7
+ export * from "./UserMetadata";
8
+ export * from "./UserV2";
@@ -0,0 +1,24 @@
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("./AuthZeroMetadata"), exports);
18
+ __exportStar(require("./GoogleAppsMetadata"), exports);
19
+ __exportStar(require("./HumanUserMetadata"), exports);
20
+ __exportStar(require("./IdpUserMetadata"), exports);
21
+ __exportStar(require("./MachineUserMetadata"), exports);
22
+ __exportStar(require("./OtherIdpMetadata"), exports);
23
+ __exportStar(require("./UserMetadata"), exports);
24
+ __exportStar(require("./UserV2"), exports);
@@ -294,6 +294,7 @@ export declare const Carc: {
294
294
  readonly CarcP30: "P30";
295
295
  readonly CarcP31: "P31";
296
296
  readonly CarcP32: "P32";
297
+ readonly Carc15: "15";
297
298
  readonly Carc17: "17";
298
299
  readonly Carc25: "25";
299
300
  readonly Carc28: "28";
@@ -298,6 +298,7 @@ exports.Carc = {
298
298
  CarcP30: "P30",
299
299
  CarcP31: "P31",
300
300
  CarcP32: "P32",
301
+ Carc15: "15",
301
302
  Carc17: "17",
302
303
  Carc25: "25",
303
304
  Carc28: "28",
package/dist/Client.d.ts CHANGED
@@ -9,6 +9,7 @@ import { Diagnoses } from "./api/resources/diagnoses/client/Client";
9
9
  import { Eligibility } from "./api/resources/eligibility/client/Client";
10
10
  import { EncounterAttachments } from "./api/resources/encounterAttachments/client/Client";
11
11
  import { EncounterProviders } from "./api/resources/encounterProviders/client/Client";
12
+ import { EncounterSupplementalInformation } from "./api/resources/encounterSupplementalInformation/client/Client";
12
13
  import { Encounters } from "./api/resources/encounters/client/Client";
13
14
  import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/client/Client";
14
15
  import { Exports } from "./api/resources/exports/client/Client";
@@ -60,6 +61,7 @@ export declare class CandidApiClient {
60
61
  protected _eligibility: Eligibility | undefined;
61
62
  protected _encounterAttachments: EncounterAttachments | undefined;
62
63
  protected _encounterProviders: EncounterProviders | undefined;
64
+ protected _encounterSupplementalInformation: EncounterSupplementalInformation | undefined;
63
65
  protected _encounters: Encounters | undefined;
64
66
  protected _expectedNetworkStatus: ExpectedNetworkStatus | undefined;
65
67
  protected _exports: Exports | undefined;
@@ -100,6 +102,7 @@ export declare class CandidApiClient {
100
102
  get eligibility(): Eligibility;
101
103
  get encounterAttachments(): EncounterAttachments;
102
104
  get encounterProviders(): EncounterProviders;
105
+ get encounterSupplementalInformation(): EncounterSupplementalInformation;
103
106
  get encounters(): Encounters;
104
107
  get expectedNetworkStatus(): ExpectedNetworkStatus;
105
108
  get exports(): Exports;
package/dist/Client.js CHANGED
@@ -56,34 +56,35 @@ const Client_9 = require("./api/resources/diagnoses/client/Client");
56
56
  const Client_10 = require("./api/resources/eligibility/client/Client");
57
57
  const Client_11 = require("./api/resources/encounterAttachments/client/Client");
58
58
  const Client_12 = require("./api/resources/encounterProviders/client/Client");
59
- const Client_13 = require("./api/resources/encounters/client/Client");
60
- const Client_14 = require("./api/resources/expectedNetworkStatus/client/Client");
61
- const Client_15 = require("./api/resources/exports/client/Client");
62
- const Client_16 = require("./api/resources/externalPaymentAccountConfig/client/Client");
63
- const Client_17 = require("./api/resources/feeSchedules/client/Client");
64
- const Client_18 = require("./api/resources/guarantor/client/Client");
65
- const Client_19 = require("./api/resources/healthCareCodeInformation/client/Client");
66
- const Client_20 = require("./api/resources/importInvoice/client/Client");
67
- const Client_21 = require("./api/resources/insuranceAdjudications/client/Client");
68
- const Client_22 = require("./api/resources/insurancePayments/client/Client");
69
- const Client_23 = require("./api/resources/insuranceRefunds/client/Client");
70
- const Client_24 = require("./api/resources/medicationDispense/client/Client");
71
- const Client_25 = require("./api/resources/nonInsurancePayerPayments/client/Client");
72
- const Client_26 = require("./api/resources/nonInsurancePayerRefunds/client/Client");
73
- const Client_27 = require("./api/resources/nonInsurancePayers/client/Client");
74
- const Client_28 = require("./api/resources/organizationProviders/client/Client");
75
- const Client_29 = require("./api/resources/organizationServiceFacilities/client/Client");
76
- const Client_30 = require("./api/resources/patientAr/client/Client");
77
- const Client_31 = require("./api/resources/patientPayments/client/Client");
78
- const Client_32 = require("./api/resources/patientRefunds/client/Client");
79
- const Client_33 = require("./api/resources/payerPlanGroups/client/Client");
80
- const Client_34 = require("./api/resources/payers/client/Client");
81
- const Client_35 = require("./api/resources/preEncounter/client/Client");
82
- const Client_36 = require("./api/resources/serviceFacility/client/Client");
83
- const Client_37 = require("./api/resources/serviceLines/client/Client");
84
- const Client_38 = require("./api/resources/superbills/client/Client");
85
- const Client_39 = require("./api/resources/tasks/client/Client");
86
- const Client_40 = require("./api/resources/writeOffs/client/Client");
59
+ const Client_13 = require("./api/resources/encounterSupplementalInformation/client/Client");
60
+ const Client_14 = require("./api/resources/encounters/client/Client");
61
+ const Client_15 = require("./api/resources/expectedNetworkStatus/client/Client");
62
+ const Client_16 = require("./api/resources/exports/client/Client");
63
+ const Client_17 = require("./api/resources/externalPaymentAccountConfig/client/Client");
64
+ const Client_18 = require("./api/resources/feeSchedules/client/Client");
65
+ const Client_19 = require("./api/resources/guarantor/client/Client");
66
+ const Client_20 = require("./api/resources/healthCareCodeInformation/client/Client");
67
+ const Client_21 = require("./api/resources/importInvoice/client/Client");
68
+ const Client_22 = require("./api/resources/insuranceAdjudications/client/Client");
69
+ const Client_23 = require("./api/resources/insurancePayments/client/Client");
70
+ const Client_24 = require("./api/resources/insuranceRefunds/client/Client");
71
+ const Client_25 = require("./api/resources/medicationDispense/client/Client");
72
+ const Client_26 = require("./api/resources/nonInsurancePayerPayments/client/Client");
73
+ const Client_27 = require("./api/resources/nonInsurancePayerRefunds/client/Client");
74
+ const Client_28 = require("./api/resources/nonInsurancePayers/client/Client");
75
+ const Client_29 = require("./api/resources/organizationProviders/client/Client");
76
+ const Client_30 = require("./api/resources/organizationServiceFacilities/client/Client");
77
+ const Client_31 = require("./api/resources/patientAr/client/Client");
78
+ const Client_32 = require("./api/resources/patientPayments/client/Client");
79
+ const Client_33 = require("./api/resources/patientRefunds/client/Client");
80
+ const Client_34 = require("./api/resources/payerPlanGroups/client/Client");
81
+ const Client_35 = require("./api/resources/payers/client/Client");
82
+ const Client_36 = require("./api/resources/preEncounter/client/Client");
83
+ const Client_37 = require("./api/resources/serviceFacility/client/Client");
84
+ const Client_38 = require("./api/resources/serviceLines/client/Client");
85
+ const Client_39 = require("./api/resources/superbills/client/Client");
86
+ const Client_40 = require("./api/resources/tasks/client/Client");
87
+ const Client_41 = require("./api/resources/writeOffs/client/Client");
87
88
  const core = __importStar(require("./core"));
88
89
  const headers_1 = require("./core/headers");
89
90
  class CandidApiClient {
@@ -91,8 +92,8 @@ class CandidApiClient {
91
92
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
92
93
  "X-Fern-Language": "JavaScript",
93
94
  "X-Fern-SDK-Name": "candidhealth",
94
- "X-Fern-SDK-Version": "1.12.1",
95
- "User-Agent": "candidhealth/1.12.1",
95
+ "X-Fern-SDK-Version": "1.13.0",
96
+ "User-Agent": "candidhealth/1.13.0",
96
97
  "X-Fern-Runtime": core.RUNTIME.type,
97
98
  "X-Fern-Runtime-Version": core.RUNTIME.version,
98
99
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -142,113 +143,117 @@ class CandidApiClient {
142
143
  var _a;
143
144
  return ((_a = this._encounterProviders) !== null && _a !== void 0 ? _a : (this._encounterProviders = new Client_12.EncounterProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
144
145
  }
146
+ get encounterSupplementalInformation() {
147
+ var _a;
148
+ return ((_a = this._encounterSupplementalInformation) !== null && _a !== void 0 ? _a : (this._encounterSupplementalInformation = new Client_13.EncounterSupplementalInformation(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
149
+ }
145
150
  get encounters() {
146
151
  var _a;
147
- return ((_a = this._encounters) !== null && _a !== void 0 ? _a : (this._encounters = new Client_13.Encounters(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
152
+ return ((_a = this._encounters) !== null && _a !== void 0 ? _a : (this._encounters = new Client_14.Encounters(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
148
153
  }
149
154
  get expectedNetworkStatus() {
150
155
  var _a;
151
- return ((_a = this._expectedNetworkStatus) !== null && _a !== void 0 ? _a : (this._expectedNetworkStatus = new Client_14.ExpectedNetworkStatus(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
156
+ return ((_a = this._expectedNetworkStatus) !== null && _a !== void 0 ? _a : (this._expectedNetworkStatus = new Client_15.ExpectedNetworkStatus(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
152
157
  }
153
158
  get exports() {
154
159
  var _a;
155
- return ((_a = this._exports) !== null && _a !== void 0 ? _a : (this._exports = new Client_15.Exports(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
160
+ return ((_a = this._exports) !== null && _a !== void 0 ? _a : (this._exports = new Client_16.Exports(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
156
161
  }
157
162
  get externalPaymentAccountConfig() {
158
163
  var _a;
159
- return ((_a = this._externalPaymentAccountConfig) !== null && _a !== void 0 ? _a : (this._externalPaymentAccountConfig = new Client_16.ExternalPaymentAccountConfig(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
164
+ return ((_a = this._externalPaymentAccountConfig) !== null && _a !== void 0 ? _a : (this._externalPaymentAccountConfig = new Client_17.ExternalPaymentAccountConfig(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
160
165
  }
161
166
  get feeSchedules() {
162
167
  var _a;
163
- return ((_a = this._feeSchedules) !== null && _a !== void 0 ? _a : (this._feeSchedules = new Client_17.FeeSchedules(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
168
+ return ((_a = this._feeSchedules) !== null && _a !== void 0 ? _a : (this._feeSchedules = new Client_18.FeeSchedules(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
164
169
  }
165
170
  get guarantor() {
166
171
  var _a;
167
- return ((_a = this._guarantor) !== null && _a !== void 0 ? _a : (this._guarantor = new Client_18.Guarantor(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
172
+ return ((_a = this._guarantor) !== null && _a !== void 0 ? _a : (this._guarantor = new Client_19.Guarantor(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
168
173
  }
169
174
  get healthCareCodeInformation() {
170
175
  var _a;
171
- return ((_a = this._healthCareCodeInformation) !== null && _a !== void 0 ? _a : (this._healthCareCodeInformation = new Client_19.HealthCareCodeInformation(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
176
+ return ((_a = this._healthCareCodeInformation) !== null && _a !== void 0 ? _a : (this._healthCareCodeInformation = new Client_20.HealthCareCodeInformation(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
172
177
  }
173
178
  get importInvoice() {
174
179
  var _a;
175
- return ((_a = this._importInvoice) !== null && _a !== void 0 ? _a : (this._importInvoice = new Client_20.ImportInvoice(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
180
+ return ((_a = this._importInvoice) !== null && _a !== void 0 ? _a : (this._importInvoice = new Client_21.ImportInvoice(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
176
181
  }
177
182
  get insuranceAdjudications() {
178
183
  var _a;
179
- return ((_a = this._insuranceAdjudications) !== null && _a !== void 0 ? _a : (this._insuranceAdjudications = new Client_21.InsuranceAdjudications(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
184
+ return ((_a = this._insuranceAdjudications) !== null && _a !== void 0 ? _a : (this._insuranceAdjudications = new Client_22.InsuranceAdjudications(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
180
185
  }
181
186
  get insurancePayments() {
182
187
  var _a;
183
- return ((_a = this._insurancePayments) !== null && _a !== void 0 ? _a : (this._insurancePayments = new Client_22.InsurancePayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
188
+ return ((_a = this._insurancePayments) !== null && _a !== void 0 ? _a : (this._insurancePayments = new Client_23.InsurancePayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
184
189
  }
185
190
  get insuranceRefunds() {
186
191
  var _a;
187
- return ((_a = this._insuranceRefunds) !== null && _a !== void 0 ? _a : (this._insuranceRefunds = new Client_23.InsuranceRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
192
+ return ((_a = this._insuranceRefunds) !== null && _a !== void 0 ? _a : (this._insuranceRefunds = new Client_24.InsuranceRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
188
193
  }
189
194
  get medicationDispense() {
190
195
  var _a;
191
- return ((_a = this._medicationDispense) !== null && _a !== void 0 ? _a : (this._medicationDispense = new Client_24.MedicationDispense(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
196
+ return ((_a = this._medicationDispense) !== null && _a !== void 0 ? _a : (this._medicationDispense = new Client_25.MedicationDispense(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
192
197
  }
193
198
  get nonInsurancePayerPayments() {
194
199
  var _a;
195
- return ((_a = this._nonInsurancePayerPayments) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerPayments = new Client_25.NonInsurancePayerPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
200
+ return ((_a = this._nonInsurancePayerPayments) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerPayments = new Client_26.NonInsurancePayerPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
196
201
  }
197
202
  get nonInsurancePayerRefunds() {
198
203
  var _a;
199
- return ((_a = this._nonInsurancePayerRefunds) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerRefunds = new Client_26.NonInsurancePayerRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
204
+ return ((_a = this._nonInsurancePayerRefunds) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerRefunds = new Client_27.NonInsurancePayerRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
200
205
  }
201
206
  get nonInsurancePayers() {
202
207
  var _a;
203
- return ((_a = this._nonInsurancePayers) !== null && _a !== void 0 ? _a : (this._nonInsurancePayers = new Client_27.NonInsurancePayers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
208
+ return ((_a = this._nonInsurancePayers) !== null && _a !== void 0 ? _a : (this._nonInsurancePayers = new Client_28.NonInsurancePayers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
204
209
  }
205
210
  get organizationProviders() {
206
211
  var _a;
207
- return ((_a = this._organizationProviders) !== null && _a !== void 0 ? _a : (this._organizationProviders = new Client_28.OrganizationProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
212
+ return ((_a = this._organizationProviders) !== null && _a !== void 0 ? _a : (this._organizationProviders = new Client_29.OrganizationProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
208
213
  }
209
214
  get organizationServiceFacilities() {
210
215
  var _a;
211
- return ((_a = this._organizationServiceFacilities) !== null && _a !== void 0 ? _a : (this._organizationServiceFacilities = new Client_29.OrganizationServiceFacilities(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
216
+ return ((_a = this._organizationServiceFacilities) !== null && _a !== void 0 ? _a : (this._organizationServiceFacilities = new Client_30.OrganizationServiceFacilities(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
212
217
  }
213
218
  get patientAr() {
214
219
  var _a;
215
- return ((_a = this._patientAr) !== null && _a !== void 0 ? _a : (this._patientAr = new Client_30.PatientAr(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
220
+ return ((_a = this._patientAr) !== null && _a !== void 0 ? _a : (this._patientAr = new Client_31.PatientAr(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
216
221
  }
217
222
  get patientPayments() {
218
223
  var _a;
219
- return ((_a = this._patientPayments) !== null && _a !== void 0 ? _a : (this._patientPayments = new Client_31.PatientPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
224
+ return ((_a = this._patientPayments) !== null && _a !== void 0 ? _a : (this._patientPayments = new Client_32.PatientPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
220
225
  }
221
226
  get patientRefunds() {
222
227
  var _a;
223
- return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new Client_32.PatientRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
228
+ return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new Client_33.PatientRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
224
229
  }
225
230
  get payerPlanGroups() {
226
231
  var _a;
227
- return ((_a = this._payerPlanGroups) !== null && _a !== void 0 ? _a : (this._payerPlanGroups = new Client_33.PayerPlanGroups(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
232
+ return ((_a = this._payerPlanGroups) !== null && _a !== void 0 ? _a : (this._payerPlanGroups = new Client_34.PayerPlanGroups(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
228
233
  }
229
234
  get payers() {
230
235
  var _a;
231
- return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_34.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
236
+ return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_35.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
232
237
  }
233
238
  get serviceLines() {
234
239
  var _a;
235
- return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_37.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
240
+ return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_38.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
236
241
  }
237
242
  get superbills() {
238
243
  var _a;
239
- return ((_a = this._superbills) !== null && _a !== void 0 ? _a : (this._superbills = new Client_38.Superbills(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
244
+ return ((_a = this._superbills) !== null && _a !== void 0 ? _a : (this._superbills = new Client_39.Superbills(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
240
245
  }
241
246
  get tasks() {
242
247
  var _a;
243
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_39.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
248
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_40.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
244
249
  }
245
250
  get writeOffs() {
246
251
  var _a;
247
- return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_40.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
252
+ return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_41.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
248
253
  }
249
254
  get preEncounter() {
250
255
  var _a;
251
- return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_35.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
256
+ return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_36.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
252
257
  }
253
258
  get diagnoses() {
254
259
  var _a;
@@ -256,7 +261,7 @@ class CandidApiClient {
256
261
  }
257
262
  get serviceFacility() {
258
263
  var _a;
259
- return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_36.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
264
+ return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_37.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
260
265
  }
261
266
  }
262
267
  exports.CandidApiClient = CandidApiClient;
@@ -51,6 +51,8 @@ export * from "./RegionNational";
51
51
  export * from "./RegionStates";
52
52
  export * from "./Regions";
53
53
  export * from "./RemovableDateRangeOptionalEnd";
54
+ export * from "./ReportTransmissionCode";
55
+ export * from "./ReportTypeCode";
54
56
  export * from "./RequestValidationError";
55
57
  export * from "./ResourcePage";
56
58
  export * from "./SchemaId";
@@ -67,6 +67,8 @@ __exportStar(require("./RegionNational"), exports);
67
67
  __exportStar(require("./RegionStates"), exports);
68
68
  __exportStar(require("./Regions"), exports);
69
69
  __exportStar(require("./RemovableDateRangeOptionalEnd"), exports);
70
+ __exportStar(require("./ReportTransmissionCode"), exports);
71
+ __exportStar(require("./ReportTypeCode"), exports);
70
72
  __exportStar(require("./RequestValidationError"), exports);
71
73
  __exportStar(require("./ResourcePage"), exports);
72
74
  __exportStar(require("./SchemaId"), exports);
@@ -24,7 +24,7 @@ export declare class V1 {
24
24
  private __get;
25
25
  /**
26
26
  * Uploads a file to the encounter. The file will be stored in the
27
- * encounter's attachments.
27
+ * encounter's attachments. Deprecated: Use create-v2 instead.
28
28
  *
29
29
  * @param {File | fs.ReadStream | Blob} attachmentFile
30
30
  * @param {CandidApi.EncounterId} encounterId
@@ -33,6 +33,17 @@ export declare class V1 {
33
33
  */
34
34
  create(attachmentFile: File | fs.ReadStream | Blob, encounterId: CandidApi.EncounterId, request: CandidApi.encounterAttachments.v1.CreateAttachmentRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.encounterAttachments.v1.AttachmentId, CandidApi.encounterAttachments.v1.create.Error>>;
35
35
  private __create;
36
+ /**
37
+ * Uploads a file to the encounter. The file will be stored in the
38
+ * encounter's attachments.
39
+ *
40
+ * @param {File | fs.ReadStream | Blob} attachmentFile
41
+ * @param {CandidApi.EncounterId} encounterId
42
+ * @param {CandidApi.encounterAttachments.v1.CreateAttachmentV2Request} request
43
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
44
+ */
45
+ createWithDescription(attachmentFile: File | fs.ReadStream | Blob, encounterId: CandidApi.EncounterId, request: CandidApi.encounterAttachments.v1.CreateAttachmentV2Request, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.encounterAttachments.v1.AttachmentId, CandidApi.encounterAttachments.v1.createWithDescription.Error>>;
46
+ private __createWithDescription;
36
47
  /**
37
48
  * @param {CandidApi.EncounterId} encounterId
38
49
  * @param {CandidApi.encounterAttachments.v1.DeleteAttachmentRequest} request
@@ -104,7 +104,7 @@ class V1 {
104
104
  }
105
105
  /**
106
106
  * Uploads a file to the encounter. The file will be stored in the
107
- * encounter's attachments.
107
+ * encounter's attachments. Deprecated: Use create-v2 instead.
108
108
  *
109
109
  * @param {File | fs.ReadStream | Blob} attachmentFile
110
110
  * @param {CandidApi.EncounterId} encounterId
@@ -162,6 +162,69 @@ class V1 {
162
162
  };
163
163
  });
164
164
  }
165
+ /**
166
+ * Uploads a file to the encounter. The file will be stored in the
167
+ * encounter's attachments.
168
+ *
169
+ * @param {File | fs.ReadStream | Blob} attachmentFile
170
+ * @param {CandidApi.EncounterId} encounterId
171
+ * @param {CandidApi.encounterAttachments.v1.CreateAttachmentV2Request} request
172
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
173
+ */
174
+ createWithDescription(attachmentFile, encounterId, request, requestOptions) {
175
+ return core.HttpResponsePromise.fromPromise(this.__createWithDescription(attachmentFile, encounterId, request, requestOptions));
176
+ }
177
+ __createWithDescription(attachmentFile, encounterId, request, requestOptions) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ var _a, _b, _c, _d, _e, _f, _g, _h;
180
+ const _request = yield core.newFormData();
181
+ yield _request.appendFile("attachment_file", attachmentFile);
182
+ _request.append("attachment_type", serializers.encounterAttachments.v1.EncounterAttachmentType.jsonOrThrow(request.attachmentType, {
183
+ unrecognizedObjectKeys: "strip",
184
+ }));
185
+ if (request.description != null) {
186
+ _request.append("description", request.description);
187
+ }
188
+ const _maybeEncodedRequest = yield _request.getRequest();
189
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
190
+ const _response = yield core.fetcher({
191
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-attachments/v1/${core.url.encodePathParam(serializers.EncounterId.jsonOrThrow(encounterId))}/v2`),
192
+ method: "PUT",
193
+ headers: _headers,
194
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
195
+ requestType: "file",
196
+ duplex: _maybeEncodedRequest.duplex,
197
+ body: _maybeEncodedRequest.body,
198
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
199
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
200
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
201
+ });
202
+ if (_response.ok) {
203
+ return {
204
+ data: {
205
+ ok: true,
206
+ body: serializers.encounterAttachments.v1.AttachmentId.parseOrThrow(_response.body, {
207
+ unrecognizedObjectKeys: "passthrough",
208
+ allowUnrecognizedUnionMembers: true,
209
+ allowUnrecognizedEnumValues: true,
210
+ breadcrumbsPrefix: ["response"],
211
+ }),
212
+ headers: _response.headers,
213
+ rawResponse: _response.rawResponse,
214
+ },
215
+ rawResponse: _response.rawResponse,
216
+ };
217
+ }
218
+ return {
219
+ data: {
220
+ ok: false,
221
+ error: CandidApi.encounterAttachments.v1.createWithDescription.Error._unknown(_response.error),
222
+ rawResponse: _response.rawResponse,
223
+ },
224
+ rawResponse: _response.rawResponse,
225
+ };
226
+ });
227
+ }
165
228
  /**
166
229
  * @param {CandidApi.EncounterId} encounterId
167
230
  * @param {CandidApi.encounterAttachments.v1.DeleteAttachmentRequest} request
@@ -0,0 +1,19 @@
1
+ import type * as core from "../../../../../../core";
2
+ import * as CandidApi from "../../../../../index";
3
+ export type Error = CandidApi.encounterAttachments.v1.createWithDescription.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface _Unknown extends _Utils {
6
+ errorName: void;
7
+ content: core.Fetcher.Error;
8
+ }
9
+ interface _Utils {
10
+ _visit: <_Result>(visitor: CandidApi.encounterAttachments.v1.createWithDescription.Error._Visitor<_Result>) => _Result;
11
+ }
12
+ interface _Visitor<_Result> {
13
+ _other: (value: core.Fetcher.Error) => _Result;
14
+ }
15
+ }
16
+ export declare const Error: {
17
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterAttachments.v1.createWithDescription.Error._Unknown;
18
+ readonly _visit: <_Result>(value: CandidApi.encounterAttachments.v1.createWithDescription.Error, visitor: CandidApi.encounterAttachments.v1.createWithDescription.Error._Visitor<_Result>) => _Result;
19
+ };