candidhealth 0.40.0 → 0.40.2

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 (202) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +4 -1
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +23 -7
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +16 -1
  6. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  7. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  8. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js +5 -0
  9. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  10. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  11. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  12. package/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  13. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +4 -1
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +21 -5
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +16 -1
  16. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  18. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  19. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  20. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  21. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  22. package/api/resources/commons/types/index.d.ts +1 -0
  23. package/api/resources/commons/types/index.js +1 -0
  24. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  25. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  26. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  27. package/api/resources/diagnoses/client/Client.js +3 -3
  28. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  29. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  30. package/api/resources/encounters/resources/v4/client/Client.d.ts +30 -0
  31. package/api/resources/encounters/resources/v4/client/Client.js +35 -5
  32. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -0
  33. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  34. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  35. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  36. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  37. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  38. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  39. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  40. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  41. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  42. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  43. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  44. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  45. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  46. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  47. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  48. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  49. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  50. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  51. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  52. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  53. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  54. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  55. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  56. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  57. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  58. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  59. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  60. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  61. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  62. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  63. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  64. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  65. package/api/resources/serviceFacility/client/Client.js +1 -1
  66. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  67. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  68. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  69. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  70. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  71. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  72. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  73. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +4 -1
  74. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +23 -7
  75. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +16 -1
  76. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  77. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  78. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js +5 -0
  79. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  80. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  81. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  82. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  83. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +4 -1
  84. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +21 -5
  85. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +16 -1
  86. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  87. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  88. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  89. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  90. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  91. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  92. package/dist/api/resources/commons/types/index.d.ts +1 -0
  93. package/dist/api/resources/commons/types/index.js +1 -0
  94. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  95. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  96. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  97. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  98. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  99. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  100. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +30 -0
  101. package/dist/api/resources/encounters/resources/v4/client/Client.js +35 -5
  102. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -0
  103. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  104. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  105. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  106. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  107. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  108. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  109. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  110. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  111. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  112. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  113. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  114. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  115. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  116. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  117. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  118. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  119. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  120. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  121. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  122. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  123. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  124. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  125. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  126. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  127. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  128. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  129. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  130. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  131. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  132. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  133. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  134. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  135. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  136. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  137. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  138. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  139. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  140. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  141. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  142. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  143. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  144. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js +46 -0
  145. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  146. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  147. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  148. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  149. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  150. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  151. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  152. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  153. package/dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  154. package/dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js +45 -0
  155. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  156. package/dist/serialization/resources/commons/types/index.js +1 -0
  157. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  158. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  159. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  160. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  161. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -0
  162. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -0
  163. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  164. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  165. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  166. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  167. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  168. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  169. package/dist/version.d.ts +1 -1
  170. package/dist/version.js +1 -1
  171. package/package.json +1 -1
  172. package/reference.md +36 -0
  173. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  174. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  175. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  176. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js +46 -0
  177. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  178. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  179. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  180. package/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  181. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  182. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  183. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  184. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  185. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  186. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js +45 -0
  187. package/serialization/resources/commons/types/index.d.ts +1 -0
  188. package/serialization/resources/commons/types/index.js +1 -0
  189. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  190. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +1 -0
  191. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  192. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -0
  193. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +1 -0
  194. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +1 -0
  195. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  196. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  197. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  198. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  199. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  200. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  201. package/version.d.ts +1 -1
  202. package/version.js +1 -1
@@ -92,7 +92,7 @@ class V2 {
92
92
  const _response = yield core.fetcher({
93
93
  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/auth/v2/token"),
94
94
  method: "POST",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  requestType: "json",
98
98
  body: serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -74,7 +74,7 @@ class V2 {
74
74
  const _response = yield core.fetcher({
75
75
  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/billing_notes/v2"),
76
76
  method: "POST",
77
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class V2 {
114
114
  const _response = yield core.fetcher({
115
115
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
116
116
  method: "DELETE",
117
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
118
  contentType: "application/json",
119
119
  requestType: "json",
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class V2 {
165
165
  const _response = yield core.fetcher({
166
166
  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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
167
167
  method: "PATCH",
168
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
@@ -79,11 +79,14 @@ export declare class V1 {
79
79
  * @example
80
80
  * await client.chargeCapture.v1.getAll({
81
81
  * limit: 1,
82
+ * sort: "created_at",
83
+ * sortDirection: "asc",
82
84
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
83
85
  * patientExternalId: "string",
84
86
  * status: "planned",
85
87
  * chargeExternalId: "string",
86
- * dateOfService: "2023-01-15"
88
+ * dateOfService: "2023-01-15",
89
+ * excludeBundled: true
87
90
  * })
88
91
  */
89
92
  getAll(request?: CandidApi.chargeCapture.v1.GetAllChargeCapturesRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapturePage, CandidApi.chargeCapture.v1.getAll.Error>>;
@@ -78,7 +78,7 @@ class V1 {
78
78
  const _response = yield core.fetcher({
79
79
  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/charge_captures/v1"),
80
80
  method: "POST",
81
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -136,7 +136,7 @@ class V1 {
136
136
  const _response = yield core.fetcher({
137
137
  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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
138
138
  method: "DELETE",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -191,7 +191,7 @@ class V1 {
191
191
  const _response = yield core.fetcher({
192
192
  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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
193
193
  method: "PATCH",
194
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
195
195
  contentType: "application/json",
196
196
  requestType: "json",
197
197
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -249,7 +249,7 @@ class V1 {
249
249
  const _response = yield core.fetcher({
250
250
  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/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
251
251
  method: "GET",
252
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
252
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -280,21 +280,34 @@ class V1 {
280
280
  * @example
281
281
  * await client.chargeCapture.v1.getAll({
282
282
  * limit: 1,
283
+ * sort: "created_at",
284
+ * sortDirection: "asc",
283
285
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
284
286
  * patientExternalId: "string",
285
287
  * status: "planned",
286
288
  * chargeExternalId: "string",
287
- * dateOfService: "2023-01-15"
289
+ * dateOfService: "2023-01-15",
290
+ * excludeBundled: true
288
291
  * })
289
292
  */
290
293
  getAll() {
291
294
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
292
295
  var _a, _b;
293
- const { limit, pageToken, patientExternalId, status, chargeExternalId, dateOfService } = request;
296
+ const { limit, sort, sortDirection, pageToken, patientExternalId, status, chargeExternalId, dateOfService, excludeBundled, } = request;
294
297
  const _queryParams = {};
295
298
  if (limit != null) {
296
299
  _queryParams["limit"] = limit.toString();
297
300
  }
301
+ if (sort != null) {
302
+ _queryParams["sort"] = serializers.chargeCapture.v1.ChargeCaptureSortField.jsonOrThrow(sort, {
303
+ unrecognizedObjectKeys: "strip",
304
+ });
305
+ }
306
+ if (sortDirection != null) {
307
+ _queryParams["sort_direction"] = serializers.SortDirection.jsonOrThrow(sortDirection, {
308
+ unrecognizedObjectKeys: "strip",
309
+ });
310
+ }
298
311
  if (pageToken != null) {
299
312
  _queryParams["page_token"] = pageToken;
300
313
  }
@@ -312,10 +325,13 @@ class V1 {
312
325
  if (dateOfService != null) {
313
326
  _queryParams["date_of_service"] = dateOfService;
314
327
  }
328
+ if (excludeBundled != null) {
329
+ _queryParams["exclude_bundled"] = excludeBundled.toString();
330
+ }
315
331
  const _response = yield core.fetcher({
316
332
  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/charge_captures/v1"),
317
333
  method: "GET",
318
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
319
335
  contentType: "application/json",
320
336
  queryParameters: _queryParams,
321
337
  requestType: "json",
@@ -6,11 +6,14 @@ import * as CandidApi from "../../../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * limit: 1,
9
+ * sort: "created_at",
10
+ * sortDirection: "asc",
9
11
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
10
12
  * patientExternalId: "string",
11
13
  * status: "planned",
12
14
  * chargeExternalId: "string",
13
- * dateOfService: "2023-01-15"
15
+ * dateOfService: "2023-01-15",
16
+ * excludeBundled: true
14
17
  * }
15
18
  */
16
19
  export interface GetAllChargeCapturesRequest {
@@ -18,6 +21,14 @@ export interface GetAllChargeCapturesRequest {
18
21
  * Maximum number of entities per page, defaults to 100.
19
22
  */
20
23
  limit?: number;
24
+ /**
25
+ * Defaults to created_at
26
+ */
27
+ sort?: CandidApi.chargeCapture.v1.ChargeCaptureSortField;
28
+ /**
29
+ * Sort direction. Defaults to descending order if not provided.
30
+ */
31
+ sortDirection?: CandidApi.SortDirection;
21
32
  pageToken?: CandidApi.PageToken;
22
33
  /**
23
34
  * The patient ID from the external EMR platform for the patient
@@ -38,4 +49,8 @@ export interface GetAllChargeCapturesRequest {
38
49
  * This date must be the local date in the timezone where the service occurred.
39
50
  */
40
51
  dateOfService?: string;
52
+ /**
53
+ * Whether to exclude charge captures which are associated with a charge capture bundle.
54
+ */
55
+ excludeBundled?: boolean;
41
56
  }
@@ -14,4 +14,5 @@ export interface ChargeCapture {
14
14
  * This date must be the local date in the timezone where the service occurred.
15
15
  */
16
16
  dateOfService?: string;
17
+ updates: CandidApi.chargeCapture.v1.ChargeCapturePostBilledChange[];
17
18
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ /**
6
+ * ChargeCapturePostBilledChange represents a change to a ChargeCapture that occurred after the ChargeCapture's status moved to BILLED. Action must be taken to resolve the update, and then the update should be marked as resolved.
7
+ */
8
+ export interface ChargeCapturePostBilledChange {
9
+ id: CandidApi.ChargeCapturePostBilledChangeId;
10
+ message: string;
11
+ resolved: boolean;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ChargeCaptureSortField = "created_at" | "date_of_service";
5
+ export declare const ChargeCaptureSortField: {
6
+ readonly CreatedAt: "created_at";
7
+ readonly DateOfService: "date_of_service";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ChargeCaptureSortField = void 0;
7
+ exports.ChargeCaptureSortField = {
8
+ CreatedAt: "created_at",
9
+ DateOfService: "date_of_service",
10
+ };
@@ -1,4 +1,6 @@
1
1
  export * from "./ChargeCapturePage";
2
2
  export * from "./ChargeCapture";
3
3
  export * from "./ChargeCaptureData";
4
+ export * from "./ChargeCaptureSortField";
4
5
  export * from "./ChargeCaptureStatus";
6
+ export * from "./ChargeCapturePostBilledChange";
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ChargeCapturePage"), exports);
18
18
  __exportStar(require("./ChargeCapture"), exports);
19
19
  __exportStar(require("./ChargeCaptureData"), exports);
20
+ __exportStar(require("./ChargeCaptureSortField"), exports);
20
21
  __exportStar(require("./ChargeCaptureStatus"), exports);
22
+ __exportStar(require("./ChargeCapturePostBilledChange"), exports);
@@ -48,12 +48,15 @@ export declare class V1 {
48
48
  * @example
49
49
  * await client.chargeCaptureBundles.v1.getAll({
50
50
  * limit: 1,
51
+ * sort: "created_at",
52
+ * sortDirection: "asc",
51
53
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
52
54
  * patientExternalId: "string",
53
55
  * bundleStatus: "in-progress",
54
56
  * chargeStatus: "planned",
55
57
  * chargeExternalId: "string",
56
- * dateOfService: "2023-01-15"
58
+ * dateOfService: "2023-01-15",
59
+ * hasChargeCaptureUpdates: true
57
60
  * })
58
61
  */
59
62
  getAll(request?: CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureBundlesRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundlePage, CandidApi.chargeCaptureBundles.v1.getAll.Error>>;
@@ -71,7 +71,7 @@ class V1 {
71
71
  const _response = yield core.fetcher({
72
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/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
73
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.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -122,7 +122,7 @@ class V1 {
122
122
  const _response = yield core.fetcher({
123
123
  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/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
124
124
  method: "POST",
125
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
125
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
126
126
  contentType: "application/json",
127
127
  requestType: "json",
128
128
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -167,22 +167,35 @@ class V1 {
167
167
  * @example
168
168
  * await client.chargeCaptureBundles.v1.getAll({
169
169
  * limit: 1,
170
+ * sort: "created_at",
171
+ * sortDirection: "asc",
170
172
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
171
173
  * patientExternalId: "string",
172
174
  * bundleStatus: "in-progress",
173
175
  * chargeStatus: "planned",
174
176
  * chargeExternalId: "string",
175
- * dateOfService: "2023-01-15"
177
+ * dateOfService: "2023-01-15",
178
+ * hasChargeCaptureUpdates: true
176
179
  * })
177
180
  */
178
181
  getAll() {
179
182
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
180
183
  var _a, _b, _c;
181
- const { limit, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService } = request;
184
+ const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService, hasChargeCaptureUpdates, } = request;
182
185
  const _queryParams = {};
183
186
  if (limit != null) {
184
187
  _queryParams["limit"] = limit.toString();
185
188
  }
189
+ if (sort != null) {
190
+ _queryParams["sort"] = serializers.chargeCaptureBundles.v1.ChargeCaptureBundleSortField.jsonOrThrow(sort, {
191
+ unrecognizedObjectKeys: "strip",
192
+ });
193
+ }
194
+ if (sortDirection != null) {
195
+ _queryParams["sort_direction"] = serializers.SortDirection.jsonOrThrow(sortDirection, {
196
+ unrecognizedObjectKeys: "strip",
197
+ });
198
+ }
186
199
  if (pageToken != null) {
187
200
  _queryParams["page_token"] = pageToken;
188
201
  }
@@ -203,10 +216,13 @@ class V1 {
203
216
  if (dateOfService != null) {
204
217
  _queryParams["date_of_service"] = dateOfService;
205
218
  }
219
+ if (hasChargeCaptureUpdates != null) {
220
+ _queryParams["has_charge_capture_updates"] = hasChargeCaptureUpdates.toString();
221
+ }
206
222
  const _response = yield core.fetcher({
207
223
  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/charge_capture_bundle/v1"),
208
224
  method: "GET",
209
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
226
  contentType: "application/json",
211
227
  queryParameters: _queryParams,
212
228
  requestType: "json",
@@ -6,12 +6,15 @@ import * as CandidApi from "../../../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * limit: 1,
9
+ * sort: "created_at",
10
+ * sortDirection: "asc",
9
11
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
10
12
  * patientExternalId: "string",
11
13
  * bundleStatus: "in-progress",
12
14
  * chargeStatus: "planned",
13
15
  * chargeExternalId: "string",
14
- * dateOfService: "2023-01-15"
16
+ * dateOfService: "2023-01-15",
17
+ * hasChargeCaptureUpdates: true
15
18
  * }
16
19
  */
17
20
  export interface GetAllChargeCaptureBundlesRequest {
@@ -19,6 +22,14 @@ export interface GetAllChargeCaptureBundlesRequest {
19
22
  * Maximum number of entities per page, defaults to 100.
20
23
  */
21
24
  limit?: number;
25
+ /**
26
+ * Defaults to created_at
27
+ */
28
+ sort?: CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleSortField;
29
+ /**
30
+ * Sort direction. Defaults to descending order if not provided.
31
+ */
32
+ sortDirection?: CandidApi.SortDirection;
22
33
  pageToken?: CandidApi.PageToken;
23
34
  /**
24
35
  * The patient ID from the external EMR platform for the patient
@@ -43,4 +54,8 @@ export interface GetAllChargeCaptureBundlesRequest {
43
54
  * This date must be the local date in the timezone where the service occurred.
44
55
  */
45
56
  dateOfService?: string;
57
+ /**
58
+ * If true, only return bundles that have charge captures that have been updated since the bundle has had a status of BILLED. See the updates property on ChargeCapture for more details.
59
+ */
60
+ hasChargeCaptureUpdates?: boolean;
46
61
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ChargeCaptureBundleSortField = "created_at";
5
+ export declare const ChargeCaptureBundleSortField: {
6
+ readonly CreatedAt: "created_at";
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ChargeCaptureBundleSortField = void 0;
7
+ exports.ChargeCaptureBundleSortField = {
8
+ CreatedAt: "created_at",
9
+ };
@@ -2,3 +2,4 @@ export * from "./ChargeCaptureBundlePage";
2
2
  export * from "./ChargeCaptureBundle";
3
3
  export * from "./ChargeBundleError";
4
4
  export * from "./ChargeCaptureBundleStatus";
5
+ export * from "./ChargeCaptureBundleSortField";
@@ -18,3 +18,4 @@ __exportStar(require("./ChargeCaptureBundlePage"), exports);
18
18
  __exportStar(require("./ChargeCaptureBundle"), exports);
19
19
  __exportStar(require("./ChargeBundleError"), exports);
20
20
  __exportStar(require("./ChargeCaptureBundleStatus"), exports);
21
+ __exportStar(require("./ChargeCaptureBundleSortField"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export type ChargeCapturePostBilledChangeId = string & {
6
+ ChargeCapturePostBilledChangeId: void;
7
+ };
8
+ export declare function ChargeCapturePostBilledChangeId(value: string): CandidApi.ChargeCapturePostBilledChangeId;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ChargeCapturePostBilledChangeId = ChargeCapturePostBilledChangeId;
7
+ function ChargeCapturePostBilledChangeId(value) {
8
+ return value;
9
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./EncounterId";
2
2
  export * from "./ChargeCaptureId";
3
3
  export * from "./ChargeCaptureBundleId";
4
+ export * from "./ChargeCapturePostBilledChangeId";
4
5
  export * from "./OrganizationId";
5
6
  export * from "./ClaimId";
6
7
  export * from "./PreEncounterPatientId";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./EncounterId"), exports);
18
18
  __exportStar(require("./ChargeCaptureId"), exports);
19
19
  __exportStar(require("./ChargeCaptureBundleId"), exports);
20
+ __exportStar(require("./ChargeCapturePostBilledChangeId"), exports);
20
21
  __exportStar(require("./OrganizationId"), exports);
21
22
  __exportStar(require("./ClaimId"), exports);
22
23
  __exportStar(require("./PreEncounterPatientId"), exports);
@@ -71,7 +71,7 @@ class V2 {
71
71
  const _response = yield core.fetcher({
72
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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
73
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.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -170,7 +170,7 @@ class V2 {
170
170
  const _response = yield core.fetcher({
171
171
  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/contracts/v2"),
172
172
  method: "GET",
173
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
174
  contentType: "application/json",
175
175
  queryParameters: _queryParams,
176
176
  requestType: "json",
@@ -237,7 +237,7 @@ class V2 {
237
237
  const _response = yield core.fetcher({
238
238
  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/contracts/v2"),
239
239
  method: "POST",
240
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  body: serializers.contracts.v2.ContractCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -275,7 +275,7 @@ class V2 {
275
275
  const _response = yield core.fetcher({
276
276
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
277
277
  method: "DELETE",
278
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class V2 {
355
355
  const _response = yield core.fetcher({
356
356
  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/contracts/v2/${encodeURIComponent(serializers.contracts.v2.ContractId.jsonOrThrow(contractId))}`),
357
357
  method: "PATCH",
358
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -83,7 +83,7 @@ class V2 {
83
83
  const _response = yield core.fetcher({
84
84
  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/provider-credentialing-span/v2"),
85
85
  method: "POST",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.credentialing.v2.ProviderCredentialingSpanCreate.jsonOrThrow(request, {
@@ -138,7 +138,7 @@ class V2 {
138
138
  const _response = yield core.fetcher({
139
139
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
140
140
  method: "GET",
141
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
141
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
142
  contentType: "application/json",
143
143
  requestType: "json",
144
144
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -217,7 +217,7 @@ class V2 {
217
217
  const _response = yield core.fetcher({
218
218
  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/provider-credentialing-span/v2"),
219
219
  method: "GET",
220
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
221
  contentType: "application/json",
222
222
  queryParameters: _queryParams,
223
223
  requestType: "json",
@@ -272,7 +272,7 @@ class V2 {
272
272
  const _response = yield core.fetcher({
273
273
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
274
274
  method: "DELETE",
275
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
275
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
276
  contentType: "application/json",
277
277
  requestType: "json",
278
278
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -331,7 +331,7 @@ class V2 {
331
331
  const _response = yield core.fetcher({
332
332
  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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
333
333
  method: "PATCH",
334
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.0", "User-Agent": "candidhealth/0.40.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
335
335
  contentType: "application/json",
336
336
  requestType: "json",
337
337
  body: serializers.credentialing.v2.ProviderCredentialingSpanUpdate.jsonOrThrow(request, {