candidhealth 0.42.4 → 0.43.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 (404) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +61 -56
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +15 -0
  6. package/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  7. package/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  8. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +238 -5
  9. package/api/resources/chargeCapture/resources/v1/client/Client.js +253 -23
  10. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +118 -1
  11. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +118 -1
  12. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +6 -11
  13. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -1
  14. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  15. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +5 -5
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -16
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +26 -76
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -1
  19. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -2
  20. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/{GetAllChargeCaptureBundlesRequest.d.ts → GetAllChargeCaptureClaimCreationsRequest.d.ts} +17 -17
  21. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -1
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +20 -0
  23. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationPage.d.ts +7 -0
  24. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.d.ts +7 -0
  25. package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js → api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.js} +2 -2
  26. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationStatus.d.ts +15 -0
  27. package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js → api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationStatus.js} +2 -2
  28. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.d.ts +15 -0
  29. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +5 -5
  30. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +5 -5
  31. package/api/resources/commons/types/ChargeCaptureClaimCreationId.d.ts +8 -0
  32. package/api/resources/commons/types/ChargeCaptureClaimCreationId.js +9 -0
  33. package/api/resources/commons/types/index.d.ts +1 -2
  34. package/api/resources/commons/types/index.js +1 -2
  35. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  36. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  37. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  38. package/api/resources/diagnoses/client/Client.js +3 -3
  39. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  40. package/api/resources/encounterAttachments/client/Client.d.ts +30 -0
  41. package/api/resources/encounterAttachments/client/Client.js +17 -0
  42. package/api/resources/encounterAttachments/client/index.d.ts +1 -0
  43. package/api/resources/encounterAttachments/client/index.js +2 -0
  44. package/api/resources/encounterAttachments/index.d.ts +2 -0
  45. package/api/resources/encounterAttachments/index.js +18 -0
  46. package/api/resources/encounterAttachments/resources/index.d.ts +1 -0
  47. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/client → api/resources/encounterAttachments/resources}/index.js +2 -2
  48. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +63 -0
  49. package/api/resources/encounterAttachments/resources/v1/client/Client.js +195 -0
  50. package/api/resources/encounterAttachments/resources/v1/client/create.d.ts +22 -0
  51. package/{dist/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.js → api/resources/encounterAttachments/resources/v1/client/create.js} +1 -12
  52. package/api/resources/encounterAttachments/resources/v1/client/delete.d.ts +22 -0
  53. package/api/resources/{chargeCaptureBundles/resources/v1/client/resubmit.js → encounterAttachments/resources/v1/client/delete.js} +1 -12
  54. package/api/resources/encounterAttachments/resources/v1/client/get.d.ts +22 -0
  55. package/api/resources/encounterAttachments/resources/v1/client/get.js +57 -0
  56. package/api/resources/encounterAttachments/resources/v1/client/index.d.ts +4 -0
  57. package/api/resources/encounterAttachments/resources/v1/client/index.js +43 -0
  58. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +11 -0
  59. package/api/resources/encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.d.ts +13 -0
  60. package/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +2 -0
  61. package/api/resources/encounterAttachments/resources/v1/client/requests/index.js +2 -0
  62. package/api/resources/encounterAttachments/resources/v1/index.d.ts +2 -0
  63. package/api/resources/encounterAttachments/resources/v1/index.js +18 -0
  64. package/api/resources/encounterAttachments/resources/v1/types/AttachmentId.d.ts +8 -0
  65. package/api/resources/{commons/types/ChargeCaptureBundleId.js → encounterAttachments/resources/v1/types/AttachmentId.js} +2 -2
  66. package/api/resources/encounterAttachments/resources/v1/types/BaseAttachment.d.ts +11 -0
  67. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +8 -0
  68. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +7 -0
  69. package/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +9 -0
  70. package/api/resources/encounterAttachments/resources/v1/types/index.d.ts +4 -0
  71. package/api/resources/encounterAttachments/resources/v1/types/index.js +20 -0
  72. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -66
  73. package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -78
  74. package/api/resources/encounters/resources/v4/client/Client.d.ts +110 -100
  75. package/api/resources/encounters/resources/v4/client/Client.js +115 -105
  76. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +9 -83
  77. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +97 -1
  78. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  79. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  80. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  81. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  82. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  83. package/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -21
  84. package/api/resources/guarantor/resources/v1/client/Client.js +4 -24
  85. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  86. package/api/resources/index.d.ts +1 -0
  87. package/api/resources/index.js +3 -2
  88. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  89. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  90. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  91. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  92. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  93. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  94. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  95. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  96. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  97. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  98. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  99. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  100. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  101. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  102. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  103. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  104. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  105. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  106. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  107. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  108. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  109. package/api/resources/serviceFacility/client/Client.js +1 -1
  110. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +1 -4
  111. package/api/resources/serviceLines/resources/v2/client/Client.js +4 -7
  112. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  113. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  114. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  115. package/core/form-data-utils/FormDataWrapper.d.ts +60 -0
  116. package/core/form-data-utils/FormDataWrapper.js +188 -0
  117. package/core/form-data-utils/index.d.ts +1 -0
  118. package/core/form-data-utils/index.js +17 -0
  119. package/core/index.d.ts +1 -0
  120. package/core/index.js +1 -0
  121. package/dist/Client.d.ts +3 -0
  122. package/dist/Client.js +61 -56
  123. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  124. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  125. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +15 -0
  126. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  127. package/dist/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  128. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +238 -5
  129. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +253 -23
  130. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +118 -1
  131. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +118 -1
  132. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +6 -11
  133. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -1
  134. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  135. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +5 -5
  136. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -16
  137. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +26 -76
  138. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -1
  139. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -2
  140. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/{GetAllChargeCaptureBundlesRequest.d.ts → GetAllChargeCaptureClaimCreationsRequest.d.ts} +17 -17
  141. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.js +5 -0
  142. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -1
  143. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +20 -0
  144. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.js +5 -0
  145. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationPage.d.ts +7 -0
  146. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationPage.js +5 -0
  147. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.d.ts +7 -0
  148. package/{api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js → dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.js} +2 -2
  149. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationStatus.d.ts +15 -0
  150. package/{api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js → dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationStatus.js} +2 -2
  151. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.d.ts +15 -0
  152. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.js +5 -0
  153. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +5 -5
  154. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +5 -5
  155. package/dist/api/resources/commons/types/ChargeCaptureClaimCreationId.d.ts +8 -0
  156. package/dist/api/resources/commons/types/ChargeCaptureClaimCreationId.js +9 -0
  157. package/dist/api/resources/commons/types/index.d.ts +1 -2
  158. package/dist/api/resources/commons/types/index.js +1 -2
  159. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  160. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  161. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  162. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  163. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  164. package/dist/api/resources/encounterAttachments/client/Client.d.ts +30 -0
  165. package/dist/api/resources/encounterAttachments/client/Client.js +17 -0
  166. package/dist/api/resources/encounterAttachments/client/index.d.ts +1 -0
  167. package/dist/api/resources/encounterAttachments/client/index.js +2 -0
  168. package/dist/api/resources/encounterAttachments/index.d.ts +2 -0
  169. package/dist/api/resources/encounterAttachments/index.js +18 -0
  170. package/dist/api/resources/encounterAttachments/resources/index.d.ts +1 -0
  171. package/{serialization/resources/chargeCaptureBundles/resources/v1/client → dist/api/resources/encounterAttachments/resources}/index.js +2 -2
  172. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +63 -0
  173. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +195 -0
  174. package/dist/api/resources/encounterAttachments/resources/v1/client/create.d.ts +22 -0
  175. package/dist/api/resources/encounterAttachments/resources/v1/client/create.js +57 -0
  176. package/dist/api/resources/encounterAttachments/resources/v1/client/delete.d.ts +22 -0
  177. package/dist/api/resources/encounterAttachments/resources/v1/client/delete.js +57 -0
  178. package/dist/api/resources/encounterAttachments/resources/v1/client/get.d.ts +22 -0
  179. package/dist/api/resources/encounterAttachments/resources/v1/client/get.js +57 -0
  180. package/dist/api/resources/encounterAttachments/resources/v1/client/index.d.ts +4 -0
  181. package/dist/api/resources/encounterAttachments/resources/v1/client/index.js +43 -0
  182. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +11 -0
  183. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.js +5 -0
  184. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.d.ts +13 -0
  185. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.js +5 -0
  186. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +2 -0
  187. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/index.js +2 -0
  188. package/dist/api/resources/encounterAttachments/resources/v1/index.d.ts +2 -0
  189. package/dist/api/resources/encounterAttachments/resources/v1/index.js +18 -0
  190. package/dist/api/resources/encounterAttachments/resources/v1/types/AttachmentId.d.ts +8 -0
  191. package/dist/api/resources/{commons/types/ChargeCaptureBundleId.js → encounterAttachments/resources/v1/types/AttachmentId.js} +2 -2
  192. package/dist/api/resources/encounterAttachments/resources/v1/types/BaseAttachment.d.ts +11 -0
  193. package/dist/api/resources/encounterAttachments/resources/v1/types/BaseAttachment.js +5 -0
  194. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +8 -0
  195. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +5 -0
  196. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +7 -0
  197. package/dist/api/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.js +9 -0
  198. package/dist/api/resources/encounterAttachments/resources/v1/types/index.d.ts +4 -0
  199. package/dist/api/resources/encounterAttachments/resources/v1/types/index.js +20 -0
  200. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -66
  201. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -78
  202. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +110 -100
  203. package/dist/api/resources/encounters/resources/v4/client/Client.js +115 -105
  204. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +9 -83
  205. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +97 -1
  206. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  207. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  208. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  209. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  210. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  211. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -21
  212. package/dist/api/resources/guarantor/resources/v1/client/Client.js +4 -24
  213. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  214. package/dist/api/resources/index.d.ts +1 -0
  215. package/dist/api/resources/index.js +3 -2
  216. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  217. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  218. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  219. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  220. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  221. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  222. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  223. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  224. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  225. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  226. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  227. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  228. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  229. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  230. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  231. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  232. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  233. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  234. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  235. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  236. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  237. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  238. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +1 -4
  239. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +4 -7
  240. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  241. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  242. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  243. package/dist/core/form-data-utils/FormDataWrapper.d.ts +60 -0
  244. package/dist/core/form-data-utils/FormDataWrapper.js +188 -0
  245. package/dist/core/form-data-utils/index.d.ts +1 -0
  246. package/dist/core/form-data-utils/index.js +17 -0
  247. package/dist/core/index.d.ts +1 -0
  248. package/dist/core/index.js +1 -0
  249. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +19 -0
  250. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.js +52 -0
  251. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  252. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  253. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -2
  254. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -2
  255. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -2
  256. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -2
  257. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +2 -2
  258. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +2 -2
  259. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +0 -1
  260. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +0 -1
  261. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +20 -0
  262. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js → dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.js} +6 -8
  263. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationPage.d.ts +14 -0
  264. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js → dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationPage.js} +4 -4
  265. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.d.ts +10 -0
  266. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js → dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.js} +2 -2
  267. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/{ChargeCaptureBundleStatus.d.ts → ChargeCaptureClaimCreationStatus.d.ts} +2 -2
  268. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationStatus.js +41 -0
  269. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.d.ts +16 -0
  270. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js → dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.js} +5 -5
  271. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +5 -5
  272. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +5 -5
  273. package/dist/serialization/resources/commons/types/{ChargeCaptureBundleId.d.ts → ChargeCaptureClaimCreationId.d.ts} +2 -2
  274. package/{serialization/resources/commons/types/ChargeCaptureBundleId.js → dist/serialization/resources/commons/types/ChargeCaptureClaimCreationId.js} +3 -3
  275. package/dist/serialization/resources/commons/types/index.d.ts +1 -2
  276. package/dist/serialization/resources/commons/types/index.js +1 -2
  277. package/dist/serialization/resources/encounterAttachments/index.d.ts +1 -0
  278. package/dist/serialization/resources/encounterAttachments/index.js +17 -0
  279. package/dist/serialization/resources/encounterAttachments/resources/index.d.ts +1 -0
  280. package/dist/serialization/resources/encounterAttachments/resources/index.js +37 -0
  281. package/dist/serialization/resources/encounterAttachments/resources/v1/client/get.d.ts +11 -0
  282. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js → encounterAttachments/resources/v1/client/get.js} +3 -2
  283. package/dist/serialization/resources/encounterAttachments/resources/v1/client/index.d.ts +2 -0
  284. package/dist/serialization/resources/encounterAttachments/resources/v1/client/index.js +41 -0
  285. package/dist/serialization/resources/encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.d.ts +13 -0
  286. package/dist/serialization/resources/{commons/types/NotImplementedErrorMessage.js → encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.js} +5 -4
  287. package/dist/serialization/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
  288. package/dist/serialization/resources/encounterAttachments/resources/v1/client/requests/index.js +5 -0
  289. package/dist/serialization/resources/encounterAttachments/resources/v1/index.d.ts +2 -0
  290. package/dist/serialization/resources/encounterAttachments/resources/v1/index.js +18 -0
  291. package/dist/serialization/resources/encounterAttachments/resources/v1/types/AttachmentId.d.ts +10 -0
  292. package/dist/serialization/resources/encounterAttachments/resources/v1/types/AttachmentId.js +45 -0
  293. package/dist/serialization/resources/encounterAttachments/resources/v1/types/BaseAttachment.d.ts +18 -0
  294. package/dist/serialization/resources/encounterAttachments/resources/v1/types/BaseAttachment.js +49 -0
  295. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +16 -0
  296. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +49 -0
  297. package/dist/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +10 -0
  298. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js → encounterAttachments/resources/v1/types/EncounterAttachmentType.js} +2 -2
  299. package/dist/serialization/resources/encounterAttachments/resources/v1/types/index.d.ts +4 -0
  300. package/dist/serialization/resources/encounterAttachments/resources/v1/types/index.js +20 -0
  301. package/dist/serialization/resources/index.d.ts +1 -0
  302. package/dist/serialization/resources/index.js +3 -2
  303. package/dist/version.d.ts +1 -1
  304. package/dist/version.js +1 -1
  305. package/package.json +3 -2
  306. package/reference.md +558 -246
  307. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.d.ts +19 -0
  308. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteOptional.js +52 -0
  309. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  310. package/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  311. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -2
  312. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -2
  313. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -2
  314. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -2
  315. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +2 -2
  316. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +2 -2
  317. package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +0 -1
  318. package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +0 -1
  319. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.d.ts +20 -0
  320. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js → serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreation.js} +6 -8
  321. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationPage.d.ts +14 -0
  322. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js → serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationPage.js} +4 -4
  323. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.d.ts +10 -0
  324. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSortField.js +41 -0
  325. package/serialization/resources/chargeCaptureBundles/resources/v1/types/{ChargeCaptureBundleStatus.d.ts → ChargeCaptureClaimCreationStatus.d.ts} +2 -2
  326. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationStatus.js +41 -0
  327. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.d.ts +16 -0
  328. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js → serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.js} +5 -5
  329. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +5 -5
  330. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +5 -5
  331. package/serialization/resources/commons/types/{ChargeCaptureBundleId.d.ts → ChargeCaptureClaimCreationId.d.ts} +2 -2
  332. package/{dist/serialization/resources/commons/types/ChargeCaptureBundleId.js → serialization/resources/commons/types/ChargeCaptureClaimCreationId.js} +3 -3
  333. package/serialization/resources/commons/types/index.d.ts +1 -2
  334. package/serialization/resources/commons/types/index.js +1 -2
  335. package/serialization/resources/encounterAttachments/index.d.ts +1 -0
  336. package/serialization/resources/encounterAttachments/index.js +17 -0
  337. package/serialization/resources/encounterAttachments/resources/index.d.ts +1 -0
  338. package/serialization/resources/encounterAttachments/resources/index.js +37 -0
  339. package/serialization/resources/encounterAttachments/resources/v1/client/get.d.ts +11 -0
  340. package/serialization/resources/encounterAttachments/resources/v1/client/get.js +42 -0
  341. package/serialization/resources/encounterAttachments/resources/v1/client/index.d.ts +2 -0
  342. package/serialization/resources/encounterAttachments/resources/v1/client/index.js +41 -0
  343. package/serialization/resources/encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.d.ts +13 -0
  344. package/serialization/resources/{commons/types/NotImplementedErrorMessage.js → encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.js} +5 -4
  345. package/serialization/resources/encounterAttachments/resources/v1/client/requests/index.d.ts +1 -0
  346. package/serialization/resources/encounterAttachments/resources/v1/client/requests/index.js +5 -0
  347. package/serialization/resources/encounterAttachments/resources/v1/index.d.ts +2 -0
  348. package/serialization/resources/encounterAttachments/resources/v1/index.js +18 -0
  349. package/serialization/resources/encounterAttachments/resources/v1/types/AttachmentId.d.ts +10 -0
  350. package/serialization/resources/encounterAttachments/resources/v1/types/AttachmentId.js +45 -0
  351. package/serialization/resources/encounterAttachments/resources/v1/types/BaseAttachment.d.ts +18 -0
  352. package/serialization/resources/encounterAttachments/resources/v1/types/BaseAttachment.js +49 -0
  353. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.d.ts +16 -0
  354. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js +49 -0
  355. package/serialization/resources/encounterAttachments/resources/v1/types/EncounterAttachmentType.d.ts +10 -0
  356. package/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js → encounterAttachments/resources/v1/types/EncounterAttachmentType.js} +2 -2
  357. package/serialization/resources/encounterAttachments/resources/v1/types/index.d.ts +4 -0
  358. package/serialization/resources/encounterAttachments/resources/v1/types/index.js +20 -0
  359. package/serialization/resources/index.d.ts +1 -0
  360. package/serialization/resources/index.js +3 -2
  361. package/version.d.ts +1 -1
  362. package/version.js +1 -1
  363. package/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +0 -28
  364. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +0 -22
  365. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +0 -7
  366. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +0 -7
  367. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +0 -15
  368. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +0 -15
  369. package/api/resources/commons/types/ChargeCaptureBundleId.d.ts +0 -8
  370. package/api/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -6
  371. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +0 -28
  372. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +0 -22
  373. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +0 -7
  374. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +0 -7
  375. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +0 -15
  376. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +0 -15
  377. package/dist/api/resources/commons/types/ChargeCaptureBundleId.d.ts +0 -8
  378. package/dist/api/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -6
  379. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -1
  380. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +0 -15
  381. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +0 -71
  382. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +0 -22
  383. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +0 -14
  384. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +0 -10
  385. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +0 -16
  386. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -12
  387. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -1
  388. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +0 -15
  389. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +0 -71
  390. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +0 -22
  391. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +0 -14
  392. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +0 -10
  393. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +0 -16
  394. package/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -12
  395. /package/api/resources/{chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.js → billingNotes/resources/v2/types/BillingNoteOptional.js} +0 -0
  396. /package/api/resources/chargeCaptureBundles/resources/v1/{types/ChargeCaptureBundle.js → client/requests/GetAllChargeCaptureClaimCreationsRequest.js} +0 -0
  397. /package/api/resources/chargeCaptureBundles/resources/v1/types/{ChargeCaptureBundlePage.js → ChargeCaptureClaimCreation.js} +0 -0
  398. /package/api/resources/chargeCaptureBundles/resources/v1/types/{ChargeCaptureBundleSummary.js → ChargeCaptureClaimCreationPage.js} +0 -0
  399. /package/api/resources/{commons/types/NotImplementedErrorMessage.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureClaimCreationSummary.js} +0 -0
  400. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.js → api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.js} +0 -0
  401. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js → api/resources/encounterAttachments/resources/v1/client/requests/DeleteAttachmentRequest.js} +0 -0
  402. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js → api/resources/encounterAttachments/resources/v1/types/BaseAttachment.js} +0 -0
  403. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js → api/resources/encounterAttachments/resources/v1/types/EncounterAttachment.js} +0 -0
  404. /package/dist/api/resources/{commons/types/NotImplementedErrorMessage.js → billingNotes/resources/v2/types/BillingNoteOptional.js} +0 -0
@@ -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("./resources"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1 @@
1
+ export * as v1 from "./v1";
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.resubmit = void 0;
37
- exports.resubmit = __importStar(require("./resubmit"));
36
+ exports.v1 = void 0;
37
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1,63 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as CandidApi from "../../../../../index";
7
+ import * as fs from "fs";
8
+ import { Blob } from "buffer";
9
+ export declare namespace V1 {
10
+ interface Options {
11
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
12
+ /** Specify a custom URL to connect the client to. */
13
+ baseUrl?: core.Supplier<string>;
14
+ token?: core.Supplier<core.BearerToken | undefined>;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Additional headers to include in the request. */
24
+ headers?: Record<string, string>;
25
+ }
26
+ }
27
+ export declare class V1 {
28
+ protected readonly _options: V1.Options;
29
+ constructor(_options?: V1.Options);
30
+ /**
31
+ * @param {CandidApi.EncounterId} encounterId
32
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @example
35
+ * await client.encounterAttachments.v1.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
36
+ */
37
+ get(encounterId: CandidApi.EncounterId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.encounterAttachments.v1.EncounterAttachment[], CandidApi.encounterAttachments.v1.get.Error>>;
38
+ /**
39
+ * Uploads a file to the encounter. The file will be stored in the
40
+ * encounter's attachments. The maximum file size is 25MB.
41
+ *
42
+ * @param {File | fs.ReadStream | Blob} attachmentFile
43
+ * @param {CandidApi.EncounterId} encounterId
44
+ * @param {CandidApi.encounterAttachments.v1.CreateAttachmentRequest} request
45
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
46
+ *
47
+ * @example
48
+ * await client.encounterAttachments.v1.create(fs.createReadStream("/path/to/your/file"), CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
49
+ */
50
+ create(attachmentFile: File | fs.ReadStream | Blob, encounterId: CandidApi.EncounterId, request: CandidApi.encounterAttachments.v1.CreateAttachmentRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.encounterAttachments.v1.AttachmentId, CandidApi.encounterAttachments.v1.create.Error>>;
51
+ /**
52
+ * @param {CandidApi.EncounterId} encounterId
53
+ * @param {CandidApi.encounterAttachments.v1.DeleteAttachmentRequest} request
54
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @example
57
+ * await client.encounterAttachments.v1.delete(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
58
+ * attachmentId: CandidApi.encounterAttachments.v1.AttachmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
59
+ * })
60
+ */
61
+ delete(encounterId: CandidApi.EncounterId, request: CandidApi.encounterAttachments.v1.DeleteAttachmentRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.encounterAttachments.v1.delete.Error>>;
62
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
63
+ }
@@ -0,0 +1,195 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.V1 = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const CandidApi = __importStar(require("../../../../../index"));
55
+ const serializers = __importStar(require("../../../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ class V1 {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * @param {CandidApi.EncounterId} encounterId
63
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @example
66
+ * await client.encounterAttachments.v1.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
67
+ */
68
+ get(encounterId, requestOptions) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ var _a, _b;
71
+ const _response = yield core.fetcher({
72
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
73
+ method: "GET",
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ contentType: "application/json",
76
+ requestType: "json",
77
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
78
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
79
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
+ });
81
+ if (_response.ok) {
82
+ return {
83
+ ok: true,
84
+ body: serializers.encounterAttachments.v1.get.Response.parseOrThrow(_response.body, {
85
+ unrecognizedObjectKeys: "passthrough",
86
+ allowUnrecognizedUnionMembers: true,
87
+ allowUnrecognizedEnumValues: true,
88
+ breadcrumbsPrefix: ["response"],
89
+ }),
90
+ };
91
+ }
92
+ return {
93
+ ok: false,
94
+ error: CandidApi.encounterAttachments.v1.get.Error._unknown(_response.error),
95
+ };
96
+ });
97
+ }
98
+ /**
99
+ * Uploads a file to the encounter. The file will be stored in the
100
+ * encounter's attachments. The maximum file size is 25MB.
101
+ *
102
+ * @param {File | fs.ReadStream | Blob} attachmentFile
103
+ * @param {CandidApi.EncounterId} encounterId
104
+ * @param {CandidApi.encounterAttachments.v1.CreateAttachmentRequest} request
105
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
106
+ *
107
+ * @example
108
+ * await client.encounterAttachments.v1.create(fs.createReadStream("/path/to/your/file"), CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
109
+ */
110
+ create(attachmentFile, encounterId, request, requestOptions) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ var _a, _b;
113
+ const _request = yield core.newFormData();
114
+ yield _request.appendFile("attachment_file", attachmentFile);
115
+ _request.append("attachment_type", serializers.encounterAttachments.v1.EncounterAttachmentType.jsonOrThrow(request.attachmentType, {
116
+ unrecognizedObjectKeys: "strip",
117
+ }));
118
+ const _maybeEncodedRequest = yield _request.getRequest();
119
+ const _response = yield core.fetcher({
120
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
121
+ method: "PUT",
122
+ headers: Object.assign(Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
+ requestType: "file",
124
+ duplex: _maybeEncodedRequest.duplex,
125
+ body: _maybeEncodedRequest.body,
126
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
127
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
128
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
129
+ });
130
+ if (_response.ok) {
131
+ return {
132
+ ok: true,
133
+ body: serializers.encounterAttachments.v1.AttachmentId.parseOrThrow(_response.body, {
134
+ unrecognizedObjectKeys: "passthrough",
135
+ allowUnrecognizedUnionMembers: true,
136
+ allowUnrecognizedEnumValues: true,
137
+ breadcrumbsPrefix: ["response"],
138
+ }),
139
+ };
140
+ }
141
+ return {
142
+ ok: false,
143
+ error: CandidApi.encounterAttachments.v1.create.Error._unknown(_response.error),
144
+ };
145
+ });
146
+ }
147
+ /**
148
+ * @param {CandidApi.EncounterId} encounterId
149
+ * @param {CandidApi.encounterAttachments.v1.DeleteAttachmentRequest} request
150
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
151
+ *
152
+ * @example
153
+ * await client.encounterAttachments.v1.delete(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
154
+ * attachmentId: CandidApi.encounterAttachments.v1.AttachmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
155
+ * })
156
+ */
157
+ delete(encounterId, request, requestOptions) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ var _a, _b;
160
+ const _response = yield core.fetcher({
161
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/encounter-attachments/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
162
+ method: "DELETE",
163
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0", "User-Agent": "candidhealth/0.43.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ contentType: "application/json",
165
+ requestType: "json",
166
+ body: serializers.encounterAttachments.v1.DeleteAttachmentRequest.jsonOrThrow(request, {
167
+ unrecognizedObjectKeys: "strip",
168
+ }),
169
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
170
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
171
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
172
+ });
173
+ if (_response.ok) {
174
+ return {
175
+ ok: true,
176
+ body: undefined,
177
+ };
178
+ }
179
+ return {
180
+ ok: false,
181
+ error: CandidApi.encounterAttachments.v1.delete.Error._unknown(_response.error),
182
+ };
183
+ });
184
+ }
185
+ _getAuthorizationHeader() {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const bearer = yield core.Supplier.get(this._options.token);
188
+ if (bearer != null) {
189
+ return `Bearer ${bearer}`;
190
+ }
191
+ return undefined;
192
+ });
193
+ }
194
+ }
195
+ exports.V1 = V1;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.encounterAttachments.v1.create.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.encounterAttachments.v1.create.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterAttachments.v1.create.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.encounterAttachments.v1.create.Error, visitor: CandidApi.encounterAttachments.v1.create.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.encounterAttachments.v1.create.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.encounterAttachments.v1.delete.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.encounterAttachments.v1.delete.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterAttachments.v1.delete.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.encounterAttachments.v1.delete.Error, visitor: CandidApi.encounterAttachments.v1.delete.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.encounterAttachments.v1.delete.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.encounterAttachments.v1.get.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.encounterAttachments.v1.get.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounterAttachments.v1.get.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.encounterAttachments.v1.get.Error, visitor: CandidApi.encounterAttachments.v1.get.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.encounterAttachments.v1.get.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./requests";
2
+ export * as get from "./get";
3
+ export * as create from "./create";
4
+ export * as delete from "./delete";
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.delete = exports.create = exports.get = void 0;
40
+ __exportStar(require("./requests"), exports);
41
+ exports.get = __importStar(require("./get"));
42
+ exports.create = __importStar(require("./create"));
43
+ exports.delete = __importStar(require("./delete"));
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface CreateAttachmentRequest {
10
+ attachmentType: CandidApi.encounterAttachments.v1.EncounterAttachmentType;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * attachmentId: CandidApi.encounterAttachments.v1.AttachmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
9
+ * }
10
+ */
11
+ export interface DeleteAttachmentRequest {
12
+ attachmentId: CandidApi.encounterAttachments.v1.AttachmentId;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type CreateAttachmentRequest } from "./CreateAttachmentRequest";
2
+ export { type DeleteAttachmentRequest } from "./DeleteAttachmentRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);