candidhealth 0.40.1 → 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 (182) 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 +2 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +18 -6
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +10 -0
  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.js +5 -5
  31. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  32. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  33. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  34. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  35. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  36. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  37. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  38. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  39. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  40. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  41. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  42. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  43. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  44. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  45. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  46. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  47. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  48. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  49. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  50. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  51. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  52. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  53. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  54. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  55. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  56. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  57. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  58. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  59. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  60. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  61. package/api/resources/serviceFacility/client/Client.js +1 -1
  62. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  63. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  64. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  65. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  66. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  67. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  68. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  69. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +2 -0
  70. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +18 -6
  71. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +10 -0
  72. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  73. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  74. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js +5 -0
  75. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  76. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  77. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  78. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  79. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +4 -1
  80. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +21 -5
  81. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +16 -1
  82. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  83. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  84. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  85. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  86. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  87. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  88. package/dist/api/resources/commons/types/index.d.ts +1 -0
  89. package/dist/api/resources/commons/types/index.js +1 -0
  90. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  91. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  92. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  93. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  94. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  95. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  96. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  97. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  98. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  99. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  100. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  101. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  102. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  103. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  104. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  105. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  106. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  107. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  108. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  109. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  110. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  111. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  112. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  113. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  114. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  115. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  116. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  117. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  118. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  119. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  120. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  121. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  122. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  123. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  124. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  125. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  126. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  127. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  128. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  129. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  130. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  131. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  132. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  133. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  134. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  135. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  136. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js +46 -0
  137. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  138. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  139. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  140. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  141. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  142. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  143. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  144. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  145. package/dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  146. package/dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js +45 -0
  147. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  148. package/dist/serialization/resources/commons/types/index.js +1 -0
  149. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  150. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  151. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  152. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  153. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  154. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +1 -1
  158. package/reference.md +5 -0
  159. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  160. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  161. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  162. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js +46 -0
  163. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  164. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  165. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  166. package/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  167. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  168. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  169. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  170. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  171. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  172. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js +45 -0
  173. package/serialization/resources/commons/types/index.d.ts +1 -0
  174. package/serialization/resources/commons/types/index.js +1 -0
  175. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  176. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  177. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  178. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  179. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  180. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  181. package/version.d.ts +1 -1
  182. package/version.js +1 -1
@@ -82,7 +82,7 @@ class ServiceFacility {
82
82
  const _response = yield core.fetcher({
83
83
  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/service_facility/v2/${encodeURIComponent(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
84
84
  method: "PATCH",
85
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ 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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -120,7 +120,7 @@ class V2 {
120
120
  const _response = yield core.fetcher({
121
121
  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/service-lines/v2"),
122
122
  method: "POST",
123
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
+ 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),
124
124
  contentType: "application/json",
125
125
  requestType: "json",
126
126
  body: serializers.serviceLines.v2.ServiceLineCreateStandalone.jsonOrThrow(request, {
@@ -209,7 +209,7 @@ class V2 {
209
209
  const _response = yield core.fetcher({
210
210
  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/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
211
211
  method: "PATCH",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ 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),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: serializers.serviceLines.v2.ServiceLineUpdate.jsonOrThrow(request, {
@@ -265,7 +265,7 @@ class V2 {
265
265
  const _response = yield core.fetcher({
266
266
  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/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
267
267
  method: "DELETE",
268
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
268
+ 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),
269
269
  contentType: "application/json",
270
270
  requestType: "json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -71,7 +71,7 @@ class V3 {
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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}/actions`),
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.1", "User-Agent": "candidhealth/0.40.1", "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,
@@ -169,7 +169,7 @@ class V3 {
169
169
  const _response = yield core.fetcher({
170
170
  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/tasks/v3"),
171
171
  method: "GET",
172
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
+ 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),
173
173
  contentType: "application/json",
174
174
  queryParameters: _queryParams,
175
175
  requestType: "json",
@@ -221,7 +221,7 @@ class V3 {
221
221
  const _response = yield core.fetcher({
222
222
  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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
223
223
  method: "GET",
224
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ 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),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class V3 {
281
281
  const _response = yield core.fetcher({
282
282
  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/tasks/v3"),
283
283
  method: "POST",
284
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
+ 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),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  body: serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -324,7 +324,7 @@ class V3 {
324
324
  const _response = yield core.fetcher({
325
325
  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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
326
326
  method: "PATCH",
327
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
327
+ 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),
328
328
  contentType: "application/json",
329
329
  requestType: "json",
330
330
  body: serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -127,7 +127,7 @@ class V1 {
127
127
  const _response = yield core.fetcher({
128
128
  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/write-offs/v1"),
129
129
  method: "GET",
130
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ 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),
131
131
  contentType: "application/json",
132
132
  queryParameters: _queryParams,
133
133
  requestType: "json",
@@ -167,7 +167,7 @@ class V1 {
167
167
  const _response = yield core.fetcher({
168
168
  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/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
169
169
  method: "GET",
170
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ 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),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +216,7 @@ class V1 {
216
216
  const _response = yield core.fetcher({
217
217
  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/write-offs/v1"),
218
218
  method: "POST",
219
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ 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),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  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/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
260
260
  method: "POST",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ 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),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -297,7 +297,7 @@ class V1 {
297
297
  const _response = yield core.fetcher({
298
298
  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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert`),
299
299
  method: "POST",
300
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
+ 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),
301
301
  contentType: "application/json",
302
302
  requestType: "json",
303
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -336,7 +336,7 @@ class V1 {
336
336
  const _response = yield core.fetcher({
337
337
  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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert-era-originated`),
338
338
  method: "POST",
339
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
339
+ 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),
340
340
  contentType: "application/json",
341
341
  requestType: "json",
342
342
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type PatientWriteOffReason = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN";
4
+ export type PatientWriteOffReason = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN" | "UNCOLLECTIBLE_OR_NON_BILLABLE";
5
5
  export declare const PatientWriteOffReason: {
6
6
  readonly SmallBalance: "SMALL_BALANCE";
7
7
  readonly CharityOrFinancialAssistance: "CHARITY_OR_FINANCIAL_ASSISTANCE";
@@ -12,4 +12,5 @@ export declare const PatientWriteOffReason: {
12
12
  readonly CollectionAgency: "COLLECTION_AGENCY";
13
13
  readonly Other: "OTHER";
14
14
  readonly Unknown: "UNKNOWN";
15
+ readonly UncollectibleOrNonBillable: "UNCOLLECTIBLE_OR_NON_BILLABLE";
15
16
  };
@@ -14,4 +14,5 @@ exports.PatientWriteOffReason = {
14
14
  CollectionAgency: "COLLECTION_AGENCY",
15
15
  Other: "OTHER",
16
16
  Unknown: "UNKNOWN",
17
+ UncollectibleOrNonBillable: "UNCOLLECTIBLE_OR_NON_BILLABLE",
17
18
  };
@@ -8,6 +8,7 @@ import { ChargeCaptureId } from "../../../../commons/types/ChargeCaptureId";
8
8
  import { ChargeCaptureStatus } from "./ChargeCaptureStatus";
9
9
  import { ChargeCaptureData } from "./ChargeCaptureData";
10
10
  import { PatientExternalId } from "../../../../commons/types/PatientExternalId";
11
+ import { ChargeCapturePostBilledChange } from "./ChargeCapturePostBilledChange";
11
12
  export declare const ChargeCapture: core.serialization.ObjectSchema<serializers.chargeCapture.v1.ChargeCapture.Raw, CandidApi.chargeCapture.v1.ChargeCapture>;
12
13
  export declare namespace ChargeCapture {
13
14
  interface Raw {
@@ -18,5 +19,6 @@ export declare namespace ChargeCapture {
18
19
  charge_external_id: string;
19
20
  ehr_source_url?: string | null;
20
21
  date_of_service?: string | null;
22
+ updates: ChargeCapturePostBilledChange.Raw[];
21
23
  }
22
24
  }
@@ -42,6 +42,7 @@ const ChargeCaptureId_1 = require("../../../../commons/types/ChargeCaptureId");
42
42
  const ChargeCaptureStatus_1 = require("./ChargeCaptureStatus");
43
43
  const ChargeCaptureData_1 = require("./ChargeCaptureData");
44
44
  const PatientExternalId_1 = require("../../../../commons/types/PatientExternalId");
45
+ const ChargeCapturePostBilledChange_1 = require("./ChargeCapturePostBilledChange");
45
46
  exports.ChargeCapture = core.serialization.object({
46
47
  id: ChargeCaptureId_1.ChargeCaptureId,
47
48
  status: ChargeCaptureStatus_1.ChargeCaptureStatus,
@@ -50,4 +51,5 @@ exports.ChargeCapture = core.serialization.object({
50
51
  chargeExternalId: core.serialization.property("charge_external_id", core.serialization.string()),
51
52
  ehrSourceUrl: core.serialization.property("ehr_source_url", core.serialization.string().optional()),
52
53
  dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
54
+ updates: core.serialization.list(ChargeCapturePostBilledChange_1.ChargeCapturePostBilledChange),
53
55
  });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { ChargeCapturePostBilledChangeId } from "../../../../commons/types/ChargeCapturePostBilledChangeId";
8
+ export declare const ChargeCapturePostBilledChange: core.serialization.ObjectSchema<serializers.chargeCapture.v1.ChargeCapturePostBilledChange.Raw, CandidApi.chargeCapture.v1.ChargeCapturePostBilledChange>;
9
+ export declare namespace ChargeCapturePostBilledChange {
10
+ interface Raw {
11
+ id: ChargeCapturePostBilledChangeId.Raw;
12
+ message: string;
13
+ resolved: boolean;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.ChargeCapturePostBilledChange = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const ChargeCapturePostBilledChangeId_1 = require("../../../../commons/types/ChargeCapturePostBilledChangeId");
42
+ exports.ChargeCapturePostBilledChange = core.serialization.object({
43
+ id: ChargeCapturePostBilledChangeId_1.ChargeCapturePostBilledChangeId,
44
+ message: core.serialization.string(),
45
+ resolved: core.serialization.boolean(),
46
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ChargeCaptureSortField: core.serialization.Schema<serializers.chargeCapture.v1.ChargeCaptureSortField.Raw, CandidApi.chargeCapture.v1.ChargeCaptureSortField>;
8
+ export declare namespace ChargeCaptureSortField {
9
+ type Raw = "created_at" | "date_of_service";
10
+ }
@@ -0,0 +1,41 @@
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.ChargeCaptureSortField = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.ChargeCaptureSortField = core.serialization.enum_(["created_at", "date_of_service"]);
@@ -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);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ChargeCaptureBundleSortField: core.serialization.Schema<serializers.chargeCaptureBundles.v1.ChargeCaptureBundleSortField.Raw, CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleSortField>;
8
+ export declare namespace ChargeCaptureBundleSortField {
9
+ type Raw = "created_at";
10
+ }
@@ -0,0 +1,41 @@
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.ChargeCaptureBundleSortField = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.ChargeCaptureBundleSortField = core.serialization.enum_(["created_at"]);
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as CandidApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ChargeCapturePostBilledChangeId: core.serialization.Schema<serializers.ChargeCapturePostBilledChangeId.Raw, CandidApi.ChargeCapturePostBilledChangeId>;
8
+ export declare namespace ChargeCapturePostBilledChangeId {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,45 @@
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.ChargeCapturePostBilledChangeId = void 0;
40
+ const CandidApi = __importStar(require("../../../../api/index"));
41
+ const core = __importStar(require("../../../../core"));
42
+ exports.ChargeCapturePostBilledChangeId = core.serialization.string().transform({
43
+ transform: CandidApi.ChargeCapturePostBilledChangeId,
44
+ untransform: (value) => value,
45
+ });
@@ -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);
@@ -5,12 +5,14 @@ import * as serializers from "../../../../../index";
5
5
  import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { CanonicalNonInsurancePayerId } from "./CanonicalNonInsurancePayerId";
8
+ import { Period } from "./Period";
8
9
  import { CanonicalClinicalTrialAssociation } from "./CanonicalClinicalTrialAssociation";
9
10
  export declare const CanonicalNonInsurancePayerAssociation: core.serialization.ObjectSchema<serializers.preEncounter.CanonicalNonInsurancePayerAssociation.Raw, CandidApi.preEncounter.CanonicalNonInsurancePayerAssociation>;
10
11
  export declare namespace CanonicalNonInsurancePayerAssociation {
11
12
  interface Raw {
12
13
  id: CanonicalNonInsurancePayerId.Raw;
13
14
  member_id?: string | null;
15
+ period?: Period.Raw | null;
14
16
  clinical_trial_info?: CanonicalClinicalTrialAssociation.Raw[] | null;
15
17
  }
16
18
  }
@@ -39,9 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CanonicalNonInsurancePayerAssociation = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
41
  const CanonicalNonInsurancePayerId_1 = require("./CanonicalNonInsurancePayerId");
42
+ const Period_1 = require("./Period");
42
43
  const CanonicalClinicalTrialAssociation_1 = require("./CanonicalClinicalTrialAssociation");
43
44
  exports.CanonicalNonInsurancePayerAssociation = core.serialization.object({
44
45
  id: CanonicalNonInsurancePayerId_1.CanonicalNonInsurancePayerId,
45
46
  memberId: core.serialization.property("member_id", core.serialization.string().optional()),
47
+ period: Period_1.Period.optional(),
46
48
  clinicalTrialInfo: core.serialization.property("clinical_trial_info", core.serialization.list(CanonicalClinicalTrialAssociation_1.CanonicalClinicalTrialAssociation).optional()),
47
49
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  export declare const AuthorizationUnit: core.serialization.Schema<serializers.preEncounter.patients.v1.AuthorizationUnit.Raw, CandidApi.preEncounter.patients.v1.AuthorizationUnit>;
8
8
  export declare namespace AuthorizationUnit {
9
- type Raw = "VISIT";
9
+ type Raw = "VISIT" | "UNIT";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AuthorizationUnit = void 0;
40
40
  const core = __importStar(require("../../../../../../../../core"));
41
- exports.AuthorizationUnit = core.serialization.enum_(["VISIT"]);
41
+ exports.AuthorizationUnit = core.serialization.enum_(["VISIT", "UNIT"]);
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const PatientWriteOffReason: core.serialization.Schema<serializers.writeOffs.v1.PatientWriteOffReason.Raw, CandidApi.writeOffs.v1.PatientWriteOffReason>;
8
8
  export declare namespace PatientWriteOffReason {
9
- type Raw = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN";
9
+ type Raw = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN" | "UNCOLLECTIBLE_OR_NON_BILLABLE";
10
10
  }
@@ -48,4 +48,5 @@ exports.PatientWriteOffReason = core.serialization.enum_([
48
48
  "COLLECTION_AGENCY",
49
49
  "OTHER",
50
50
  "UNKNOWN",
51
+ "UNCOLLECTIBLE_OR_NON_BILLABLE",
51
52
  ]);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.40.1";
1
+ export declare const SDK_VERSION = "0.40.2";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.40.1";
4
+ exports.SDK_VERSION = "0.40.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.40.1",
3
+ "version": "0.40.2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -355,12 +355,15 @@ await client.chargeCaptureBundles.v1.resubmit(CandidApi.ChargeCaptureBundleId("d
355
355
  ```typescript
356
356
  await client.chargeCaptureBundles.v1.getAll({
357
357
  limit: 1,
358
+ sort: "created_at",
359
+ sortDirection: "asc",
358
360
  pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
359
361
  patientExternalId: "string",
360
362
  bundleStatus: "in-progress",
361
363
  chargeStatus: "planned",
362
364
  chargeExternalId: "string",
363
365
  dateOfService: "2023-01-15",
366
+ hasChargeCaptureUpdates: true,
364
367
  });
365
368
  ```
366
369
 
@@ -627,6 +630,8 @@ await client.chargeCapture.v1.get(CandidApi.ChargeCaptureId("d5e9c84f-c2b2-4bf4-
627
630
  ```typescript
628
631
  await client.chargeCapture.v1.getAll({
629
632
  limit: 1,
633
+ sort: "created_at",
634
+ sortDirection: "asc",
630
635
  pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
631
636
  patientExternalId: "string",
632
637
  status: "planned",