candidhealth 0.40.4 → 0.41.1

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 (184) 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 +11 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  5. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  6. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  7. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  8. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  9. package/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  10. package/{serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js → api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js} +37 -29
  11. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  12. package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  13. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  14. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  19. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  20. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  21. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  23. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  24. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  25. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  26. package/api/resources/diagnoses/client/Client.js +3 -3
  27. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  28. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  29. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  30. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  31. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  32. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  33. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  34. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  35. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  36. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  37. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  38. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  39. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  40. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  41. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  42. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  43. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  44. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  45. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  46. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  47. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  48. package/api/resources/payerPlanGroups/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/coverages/resources/v1/client/Client.js +9 -9
  52. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  53. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  54. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  55. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  56. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  57. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  58. package/api/resources/serviceFacility/client/Client.js +1 -1
  59. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  60. package/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  61. package/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  62. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  63. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  64. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  65. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  66. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +11 -0
  67. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  68. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  69. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  70. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  71. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +5 -0
  72. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  73. package/dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  74. package/{serialization/resources/chargeCaptureBundles/resources/v1/client/get.js → dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js} +37 -29
  75. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  76. package/dist/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  77. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +5 -0
  78. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  79. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  80. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  81. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  82. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  83. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  84. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  85. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  86. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  87. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  88. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  89. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  90. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  91. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  92. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  93. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  94. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  95. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  96. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  97. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  98. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  99. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  100. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  101. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  102. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  103. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  104. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  105. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  106. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  107. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  108. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  109. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  110. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  111. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  112. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  113. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  114. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  115. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  116. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  117. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  118. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  119. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  120. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  121. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  122. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  123. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  124. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  125. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  126. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  127. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  128. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  129. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  130. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  131. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  132. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  133. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  134. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  135. package/dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  136. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/client/get.js → chargeCapture/resources/v1/client/updatePostBilledChange.js} +11 -5
  137. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +4 -0
  138. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +4 -0
  139. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  140. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  141. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  142. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  143. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  144. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  145. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  146. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  147. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  148. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  149. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  150. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  151. package/dist/version.d.ts +1 -1
  152. package/dist/version.js +1 -1
  153. package/package.json +1 -1
  154. package/reference.md +61 -0
  155. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  156. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  157. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  158. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  159. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  160. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  161. package/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  162. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js → serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js} +11 -5
  163. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +4 -0
  164. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +4 -0
  165. package/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  166. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  167. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  168. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  169. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  170. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  171. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  172. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  173. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  174. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  175. package/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  176. package/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  177. package/version.d.ts +1 -1
  178. package/version.js +1 -1
  179. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  180. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  181. package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  182. package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  183. /package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js} +0 -0
  184. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +0 -0
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
- export interface ChargeBundleError {
5
+ export interface ChargeCaptureError {
6
6
  id: string;
7
7
  /**
8
8
  * The underlying Charge Capture that this error object references.
@@ -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 });
@@ -1,6 +1,7 @@
1
1
  export * from "./ChargeCapturePage";
2
2
  export * from "./ChargeCapture";
3
3
  export * from "./ChargeCaptureData";
4
+ export * from "./ChargeCaptureError";
4
5
  export * from "./ChargeCaptureSortField";
5
6
  export * from "./ChargeCaptureStatus";
6
7
  export * from "./ChargeCapturePostBilledChange";
@@ -17,6 +17,7 @@ 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("./ChargeCaptureError"), exports);
20
21
  __exportStar(require("./ChargeCaptureSortField"), exports);
21
22
  __exportStar(require("./ChargeCaptureStatus"), exports);
22
23
  __exportStar(require("./ChargeCapturePostBilledChange"), exports);
@@ -67,11 +67,11 @@ class V1 {
67
67
  */
68
68
  get(chargeCaptureBundleId, requestOptions) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
- var _a, _b, _c;
70
+ var _a, _b;
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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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,
@@ -89,20 +89,6 @@ class V1 {
89
89
  }),
90
90
  };
91
91
  }
92
- if (_response.error.reason === "status-code") {
93
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
94
- case "NotImplementedError":
95
- return {
96
- ok: false,
97
- error: serializers.chargeCaptureBundles.v1.get.Error.parseOrThrow(_response.error.body, {
98
- unrecognizedObjectKeys: "passthrough",
99
- allowUnrecognizedUnionMembers: true,
100
- allowUnrecognizedEnumValues: true,
101
- breadcrumbsPrefix: ["response"],
102
- }),
103
- };
104
- }
105
- }
106
92
  return {
107
93
  ok: false,
108
94
  error: CandidApi.chargeCaptureBundles.v1.get.Error._unknown(_response.error),
@@ -119,9 +105,9 @@ class V1 {
119
105
  return __awaiter(this, void 0, void 0, function* () {
120
106
  var _a, _b;
121
107
  const _response = yield core.fetcher({
122
- 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/summary"),
108
+ 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/all/summary"),
123
109
  method: "GET",
124
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
125
111
  contentType: "application/json",
126
112
  requestType: "json",
127
113
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -158,7 +144,7 @@ class V1 {
158
144
  const _response = yield core.fetcher({
159
145
  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))}`),
160
146
  method: "POST",
161
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
148
  contentType: "application/json",
163
149
  requestType: "json",
164
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +202,7 @@ class V1 {
216
202
  */
217
203
  getAll() {
218
204
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
219
- var _a, _b, _c;
205
+ var _a, _b;
220
206
  const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService, hasChargeCaptureUpdates, } = request;
221
207
  const _queryParams = {};
222
208
  if (limit != null) {
@@ -258,7 +244,7 @@ class V1 {
258
244
  const _response = yield core.fetcher({
259
245
  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"),
260
246
  method: "GET",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
248
  contentType: "application/json",
263
249
  queryParameters: _queryParams,
264
250
  requestType: "json",
@@ -277,20 +263,6 @@ class V1 {
277
263
  }),
278
264
  };
279
265
  }
280
- if (_response.error.reason === "status-code") {
281
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
282
- case "NotImplementedError":
283
- return {
284
- ok: false,
285
- error: serializers.chargeCaptureBundles.v1.getAll.Error.parseOrThrow(_response.error.body, {
286
- unrecognizedObjectKeys: "passthrough",
287
- allowUnrecognizedUnionMembers: true,
288
- allowUnrecognizedEnumValues: true,
289
- breadcrumbsPrefix: ["response"],
290
- }),
291
- };
292
- }
293
- }
294
266
  return {
295
267
  ok: false,
296
268
  error: CandidApi.chargeCaptureBundles.v1.getAll.Error._unknown(_response.error),
@@ -3,12 +3,8 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export type Error = CandidApi.chargeCaptureBundles.v1.get.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
6
+ export type Error = CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
7
7
  export declare namespace Error {
8
- interface NotImplementedError extends _Utils {
9
- errorName: "NotImplementedError";
10
- content: CandidApi.NotImplementedErrorMessage;
11
- }
12
8
  interface _Unknown extends _Utils {
13
9
  errorName: void;
14
10
  content: core.Fetcher.Error;
@@ -17,12 +13,10 @@ export declare namespace Error {
17
13
  _visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
18
14
  }
19
15
  interface _Visitor<_Result> {
20
- notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
21
16
  _other: (value: core.Fetcher.Error) => _Result;
22
17
  }
23
18
  }
24
19
  export declare const Error: {
25
- readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.get.Error.NotImplementedError;
26
20
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
27
21
  readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.get.Error, visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
28
22
  };
@@ -39,15 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Error = void 0;
40
40
  const CandidApi = __importStar(require("../../../../../index"));
41
41
  exports.Error = {
42
- notImplementedError: (value) => {
43
- return {
44
- content: value,
45
- errorName: "NotImplementedError",
46
- _visit: function (visitor) {
47
- return CandidApi.chargeCaptureBundles.v1.get.Error._visit(this, visitor);
48
- },
49
- };
50
- },
51
42
  _unknown: (fetcherError) => {
52
43
  return {
53
44
  errorName: undefined,
@@ -59,8 +50,6 @@ exports.Error = {
59
50
  },
60
51
  _visit: (value, visitor) => {
61
52
  switch (value.errorName) {
62
- case "NotImplementedError":
63
- return visitor.notImplementedError(value.content);
64
53
  default:
65
54
  return visitor._other(value);
66
55
  }
@@ -3,12 +3,8 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export type Error = CandidApi.chargeCaptureBundles.v1.getAll.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
6
+ export type Error = CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
7
7
  export declare namespace Error {
8
- interface NotImplementedError extends _Utils {
9
- errorName: "NotImplementedError";
10
- content: CandidApi.NotImplementedErrorMessage;
11
- }
12
8
  interface _Unknown extends _Utils {
13
9
  errorName: void;
14
10
  content: core.Fetcher.Error;
@@ -17,12 +13,10 @@ export declare namespace Error {
17
13
  _visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
18
14
  }
19
15
  interface _Visitor<_Result> {
20
- notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
21
16
  _other: (value: core.Fetcher.Error) => _Result;
22
17
  }
23
18
  }
24
19
  export declare const Error: {
25
- readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.getAll.Error.NotImplementedError;
26
20
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
27
21
  readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.getAll.Error, visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
28
22
  };
@@ -39,15 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Error = void 0;
40
40
  const CandidApi = __importStar(require("../../../../../index"));
41
41
  exports.Error = {
42
- notImplementedError: (value) => {
43
- return {
44
- content: value,
45
- errorName: "NotImplementedError",
46
- _visit: function (visitor) {
47
- return CandidApi.chargeCaptureBundles.v1.getAll.Error._visit(this, visitor);
48
- },
49
- };
50
- },
51
42
  _unknown: (fetcherError) => {
52
43
  return {
53
44
  errorName: undefined,
@@ -59,8 +50,6 @@ exports.Error = {
59
50
  },
60
51
  _visit: (value, visitor) => {
61
52
  switch (value.errorName) {
62
- case "NotImplementedError":
63
- return visitor.notImplementedError(value.content);
64
53
  default:
65
54
  return visitor._other(value);
66
55
  }
@@ -13,5 +13,5 @@ export interface ChargeCaptureBundle {
13
13
  * All errors that were found when the bundle was attempted to be created.
14
14
  * Errors can correspond to the Bundle as a whole or specific underlying Charge Captures.
15
15
  */
16
- errors: CandidApi.chargeCaptureBundles.v1.ChargeBundleError[];
16
+ errors: CandidApi.chargeCapture.v1.ChargeCaptureError[];
17
17
  }
@@ -1,6 +1,5 @@
1
1
  export * from "./ChargeCaptureBundlePage";
2
2
  export * from "./ChargeCaptureBundle";
3
3
  export * from "./ChargeCaptureBundleSummary";
4
- export * from "./ChargeBundleError";
5
4
  export * from "./ChargeCaptureBundleStatus";
6
5
  export * from "./ChargeCaptureBundleSortField";
@@ -17,6 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ChargeCaptureBundlePage"), exports);
18
18
  __exportStar(require("./ChargeCaptureBundle"), exports);
19
19
  __exportStar(require("./ChargeCaptureBundleSummary"), exports);
20
- __exportStar(require("./ChargeBundleError"), exports);
21
20
  __exportStar(require("./ChargeCaptureBundleStatus"), exports);
22
21
  __exportStar(require("./ChargeCaptureBundleSortField"), 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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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, {
@@ -72,7 +72,7 @@ class V1 {
72
72
  const _response = yield core.fetcher({
73
73
  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/custom-schemas/v1"),
74
74
  method: "GET",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +125,7 @@ class V1 {
125
125
  const _response = yield core.fetcher({
126
126
  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/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
127
127
  method: "GET",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -196,7 +196,7 @@ class V1 {
196
196
  const _response = yield core.fetcher({
197
197
  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/custom-schemas/v1"),
198
198
  method: "POST",
199
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.customSchemas.v1.SchemaCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
260
260
  method: "PATCH",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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
  body: serializers.customSchemas.v1.SchemaUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,7 +78,7 @@ class Diagnoses {
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/diagnoses/v2"),
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.4", "User-Agent": "candidhealth/0.40.4", "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.41.1", "User-Agent": "candidhealth/0.41.1", "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.StandaloneDiagnosisCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -123,7 +123,7 @@ class Diagnoses {
123
123
  const _response = yield core.fetcher({
124
124
  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/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
125
125
  method: "PATCH",
126
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
126
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
127
  contentType: "application/json",
128
128
  requestType: "json",
129
129
  body: serializers.DiagnosisUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -177,7 +177,7 @@ class Diagnoses {
177
177
  const _response = yield core.fetcher({
178
178
  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/diagnoses/v2/${encodeURIComponent(serializers.DiagnosisId.jsonOrThrow(diagnosisId))}`),
179
179
  method: "DELETE",
180
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
181
  contentType: "application/json",
182
182
  requestType: "json",
183
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -91,7 +91,7 @@ class V2 {
91
91
  const _response = yield core.fetcher({
92
92
  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/eligibility/v2"),
93
93
  method: "POST",
94
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
95
  contentType: "application/json",
96
96
  requestType: "json",
97
97
  body: request,
@@ -159,7 +159,7 @@ class V2 {
159
159
  const _response = yield core.fetcher({
160
160
  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/eligibility/v2/availity"),
161
161
  method: "GET",
162
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class V2 {
225
225
  const _response = yield core.fetcher({
226
226
  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/eligibility/v2/availity"),
227
227
  method: "POST",
228
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: request,