candidhealth 0.34.2 → 0.34.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 (104) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  5. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  6. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  7. package/api/resources/encounters/resources/v4/client/Client.d.ts +1 -1
  8. package/api/resources/encounters/resources/v4/client/Client.js +6 -6
  9. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +2 -2
  10. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  11. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  12. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  13. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  14. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  15. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  16. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  17. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  18. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  19. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  20. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  21. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  22. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  23. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  24. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  25. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  26. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  27. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  28. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  29. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +12 -0
  30. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +58 -5
  31. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +2 -0
  32. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +6 -1
  33. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +12 -0
  34. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.js +5 -0
  35. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.d.ts +1 -0
  36. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.js +2 -0
  37. package/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +22 -0
  38. package/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +47 -0
  39. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  40. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  41. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
  42. package/api/resources/serviceFacility/client/Client.js +1 -1
  43. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  44. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  45. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  46. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  47. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  48. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  49. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  50. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  51. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  52. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +1 -1
  53. package/dist/api/resources/encounters/resources/v4/client/Client.js +6 -6
  54. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +2 -2
  55. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  56. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  57. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  58. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  59. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  60. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  61. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  62. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  63. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  64. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  65. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  66. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  67. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  68. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  69. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  70. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  71. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  72. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  73. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  74. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +12 -0
  75. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +58 -5
  76. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +2 -0
  77. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +6 -1
  78. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +12 -0
  79. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.js +5 -0
  80. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.d.ts +1 -0
  81. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.js +2 -0
  82. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +22 -0
  83. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +47 -0
  84. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  85. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  86. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
  87. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  88. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  89. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  90. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  91. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +1 -1
  92. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.js +1 -1
  93. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -0
  94. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.js +2 -1
  95. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +11 -0
  96. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +32 -0
  97. package/package.json +1 -1
  98. package/reference.md +66 -1
  99. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +1 -1
  100. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.js +1 -1
  101. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -0
  102. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.js +2 -1
  103. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +11 -0
  104. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +32 -0
@@ -171,6 +171,18 @@ export declare class V1 {
171
171
  * })
172
172
  */
173
173
  update(id: CandidApi.preEncounter.AppointmentId, version: string, request: CandidApi.preEncounter.appointments.v1.MutableAppointment, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.appointments.v1.Appointment, CandidApi.preEncounter.appointments.v1.update.Error>>;
174
+ /**
175
+ * Scans up to 100 appointment updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
176
+ *
177
+ * @param {CandidApi.preEncounter.appointments.v1.AppointmentScanRequest} request
178
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
179
+ *
180
+ * @example
181
+ * await client.preEncounter.appointments.v1.scan({
182
+ * since: new Date("2024-01-15T09:30:00.000Z")
183
+ * })
184
+ */
185
+ scan(request: CandidApi.preEncounter.appointments.v1.AppointmentScanRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.appointments.v1.Appointment[], CandidApi.preEncounter.appointments.v1.scan.Error>>;
174
186
  /**
175
187
  * Sets an appointment as deactivated. The path must contain the most recent version to prevent race conditions. Deactivating historic versions is not supported. Subsequent updates via PUT to the appointment will "reactivate" the appointment and set the deactivated flag to false.
176
188
  *
@@ -122,7 +122,7 @@ class V1 {
122
122
  Authorization: yield this._getAuthorizationHeader(),
123
123
  "X-Fern-Language": "JavaScript",
124
124
  "X-Fern-SDK-Name": "candidhealth",
125
- "X-Fern-SDK-Version": "0.34.2",
125
+ "X-Fern-SDK-Version": "0.34.3",
126
126
  "X-Fern-Runtime": core.RUNTIME.type,
127
127
  "X-Fern-Runtime-Version": core.RUNTIME.version,
128
128
  },
@@ -187,7 +187,7 @@ class V1 {
187
187
  Authorization: yield this._getAuthorizationHeader(),
188
188
  "X-Fern-Language": "JavaScript",
189
189
  "X-Fern-SDK-Name": "candidhealth",
190
- "X-Fern-SDK-Version": "0.34.2",
190
+ "X-Fern-SDK-Version": "0.34.3",
191
191
  "X-Fern-Runtime": core.RUNTIME.type,
192
192
  "X-Fern-Runtime-Version": core.RUNTIME.version,
193
193
  },
@@ -248,7 +248,7 @@ class V1 {
248
248
  Authorization: yield this._getAuthorizationHeader(),
249
249
  "X-Fern-Language": "JavaScript",
250
250
  "X-Fern-SDK-Name": "candidhealth",
251
- "X-Fern-SDK-Version": "0.34.2",
251
+ "X-Fern-SDK-Version": "0.34.3",
252
252
  "X-Fern-Runtime": core.RUNTIME.type,
253
253
  "X-Fern-Runtime-Version": core.RUNTIME.version,
254
254
  },
@@ -365,7 +365,7 @@ class V1 {
365
365
  Authorization: yield this._getAuthorizationHeader(),
366
366
  "X-Fern-Language": "JavaScript",
367
367
  "X-Fern-SDK-Name": "candidhealth",
368
- "X-Fern-SDK-Version": "0.34.2",
368
+ "X-Fern-SDK-Version": "0.34.3",
369
369
  "X-Fern-Runtime": core.RUNTIME.type,
370
370
  "X-Fern-Runtime-Version": core.RUNTIME.version,
371
371
  },
@@ -410,6 +410,59 @@ class V1 {
410
410
  };
411
411
  });
412
412
  }
413
+ /**
414
+ * Scans up to 100 appointment updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
415
+ *
416
+ * @param {CandidApi.preEncounter.appointments.v1.AppointmentScanRequest} request
417
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
418
+ *
419
+ * @example
420
+ * await client.preEncounter.appointments.v1.scan({
421
+ * since: new Date("2024-01-15T09:30:00.000Z")
422
+ * })
423
+ */
424
+ scan(request, requestOptions) {
425
+ var _a;
426
+ return __awaiter(this, void 0, void 0, function* () {
427
+ const { since } = request;
428
+ const _queryParams = {};
429
+ _queryParams["since"] = since.toISOString();
430
+ const _response = yield core.fetcher({
431
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
432
+ .preEncounter, "/appointments/v1/updates/scan"),
433
+ method: "GET",
434
+ headers: {
435
+ Authorization: yield this._getAuthorizationHeader(),
436
+ "X-Fern-Language": "JavaScript",
437
+ "X-Fern-SDK-Name": "candidhealth",
438
+ "X-Fern-SDK-Version": "0.34.3",
439
+ "X-Fern-Runtime": core.RUNTIME.type,
440
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
441
+ },
442
+ contentType: "application/json",
443
+ queryParameters: _queryParams,
444
+ requestType: "json",
445
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
446
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
447
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
448
+ });
449
+ if (_response.ok) {
450
+ return {
451
+ ok: true,
452
+ body: serializers.preEncounter.appointments.v1.scan.Response.parseOrThrow(_response.body, {
453
+ unrecognizedObjectKeys: "passthrough",
454
+ allowUnrecognizedUnionMembers: true,
455
+ allowUnrecognizedEnumValues: true,
456
+ breadcrumbsPrefix: ["response"],
457
+ }),
458
+ };
459
+ }
460
+ return {
461
+ ok: false,
462
+ error: CandidApi.preEncounter.appointments.v1.scan.Error._unknown(_response.error),
463
+ };
464
+ });
465
+ }
413
466
  /**
414
467
  * Sets an appointment as deactivated. The path must contain the most recent version to prevent race conditions. Deactivating historic versions is not supported. Subsequent updates via PUT to the appointment will "reactivate" the appointment and set the deactivated flag to false.
415
468
  *
@@ -431,7 +484,7 @@ class V1 {
431
484
  Authorization: yield this._getAuthorizationHeader(),
432
485
  "X-Fern-Language": "JavaScript",
433
486
  "X-Fern-SDK-Name": "candidhealth",
434
- "X-Fern-SDK-Version": "0.34.2",
487
+ "X-Fern-SDK-Version": "0.34.3",
435
488
  "X-Fern-Runtime": core.RUNTIME.type,
436
489
  "X-Fern-Runtime-Version": core.RUNTIME.version,
437
490
  },
@@ -1,5 +1,7 @@
1
+ export * from "./requests";
1
2
  export * as create from "./create";
2
3
  export * as get from "./get";
3
4
  export * as getHistory from "./getHistory";
4
5
  export * as update from "./update";
6
+ export * as scan from "./scan";
5
7
  export * as deactivate from "./deactivate";
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
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
+ };
18
21
  var __importStar = (this && this.__importStar) || function (mod) {
19
22
  if (mod && mod.__esModule) return mod;
20
23
  var result = {};
@@ -23,9 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
26
  return result;
24
27
  };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.deactivate = exports.update = exports.getHistory = exports.get = exports.create = void 0;
29
+ exports.deactivate = exports.scan = exports.update = exports.getHistory = exports.get = exports.create = void 0;
30
+ __exportStar(require("./requests"), exports);
27
31
  exports.create = __importStar(require("./create"));
28
32
  exports.get = __importStar(require("./get"));
29
33
  exports.getHistory = __importStar(require("./getHistory"));
30
34
  exports.update = __importStar(require("./update"));
35
+ exports.scan = __importStar(require("./scan"));
31
36
  exports.deactivate = __importStar(require("./deactivate"));
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * since: new Date("2024-01-15T09:30:00.000Z")
8
+ * }
9
+ */
10
+ export interface AppointmentScanRequest {
11
+ since: Date;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type AppointmentScanRequest } from "./AppointmentScanRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../../index";
5
+ import * as core from "../../../../../../../../core";
6
+ export declare type Error = CandidApi.preEncounter.appointments.v1.scan.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.preEncounter.appointments.v1.scan.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.appointments.v1.scan.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.preEncounter.appointments.v1.scan.Error, visitor: CandidApi.preEncounter.appointments.v1.scan.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,47 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../../index"));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.preEncounter.appointments.v1.scan.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -134,7 +134,7 @@ class V1 {
134
134
  Authorization: yield this._getAuthorizationHeader(),
135
135
  "X-Fern-Language": "JavaScript",
136
136
  "X-Fern-SDK-Name": "candidhealth",
137
- "X-Fern-SDK-Version": "0.34.2",
137
+ "X-Fern-SDK-Version": "0.34.3",
138
138
  "X-Fern-Runtime": core.RUNTIME.type,
139
139
  "X-Fern-Runtime-Version": core.RUNTIME.version,
140
140
  },
@@ -252,7 +252,7 @@ class V1 {
252
252
  Authorization: yield this._getAuthorizationHeader(),
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "candidhealth",
255
- "X-Fern-SDK-Version": "0.34.2",
255
+ "X-Fern-SDK-Version": "0.34.3",
256
256
  "X-Fern-Runtime": core.RUNTIME.type,
257
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
258
258
  },
@@ -317,7 +317,7 @@ class V1 {
317
317
  Authorization: yield this._getAuthorizationHeader(),
318
318
  "X-Fern-Language": "JavaScript",
319
319
  "X-Fern-SDK-Name": "candidhealth",
320
- "X-Fern-SDK-Version": "0.34.2",
320
+ "X-Fern-SDK-Version": "0.34.3",
321
321
  "X-Fern-Runtime": core.RUNTIME.type,
322
322
  "X-Fern-Runtime-Version": core.RUNTIME.version,
323
323
  },
@@ -364,7 +364,7 @@ class V1 {
364
364
  Authorization: yield this._getAuthorizationHeader(),
365
365
  "X-Fern-Language": "JavaScript",
366
366
  "X-Fern-SDK-Name": "candidhealth",
367
- "X-Fern-SDK-Version": "0.34.2",
367
+ "X-Fern-SDK-Version": "0.34.3",
368
368
  "X-Fern-Runtime": core.RUNTIME.type,
369
369
  "X-Fern-Runtime-Version": core.RUNTIME.version,
370
370
  },
@@ -432,7 +432,7 @@ class V1 {
432
432
  Authorization: yield this._getAuthorizationHeader(),
433
433
  "X-Fern-Language": "JavaScript",
434
434
  "X-Fern-SDK-Name": "candidhealth",
435
- "X-Fern-SDK-Version": "0.34.2",
435
+ "X-Fern-SDK-Version": "0.34.3",
436
436
  "X-Fern-Runtime": core.RUNTIME.type,
437
437
  "X-Fern-Runtime-Version": core.RUNTIME.version,
438
438
  },
@@ -485,7 +485,7 @@ class V1 {
485
485
  Authorization: yield this._getAuthorizationHeader(),
486
486
  "X-Fern-Language": "JavaScript",
487
487
  "X-Fern-SDK-Name": "candidhealth",
488
- "X-Fern-SDK-Version": "0.34.2",
488
+ "X-Fern-SDK-Version": "0.34.3",
489
489
  "X-Fern-Runtime": core.RUNTIME.type,
490
490
  "X-Fern-Runtime-Version": core.RUNTIME.version,
491
491
  },
@@ -538,7 +538,7 @@ class V1 {
538
538
  Authorization: yield this._getAuthorizationHeader(),
539
539
  "X-Fern-Language": "JavaScript",
540
540
  "X-Fern-SDK-Name": "candidhealth",
541
- "X-Fern-SDK-Version": "0.34.2",
541
+ "X-Fern-SDK-Version": "0.34.3",
542
542
  "X-Fern-Runtime": core.RUNTIME.type,
543
543
  "X-Fern-Runtime-Version": core.RUNTIME.version,
544
544
  },
@@ -589,7 +589,7 @@ class V1 {
589
589
  Authorization: yield this._getAuthorizationHeader(),
590
590
  "X-Fern-Language": "JavaScript",
591
591
  "X-Fern-SDK-Name": "candidhealth",
592
- "X-Fern-SDK-Version": "0.34.2",
592
+ "X-Fern-SDK-Version": "0.34.3",
593
593
  "X-Fern-Runtime": core.RUNTIME.type,
594
594
  "X-Fern-Runtime-Version": core.RUNTIME.version,
595
595
  },
@@ -91,7 +91,7 @@ class V1 {
91
91
  Authorization: yield this._getAuthorizationHeader(),
92
92
  "X-Fern-Language": "JavaScript",
93
93
  "X-Fern-SDK-Name": "candidhealth",
94
- "X-Fern-SDK-Version": "0.34.2",
94
+ "X-Fern-SDK-Version": "0.34.3",
95
95
  "X-Fern-Runtime": core.RUNTIME.type,
96
96
  "X-Fern-Runtime-Version": core.RUNTIME.version,
97
97
  },
@@ -176,7 +176,7 @@ class V1 {
176
176
  Authorization: yield this._getAuthorizationHeader(),
177
177
  "X-Fern-Language": "JavaScript",
178
178
  "X-Fern-SDK-Name": "candidhealth",
179
- "X-Fern-SDK-Version": "0.34.2",
179
+ "X-Fern-SDK-Version": "0.34.3",
180
180
  "X-Fern-Runtime": core.RUNTIME.type,
181
181
  "X-Fern-Runtime-Version": core.RUNTIME.version,
182
182
  },
@@ -361,7 +361,7 @@ class V1 {
361
361
  Authorization: yield this._getAuthorizationHeader(),
362
362
  "X-Fern-Language": "JavaScript",
363
363
  "X-Fern-SDK-Name": "candidhealth",
364
- "X-Fern-SDK-Version": "0.34.2",
364
+ "X-Fern-SDK-Version": "0.34.3",
365
365
  "X-Fern-Runtime": core.RUNTIME.type,
366
366
  "X-Fern-Runtime-Version": core.RUNTIME.version,
367
367
  },
@@ -450,7 +450,7 @@ class V1 {
450
450
  Authorization: yield this._getAuthorizationHeader(),
451
451
  "X-Fern-Language": "JavaScript",
452
452
  "X-Fern-SDK-Name": "candidhealth",
453
- "X-Fern-SDK-Version": "0.34.2",
453
+ "X-Fern-SDK-Version": "0.34.3",
454
454
  "X-Fern-Runtime": core.RUNTIME.type,
455
455
  "X-Fern-Runtime-Version": core.RUNTIME.version,
456
456
  },
@@ -498,7 +498,7 @@ class V1 {
498
498
  Authorization: yield this._getAuthorizationHeader(),
499
499
  "X-Fern-Language": "JavaScript",
500
500
  "X-Fern-SDK-Name": "candidhealth",
501
- "X-Fern-SDK-Version": "0.34.2",
501
+ "X-Fern-SDK-Version": "0.34.3",
502
502
  "X-Fern-Runtime": core.RUNTIME.type,
503
503
  "X-Fern-Runtime-Version": core.RUNTIME.version,
504
504
  },
@@ -559,7 +559,7 @@ class V1 {
559
559
  Authorization: yield this._getAuthorizationHeader(),
560
560
  "X-Fern-Language": "JavaScript",
561
561
  "X-Fern-SDK-Name": "candidhealth",
562
- "X-Fern-SDK-Version": "0.34.2",
562
+ "X-Fern-SDK-Version": "0.34.3",
563
563
  "X-Fern-Runtime": core.RUNTIME.type,
564
564
  "X-Fern-Runtime-Version": core.RUNTIME.version,
565
565
  },
@@ -907,7 +907,7 @@ class V1 {
907
907
  Authorization: yield this._getAuthorizationHeader(),
908
908
  "X-Fern-Language": "JavaScript",
909
909
  "X-Fern-SDK-Name": "candidhealth",
910
- "X-Fern-SDK-Version": "0.34.2",
910
+ "X-Fern-SDK-Version": "0.34.3",
911
911
  "X-Fern-Runtime": core.RUNTIME.type,
912
912
  "X-Fern-Runtime-Version": core.RUNTIME.version,
913
913
  },
@@ -973,7 +973,7 @@ class V1 {
973
973
  Authorization: yield this._getAuthorizationHeader(),
974
974
  "X-Fern-Language": "JavaScript",
975
975
  "X-Fern-SDK-Name": "candidhealth",
976
- "X-Fern-SDK-Version": "0.34.2",
976
+ "X-Fern-SDK-Version": "0.34.3",
977
977
  "X-Fern-Runtime": core.RUNTIME.type,
978
978
  "X-Fern-Runtime-Version": core.RUNTIME.version,
979
979
  },
@@ -1041,7 +1041,7 @@ class V1 {
1041
1041
  Authorization: yield this._getAuthorizationHeader(),
1042
1042
  "X-Fern-Language": "JavaScript",
1043
1043
  "X-Fern-SDK-Name": "candidhealth",
1044
- "X-Fern-SDK-Version": "0.34.2",
1044
+ "X-Fern-SDK-Version": "0.34.3",
1045
1045
  "X-Fern-Runtime": core.RUNTIME.type,
1046
1046
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1047
1047
  },
@@ -1094,7 +1094,7 @@ class V1 {
1094
1094
  Authorization: yield this._getAuthorizationHeader(),
1095
1095
  "X-Fern-Language": "JavaScript",
1096
1096
  "X-Fern-SDK-Name": "candidhealth",
1097
- "X-Fern-SDK-Version": "0.34.2",
1097
+ "X-Fern-SDK-Version": "0.34.3",
1098
1098
  "X-Fern-Runtime": core.RUNTIME.type,
1099
1099
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1100
1100
  },
@@ -77,7 +77,7 @@ class ServiceFacility {
77
77
  Authorization: yield this._getAuthorizationHeader(),
78
78
  "X-Fern-Language": "JavaScript",
79
79
  "X-Fern-SDK-Name": "candidhealth",
80
- "X-Fern-SDK-Version": "0.34.2",
80
+ "X-Fern-SDK-Version": "0.34.3",
81
81
  "X-Fern-Runtime": core.RUNTIME.type,
82
82
  "X-Fern-Runtime-Version": core.RUNTIME.version,
83
83
  },
@@ -84,7 +84,7 @@ class V2 {
84
84
  Authorization: yield this._getAuthorizationHeader(),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "candidhealth",
87
- "X-Fern-SDK-Version": "0.34.2",
87
+ "X-Fern-SDK-Version": "0.34.3",
88
88
  "X-Fern-Runtime": core.RUNTIME.type,
89
89
  "X-Fern-Runtime-Version": core.RUNTIME.version,
90
90
  },
@@ -174,7 +174,7 @@ class V2 {
174
174
  Authorization: yield this._getAuthorizationHeader(),
175
175
  "X-Fern-Language": "JavaScript",
176
176
  "X-Fern-SDK-Name": "candidhealth",
177
- "X-Fern-SDK-Version": "0.34.2",
177
+ "X-Fern-SDK-Version": "0.34.3",
178
178
  "X-Fern-Runtime": core.RUNTIME.type,
179
179
  "X-Fern-Runtime-Version": core.RUNTIME.version,
180
180
  },
@@ -238,7 +238,7 @@ class V2 {
238
238
  Authorization: yield this._getAuthorizationHeader(),
239
239
  "X-Fern-Language": "JavaScript",
240
240
  "X-Fern-SDK-Name": "candidhealth",
241
- "X-Fern-SDK-Version": "0.34.2",
241
+ "X-Fern-SDK-Version": "0.34.3",
242
242
  "X-Fern-Runtime": core.RUNTIME.type,
243
243
  "X-Fern-Runtime-Version": core.RUNTIME.version,
244
244
  },
@@ -66,7 +66,7 @@ class V3 {
66
66
  Authorization: yield this._getAuthorizationHeader(),
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "candidhealth",
69
- "X-Fern-SDK-Version": "0.34.2",
69
+ "X-Fern-SDK-Version": "0.34.3",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -166,7 +166,7 @@ class V3 {
166
166
  Authorization: yield this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "candidhealth",
169
- "X-Fern-SDK-Version": "0.34.2",
169
+ "X-Fern-SDK-Version": "0.34.3",
170
170
  "X-Fern-Runtime": core.RUNTIME.type,
171
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
172
172
  },
@@ -226,7 +226,7 @@ class V3 {
226
226
  Authorization: yield this._getAuthorizationHeader(),
227
227
  "X-Fern-Language": "JavaScript",
228
228
  "X-Fern-SDK-Name": "candidhealth",
229
- "X-Fern-SDK-Version": "0.34.2",
229
+ "X-Fern-SDK-Version": "0.34.3",
230
230
  "X-Fern-Runtime": core.RUNTIME.type,
231
231
  "X-Fern-Runtime-Version": core.RUNTIME.version,
232
232
  },
@@ -294,7 +294,7 @@ class V3 {
294
294
  Authorization: yield this._getAuthorizationHeader(),
295
295
  "X-Fern-Language": "JavaScript",
296
296
  "X-Fern-SDK-Name": "candidhealth",
297
- "X-Fern-SDK-Version": "0.34.2",
297
+ "X-Fern-SDK-Version": "0.34.3",
298
298
  "X-Fern-Runtime": core.RUNTIME.type,
299
299
  "X-Fern-Runtime-Version": core.RUNTIME.version,
300
300
  },
@@ -345,7 +345,7 @@ class V3 {
345
345
  Authorization: yield this._getAuthorizationHeader(),
346
346
  "X-Fern-Language": "JavaScript",
347
347
  "X-Fern-SDK-Name": "candidhealth",
348
- "X-Fern-SDK-Version": "0.34.2",
348
+ "X-Fern-SDK-Version": "0.34.3",
349
349
  "X-Fern-Runtime": core.RUNTIME.type,
350
350
  "X-Fern-Runtime-Version": core.RUNTIME.version,
351
351
  },
@@ -116,7 +116,7 @@ class V1 {
116
116
  Authorization: yield this._getAuthorizationHeader(),
117
117
  "X-Fern-Language": "JavaScript",
118
118
  "X-Fern-SDK-Name": "candidhealth",
119
- "X-Fern-SDK-Version": "0.34.2",
119
+ "X-Fern-SDK-Version": "0.34.3",
120
120
  "X-Fern-Runtime": core.RUNTIME.type,
121
121
  "X-Fern-Runtime-Version": core.RUNTIME.version,
122
122
  },
@@ -164,7 +164,7 @@ class V1 {
164
164
  Authorization: yield this._getAuthorizationHeader(),
165
165
  "X-Fern-Language": "JavaScript",
166
166
  "X-Fern-SDK-Name": "candidhealth",
167
- "X-Fern-SDK-Version": "0.34.2",
167
+ "X-Fern-SDK-Version": "0.34.3",
168
168
  "X-Fern-Runtime": core.RUNTIME.type,
169
169
  "X-Fern-Runtime-Version": core.RUNTIME.version,
170
170
  },
@@ -221,7 +221,7 @@ class V1 {
221
221
  Authorization: yield this._getAuthorizationHeader(),
222
222
  "X-Fern-Language": "JavaScript",
223
223
  "X-Fern-SDK-Name": "candidhealth",
224
- "X-Fern-SDK-Version": "0.34.2",
224
+ "X-Fern-SDK-Version": "0.34.3",
225
225
  "X-Fern-Runtime": core.RUNTIME.type,
226
226
  "X-Fern-Runtime-Version": core.RUNTIME.version,
227
227
  },
@@ -271,7 +271,7 @@ class V1 {
271
271
  Authorization: yield this._getAuthorizationHeader(),
272
272
  "X-Fern-Language": "JavaScript",
273
273
  "X-Fern-SDK-Name": "candidhealth",
274
- "X-Fern-SDK-Version": "0.34.2",
274
+ "X-Fern-SDK-Version": "0.34.3",
275
275
  "X-Fern-Runtime": core.RUNTIME.type,
276
276
  "X-Fern-Runtime-Version": core.RUNTIME.version,
277
277
  },
@@ -25,7 +25,7 @@ export declare const EncounterCreateFromPreEncounter: core.serialization.Schema<
25
25
  export declare namespace EncounterCreateFromPreEncounter {
26
26
  interface Raw extends EncounterBase.Raw {
27
27
  pre_encounter_patient_id: PreEncounterPatientId.Raw;
28
- pre_encounter_appointment_id: PreEncounterAppointmentId.Raw;
28
+ pre_encounter_appointment_ids: PreEncounterAppointmentId.Raw[];
29
29
  billing_provider: BillingProvider.Raw;
30
30
  rendering_provider: RenderingProvider.Raw;
31
31
  initial_referring_provider?: InitialReferringProvider.Raw | null;
@@ -48,7 +48,7 @@ const EncounterBase_1 = require("../../types/EncounterBase");
48
48
  exports.EncounterCreateFromPreEncounter = core.serialization
49
49
  .object({
50
50
  preEncounterPatientId: core.serialization.property("pre_encounter_patient_id", PreEncounterPatientId_1.PreEncounterPatientId),
51
- preEncounterAppointmentId: core.serialization.property("pre_encounter_appointment_id", PreEncounterAppointmentId_1.PreEncounterAppointmentId),
51
+ preEncounterAppointmentIds: core.serialization.property("pre_encounter_appointment_ids", core.serialization.list(PreEncounterAppointmentId_1.PreEncounterAppointmentId)),
52
52
  billingProvider: core.serialization.property("billing_provider", BillingProvider_1.BillingProvider),
53
53
  renderingProvider: core.serialization.property("rendering_provider", RenderingProvider_1.RenderingProvider),
54
54
  initialReferringProvider: core.serialization.property("initial_referring_provider", InitialReferringProvider_1.InitialReferringProvider.optional()),
@@ -2,4 +2,5 @@ export * as create from "./create";
2
2
  export * as get from "./get";
3
3
  export * as getHistory from "./getHistory";
4
4
  export * as update from "./update";
5
+ export * as scan from "./scan";
5
6
  export * as deactivate from "./deactivate";
@@ -23,9 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.deactivate = exports.update = exports.getHistory = exports.get = exports.create = void 0;
26
+ exports.deactivate = exports.scan = exports.update = exports.getHistory = exports.get = exports.create = void 0;
27
27
  exports.create = __importStar(require("./create"));
28
28
  exports.get = __importStar(require("./get"));
29
29
  exports.getHistory = __importStar(require("./getHistory"));
30
30
  exports.update = __importStar(require("./update"));
31
+ exports.scan = __importStar(require("./scan"));
31
32
  exports.deactivate = __importStar(require("./deactivate"));
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ import { Appointment } from "../types/Appointment";
8
+ export declare const Response: core.serialization.Schema<serializers.preEncounter.appointments.v1.scan.Response.Raw, CandidApi.preEncounter.appointments.v1.Appointment[]>;
9
+ export declare namespace Response {
10
+ type Raw = Appointment.Raw[];
11
+ }
@@ -0,0 +1,32 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Response = void 0;
30
+ const core = __importStar(require("../../../../../../../../core"));
31
+ const Appointment_1 = require("../types/Appointment");
32
+ exports.Response = core.serialization.list(Appointment_1.Appointment);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.34.2",
3
+ "version": "0.34.3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",