@tryvital/vital-node 3.0.6 → 3.0.7

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 (137) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/body/client/Client.js +2 -2
  3. package/api/resources/devices/client/Client.js +1 -1
  4. package/api/resources/insurance/client/Client.js +2 -2
  5. package/api/resources/introspect/client/Client.js +2 -2
  6. package/api/resources/labTests/client/Client.d.ts +5 -0
  7. package/api/resources/labTests/client/Client.js +82 -23
  8. package/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +9 -0
  9. package/api/resources/labTests/client/requests/index.d.ts +1 -0
  10. package/api/resources/link/client/Client.js +13 -13
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/profile/client/Client.js +2 -2
  13. package/api/resources/providers/client/Client.js +1 -1
  14. package/api/resources/sleep/client/Client.js +4 -4
  15. package/api/resources/team/client/Client.js +7 -7
  16. package/api/resources/testkit/client/Client.js +2 -2
  17. package/api/resources/user/client/Client.d.ts +1 -1
  18. package/api/resources/user/client/Client.js +18 -12
  19. package/api/resources/user/client/requests/UserRefreshRequest.d.ts +6 -0
  20. package/api/resources/user/client/requests/index.d.ts +1 -0
  21. package/api/resources/vitals/client/Client.js +23 -23
  22. package/api/resources/workouts/client/Client.js +3 -3
  23. package/api/types/AppointmentEventStatus.d.ts +2 -1
  24. package/api/types/AppointmentEventStatus.js +1 -0
  25. package/api/types/AppointmentProvider.d.ts +2 -1
  26. package/api/types/AppointmentProvider.js +1 -0
  27. package/api/types/AppointmentServiceType.d.ts +11 -0
  28. package/api/types/AppointmentServiceType.js +10 -0
  29. package/api/types/ClientFacingAppointment.d.ts +3 -3
  30. package/api/types/OrderStatus.d.ts +2 -1
  31. package/api/types/OrderStatus.js +1 -0
  32. package/api/types/PhlebotomyAreaInfo.d.ts +2 -0
  33. package/api/types/PhlebotomyProviderInfo.d.ts +8 -0
  34. package/api/types/UserRefreshSuccessResponse.d.ts +1 -0
  35. package/api/types/UserSignInTokenResponse.d.ts +1 -2
  36. package/api/types/index.d.ts +2 -2
  37. package/api/types/index.js +2 -2
  38. package/dist/api/resources/activity/client/Client.js +2 -2
  39. package/dist/api/resources/body/client/Client.js +2 -2
  40. package/dist/api/resources/devices/client/Client.js +1 -1
  41. package/dist/api/resources/insurance/client/Client.js +2 -2
  42. package/dist/api/resources/introspect/client/Client.js +2 -2
  43. package/dist/api/resources/labTests/client/Client.d.ts +5 -0
  44. package/dist/api/resources/labTests/client/Client.js +82 -23
  45. package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +9 -0
  46. package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
  47. package/dist/api/resources/link/client/Client.js +13 -13
  48. package/dist/api/resources/meal/client/Client.js +1 -1
  49. package/dist/api/resources/profile/client/Client.js +2 -2
  50. package/dist/api/resources/providers/client/Client.js +1 -1
  51. package/dist/api/resources/sleep/client/Client.js +4 -4
  52. package/dist/api/resources/team/client/Client.js +7 -7
  53. package/dist/api/resources/testkit/client/Client.js +2 -2
  54. package/dist/api/resources/user/client/Client.d.ts +1 -1
  55. package/dist/api/resources/user/client/Client.js +18 -12
  56. package/dist/api/resources/user/client/requests/UserRefreshRequest.d.ts +6 -0
  57. package/dist/api/resources/user/client/requests/UserRefreshRequest.js +5 -0
  58. package/dist/api/resources/user/client/requests/index.d.ts +1 -0
  59. package/dist/api/resources/vitals/client/Client.js +23 -23
  60. package/dist/api/resources/workouts/client/Client.js +3 -3
  61. package/dist/api/types/AppointmentEventStatus.d.ts +2 -1
  62. package/dist/api/types/AppointmentEventStatus.js +1 -0
  63. package/dist/api/types/AppointmentProvider.d.ts +2 -1
  64. package/dist/api/types/AppointmentProvider.js +1 -0
  65. package/dist/api/types/AppointmentServiceType.d.ts +11 -0
  66. package/dist/api/types/AppointmentServiceType.js +10 -0
  67. package/dist/api/types/ClientFacingAppointment.d.ts +3 -3
  68. package/dist/api/types/OrderStatus.d.ts +2 -1
  69. package/dist/api/types/OrderStatus.js +1 -0
  70. package/dist/api/types/PhlebotomyAreaInfo.d.ts +2 -0
  71. package/dist/api/types/PhlebotomyProviderInfo.d.ts +8 -0
  72. package/dist/api/types/PhlebotomyProviderInfo.js +5 -0
  73. package/dist/api/types/UserRefreshSuccessResponse.d.ts +1 -0
  74. package/dist/api/types/UserSignInTokenResponse.d.ts +1 -2
  75. package/dist/api/types/index.d.ts +2 -2
  76. package/dist/api/types/index.js +2 -2
  77. package/dist/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +13 -0
  78. package/dist/serialization/resources/labTests/client/requests/RequestAppointmentRequest.js +43 -0
  79. package/dist/serialization/resources/labTests/client/requests/index.d.ts +1 -0
  80. package/dist/serialization/resources/labTests/client/requests/index.js +3 -1
  81. package/dist/serialization/types/AppointmentEventStatus.d.ts +1 -1
  82. package/dist/serialization/types/AppointmentEventStatus.js +1 -1
  83. package/dist/serialization/types/AppointmentProvider.d.ts +1 -1
  84. package/dist/serialization/types/AppointmentProvider.js +1 -1
  85. package/dist/serialization/types/AppointmentServiceType.d.ts +10 -0
  86. package/dist/serialization/types/{UserSignInToken.js → AppointmentServiceType.js} +2 -5
  87. package/dist/serialization/types/ClientFacingAppointment.d.ts +3 -3
  88. package/dist/serialization/types/ClientFacingAppointment.js +3 -3
  89. package/dist/serialization/types/OrderStatus.d.ts +1 -1
  90. package/dist/serialization/types/OrderStatus.js +1 -0
  91. package/dist/serialization/types/PhlebotomyAreaInfo.d.ts +1 -0
  92. package/dist/serialization/types/PhlebotomyAreaInfo.js +10 -0
  93. package/dist/serialization/types/PhlebotomyProviderInfo.d.ts +13 -0
  94. package/dist/serialization/types/{UserSignInTokenResponseSignInToken.js → PhlebotomyProviderInfo.js} +5 -5
  95. package/dist/serialization/types/UserRefreshSuccessResponse.d.ts +1 -0
  96. package/dist/serialization/types/UserRefreshSuccessResponse.js +1 -0
  97. package/dist/serialization/types/UserSignInTokenResponse.d.ts +1 -1
  98. package/dist/serialization/types/UserSignInTokenResponse.js +1 -10
  99. package/dist/serialization/types/index.d.ts +2 -2
  100. package/dist/serialization/types/index.js +2 -2
  101. package/package.json +1 -1
  102. package/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +13 -0
  103. package/serialization/resources/labTests/client/requests/RequestAppointmentRequest.js +43 -0
  104. package/serialization/resources/labTests/client/requests/index.d.ts +1 -0
  105. package/serialization/resources/labTests/client/requests/index.js +3 -1
  106. package/serialization/types/AppointmentEventStatus.d.ts +1 -1
  107. package/serialization/types/AppointmentEventStatus.js +1 -1
  108. package/serialization/types/AppointmentProvider.d.ts +1 -1
  109. package/serialization/types/AppointmentProvider.js +1 -1
  110. package/serialization/types/AppointmentServiceType.d.ts +10 -0
  111. package/serialization/types/{UserSignInToken.js → AppointmentServiceType.js} +2 -5
  112. package/serialization/types/ClientFacingAppointment.d.ts +3 -3
  113. package/serialization/types/ClientFacingAppointment.js +3 -3
  114. package/serialization/types/OrderStatus.d.ts +1 -1
  115. package/serialization/types/OrderStatus.js +1 -0
  116. package/serialization/types/PhlebotomyAreaInfo.d.ts +1 -0
  117. package/serialization/types/PhlebotomyAreaInfo.js +10 -0
  118. package/serialization/types/PhlebotomyProviderInfo.d.ts +13 -0
  119. package/serialization/types/{UserSignInTokenResponseSignInToken.js → PhlebotomyProviderInfo.js} +5 -5
  120. package/serialization/types/UserRefreshSuccessResponse.d.ts +1 -0
  121. package/serialization/types/UserRefreshSuccessResponse.js +1 -0
  122. package/serialization/types/UserSignInTokenResponse.d.ts +1 -1
  123. package/serialization/types/UserSignInTokenResponse.js +1 -10
  124. package/serialization/types/index.d.ts +2 -2
  125. package/serialization/types/index.js +2 -2
  126. package/api/types/UserSignInToken.d.ts +0 -7
  127. package/api/types/UserSignInTokenResponseSignInToken.d.ts +0 -5
  128. package/dist/api/types/UserSignInToken.d.ts +0 -7
  129. package/dist/api/types/UserSignInTokenResponseSignInToken.d.ts +0 -5
  130. package/dist/serialization/types/UserSignInToken.d.ts +0 -13
  131. package/dist/serialization/types/UserSignInTokenResponseSignInToken.d.ts +0 -10
  132. package/serialization/types/UserSignInToken.d.ts +0 -13
  133. package/serialization/types/UserSignInTokenResponseSignInToken.d.ts +0 -10
  134. /package/api/{types/UserSignInToken.js → resources/labTests/client/requests/RequestAppointmentRequest.js} +0 -0
  135. /package/api/{types/UserSignInTokenResponseSignInToken.js → resources/user/client/requests/UserRefreshRequest.js} +0 -0
  136. /package/{dist/api/types/UserSignInToken.js → api/types/PhlebotomyProviderInfo.js} +0 -0
  137. /package/dist/api/{types/UserSignInTokenResponseSignInToken.js → resources/labTests/client/requests/RequestAppointmentRequest.js} +0 -0
@@ -1,5 +1,6 @@
1
1
  export { CreateLabTestRequest } from "./CreateLabTestRequest";
2
2
  export { AppointmentBookingRequest } from "./AppointmentBookingRequest";
3
+ export { RequestAppointmentRequest } from "./RequestAppointmentRequest";
3
4
  export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
4
5
  export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
5
6
  export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateOrderRequestCompatible = exports.AppointmentCancelRequest = exports.AppointmentRescheduleRequest = exports.AppointmentBookingRequest = exports.CreateLabTestRequest = void 0;
3
+ exports.CreateOrderRequestCompatible = exports.AppointmentCancelRequest = exports.AppointmentRescheduleRequest = exports.RequestAppointmentRequest = exports.AppointmentBookingRequest = exports.CreateLabTestRequest = void 0;
4
4
  var CreateLabTestRequest_1 = require("./CreateLabTestRequest");
5
5
  Object.defineProperty(exports, "CreateLabTestRequest", { enumerable: true, get: function () { return CreateLabTestRequest_1.CreateLabTestRequest; } });
6
6
  var AppointmentBookingRequest_1 = require("./AppointmentBookingRequest");
7
7
  Object.defineProperty(exports, "AppointmentBookingRequest", { enumerable: true, get: function () { return AppointmentBookingRequest_1.AppointmentBookingRequest; } });
8
+ var RequestAppointmentRequest_1 = require("./RequestAppointmentRequest");
9
+ Object.defineProperty(exports, "RequestAppointmentRequest", { enumerable: true, get: function () { return RequestAppointmentRequest_1.RequestAppointmentRequest; } });
8
10
  var AppointmentRescheduleRequest_1 = require("./AppointmentRescheduleRequest");
9
11
  Object.defineProperty(exports, "AppointmentRescheduleRequest", { enumerable: true, get: function () { return AppointmentRescheduleRequest_1.AppointmentRescheduleRequest; } });
10
12
  var AppointmentCancelRequest_1 = require("./AppointmentCancelRequest");
@@ -6,5 +6,5 @@ import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const AppointmentEventStatus: core.serialization.Schema<serializers.AppointmentEventStatus.Raw, Vital.AppointmentEventStatus>;
8
8
  export declare namespace AppointmentEventStatus {
9
- type Raw = "scheduled" | "completed" | "cancelled" | "in_progress";
9
+ type Raw = "pending" | "scheduled" | "completed" | "cancelled" | "in_progress";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AppointmentEventStatus = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.AppointmentEventStatus = core.serialization.enum_(["scheduled", "completed", "cancelled", "in_progress"]);
31
+ exports.AppointmentEventStatus = core.serialization.enum_(["pending", "scheduled", "completed", "cancelled", "in_progress"]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const AppointmentProvider: core.serialization.Schema<serializers.AppointmentProvider.Raw, Vital.AppointmentProvider>;
8
8
  export declare namespace AppointmentProvider {
9
- type Raw = "getlabs" | "axlehealth";
9
+ type Raw = "getlabs" | "axlehealth" | "phlebfinders";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AppointmentProvider = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.AppointmentProvider = core.serialization.enum_(["getlabs", "axlehealth"]);
31
+ exports.AppointmentProvider = core.serialization.enum_(["getlabs", "axlehealth", "phlebfinders"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const AppointmentServiceType: core.serialization.Schema<serializers.AppointmentServiceType.Raw, Vital.AppointmentServiceType>;
8
+ export declare namespace AppointmentServiceType {
9
+ type Raw = "appointment-ready" | "appointment-request";
10
+ }
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UserSignInToken = void 0;
29
+ exports.AppointmentServiceType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.UserSignInToken = core.serialization.object({
32
- publicKey: core.serialization.property("public_key", core.serialization.string()),
33
- userToken: core.serialization.property("user_token", core.serialization.string()),
34
- });
31
+ exports.AppointmentServiceType = core.serialization.enum_(["appointment-ready", "appointment-request"]);
@@ -12,9 +12,9 @@ export declare namespace ClientFacingAppointment {
12
12
  order_id: string;
13
13
  address: serializers.UsAddress.Raw;
14
14
  location: serializers.LngLat.Raw;
15
- start_at: string;
16
- end_at: string;
17
- iana_timezone: string;
15
+ start_at?: string | null;
16
+ end_at?: string | null;
17
+ iana_timezone?: string | null;
18
18
  type: serializers.AppointmentType.Raw;
19
19
  provider: serializers.AppointmentProvider.Raw;
20
20
  status: serializers.AppointmentStatus.Raw;
@@ -43,9 +43,9 @@ exports.ClientFacingAppointment = core.serialization.object({
43
43
  orderId: core.serialization.property("order_id", core.serialization.string()),
44
44
  address: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).UsAddress; })),
45
45
  location: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).LngLat; })),
46
- startAt: core.serialization.property("start_at", core.serialization.date()),
47
- endAt: core.serialization.property("end_at", core.serialization.date()),
48
- ianaTimezone: core.serialization.property("iana_timezone", core.serialization.string()),
46
+ startAt: core.serialization.property("start_at", core.serialization.date().optional()),
47
+ endAt: core.serialization.property("end_at", core.serialization.date().optional()),
48
+ ianaTimezone: core.serialization.property("iana_timezone", core.serialization.string().optional()),
49
49
  type: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentType; })),
50
50
  provider: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentProvider; })),
51
51
  status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentStatus; })),
@@ -6,5 +6,5 @@ import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const OrderStatus: core.serialization.Schema<serializers.OrderStatus.Raw, Vital.OrderStatus>;
8
8
  export declare namespace OrderStatus {
9
- type Raw = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process";
9
+ type Raw = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "collecting_sample.at_home_phlebotomy.appointment_pending" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process";
10
10
  }
@@ -37,6 +37,7 @@ exports.OrderStatus = core.serialization.enum_([
37
37
  "cancelled.walk_in_test.cancelled",
38
38
  "received.at_home_phlebotomy.ordered",
39
39
  "received.at_home_phlebotomy.requisition_created",
40
+ "collecting_sample.at_home_phlebotomy.appointment_pending",
40
41
  "collecting_sample.at_home_phlebotomy.appointment_scheduled",
41
42
  "collecting_sample.at_home_phlebotomy.draw_completed",
42
43
  "collecting_sample.at_home_phlebotomy.appointment_cancelled",
@@ -8,5 +8,6 @@ export declare const PhlebotomyAreaInfo: core.serialization.ObjectSchema<seriali
8
8
  export declare namespace PhlebotomyAreaInfo {
9
9
  interface Raw {
10
10
  is_served: boolean;
11
+ providers: serializers.PhlebotomyProviderInfo.Raw[];
11
12
  }
12
13
  }
@@ -25,9 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.PhlebotomyAreaInfo = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.PhlebotomyAreaInfo = core.serialization.object({
32
41
  isServed: core.serialization.property("is_served", core.serialization.boolean()),
42
+ providers: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PhlebotomyProviderInfo; }))),
33
43
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const PhlebotomyProviderInfo: core.serialization.ObjectSchema<serializers.PhlebotomyProviderInfo.Raw, Vital.PhlebotomyProviderInfo>;
8
+ export declare namespace PhlebotomyProviderInfo {
9
+ interface Raw {
10
+ name: serializers.AppointmentProvider.Raw;
11
+ service_types: serializers.AppointmentServiceType.Raw[];
12
+ }
13
+ }
@@ -35,9 +35,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35
35
  });
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.UserSignInTokenResponseSignInToken = void 0;
38
+ exports.PhlebotomyProviderInfo = void 0;
39
39
  const core = __importStar(require("../../core"));
40
- exports.UserSignInTokenResponseSignInToken = core.serialization.undiscriminatedUnion([
41
- core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).UserSignInToken; })),
42
- core.serialization.string(),
43
- ]);
40
+ exports.PhlebotomyProviderInfo = core.serialization.object({
41
+ name: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentProvider; })),
42
+ serviceTypes: core.serialization.property("service_types", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentServiceType; })))),
43
+ });
@@ -10,6 +10,7 @@ export declare namespace UserRefreshSuccessResponse {
10
10
  success: string;
11
11
  user_id: string;
12
12
  refreshed_sources: string[];
13
+ in_progress_sources: string[];
13
14
  failed_sources: string[];
14
15
  }
15
16
  }
@@ -32,5 +32,6 @@ exports.UserRefreshSuccessResponse = core.serialization.object({
32
32
  success: core.serialization.string(),
33
33
  userId: core.serialization.property("user_id", core.serialization.string()),
34
34
  refreshedSources: core.serialization.property("refreshed_sources", core.serialization.list(core.serialization.string())),
35
+ inProgressSources: core.serialization.property("in_progress_sources", core.serialization.list(core.serialization.string())),
35
36
  failedSources: core.serialization.property("failed_sources", core.serialization.list(core.serialization.string())),
36
37
  });
@@ -8,6 +8,6 @@ export declare const UserSignInTokenResponse: core.serialization.ObjectSchema<se
8
8
  export declare namespace UserSignInTokenResponse {
9
9
  interface Raw {
10
10
  user_id: string;
11
- sign_in_token: serializers.UserSignInTokenResponseSignInToken.Raw;
11
+ sign_in_token: string;
12
12
  }
13
13
  }
@@ -25,19 +25,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
28
  Object.defineProperty(exports, "__esModule", { value: true });
38
29
  exports.UserSignInTokenResponse = void 0;
39
30
  const core = __importStar(require("../../core"));
40
31
  exports.UserSignInTokenResponse = core.serialization.object({
41
32
  userId: core.serialization.property("user_id", core.serialization.string()),
42
- signInToken: core.serialization.property("sign_in_token", core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).UserSignInTokenResponseSignInToken; }))),
33
+ signInToken: core.serialization.property("sign_in_token", core.serialization.string()),
43
34
  });
@@ -4,6 +4,7 @@ export * from "./Address";
4
4
  export * from "./AppointmentAvailabilitySlots";
5
5
  export * from "./AppointmentEventStatus";
6
6
  export * from "./AppointmentProvider";
7
+ export * from "./AppointmentServiceType";
7
8
  export * from "./AppointmentStatus";
8
9
  export * from "./AppointmentType";
9
10
  export * from "./AreaInfo";
@@ -128,6 +129,7 @@ export * from "./PatientAddressCompatible";
128
129
  export * from "./PatientDetails";
129
130
  export * from "./PersonDetails";
130
131
  export * from "./PhlebotomyAreaInfo";
132
+ export * from "./PhlebotomyProviderInfo";
131
133
  export * from "./PhysicianCreateRequest";
132
134
  export * from "./PhysicianCreateRequestSignatureImage";
133
135
  export * from "./PhysicianCreateRequestBase";
@@ -164,9 +166,7 @@ export * from "./UserHistoricalPullsResponse";
164
166
  export * from "./UserRefreshErrorResponse";
165
167
  export * from "./UserRefreshSuccessResponse";
166
168
  export * from "./UserResourcesResponse";
167
- export * from "./UserSignInToken";
168
169
  export * from "./UserSignInTokenResponse";
169
- export * from "./UserSignInTokenResponseSignInToken";
170
170
  export * from "./UserSuccessResponse";
171
171
  export * from "./ValidationError";
172
172
  export * from "./ValidationErrorLocItem";
@@ -20,6 +20,7 @@ __exportStar(require("./Address"), exports);
20
20
  __exportStar(require("./AppointmentAvailabilitySlots"), exports);
21
21
  __exportStar(require("./AppointmentEventStatus"), exports);
22
22
  __exportStar(require("./AppointmentProvider"), exports);
23
+ __exportStar(require("./AppointmentServiceType"), exports);
23
24
  __exportStar(require("./AppointmentStatus"), exports);
24
25
  __exportStar(require("./AppointmentType"), exports);
25
26
  __exportStar(require("./AreaInfo"), exports);
@@ -144,6 +145,7 @@ __exportStar(require("./PatientAddressCompatible"), exports);
144
145
  __exportStar(require("./PatientDetails"), exports);
145
146
  __exportStar(require("./PersonDetails"), exports);
146
147
  __exportStar(require("./PhlebotomyAreaInfo"), exports);
148
+ __exportStar(require("./PhlebotomyProviderInfo"), exports);
147
149
  __exportStar(require("./PhysicianCreateRequest"), exports);
148
150
  __exportStar(require("./PhysicianCreateRequestSignatureImage"), exports);
149
151
  __exportStar(require("./PhysicianCreateRequestBase"), exports);
@@ -180,9 +182,7 @@ __exportStar(require("./UserHistoricalPullsResponse"), exports);
180
182
  __exportStar(require("./UserRefreshErrorResponse"), exports);
181
183
  __exportStar(require("./UserRefreshSuccessResponse"), exports);
182
184
  __exportStar(require("./UserResourcesResponse"), exports);
183
- __exportStar(require("./UserSignInToken"), exports);
184
185
  __exportStar(require("./UserSignInTokenResponse"), exports);
185
- __exportStar(require("./UserSignInTokenResponseSignInToken"), exports);
186
186
  __exportStar(require("./UserSuccessResponse"), exports);
187
187
  __exportStar(require("./ValidationError"), exports);
188
188
  __exportStar(require("./ValidationErrorLocItem"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../..";
5
+ import * as Vital from "../../../../../api";
6
+ import * as core from "../../../../../core";
7
+ export declare const RequestAppointmentRequest: core.serialization.Schema<serializers.RequestAppointmentRequest.Raw, Vital.RequestAppointmentRequest>;
8
+ export declare namespace RequestAppointmentRequest {
9
+ interface Raw {
10
+ address: serializers.UsAddress.Raw;
11
+ provider: serializers.AppointmentProvider.Raw;
12
+ }
13
+ }
@@ -0,0 +1,43 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.RequestAppointmentRequest = void 0;
39
+ const core = __importStar(require("../../../../../core"));
40
+ exports.RequestAppointmentRequest = core.serialization.object({
41
+ address: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).UsAddress; })),
42
+ provider: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).AppointmentProvider; })),
43
+ });
@@ -1,5 +1,6 @@
1
1
  export { CreateLabTestRequest } from "./CreateLabTestRequest";
2
2
  export { AppointmentBookingRequest } from "./AppointmentBookingRequest";
3
+ export { RequestAppointmentRequest } from "./RequestAppointmentRequest";
3
4
  export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
4
5
  export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
5
6
  export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateOrderRequestCompatible = exports.AppointmentCancelRequest = exports.AppointmentRescheduleRequest = exports.AppointmentBookingRequest = exports.CreateLabTestRequest = void 0;
3
+ exports.CreateOrderRequestCompatible = exports.AppointmentCancelRequest = exports.AppointmentRescheduleRequest = exports.RequestAppointmentRequest = exports.AppointmentBookingRequest = exports.CreateLabTestRequest = void 0;
4
4
  var CreateLabTestRequest_1 = require("./CreateLabTestRequest");
5
5
  Object.defineProperty(exports, "CreateLabTestRequest", { enumerable: true, get: function () { return CreateLabTestRequest_1.CreateLabTestRequest; } });
6
6
  var AppointmentBookingRequest_1 = require("./AppointmentBookingRequest");
7
7
  Object.defineProperty(exports, "AppointmentBookingRequest", { enumerable: true, get: function () { return AppointmentBookingRequest_1.AppointmentBookingRequest; } });
8
+ var RequestAppointmentRequest_1 = require("./RequestAppointmentRequest");
9
+ Object.defineProperty(exports, "RequestAppointmentRequest", { enumerable: true, get: function () { return RequestAppointmentRequest_1.RequestAppointmentRequest; } });
8
10
  var AppointmentRescheduleRequest_1 = require("./AppointmentRescheduleRequest");
9
11
  Object.defineProperty(exports, "AppointmentRescheduleRequest", { enumerable: true, get: function () { return AppointmentRescheduleRequest_1.AppointmentRescheduleRequest; } });
10
12
  var AppointmentCancelRequest_1 = require("./AppointmentCancelRequest");
@@ -6,5 +6,5 @@ import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const AppointmentEventStatus: core.serialization.Schema<serializers.AppointmentEventStatus.Raw, Vital.AppointmentEventStatus>;
8
8
  export declare namespace AppointmentEventStatus {
9
- type Raw = "scheduled" | "completed" | "cancelled" | "in_progress";
9
+ type Raw = "pending" | "scheduled" | "completed" | "cancelled" | "in_progress";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AppointmentEventStatus = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.AppointmentEventStatus = core.serialization.enum_(["scheduled", "completed", "cancelled", "in_progress"]);
31
+ exports.AppointmentEventStatus = core.serialization.enum_(["pending", "scheduled", "completed", "cancelled", "in_progress"]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const AppointmentProvider: core.serialization.Schema<serializers.AppointmentProvider.Raw, Vital.AppointmentProvider>;
8
8
  export declare namespace AppointmentProvider {
9
- type Raw = "getlabs" | "axlehealth";
9
+ type Raw = "getlabs" | "axlehealth" | "phlebfinders";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AppointmentProvider = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.AppointmentProvider = core.serialization.enum_(["getlabs", "axlehealth"]);
31
+ exports.AppointmentProvider = core.serialization.enum_(["getlabs", "axlehealth", "phlebfinders"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const AppointmentServiceType: core.serialization.Schema<serializers.AppointmentServiceType.Raw, Vital.AppointmentServiceType>;
8
+ export declare namespace AppointmentServiceType {
9
+ type Raw = "appointment-ready" | "appointment-request";
10
+ }
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UserSignInToken = void 0;
29
+ exports.AppointmentServiceType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.UserSignInToken = core.serialization.object({
32
- publicKey: core.serialization.property("public_key", core.serialization.string()),
33
- userToken: core.serialization.property("user_token", core.serialization.string()),
34
- });
31
+ exports.AppointmentServiceType = core.serialization.enum_(["appointment-ready", "appointment-request"]);
@@ -12,9 +12,9 @@ export declare namespace ClientFacingAppointment {
12
12
  order_id: string;
13
13
  address: serializers.UsAddress.Raw;
14
14
  location: serializers.LngLat.Raw;
15
- start_at: string;
16
- end_at: string;
17
- iana_timezone: string;
15
+ start_at?: string | null;
16
+ end_at?: string | null;
17
+ iana_timezone?: string | null;
18
18
  type: serializers.AppointmentType.Raw;
19
19
  provider: serializers.AppointmentProvider.Raw;
20
20
  status: serializers.AppointmentStatus.Raw;
@@ -43,9 +43,9 @@ exports.ClientFacingAppointment = core.serialization.object({
43
43
  orderId: core.serialization.property("order_id", core.serialization.string()),
44
44
  address: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).UsAddress; })),
45
45
  location: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).LngLat; })),
46
- startAt: core.serialization.property("start_at", core.serialization.date()),
47
- endAt: core.serialization.property("end_at", core.serialization.date()),
48
- ianaTimezone: core.serialization.property("iana_timezone", core.serialization.string()),
46
+ startAt: core.serialization.property("start_at", core.serialization.date().optional()),
47
+ endAt: core.serialization.property("end_at", core.serialization.date().optional()),
48
+ ianaTimezone: core.serialization.property("iana_timezone", core.serialization.string().optional()),
49
49
  type: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentType; })),
50
50
  provider: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentProvider; })),
51
51
  status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentStatus; })),
@@ -6,5 +6,5 @@ import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const OrderStatus: core.serialization.Schema<serializers.OrderStatus.Raw, Vital.OrderStatus>;
8
8
  export declare namespace OrderStatus {
9
- type Raw = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process";
9
+ type Raw = "received.walk_in_test.ordered" | "received.walk_in_test.requisition_created" | "completed.walk_in_test.completed" | "sample_with_lab.walk_in_test.partial_results" | "failed.walk_in_test.sample_error" | "cancelled.walk_in_test.cancelled" | "received.at_home_phlebotomy.ordered" | "received.at_home_phlebotomy.requisition_created" | "collecting_sample.at_home_phlebotomy.appointment_pending" | "collecting_sample.at_home_phlebotomy.appointment_scheduled" | "collecting_sample.at_home_phlebotomy.draw_completed" | "collecting_sample.at_home_phlebotomy.appointment_cancelled" | "completed.at_home_phlebotomy.completed" | "sample_with_lab.at_home_phlebotomy.partial_results" | "cancelled.at_home_phlebotomy.cancelled" | "received.testkit.ordered" | "received.testkit.awaiting_registration" | "received.testkit.requisition_created" | "received.testkit.registered" | "collecting_sample.testkit.transit_customer" | "collecting_sample.testkit.out_for_delivery" | "collecting_sample.testkit.with_customer" | "collecting_sample.testkit.transit_lab" | "sample_with_lab.testkit.delivered_to_lab" | "completed.testkit.completed" | "failed.testkit.failure_to_deliver_to_customer" | "failed.testkit.failure_to_deliver_to_lab" | "failed.testkit.sample_error" | "failed.testkit.lost" | "cancelled.testkit.cancelled" | "cancelled.testkit.do_not_process";
10
10
  }
@@ -37,6 +37,7 @@ exports.OrderStatus = core.serialization.enum_([
37
37
  "cancelled.walk_in_test.cancelled",
38
38
  "received.at_home_phlebotomy.ordered",
39
39
  "received.at_home_phlebotomy.requisition_created",
40
+ "collecting_sample.at_home_phlebotomy.appointment_pending",
40
41
  "collecting_sample.at_home_phlebotomy.appointment_scheduled",
41
42
  "collecting_sample.at_home_phlebotomy.draw_completed",
42
43
  "collecting_sample.at_home_phlebotomy.appointment_cancelled",
@@ -8,5 +8,6 @@ export declare const PhlebotomyAreaInfo: core.serialization.ObjectSchema<seriali
8
8
  export declare namespace PhlebotomyAreaInfo {
9
9
  interface Raw {
10
10
  is_served: boolean;
11
+ providers: serializers.PhlebotomyProviderInfo.Raw[];
11
12
  }
12
13
  }
@@ -25,9 +25,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.PhlebotomyAreaInfo = void 0;
30
39
  const core = __importStar(require("../../core"));
31
40
  exports.PhlebotomyAreaInfo = core.serialization.object({
32
41
  isServed: core.serialization.property("is_served", core.serialization.boolean()),
42
+ providers: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PhlebotomyProviderInfo; }))),
33
43
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const PhlebotomyProviderInfo: core.serialization.ObjectSchema<serializers.PhlebotomyProviderInfo.Raw, Vital.PhlebotomyProviderInfo>;
8
+ export declare namespace PhlebotomyProviderInfo {
9
+ interface Raw {
10
+ name: serializers.AppointmentProvider.Raw;
11
+ service_types: serializers.AppointmentServiceType.Raw[];
12
+ }
13
+ }
@@ -35,9 +35,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35
35
  });
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.UserSignInTokenResponseSignInToken = void 0;
38
+ exports.PhlebotomyProviderInfo = void 0;
39
39
  const core = __importStar(require("../../core"));
40
- exports.UserSignInTokenResponseSignInToken = core.serialization.undiscriminatedUnion([
41
- core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).UserSignInToken; })),
42
- core.serialization.string(),
43
- ]);
40
+ exports.PhlebotomyProviderInfo = core.serialization.object({
41
+ name: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentProvider; })),
42
+ serviceTypes: core.serialization.property("service_types", core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).AppointmentServiceType; })))),
43
+ });
@@ -10,6 +10,7 @@ export declare namespace UserRefreshSuccessResponse {
10
10
  success: string;
11
11
  user_id: string;
12
12
  refreshed_sources: string[];
13
+ in_progress_sources: string[];
13
14
  failed_sources: string[];
14
15
  }
15
16
  }
@@ -32,5 +32,6 @@ exports.UserRefreshSuccessResponse = core.serialization.object({
32
32
  success: core.serialization.string(),
33
33
  userId: core.serialization.property("user_id", core.serialization.string()),
34
34
  refreshedSources: core.serialization.property("refreshed_sources", core.serialization.list(core.serialization.string())),
35
+ inProgressSources: core.serialization.property("in_progress_sources", core.serialization.list(core.serialization.string())),
35
36
  failedSources: core.serialization.property("failed_sources", core.serialization.list(core.serialization.string())),
36
37
  });
@@ -8,6 +8,6 @@ export declare const UserSignInTokenResponse: core.serialization.ObjectSchema<se
8
8
  export declare namespace UserSignInTokenResponse {
9
9
  interface Raw {
10
10
  user_id: string;
11
- sign_in_token: serializers.UserSignInTokenResponseSignInToken.Raw;
11
+ sign_in_token: string;
12
12
  }
13
13
  }
@@ -25,19 +25,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
28
  Object.defineProperty(exports, "__esModule", { value: true });
38
29
  exports.UserSignInTokenResponse = void 0;
39
30
  const core = __importStar(require("../../core"));
40
31
  exports.UserSignInTokenResponse = core.serialization.object({
41
32
  userId: core.serialization.property("user_id", core.serialization.string()),
42
- signInToken: core.serialization.property("sign_in_token", core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).UserSignInTokenResponseSignInToken; }))),
33
+ signInToken: core.serialization.property("sign_in_token", core.serialization.string()),
43
34
  });