@tryvital/vital-node 3.1.151 → 3.1.170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.d.ts +11 -1
  7. package/api/resources/insurance/client/Client.js +76 -3
  8. package/api/resources/insurance/client/requests/InsuranceSearchGetPayorInfoRequest.d.ts +13 -0
  9. package/api/{types/QueryConfigWeekStartsOn.js → resources/insurance/client/requests/InsuranceSearchGetPayorInfoRequest.js} +0 -5
  10. package/api/resources/insurance/client/requests/index.d.ts +1 -0
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.js +34 -34
  13. package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  14. package/api/resources/link/client/Client.js +14 -14
  15. package/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  16. package/api/resources/meal/client/Client.js +1 -1
  17. package/api/resources/menstrualCycle/client/Client.js +1 -1
  18. package/api/resources/profile/client/Client.js +2 -2
  19. package/api/resources/providers/client/Client.js +1 -1
  20. package/api/resources/sleep/client/Client.js +4 -4
  21. package/api/resources/sleepCycle/client/Client.js +1 -1
  22. package/api/resources/team/client/Client.js +7 -7
  23. package/api/resources/testkit/client/Client.d.ts +0 -1
  24. package/api/resources/testkit/client/Client.js +2 -3
  25. package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  26. package/api/resources/user/client/Client.js +16 -16
  27. package/api/resources/vitals/client/Client.js +58 -58
  28. package/api/resources/workouts/client/Client.js +3 -3
  29. package/api/types/BulkExportConnectionsBody.d.ts +8 -0
  30. package/{dist/api/types/QueryConfigWeekStartsOn.js → api/types/BulkExportConnectionsBody.js} +0 -5
  31. package/api/types/BulkExportConnectionsResponse.d.ts +8 -0
  32. package/api/types/BulkExportConnectionsResponse.js +5 -0
  33. package/api/types/BulkImportConnectionsBody.d.ts +8 -0
  34. package/api/types/BulkImportConnectionsBody.js +5 -0
  35. package/api/types/BulkPauseConnectionsBody.d.ts +8 -0
  36. package/api/types/BulkPauseConnectionsBody.js +5 -0
  37. package/api/types/BulkTriggerHistoricalPullBody.d.ts +8 -0
  38. package/api/types/BulkTriggerHistoricalPullBody.js +5 -0
  39. package/api/types/ClientFacingPayorSearchResponse.d.ts +1 -1
  40. package/api/types/ClientFacingPayorSearchResponseDeprecated.d.ts +14 -0
  41. package/api/types/ClientFacingPayorSearchResponseDeprecated.js +5 -0
  42. package/api/types/ClientFacingResource.d.ts +2 -2
  43. package/api/types/ClientFacingResource.js +1 -1
  44. package/api/types/ConnectionRecipe.d.ts +11 -0
  45. package/api/types/ConnectionRecipe.js +5 -0
  46. package/api/types/PatientAddressWithValidation.d.ts +13 -0
  47. package/api/types/PatientAddressWithValidation.js +5 -0
  48. package/api/types/QueryConfig.d.ts +0 -1
  49. package/api/types/index.d.ts +9 -2
  50. package/api/types/index.js +9 -2
  51. package/dist/api/resources/activity/client/Client.js +2 -2
  52. package/dist/api/resources/aggregate/client/Client.js +1 -1
  53. package/dist/api/resources/body/client/Client.js +2 -2
  54. package/dist/api/resources/devices/client/Client.js +1 -1
  55. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  56. package/dist/api/resources/insurance/client/Client.d.ts +11 -1
  57. package/dist/api/resources/insurance/client/Client.js +76 -3
  58. package/dist/api/resources/insurance/client/requests/InsuranceSearchGetPayorInfoRequest.d.ts +13 -0
  59. package/dist/api/resources/insurance/client/requests/InsuranceSearchGetPayorInfoRequest.js +5 -0
  60. package/dist/api/resources/insurance/client/requests/index.d.ts +1 -0
  61. package/dist/api/resources/introspect/client/Client.js +2 -2
  62. package/dist/api/resources/labTests/client/Client.js +34 -34
  63. package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  64. package/dist/api/resources/link/client/Client.js +14 -14
  65. package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  66. package/dist/api/resources/meal/client/Client.js +1 -1
  67. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  68. package/dist/api/resources/profile/client/Client.js +2 -2
  69. package/dist/api/resources/providers/client/Client.js +1 -1
  70. package/dist/api/resources/sleep/client/Client.js +4 -4
  71. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  72. package/dist/api/resources/team/client/Client.js +7 -7
  73. package/dist/api/resources/testkit/client/Client.d.ts +0 -1
  74. package/dist/api/resources/testkit/client/Client.js +2 -3
  75. package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  76. package/dist/api/resources/user/client/Client.js +16 -16
  77. package/dist/api/resources/vitals/client/Client.js +58 -58
  78. package/dist/api/resources/workouts/client/Client.js +3 -3
  79. package/dist/api/types/BulkExportConnectionsBody.d.ts +8 -0
  80. package/dist/api/types/BulkExportConnectionsBody.js +5 -0
  81. package/dist/api/types/BulkExportConnectionsResponse.d.ts +8 -0
  82. package/dist/api/types/BulkExportConnectionsResponse.js +5 -0
  83. package/dist/api/types/BulkImportConnectionsBody.d.ts +8 -0
  84. package/dist/api/types/BulkImportConnectionsBody.js +5 -0
  85. package/dist/api/types/BulkPauseConnectionsBody.d.ts +8 -0
  86. package/dist/api/types/BulkPauseConnectionsBody.js +5 -0
  87. package/dist/api/types/BulkTriggerHistoricalPullBody.d.ts +8 -0
  88. package/dist/api/types/BulkTriggerHistoricalPullBody.js +5 -0
  89. package/dist/api/types/ClientFacingPayorSearchResponse.d.ts +1 -1
  90. package/dist/api/types/ClientFacingPayorSearchResponseDeprecated.d.ts +14 -0
  91. package/dist/api/types/ClientFacingPayorSearchResponseDeprecated.js +5 -0
  92. package/dist/api/types/ClientFacingResource.d.ts +2 -2
  93. package/dist/api/types/ClientFacingResource.js +1 -1
  94. package/dist/api/types/ConnectionRecipe.d.ts +11 -0
  95. package/dist/api/types/ConnectionRecipe.js +5 -0
  96. package/dist/api/types/PatientAddressWithValidation.d.ts +13 -0
  97. package/dist/api/types/PatientAddressWithValidation.js +5 -0
  98. package/dist/api/types/QueryConfig.d.ts +0 -1
  99. package/dist/api/types/index.d.ts +9 -2
  100. package/dist/api/types/index.js +9 -2
  101. package/dist/serialization/resources/insurance/client/index.d.ts +1 -0
  102. package/dist/serialization/resources/insurance/client/index.js +2 -1
  103. package/dist/serialization/resources/insurance/client/searchGetPayorInfo.d.ts +11 -0
  104. package/dist/serialization/{types/QueryConfigWeekStartsOn.js → resources/insurance/client/searchGetPayorInfo.js} +4 -3
  105. package/dist/serialization/resources/insurance/client/searchPayorInfo.d.ts +3 -3
  106. package/dist/serialization/resources/insurance/client/searchPayorInfo.js +2 -2
  107. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -2
  108. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -2
  109. package/dist/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  110. package/dist/serialization/resources/link/client/requests/LinkTokenExchange.js +1 -0
  111. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
  112. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +1 -1
  113. package/dist/serialization/types/BulkExportConnectionsBody.d.ts +14 -0
  114. package/dist/serialization/types/BulkExportConnectionsBody.js +35 -0
  115. package/dist/serialization/types/BulkExportConnectionsResponse.d.ts +14 -0
  116. package/dist/serialization/types/BulkExportConnectionsResponse.js +35 -0
  117. package/dist/serialization/types/BulkImportConnectionsBody.d.ts +15 -0
  118. package/dist/serialization/types/BulkImportConnectionsBody.js +36 -0
  119. package/dist/serialization/types/BulkPauseConnectionsBody.d.ts +14 -0
  120. package/dist/serialization/types/BulkPauseConnectionsBody.js +35 -0
  121. package/dist/serialization/types/BulkTriggerHistoricalPullBody.d.ts +14 -0
  122. package/dist/serialization/types/BulkTriggerHistoricalPullBody.js +35 -0
  123. package/dist/serialization/types/ClientFacingPayorSearchResponse.d.ts +1 -1
  124. package/dist/serialization/types/ClientFacingPayorSearchResponse.js +1 -1
  125. package/dist/serialization/types/ClientFacingPayorSearchResponseDeprecated.d.ts +16 -0
  126. package/dist/serialization/types/ClientFacingPayorSearchResponseDeprecated.js +37 -0
  127. package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
  128. package/dist/serialization/types/ClientFacingResource.js +1 -1
  129. package/dist/serialization/types/ConnectionRecipe.d.ts +17 -0
  130. package/dist/serialization/types/ConnectionRecipe.js +38 -0
  131. package/dist/serialization/types/PatientAddressWithValidation.d.ts +19 -0
  132. package/dist/serialization/types/PatientAddressWithValidation.js +40 -0
  133. package/dist/serialization/types/QueryConfig.d.ts +0 -2
  134. package/dist/serialization/types/QueryConfig.js +0 -2
  135. package/dist/serialization/types/index.d.ts +9 -2
  136. package/dist/serialization/types/index.js +9 -2
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +1 -1
  140. package/reference.md +49 -2
  141. package/serialization/resources/insurance/client/index.d.ts +1 -0
  142. package/serialization/resources/insurance/client/index.js +2 -1
  143. package/serialization/resources/insurance/client/searchGetPayorInfo.d.ts +11 -0
  144. package/serialization/{types/QueryConfigWeekStartsOn.js → resources/insurance/client/searchGetPayorInfo.js} +4 -3
  145. package/serialization/resources/insurance/client/searchPayorInfo.d.ts +3 -3
  146. package/serialization/resources/insurance/client/searchPayorInfo.js +2 -2
  147. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -2
  148. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -2
  149. package/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  150. package/serialization/resources/link/client/requests/LinkTokenExchange.js +1 -0
  151. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
  152. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +1 -1
  153. package/serialization/types/BulkExportConnectionsBody.d.ts +14 -0
  154. package/serialization/types/BulkExportConnectionsBody.js +35 -0
  155. package/serialization/types/BulkExportConnectionsResponse.d.ts +14 -0
  156. package/serialization/types/BulkExportConnectionsResponse.js +35 -0
  157. package/serialization/types/BulkImportConnectionsBody.d.ts +15 -0
  158. package/serialization/types/BulkImportConnectionsBody.js +36 -0
  159. package/serialization/types/BulkPauseConnectionsBody.d.ts +14 -0
  160. package/serialization/types/BulkPauseConnectionsBody.js +35 -0
  161. package/serialization/types/BulkTriggerHistoricalPullBody.d.ts +14 -0
  162. package/serialization/types/BulkTriggerHistoricalPullBody.js +35 -0
  163. package/serialization/types/ClientFacingPayorSearchResponse.d.ts +1 -1
  164. package/serialization/types/ClientFacingPayorSearchResponse.js +1 -1
  165. package/serialization/types/ClientFacingPayorSearchResponseDeprecated.d.ts +16 -0
  166. package/serialization/types/ClientFacingPayorSearchResponseDeprecated.js +37 -0
  167. package/serialization/types/ClientFacingResource.d.ts +1 -1
  168. package/serialization/types/ClientFacingResource.js +1 -1
  169. package/serialization/types/ConnectionRecipe.d.ts +17 -0
  170. package/serialization/types/ConnectionRecipe.js +38 -0
  171. package/serialization/types/PatientAddressWithValidation.d.ts +19 -0
  172. package/serialization/types/PatientAddressWithValidation.js +40 -0
  173. package/serialization/types/QueryConfig.d.ts +0 -2
  174. package/serialization/types/QueryConfig.js +0 -2
  175. package/serialization/types/index.d.ts +9 -2
  176. package/serialization/types/index.js +9 -2
  177. package/version.d.ts +1 -1
  178. package/version.js +1 -1
  179. package/api/types/QueryConfigWeekStartsOn.d.ts +0 -8
  180. package/dist/api/types/QueryConfigWeekStartsOn.d.ts +0 -8
  181. package/dist/serialization/types/QueryConfigWeekStartsOn.d.ts +0 -10
  182. package/serialization/types/QueryConfigWeekStartsOn.d.ts +0 -10
@@ -28,5 +28,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Response = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- const ClientFacingPayorSearchResponse_1 = require("../../../types/ClientFacingPayorSearchResponse");
32
- exports.Response = core.serialization.list(ClientFacingPayorSearchResponse_1.ClientFacingPayorSearchResponse);
31
+ const ClientFacingPayorSearchResponseDeprecated_1 = require("../../../types/ClientFacingPayorSearchResponseDeprecated");
32
+ exports.Response = core.serialization.list(ClientFacingPayorSearchResponseDeprecated_1.ClientFacingPayorSearchResponseDeprecated);
@@ -12,7 +12,7 @@ import { Billing } from "../../../../types/Billing";
12
12
  import { Consent } from "../../../../types/Consent";
13
13
  import { AoEAnswer } from "../../../../types/AoEAnswer";
14
14
  import { PatientDetailsWithValidation } from "../../../../types/PatientDetailsWithValidation";
15
- import { PatientAddressCompatible } from "../../../../types/PatientAddressCompatible";
15
+ import { PatientAddressWithValidation } from "../../../../types/PatientAddressWithValidation";
16
16
  export declare const CreateOrderRequestCompatible: core.serialization.Schema<serializers.CreateOrderRequestCompatible.Raw, Vital.CreateOrderRequestCompatible>;
17
17
  export declare namespace CreateOrderRequestCompatible {
18
18
  interface Raw {
@@ -30,6 +30,6 @@ export declare namespace CreateOrderRequestCompatible {
30
30
  aoe_answers?: AoEAnswer.Raw[] | null;
31
31
  passthrough?: string | null;
32
32
  patient_details: PatientDetailsWithValidation.Raw;
33
- patient_address: PatientAddressCompatible.Raw;
33
+ patient_address: PatientAddressWithValidation.Raw;
34
34
  }
35
35
  }
@@ -36,7 +36,7 @@ const Billing_1 = require("../../../../types/Billing");
36
36
  const Consent_1 = require("../../../../types/Consent");
37
37
  const AoEAnswer_1 = require("../../../../types/AoEAnswer");
38
38
  const PatientDetailsWithValidation_1 = require("../../../../types/PatientDetailsWithValidation");
39
- const PatientAddressCompatible_1 = require("../../../../types/PatientAddressCompatible");
39
+ const PatientAddressWithValidation_1 = require("../../../../types/PatientAddressWithValidation");
40
40
  exports.CreateOrderRequestCompatible = core.serialization.object({
41
41
  userId: core.serialization.property("user_id", core.serialization.string()),
42
42
  labTestId: core.serialization.property("lab_test_id", core.serialization.string().optional()),
@@ -52,5 +52,5 @@ exports.CreateOrderRequestCompatible = core.serialization.object({
52
52
  aoeAnswers: core.serialization.property("aoe_answers", core.serialization.list(AoEAnswer_1.AoEAnswer).optional()),
53
53
  passthrough: core.serialization.string().optional(),
54
54
  patientDetails: core.serialization.property("patient_details", PatientDetailsWithValidation_1.PatientDetailsWithValidation),
55
- patientAddress: core.serialization.property("patient_address", PatientAddressCompatible_1.PatientAddressCompatible),
55
+ patientAddress: core.serialization.property("patient_address", PatientAddressWithValidation_1.PatientAddressWithValidation),
56
56
  });
@@ -12,5 +12,6 @@ export declare namespace LinkTokenExchange {
12
12
  provider?: Providers.Raw | null;
13
13
  redirect_url?: string | null;
14
14
  filter_on_providers?: Providers.Raw[] | null;
15
+ on_error?: "redirect" | null;
15
16
  }
16
17
  }
@@ -34,4 +34,5 @@ exports.LinkTokenExchange = core.serialization.object({
34
34
  provider: Providers_1.Providers.optional(),
35
35
  redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
36
36
  filterOnProviders: core.serialization.property("filter_on_providers", core.serialization.list(Providers_1.Providers).optional()),
37
+ onError: core.serialization.property("on_error", core.serialization.stringLiteral("redirect").optional()),
37
38
  });
@@ -12,7 +12,7 @@ import { Consent } from "../../../../types/Consent";
12
12
  export declare const RegisterTestkitRequest: core.serialization.Schema<serializers.RegisterTestkitRequest.Raw, Vital.RegisterTestkitRequest>;
13
13
  export declare namespace RegisterTestkitRequest {
14
14
  interface Raw {
15
- user_id: string;
15
+ user_id?: string | null;
16
16
  sample_id: string;
17
17
  patient_details: PatientDetails.Raw;
18
18
  patient_address: PatientAddressCompatible.Raw;
@@ -34,7 +34,7 @@ const PhysicianCreateRequestBase_1 = require("../../../../types/PhysicianCreateR
34
34
  const HealthInsuranceCreateRequest_1 = require("../../../../types/HealthInsuranceCreateRequest");
35
35
  const Consent_1 = require("../../../../types/Consent");
36
36
  exports.RegisterTestkitRequest = core.serialization.object({
37
- userId: core.serialization.property("user_id", core.serialization.string()),
37
+ userId: core.serialization.property("user_id", core.serialization.string().optional()),
38
38
  sampleId: core.serialization.property("sample_id", core.serialization.string()),
39
39
  patientDetails: core.serialization.property("patient_details", PatientDetails_1.PatientDetails),
40
40
  patientAddress: core.serialization.property("patient_address", PatientAddressCompatible_1.PatientAddressCompatible),
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { OAuthProviders } from "./OAuthProviders";
8
+ export declare const BulkExportConnectionsBody: core.serialization.ObjectSchema<serializers.BulkExportConnectionsBody.Raw, Vital.BulkExportConnectionsBody>;
9
+ export declare namespace BulkExportConnectionsBody {
10
+ interface Raw {
11
+ user_ids?: string[] | null;
12
+ provider: OAuthProviders.Raw;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.BulkExportConnectionsBody = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const OAuthProviders_1 = require("./OAuthProviders");
32
+ exports.BulkExportConnectionsBody = core.serialization.object({
33
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
34
+ provider: OAuthProviders_1.OAuthProviders,
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ConnectionRecipe } from "./ConnectionRecipe";
8
+ export declare const BulkExportConnectionsResponse: core.serialization.ObjectSchema<serializers.BulkExportConnectionsResponse.Raw, Vital.BulkExportConnectionsResponse>;
9
+ export declare namespace BulkExportConnectionsResponse {
10
+ interface Raw {
11
+ data: ConnectionRecipe.Raw[];
12
+ next_token?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.BulkExportConnectionsResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ConnectionRecipe_1 = require("./ConnectionRecipe");
32
+ exports.BulkExportConnectionsResponse = core.serialization.object({
33
+ data: core.serialization.list(ConnectionRecipe_1.ConnectionRecipe),
34
+ nextToken: core.serialization.property("next_token", core.serialization.string().optional()),
35
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { OAuthProviders } from "./OAuthProviders";
8
+ import { ConnectionRecipe } from "./ConnectionRecipe";
9
+ export declare const BulkImportConnectionsBody: core.serialization.ObjectSchema<serializers.BulkImportConnectionsBody.Raw, Vital.BulkImportConnectionsBody>;
10
+ export declare namespace BulkImportConnectionsBody {
11
+ interface Raw {
12
+ provider: OAuthProviders.Raw;
13
+ connections: ConnectionRecipe.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.BulkImportConnectionsBody = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const OAuthProviders_1 = require("./OAuthProviders");
32
+ const ConnectionRecipe_1 = require("./ConnectionRecipe");
33
+ exports.BulkImportConnectionsBody = core.serialization.object({
34
+ provider: OAuthProviders_1.OAuthProviders,
35
+ connections: core.serialization.list(ConnectionRecipe_1.ConnectionRecipe),
36
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { OAuthProviders } from "./OAuthProviders";
8
+ export declare const BulkPauseConnectionsBody: core.serialization.ObjectSchema<serializers.BulkPauseConnectionsBody.Raw, Vital.BulkPauseConnectionsBody>;
9
+ export declare namespace BulkPauseConnectionsBody {
10
+ interface Raw {
11
+ user_ids: string[];
12
+ provider: OAuthProviders.Raw;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.BulkPauseConnectionsBody = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const OAuthProviders_1 = require("./OAuthProviders");
32
+ exports.BulkPauseConnectionsBody = core.serialization.object({
33
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string())),
34
+ provider: OAuthProviders_1.OAuthProviders,
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { OAuthProviders } from "./OAuthProviders";
8
+ export declare const BulkTriggerHistoricalPullBody: core.serialization.ObjectSchema<serializers.BulkTriggerHistoricalPullBody.Raw, Vital.BulkTriggerHistoricalPullBody>;
9
+ export declare namespace BulkTriggerHistoricalPullBody {
10
+ interface Raw {
11
+ user_ids: string[];
12
+ provider: OAuthProviders.Raw;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.BulkTriggerHistoricalPullBody = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const OAuthProviders_1 = require("./OAuthProviders");
32
+ exports.BulkTriggerHistoricalPullBody = core.serialization.object({
33
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string())),
34
+ provider: OAuthProviders_1.OAuthProviders,
35
+ });
@@ -8,7 +8,7 @@ import { Address } from "./Address";
8
8
  export declare const ClientFacingPayorSearchResponse: core.serialization.ObjectSchema<serializers.ClientFacingPayorSearchResponse.Raw, Vital.ClientFacingPayorSearchResponse>;
9
9
  export declare namespace ClientFacingPayorSearchResponse {
10
10
  interface Raw {
11
- code: string;
11
+ payor_code: string;
12
12
  name: string;
13
13
  aliases: string[];
14
14
  org_address: Address.Raw;
@@ -30,7 +30,7 @@ exports.ClientFacingPayorSearchResponse = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Address_1 = require("./Address");
32
32
  exports.ClientFacingPayorSearchResponse = core.serialization.object({
33
- code: core.serialization.string(),
33
+ payorCode: core.serialization.property("payor_code", core.serialization.string()),
34
34
  name: core.serialization.string(),
35
35
  aliases: core.serialization.list(core.serialization.string()),
36
36
  orgAddress: core.serialization.property("org_address", Address_1.Address),
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { Address } from "./Address";
8
+ export declare const ClientFacingPayorSearchResponseDeprecated: core.serialization.ObjectSchema<serializers.ClientFacingPayorSearchResponseDeprecated.Raw, Vital.ClientFacingPayorSearchResponseDeprecated>;
9
+ export declare namespace ClientFacingPayorSearchResponseDeprecated {
10
+ interface Raw {
11
+ code: string;
12
+ name: string;
13
+ aliases: string[];
14
+ org_address: Address.Raw;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
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.ClientFacingPayorSearchResponseDeprecated = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Address_1 = require("./Address");
32
+ exports.ClientFacingPayorSearchResponseDeprecated = core.serialization.object({
33
+ code: core.serialization.string(),
34
+ name: core.serialization.string(),
35
+ aliases: core.serialization.list(core.serialization.string()),
36
+ orgAddress: core.serialization.property("org_address", Address_1.Address),
37
+ });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingResource: core.serialization.Schema<serializers.ClientFacingResource.Raw, Vital.ClientFacingResource>;
8
8
  export declare namespace ClientFacingResource {
9
- type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
9
+ type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream" | "hypnogram";
10
10
  }
@@ -42,7 +42,6 @@ exports.ClientFacingResource = core.serialization.enum_([
42
42
  "glucose",
43
43
  "heartrate",
44
44
  "hrv",
45
- "hypnogram",
46
45
  "ige",
47
46
  "igg",
48
47
  "blood_oxygen",
@@ -76,4 +75,5 @@ exports.ClientFacingResource = core.serialization.enum_([
76
75
  "carbohydrates",
77
76
  "note",
78
77
  "sleep_stream",
78
+ "hypnogram",
79
79
  ]);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ConnectionRecipe: core.serialization.ObjectSchema<serializers.ConnectionRecipe.Raw, Vital.ConnectionRecipe>;
8
+ export declare namespace ConnectionRecipe {
9
+ interface Raw {
10
+ user_id: string;
11
+ access_token: string;
12
+ refresh_token: string;
13
+ provider_id: string;
14
+ expires_at: number;
15
+ oauth_scopes?: string[] | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
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.ConnectionRecipe = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ConnectionRecipe = core.serialization.object({
32
+ userId: core.serialization.property("user_id", core.serialization.string()),
33
+ accessToken: core.serialization.property("access_token", core.serialization.string()),
34
+ refreshToken: core.serialization.property("refresh_token", core.serialization.string()),
35
+ providerId: core.serialization.property("provider_id", core.serialization.string()),
36
+ expiresAt: core.serialization.property("expires_at", core.serialization.number()),
37
+ oauthScopes: core.serialization.property("oauth_scopes", core.serialization.list(core.serialization.string()).optional()),
38
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const PatientAddressWithValidation: core.serialization.ObjectSchema<serializers.PatientAddressWithValidation.Raw, Vital.PatientAddressWithValidation>;
8
+ export declare namespace PatientAddressWithValidation {
9
+ interface Raw {
10
+ receiver_name?: string | null;
11
+ first_line: string;
12
+ second_line?: string | null;
13
+ city: string;
14
+ state: string;
15
+ zip: string;
16
+ country: string;
17
+ phone_number?: string | null;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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.PatientAddressWithValidation = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.PatientAddressWithValidation = core.serialization.object({
32
+ receiverName: core.serialization.property("receiver_name", core.serialization.string().optional()),
33
+ firstLine: core.serialization.property("first_line", core.serialization.string()),
34
+ secondLine: core.serialization.property("second_line", core.serialization.string().optional()),
35
+ city: core.serialization.string(),
36
+ state: core.serialization.string(),
37
+ zip: core.serialization.string(),
38
+ country: core.serialization.string(),
39
+ phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()),
40
+ });
@@ -4,12 +4,10 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { QueryConfigWeekStartsOn } from "./QueryConfigWeekStartsOn";
8
7
  import { QueryConfigProviderPriorityOverridesItem } from "./QueryConfigProviderPriorityOverridesItem";
9
8
  export declare const QueryConfig: core.serialization.ObjectSchema<serializers.QueryConfig.Raw, Vital.QueryConfig>;
10
9
  export declare namespace QueryConfig {
11
10
  interface Raw {
12
- week_starts_on?: QueryConfigWeekStartsOn.Raw | null;
13
11
  provider_priority_overrides?: QueryConfigProviderPriorityOverridesItem.Raw[] | null;
14
12
  }
15
13
  }
@@ -28,9 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.QueryConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const QueryConfigWeekStartsOn_1 = require("./QueryConfigWeekStartsOn");
32
31
  const QueryConfigProviderPriorityOverridesItem_1 = require("./QueryConfigProviderPriorityOverridesItem");
33
32
  exports.QueryConfig = core.serialization.object({
34
- weekStartsOn: core.serialization.property("week_starts_on", QueryConfigWeekStartsOn_1.QueryConfigWeekStartsOn.optional()),
35
33
  providerPriorityOverrides: core.serialization.property("provider_priority_overrides", core.serialization.list(QueryConfigProviderPriorityOverridesItem_1.QueryConfigProviderPriorityOverridesItem).optional()),
36
34
  });