candidhealth 0.41.2 → 0.41.3

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 (210) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +15 -10
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  6. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  7. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  8. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
  9. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
  10. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  11. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  12. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  13. package/api/resources/diagnoses/client/Client.js +3 -3
  14. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  15. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  16. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  17. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  18. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  19. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  20. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  21. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  22. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  23. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  24. package/api/resources/index.d.ts +1 -0
  25. package/api/resources/index.js +3 -2
  26. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  27. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  28. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  29. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  30. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  31. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  32. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  33. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  34. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  35. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  36. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  37. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  38. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  39. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  40. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  41. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  42. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  43. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  44. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  45. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  46. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  47. package/api/resources/serviceFacility/client/Client.js +1 -1
  48. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  49. package/api/resources/superbills/client/Client.d.ts +30 -0
  50. package/api/resources/superbills/client/Client.js +17 -0
  51. package/api/resources/superbills/client/index.d.ts +1 -0
  52. package/api/resources/superbills/client/index.js +2 -0
  53. package/api/resources/superbills/index.d.ts +2 -0
  54. package/api/resources/superbills/index.js +18 -0
  55. package/api/resources/superbills/resources/index.d.ts +1 -0
  56. package/api/resources/superbills/resources/index.js +37 -0
  57. package/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  58. package/api/resources/superbills/resources/v1/client/Client.js +137 -0
  59. package/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  60. package/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  61. package/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  62. package/api/resources/superbills/resources/v1/client/index.js +41 -0
  63. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  64. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  65. package/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  66. package/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  67. package/api/resources/superbills/resources/v1/index.d.ts +2 -0
  68. package/api/resources/superbills/resources/v1/index.js +18 -0
  69. package/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  70. package/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  71. package/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  72. package/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  73. package/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  74. package/api/resources/superbills/resources/v1/types/index.js +18 -0
  75. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  76. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  77. package/dist/Client.d.ts +3 -0
  78. package/dist/Client.js +15 -10
  79. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  80. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  81. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  82. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  83. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  84. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
  85. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
  86. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  87. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  88. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  89. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  90. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  91. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  92. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  93. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  94. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  95. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  96. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  97. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  98. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  99. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  100. package/dist/api/resources/index.d.ts +1 -0
  101. package/dist/api/resources/index.js +3 -2
  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 +10 -10
  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/superbills/client/Client.d.ts +30 -0
  126. package/dist/api/resources/superbills/client/Client.js +17 -0
  127. package/dist/api/resources/superbills/client/index.d.ts +1 -0
  128. package/dist/api/resources/superbills/client/index.js +2 -0
  129. package/dist/api/resources/superbills/index.d.ts +2 -0
  130. package/dist/api/resources/superbills/index.js +18 -0
  131. package/dist/api/resources/superbills/resources/index.d.ts +1 -0
  132. package/dist/api/resources/superbills/resources/index.js +37 -0
  133. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  134. package/dist/api/resources/superbills/resources/v1/client/Client.js +137 -0
  135. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  136. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  137. package/dist/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  138. package/dist/api/resources/superbills/resources/v1/client/index.js +41 -0
  139. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  140. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  141. package/dist/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  142. package/dist/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  143. package/dist/api/resources/superbills/resources/v1/index.d.ts +2 -0
  144. package/dist/api/resources/superbills/resources/v1/index.js +18 -0
  145. package/dist/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  146. package/dist/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  147. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  148. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  149. package/dist/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  150. package/dist/api/resources/superbills/resources/v1/types/index.js +18 -0
  151. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  152. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  153. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  154. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  155. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  156. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
  157. package/dist/serialization/resources/index.d.ts +1 -0
  158. package/dist/serialization/resources/index.js +3 -2
  159. package/dist/serialization/resources/superbills/index.d.ts +1 -0
  160. package/dist/serialization/resources/superbills/index.js +17 -0
  161. package/dist/serialization/resources/superbills/resources/index.d.ts +1 -0
  162. package/dist/serialization/resources/superbills/resources/index.js +37 -0
  163. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  164. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  165. package/dist/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  166. package/dist/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  167. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  168. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  169. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  170. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  171. package/dist/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  172. package/dist/serialization/resources/superbills/resources/v1/index.js +18 -0
  173. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  174. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  175. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  176. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  177. package/dist/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  178. package/dist/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  179. package/dist/version.d.ts +1 -1
  180. package/dist/version.js +1 -1
  181. package/package.json +1 -1
  182. package/reference.md +62 -0
  183. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  184. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  185. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  186. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
  187. package/serialization/resources/index.d.ts +1 -0
  188. package/serialization/resources/index.js +3 -2
  189. package/serialization/resources/superbills/index.d.ts +1 -0
  190. package/serialization/resources/superbills/index.js +17 -0
  191. package/serialization/resources/superbills/resources/index.d.ts +1 -0
  192. package/serialization/resources/superbills/resources/index.js +37 -0
  193. package/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  194. package/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  195. package/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  196. package/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  197. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  198. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  199. package/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  200. package/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  201. package/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  202. package/serialization/resources/superbills/resources/v1/index.js +18 -0
  203. package/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  204. package/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  205. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  206. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  207. package/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  208. package/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  209. package/version.d.ts +1 -1
  210. package/version.js +1 -1
@@ -0,0 +1,49 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as CandidApi from "../../../../../index";
7
+ export declare namespace V1 {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class V1 {
26
+ protected readonly _options: V1.Options;
27
+ constructor(_options?: V1.Options);
28
+ /**
29
+ * @param {CandidApi.superbills.v1.CreateSuperbillRequest} request
30
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @example
33
+ * await client.superbills.v1.createSuperbill({
34
+ * patientExternalId: CandidApi.PatientExternalId("string"),
35
+ * dateRangeMin: "2023-01-15",
36
+ * dateRangeMax: "2023-01-15",
37
+ * payToAddress: {
38
+ * address1: "123 Main St",
39
+ * address2: "Apt 1",
40
+ * city: "New York",
41
+ * state: "NY",
42
+ * zipCode: "10001",
43
+ * zipPlusFourCode: "1234"
44
+ * }
45
+ * })
46
+ */
47
+ createSuperbill(request: CandidApi.superbills.v1.CreateSuperbillRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.superbills.v1.SuperbillResponse, CandidApi.superbills.v1.createSuperbill.Error>>;
48
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
49
+ }
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.V1 = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const CandidApi = __importStar(require("../../../../../index"));
55
+ const serializers = __importStar(require("../../../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ class V1 {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * @param {CandidApi.superbills.v1.CreateSuperbillRequest} request
63
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @example
66
+ * await client.superbills.v1.createSuperbill({
67
+ * patientExternalId: CandidApi.PatientExternalId("string"),
68
+ * dateRangeMin: "2023-01-15",
69
+ * dateRangeMax: "2023-01-15",
70
+ * payToAddress: {
71
+ * address1: "123 Main St",
72
+ * address2: "Apt 1",
73
+ * city: "New York",
74
+ * state: "NY",
75
+ * zipCode: "10001",
76
+ * zipPlusFourCode: "1234"
77
+ * }
78
+ * })
79
+ */
80
+ createSuperbill(request, requestOptions) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ var _a, _b, _c;
83
+ const _response = yield core.fetcher({
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/superbill/v1"),
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.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ contentType: "application/json",
88
+ requestType: "json",
89
+ body: serializers.superbills.v1.CreateSuperbillRequest.jsonOrThrow(request, {
90
+ unrecognizedObjectKeys: "strip",
91
+ }),
92
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
93
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
94
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
95
+ });
96
+ if (_response.ok) {
97
+ return {
98
+ ok: true,
99
+ body: serializers.superbills.v1.SuperbillResponse.parseOrThrow(_response.body, {
100
+ unrecognizedObjectKeys: "passthrough",
101
+ allowUnrecognizedUnionMembers: true,
102
+ allowUnrecognizedEnumValues: true,
103
+ breadcrumbsPrefix: ["response"],
104
+ }),
105
+ };
106
+ }
107
+ if (_response.error.reason === "status-code") {
108
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
109
+ case "UnprocessableEntityError":
110
+ return {
111
+ ok: false,
112
+ error: serializers.superbills.v1.createSuperbill.Error.parseOrThrow(_response.error.body, {
113
+ unrecognizedObjectKeys: "passthrough",
114
+ allowUnrecognizedUnionMembers: true,
115
+ allowUnrecognizedEnumValues: true,
116
+ breadcrumbsPrefix: ["response"],
117
+ }),
118
+ };
119
+ }
120
+ }
121
+ return {
122
+ ok: false,
123
+ error: CandidApi.superbills.v1.createSuperbill.Error._unknown(_response.error),
124
+ };
125
+ });
126
+ }
127
+ _getAuthorizationHeader() {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const bearer = yield core.Supplier.get(this._options.token);
130
+ if (bearer != null) {
131
+ return `Bearer ${bearer}`;
132
+ }
133
+ return undefined;
134
+ });
135
+ }
136
+ }
137
+ exports.V1 = V1;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.superbills.v1.createSuperbill.Error.UnprocessableEntityError | CandidApi.superbills.v1.createSuperbill.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface UnprocessableEntityError extends _Utils {
9
+ errorName: "UnprocessableEntityError";
10
+ content: CandidApi.UnprocessableEntityErrorMessage;
11
+ }
12
+ interface _Unknown extends _Utils {
13
+ errorName: void;
14
+ content: core.Fetcher.Error;
15
+ }
16
+ interface _Utils {
17
+ _visit: <_Result>(visitor: CandidApi.superbills.v1.createSuperbill.Error._Visitor<_Result>) => _Result;
18
+ }
19
+ interface _Visitor<_Result> {
20
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
21
+ _other: (value: core.Fetcher.Error) => _Result;
22
+ }
23
+ }
24
+ export declare const Error: {
25
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.superbills.v1.createSuperbill.Error.UnprocessableEntityError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.superbills.v1.createSuperbill.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.superbills.v1.createSuperbill.Error, visitor: CandidApi.superbills.v1.createSuperbill.Error._Visitor<_Result>) => _Result;
28
+ };
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ unprocessableEntityError: (value) => {
43
+ return {
44
+ content: value,
45
+ errorName: "UnprocessableEntityError",
46
+ _visit: function (visitor) {
47
+ return CandidApi.superbills.v1.createSuperbill.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _unknown: (fetcherError) => {
52
+ return {
53
+ errorName: undefined,
54
+ content: fetcherError,
55
+ _visit: function (visitor) {
56
+ return CandidApi.superbills.v1.createSuperbill.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ _visit: (value, visitor) => {
61
+ switch (value.errorName) {
62
+ case "UnprocessableEntityError":
63
+ return visitor.unprocessableEntityError(value.content);
64
+ default:
65
+ return visitor._other(value);
66
+ }
67
+ },
68
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./requests";
2
+ export * as createSuperbill from "./createSuperbill";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.createSuperbill = void 0;
40
+ __exportStar(require("./requests"), exports);
41
+ exports.createSuperbill = __importStar(require("./createSuperbill"));
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * patientExternalId: CandidApi.PatientExternalId("string"),
9
+ * dateRangeMin: "2023-01-15",
10
+ * dateRangeMax: "2023-01-15",
11
+ * payToAddress: {
12
+ * address1: "123 Main St",
13
+ * address2: "Apt 1",
14
+ * city: "New York",
15
+ * state: "NY",
16
+ * zipCode: "10001",
17
+ * zipPlusFourCode: "1234"
18
+ * }
19
+ * }
20
+ */
21
+ export interface CreateSuperbillRequest {
22
+ /** Empty string not allowed */
23
+ patientExternalId: CandidApi.PatientExternalId;
24
+ /** Minimum (inclusive) date selected for the superbill */
25
+ dateRangeMin: string;
26
+ /** Maximum (inclusive) date selected for the superbill */
27
+ dateRangeMax: string;
28
+ /**
29
+ * Address that will be displayed on the superbill as the 'Pay to' Address. If not provided this value will be set from available encounter data.
30
+ *
31
+ */
32
+ payToAddress?: CandidApi.StreetAddressShortZip;
33
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type CreateSuperbillRequest } from "./CreateSuperbillRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface Superbill {
6
+ /** Primary id of the superbill. */
7
+ superbillId: string;
8
+ /** external_id of the patient. */
9
+ patientExternalId: CandidApi.PatientExternalId;
10
+ /** Authenticated URL for downloading the generated superbill file. */
11
+ authedUrl: string;
12
+ /** Minimum (inclusive) date selected for this superbill. */
13
+ dateRangeMin: string;
14
+ /** Maximum (inclusive) date selected for this superbill. */
15
+ dateRangeMax: string;
16
+ /** Original filename of the superbill. */
17
+ fileName: string;
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface SuperbillResponse {
6
+ /** Each object represents a single Superbill for a single billing provider. */
7
+ superbills: CandidApi.superbills.v1.Superbill[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./Superbill";
2
+ export * from "./SuperbillResponse";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Superbill"), exports);
18
+ __exportStar(require("./SuperbillResponse"), exports);
@@ -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.41.2", "User-Agent": "candidhealth/0.41.2", "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.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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.41.2", "User-Agent": "candidhealth/0.41.2", "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.41.3", "User-Agent": "candidhealth/0.41.3", "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,
package/dist/Client.d.ts CHANGED
@@ -33,6 +33,7 @@ import { PatientRefunds } from "./api/resources/patientRefunds/client/Client";
33
33
  import { PayerPlanGroups } from "./api/resources/payerPlanGroups/client/Client";
34
34
  import { Payers } from "./api/resources/payers/client/Client";
35
35
  import { ServiceLines } from "./api/resources/serviceLines/client/Client";
36
+ import { Superbills } from "./api/resources/superbills/client/Client";
36
37
  import { Tasks } from "./api/resources/tasks/client/Client";
37
38
  import { WriteOffs } from "./api/resources/writeOffs/client/Client";
38
39
  import { PreEncounter } from "./api/resources/preEncounter/client/Client";
@@ -90,6 +91,7 @@ export declare class CandidApiClient {
90
91
  protected _payerPlanGroups: PayerPlanGroups | undefined;
91
92
  protected _payers: Payers | undefined;
92
93
  protected _serviceLines: ServiceLines | undefined;
94
+ protected _superbills: Superbills | undefined;
93
95
  protected _tasks: Tasks | undefined;
94
96
  protected _writeOffs: WriteOffs | undefined;
95
97
  protected _preEncounter: PreEncounter | undefined;
@@ -126,6 +128,7 @@ export declare class CandidApiClient {
126
128
  get payerPlanGroups(): PayerPlanGroups;
127
129
  get payers(): Payers;
128
130
  get serviceLines(): ServiceLines;
131
+ get superbills(): Superbills;
129
132
  get tasks(): Tasks;
130
133
  get writeOffs(): WriteOffs;
131
134
  get preEncounter(): PreEncounter;