@tryvital/vital-node 3.1.230 → 3.1.232

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 (170) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +2 -2
  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.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.js +37 -37
  9. package/api/resources/link/client/Client.d.ts +10 -0
  10. package/api/resources/link/client/Client.js +86 -19
  11. package/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
  12. package/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -0
  13. package/api/resources/link/client/requests/LinkListBulkOpsRequest.d.ts +10 -0
  14. package/api/resources/link/client/requests/LinkListBulkOpsRequest.js +5 -0
  15. package/api/resources/link/client/requests/index.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/order/client/Client.js +1 -1
  19. package/api/resources/profile/client/Client.js +2 -2
  20. package/api/resources/providers/client/Client.js +1 -1
  21. package/api/resources/sleep/client/Client.js +4 -4
  22. package/api/resources/sleepCycle/client/Client.js +1 -1
  23. package/api/resources/team/client/Client.js +7 -7
  24. package/api/resources/testkit/client/Client.js +2 -2
  25. package/api/resources/user/client/Client.js +16 -16
  26. package/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
  27. package/api/resources/vitals/client/Client.js +75 -75
  28. package/api/resources/workouts/client/Client.js +3 -3
  29. package/api/types/BulkOp.d.ts +13 -0
  30. package/api/types/BulkOp.js +5 -0
  31. package/api/types/BulkOpStatus.d.ts +10 -0
  32. package/api/types/BulkOpStatus.js +12 -0
  33. package/api/types/BulkOpType.d.ts +8 -0
  34. package/api/types/BulkOpType.js +10 -0
  35. package/api/types/BulkOpsResponse.d.ts +8 -0
  36. package/api/types/BulkOpsResponse.js +5 -0
  37. package/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
  38. package/api/types/Ethnicity.d.ts +10 -0
  39. package/api/types/Ethnicity.js +12 -0
  40. package/api/types/GenderIdentity.d.ts +12 -0
  41. package/api/types/GenderIdentity.js +14 -0
  42. package/api/types/GuarantorDetails.d.ts +2 -0
  43. package/api/types/PatientDetailsWithValidation.d.ts +10 -0
  44. package/api/types/Race.d.ts +12 -0
  45. package/api/types/Race.js +14 -0
  46. package/api/types/SexualOrientation.d.ts +11 -0
  47. package/api/types/SexualOrientation.js +13 -0
  48. package/api/types/UserInfo.d.ts +5 -0
  49. package/api/types/index.d.ts +8 -0
  50. package/api/types/index.js +8 -0
  51. package/dist/api/resources/activity/client/Client.js +2 -2
  52. package/dist/api/resources/aggregate/client/Client.js +2 -2
  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.js +3 -3
  57. package/dist/api/resources/introspect/client/Client.js +2 -2
  58. package/dist/api/resources/labTests/client/Client.js +37 -37
  59. package/dist/api/resources/link/client/Client.d.ts +10 -0
  60. package/dist/api/resources/link/client/Client.js +86 -19
  61. package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
  62. package/dist/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -0
  63. package/dist/api/resources/link/client/requests/LinkListBulkOpsRequest.d.ts +10 -0
  64. package/dist/api/resources/link/client/requests/LinkListBulkOpsRequest.js +5 -0
  65. package/dist/api/resources/link/client/requests/index.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/order/client/Client.js +1 -1
  69. package/dist/api/resources/profile/client/Client.js +2 -2
  70. package/dist/api/resources/providers/client/Client.js +1 -1
  71. package/dist/api/resources/sleep/client/Client.js +4 -4
  72. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  73. package/dist/api/resources/team/client/Client.js +7 -7
  74. package/dist/api/resources/testkit/client/Client.js +2 -2
  75. package/dist/api/resources/user/client/Client.js +16 -16
  76. package/dist/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
  77. package/dist/api/resources/vitals/client/Client.js +75 -75
  78. package/dist/api/resources/workouts/client/Client.js +3 -3
  79. package/dist/api/types/BulkOp.d.ts +13 -0
  80. package/dist/api/types/BulkOp.js +5 -0
  81. package/dist/api/types/BulkOpStatus.d.ts +10 -0
  82. package/dist/api/types/BulkOpStatus.js +12 -0
  83. package/dist/api/types/BulkOpType.d.ts +8 -0
  84. package/dist/api/types/BulkOpType.js +10 -0
  85. package/dist/api/types/BulkOpsResponse.d.ts +8 -0
  86. package/dist/api/types/BulkOpsResponse.js +5 -0
  87. package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
  88. package/dist/api/types/Ethnicity.d.ts +10 -0
  89. package/dist/api/types/Ethnicity.js +12 -0
  90. package/dist/api/types/GenderIdentity.d.ts +12 -0
  91. package/dist/api/types/GenderIdentity.js +14 -0
  92. package/dist/api/types/GuarantorDetails.d.ts +2 -0
  93. package/dist/api/types/PatientDetailsWithValidation.d.ts +10 -0
  94. package/dist/api/types/Race.d.ts +12 -0
  95. package/dist/api/types/Race.js +14 -0
  96. package/dist/api/types/SexualOrientation.d.ts +11 -0
  97. package/dist/api/types/SexualOrientation.js +13 -0
  98. package/dist/api/types/UserInfo.d.ts +5 -0
  99. package/dist/api/types/index.d.ts +8 -0
  100. package/dist/api/types/index.js +8 -0
  101. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
  102. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
  103. package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
  104. package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
  105. package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
  106. package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
  107. package/dist/serialization/types/BulkOp.d.ts +21 -0
  108. package/dist/serialization/types/BulkOp.js +42 -0
  109. package/dist/serialization/types/BulkOpStatus.d.ts +10 -0
  110. package/dist/serialization/types/BulkOpStatus.js +31 -0
  111. package/dist/serialization/types/BulkOpType.d.ts +10 -0
  112. package/dist/serialization/types/BulkOpType.js +31 -0
  113. package/dist/serialization/types/BulkOpsResponse.d.ts +14 -0
  114. package/dist/serialization/types/BulkOpsResponse.js +35 -0
  115. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
  116. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
  117. package/dist/serialization/types/Ethnicity.d.ts +10 -0
  118. package/dist/serialization/types/Ethnicity.js +31 -0
  119. package/dist/serialization/types/GenderIdentity.d.ts +10 -0
  120. package/dist/serialization/types/GenderIdentity.js +38 -0
  121. package/dist/serialization/types/GuarantorDetails.d.ts +2 -0
  122. package/dist/serialization/types/GuarantorDetails.js +2 -0
  123. package/dist/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
  124. package/dist/serialization/types/PatientDetailsWithValidation.js +10 -0
  125. package/dist/serialization/types/Race.d.ts +10 -0
  126. package/dist/serialization/types/Race.js +38 -0
  127. package/dist/serialization/types/SexualOrientation.d.ts +10 -0
  128. package/dist/serialization/types/SexualOrientation.js +37 -0
  129. package/dist/serialization/types/UserInfo.d.ts +10 -0
  130. package/dist/serialization/types/UserInfo.js +10 -0
  131. package/dist/serialization/types/index.d.ts +8 -0
  132. package/dist/serialization/types/index.js +8 -0
  133. package/dist/version.d.ts +1 -1
  134. package/dist/version.js +1 -1
  135. package/package.json +1 -1
  136. package/reference.md +48 -0
  137. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
  138. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
  139. package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
  140. package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
  141. package/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
  142. package/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
  143. package/serialization/types/BulkOp.d.ts +21 -0
  144. package/serialization/types/BulkOp.js +42 -0
  145. package/serialization/types/BulkOpStatus.d.ts +10 -0
  146. package/serialization/types/BulkOpStatus.js +31 -0
  147. package/serialization/types/BulkOpType.d.ts +10 -0
  148. package/serialization/types/BulkOpType.js +31 -0
  149. package/serialization/types/BulkOpsResponse.d.ts +14 -0
  150. package/serialization/types/BulkOpsResponse.js +35 -0
  151. package/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
  152. package/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
  153. package/serialization/types/Ethnicity.d.ts +10 -0
  154. package/serialization/types/Ethnicity.js +31 -0
  155. package/serialization/types/GenderIdentity.d.ts +10 -0
  156. package/serialization/types/GenderIdentity.js +38 -0
  157. package/serialization/types/GuarantorDetails.d.ts +2 -0
  158. package/serialization/types/GuarantorDetails.js +2 -0
  159. package/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
  160. package/serialization/types/PatientDetailsWithValidation.js +10 -0
  161. package/serialization/types/Race.d.ts +10 -0
  162. package/serialization/types/Race.js +38 -0
  163. package/serialization/types/SexualOrientation.d.ts +10 -0
  164. package/serialization/types/SexualOrientation.js +37 -0
  165. package/serialization/types/UserInfo.d.ts +10 -0
  166. package/serialization/types/UserInfo.js +10 -0
  167. package/serialization/types/index.d.ts +8 -0
  168. package/serialization/types/index.js +8 -0
  169. package/version.d.ts +1 -1
  170. package/version.js +1 -1
@@ -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.BulkOpsResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const BulkOp_1 = require("./BulkOp");
32
+ exports.BulkOpsResponse = core.serialization.object({
33
+ data: core.serialization.list(BulkOp_1.BulkOp),
34
+ nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
35
+ });
@@ -4,6 +4,11 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { GuarantorDetails } from "./GuarantorDetails";
8
+ import { Race } from "./Race";
9
+ import { Ethnicity } from "./Ethnicity";
10
+ import { SexualOrientation } from "./SexualOrientation";
11
+ import { GenderIdentity } from "./GenderIdentity";
7
12
  export declare const ClientFacingPatientDetailsCompatible: core.serialization.ObjectSchema<serializers.ClientFacingPatientDetailsCompatible.Raw, Vital.ClientFacingPatientDetailsCompatible>;
8
13
  export declare namespace ClientFacingPatientDetailsCompatible {
9
14
  interface Raw {
@@ -13,5 +18,10 @@ export declare namespace ClientFacingPatientDetailsCompatible {
13
18
  gender: string;
14
19
  phone_number?: string | null;
15
20
  email?: string | null;
21
+ medical_proxy?: GuarantorDetails.Raw | null;
22
+ race?: Race.Raw | null;
23
+ ethnicity?: Ethnicity.Raw | null;
24
+ sexual_orientation?: SexualOrientation.Raw | null;
25
+ gender_identity?: GenderIdentity.Raw | null;
16
26
  }
17
27
  }
@@ -28,6 +28,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingPatientDetailsCompatible = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const GuarantorDetails_1 = require("./GuarantorDetails");
32
+ const Race_1 = require("./Race");
33
+ const Ethnicity_1 = require("./Ethnicity");
34
+ const SexualOrientation_1 = require("./SexualOrientation");
35
+ const GenderIdentity_1 = require("./GenderIdentity");
31
36
  exports.ClientFacingPatientDetailsCompatible = core.serialization.object({
32
37
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
33
38
  lastName: core.serialization.property("last_name", core.serialization.string().optional()),
@@ -35,4 +40,9 @@ exports.ClientFacingPatientDetailsCompatible = core.serialization.object({
35
40
  gender: core.serialization.string(),
36
41
  phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()),
37
42
  email: core.serialization.string().optional(),
43
+ medicalProxy: core.serialization.property("medical_proxy", GuarantorDetails_1.GuarantorDetails.optional()),
44
+ race: Race_1.Race.optional(),
45
+ ethnicity: Ethnicity_1.Ethnicity.optional(),
46
+ sexualOrientation: core.serialization.property("sexual_orientation", SexualOrientation_1.SexualOrientation.optional()),
47
+ genderIdentity: core.serialization.property("gender_identity", GenderIdentity_1.GenderIdentity.optional()),
38
48
  });
@@ -0,0 +1,10 @@
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 Ethnicity: core.serialization.Schema<serializers.Ethnicity.Raw, Vital.Ethnicity>;
8
+ export declare namespace Ethnicity {
9
+ type Raw = "hispanic" | "non_hispanic" | "ashkenazi_jewish" | "other";
10
+ }
@@ -0,0 +1,31 @@
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.Ethnicity = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Ethnicity = core.serialization.enum_(["hispanic", "non_hispanic", "ashkenazi_jewish", "other"]);
@@ -0,0 +1,10 @@
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 GenderIdentity: core.serialization.Schema<serializers.GenderIdentity.Raw, Vital.GenderIdentity>;
8
+ export declare namespace GenderIdentity {
9
+ type Raw = "male" | "female" | "female_to_male_ftm_transgender_male_trans_man" | "male_to_female_mtf_transgender_female_trans_woman" | "genderqueer" | "other";
10
+ }
@@ -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.GenderIdentity = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.GenderIdentity = core.serialization.enum_([
32
+ "male",
33
+ "female",
34
+ "female_to_male_ftm_transgender_male_trans_man",
35
+ "male_to_female_mtf_transgender_female_trans_woman",
36
+ "genderqueer",
37
+ "other",
38
+ ]);
@@ -12,6 +12,8 @@ export declare namespace GuarantorDetails {
12
12
  last_name: string;
13
13
  address: Address.Raw;
14
14
  phone_number: string;
15
+ household_income?: number | null;
16
+ household_size?: number | null;
15
17
  email?: string | null;
16
18
  }
17
19
  }
@@ -34,5 +34,7 @@ exports.GuarantorDetails = core.serialization.object({
34
34
  lastName: core.serialization.property("last_name", core.serialization.string()),
35
35
  address: Address_1.Address,
36
36
  phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
37
+ householdIncome: core.serialization.property("household_income", core.serialization.number().optional()),
38
+ householdSize: core.serialization.property("household_size", core.serialization.number().optional()),
37
39
  email: core.serialization.string().optional(),
38
40
  });
@@ -5,6 +5,11 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Gender } from "./Gender";
8
+ import { GuarantorDetails } from "./GuarantorDetails";
9
+ import { Race } from "./Race";
10
+ import { Ethnicity } from "./Ethnicity";
11
+ import { SexualOrientation } from "./SexualOrientation";
12
+ import { GenderIdentity } from "./GenderIdentity";
8
13
  export declare const PatientDetailsWithValidation: core.serialization.ObjectSchema<serializers.PatientDetailsWithValidation.Raw, Vital.PatientDetailsWithValidation>;
9
14
  export declare namespace PatientDetailsWithValidation {
10
15
  interface Raw {
@@ -14,5 +19,10 @@ export declare namespace PatientDetailsWithValidation {
14
19
  gender: Gender.Raw;
15
20
  phone_number: string;
16
21
  email: string;
22
+ medical_proxy?: GuarantorDetails.Raw | null;
23
+ race?: Race.Raw | null;
24
+ ethnicity?: Ethnicity.Raw | null;
25
+ sexual_orientation?: SexualOrientation.Raw | null;
26
+ gender_identity?: GenderIdentity.Raw | null;
17
27
  }
18
28
  }
@@ -29,6 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PatientDetailsWithValidation = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Gender_1 = require("./Gender");
32
+ const GuarantorDetails_1 = require("./GuarantorDetails");
33
+ const Race_1 = require("./Race");
34
+ const Ethnicity_1 = require("./Ethnicity");
35
+ const SexualOrientation_1 = require("./SexualOrientation");
36
+ const GenderIdentity_1 = require("./GenderIdentity");
32
37
  exports.PatientDetailsWithValidation = core.serialization.object({
33
38
  firstName: core.serialization.property("first_name", core.serialization.string()),
34
39
  lastName: core.serialization.property("last_name", core.serialization.string()),
@@ -36,4 +41,9 @@ exports.PatientDetailsWithValidation = core.serialization.object({
36
41
  gender: Gender_1.Gender,
37
42
  phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
38
43
  email: core.serialization.string(),
44
+ medicalProxy: core.serialization.property("medical_proxy", GuarantorDetails_1.GuarantorDetails.optional()),
45
+ race: Race_1.Race.optional(),
46
+ ethnicity: Ethnicity_1.Ethnicity.optional(),
47
+ sexualOrientation: core.serialization.property("sexual_orientation", SexualOrientation_1.SexualOrientation.optional()),
48
+ genderIdentity: core.serialization.property("gender_identity", GenderIdentity_1.GenderIdentity.optional()),
39
49
  });
@@ -0,0 +1,10 @@
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 Race: core.serialization.Schema<serializers.Race.Raw, Vital.Race>;
8
+ export declare namespace Race {
9
+ type Raw = "african_american_or_black" | "asian" | "indigenous_native_american_alaska_native" | "other" | "pacific_islander_or_hawaiian" | "white_caucasian";
10
+ }
@@ -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.Race = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Race = core.serialization.enum_([
32
+ "african_american_or_black",
33
+ "asian",
34
+ "indigenous_native_american_alaska_native",
35
+ "other",
36
+ "pacific_islander_or_hawaiian",
37
+ "white_caucasian",
38
+ ]);
@@ -0,0 +1,10 @@
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 SexualOrientation: core.serialization.Schema<serializers.SexualOrientation.Raw, Vital.SexualOrientation>;
8
+ export declare namespace SexualOrientation {
9
+ type Raw = "lesbian_gay_or_homosexual" | "heterosexual_or_straight" | "bisexual" | "dont_know" | "other";
10
+ }
@@ -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.SexualOrientation = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SexualOrientation = core.serialization.enum_([
32
+ "lesbian_gay_or_homosexual",
33
+ "heterosexual_or_straight",
34
+ "bisexual",
35
+ "dont_know",
36
+ "other",
37
+ ]);
@@ -5,6 +5,11 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Address } from "./Address";
8
+ import { GuarantorDetails } from "./GuarantorDetails";
9
+ import { Race } from "./Race";
10
+ import { Ethnicity } from "./Ethnicity";
11
+ import { SexualOrientation } from "./SexualOrientation";
12
+ import { GenderIdentity } from "./GenderIdentity";
8
13
  export declare const UserInfo: core.serialization.ObjectSchema<serializers.UserInfo.Raw, Vital.UserInfo>;
9
14
  export declare namespace UserInfo {
10
15
  interface Raw {
@@ -15,5 +20,10 @@ export declare namespace UserInfo {
15
20
  gender: string;
16
21
  dob: string;
17
22
  address: Address.Raw;
23
+ medical_proxy?: GuarantorDetails.Raw | null;
24
+ race?: Race.Raw | null;
25
+ ethnicity?: Ethnicity.Raw | null;
26
+ sexual_orientation?: SexualOrientation.Raw | null;
27
+ gender_identity?: GenderIdentity.Raw | null;
18
28
  }
19
29
  }
@@ -29,6 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.UserInfo = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Address_1 = require("./Address");
32
+ const GuarantorDetails_1 = require("./GuarantorDetails");
33
+ const Race_1 = require("./Race");
34
+ const Ethnicity_1 = require("./Ethnicity");
35
+ const SexualOrientation_1 = require("./SexualOrientation");
36
+ const GenderIdentity_1 = require("./GenderIdentity");
32
37
  exports.UserInfo = core.serialization.object({
33
38
  firstName: core.serialization.property("first_name", core.serialization.string()),
34
39
  lastName: core.serialization.property("last_name", core.serialization.string()),
@@ -37,4 +42,9 @@ exports.UserInfo = core.serialization.object({
37
42
  gender: core.serialization.string(),
38
43
  dob: core.serialization.string(),
39
44
  address: Address_1.Address,
45
+ medicalProxy: core.serialization.property("medical_proxy", GuarantorDetails_1.GuarantorDetails.optional()),
46
+ race: Race_1.Race.optional(),
47
+ ethnicity: Ethnicity_1.Ethnicity.optional(),
48
+ sexualOrientation: core.serialization.property("sexual_orientation", SexualOrientation_1.SexualOrientation.optional()),
49
+ genderIdentity: core.serialization.property("gender_identity", GenderIdentity_1.GenderIdentity.optional()),
40
50
  });
@@ -34,6 +34,10 @@ export * from "./BodyColumnExpr";
34
34
  export * from "./BodyV2InDb";
35
35
  export * from "./BulkExportConnectionsResponse";
36
36
  export * from "./BulkImportConnectionsResponse";
37
+ export * from "./BulkOpType";
38
+ export * from "./BulkOpStatus";
39
+ export * from "./BulkOp";
40
+ export * from "./BulkOpsResponse";
37
41
  export * from "./CervicalMucusEntryQuality";
38
42
  export * from "./CervicalMucusEntry";
39
43
  export * from "./ChronotypeValueMacroExpr";
@@ -195,6 +199,7 @@ export * from "./DetectedDeviationEntry";
195
199
  export * from "./DeviceV2InDb";
196
200
  export * from "./EmailProviders";
197
201
  export * from "./Energy";
202
+ export * from "./Ethnicity";
198
203
  export * from "./EventDestinationPreferencesPreferred";
199
204
  export * from "./EventDestinationPreferencesEnabledItem";
200
205
  export * from "./EventDestinationPreferences";
@@ -203,6 +208,7 @@ export * from "./FallbackBirthDate";
203
208
  export * from "./FallbackTimeZone";
204
209
  export * from "./Fats";
205
210
  export * from "./Gender";
211
+ export * from "./GenderIdentity";
206
212
  export * from "./GetMarkersResponse";
207
213
  export * from "./GetOrdersResponse";
208
214
  export * from "./GroupKeyColumnExprGroupKey";
@@ -291,6 +297,7 @@ export * from "./QueryConfigProviderPriorityOverridesItem";
291
297
  export * from "./QueryConfig";
292
298
  export * from "./Question";
293
299
  export * from "./QuestionType";
300
+ export * from "./Race";
294
301
  export * from "./RawActivity";
295
302
  export * from "./RawBody";
296
303
  export * from "./RawDevices";
@@ -307,6 +314,7 @@ export * from "./ResultType";
307
314
  export * from "./ScopeRequirementsGrants";
308
315
  export * from "./ScopeRequirementsStr";
309
316
  export * from "./SexualActivityEntry";
317
+ export * from "./SexualOrientation";
310
318
  export * from "./ShippingAddress";
311
319
  export * from "./ShippingAddressWithValidation";
312
320
  export * from "./SingleHistoricalPullStatistics";
@@ -50,6 +50,10 @@ __exportStar(require("./BodyColumnExpr"), exports);
50
50
  __exportStar(require("./BodyV2InDb"), exports);
51
51
  __exportStar(require("./BulkExportConnectionsResponse"), exports);
52
52
  __exportStar(require("./BulkImportConnectionsResponse"), exports);
53
+ __exportStar(require("./BulkOpType"), exports);
54
+ __exportStar(require("./BulkOpStatus"), exports);
55
+ __exportStar(require("./BulkOp"), exports);
56
+ __exportStar(require("./BulkOpsResponse"), exports);
53
57
  __exportStar(require("./CervicalMucusEntryQuality"), exports);
54
58
  __exportStar(require("./CervicalMucusEntry"), exports);
55
59
  __exportStar(require("./ChronotypeValueMacroExpr"), exports);
@@ -211,6 +215,7 @@ __exportStar(require("./DetectedDeviationEntry"), exports);
211
215
  __exportStar(require("./DeviceV2InDb"), exports);
212
216
  __exportStar(require("./EmailProviders"), exports);
213
217
  __exportStar(require("./Energy"), exports);
218
+ __exportStar(require("./Ethnicity"), exports);
214
219
  __exportStar(require("./EventDestinationPreferencesPreferred"), exports);
215
220
  __exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
216
221
  __exportStar(require("./EventDestinationPreferences"), exports);
@@ -219,6 +224,7 @@ __exportStar(require("./FallbackBirthDate"), exports);
219
224
  __exportStar(require("./FallbackTimeZone"), exports);
220
225
  __exportStar(require("./Fats"), exports);
221
226
  __exportStar(require("./Gender"), exports);
227
+ __exportStar(require("./GenderIdentity"), exports);
222
228
  __exportStar(require("./GetMarkersResponse"), exports);
223
229
  __exportStar(require("./GetOrdersResponse"), exports);
224
230
  __exportStar(require("./GroupKeyColumnExprGroupKey"), exports);
@@ -307,6 +313,7 @@ __exportStar(require("./QueryConfigProviderPriorityOverridesItem"), exports);
307
313
  __exportStar(require("./QueryConfig"), exports);
308
314
  __exportStar(require("./Question"), exports);
309
315
  __exportStar(require("./QuestionType"), exports);
316
+ __exportStar(require("./Race"), exports);
310
317
  __exportStar(require("./RawActivity"), exports);
311
318
  __exportStar(require("./RawBody"), exports);
312
319
  __exportStar(require("./RawDevices"), exports);
@@ -323,6 +330,7 @@ __exportStar(require("./ResultType"), exports);
323
330
  __exportStar(require("./ScopeRequirementsGrants"), exports);
324
331
  __exportStar(require("./ScopeRequirementsStr"), exports);
325
332
  __exportStar(require("./SexualActivityEntry"), exports);
333
+ __exportStar(require("./SexualOrientation"), exports);
326
334
  __exportStar(require("./ShippingAddress"), exports);
327
335
  __exportStar(require("./ShippingAddressWithValidation"), exports);
328
336
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.230";
1
+ export declare const SDK_VERSION = "3.1.232";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.230";
4
+ exports.SDK_VERSION = "3.1.232";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.230",
3
+ "version": "3.1.232",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2,6 +2,54 @@
2
2
 
3
3
  ## Link
4
4
 
5
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">listBulkOps</a>({ ...params }) -> Vital.BulkOpsResponse</code></summary>
6
+ <dl>
7
+ <dd>
8
+
9
+ #### 🔌 Usage
10
+
11
+ <dl>
12
+ <dd>
13
+
14
+ <dl>
15
+ <dd>
16
+
17
+ ```typescript
18
+ await client.link.listBulkOps();
19
+ ```
20
+
21
+ </dd>
22
+ </dl>
23
+ </dd>
24
+ </dl>
25
+
26
+ #### ⚙️ Parameters
27
+
28
+ <dl>
29
+ <dd>
30
+
31
+ <dl>
32
+ <dd>
33
+
34
+ **request:** `Vital.LinkListBulkOpsRequest`
35
+
36
+ </dd>
37
+ </dl>
38
+
39
+ <dl>
40
+ <dd>
41
+
42
+ **requestOptions:** `Link.RequestOptions`
43
+
44
+ </dd>
45
+ </dl>
46
+ </dd>
47
+ </dl>
48
+
49
+ </dd>
50
+ </dl>
51
+ </details>
52
+
5
53
  <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">bulkImport</a>({ ...params }) -> Vital.BulkImportConnectionsResponse</code></summary>
6
54
  <dl>
7
55
  <dd>
@@ -11,5 +11,6 @@ export declare namespace BulkImportConnectionsBody {
11
11
  interface Raw {
12
12
  provider: OAuthProviders.Raw;
13
13
  connections: ConnectionRecipe.Raw[];
14
+ wait_for_completion?: boolean | null;
14
15
  }
15
16
  }
@@ -33,4 +33,5 @@ const ConnectionRecipe_1 = require("../../../../types/ConnectionRecipe");
33
33
  exports.BulkImportConnectionsBody = core.serialization.object({
34
34
  provider: OAuthProviders_1.OAuthProviders,
35
35
  connections: core.serialization.list(ConnectionRecipe_1.ConnectionRecipe),
36
+ waitForCompletion: core.serialization.property("wait_for_completion", core.serialization.boolean().optional()),
36
37
  });
@@ -10,5 +10,6 @@ export declare namespace BulkTriggerHistoricalPullBody {
10
10
  interface Raw {
11
11
  user_ids: string[];
12
12
  provider: OAuthProviders.Raw;
13
+ wait_for_completion?: boolean | null;
13
14
  }
14
15
  }
@@ -32,4 +32,5 @@ const OAuthProviders_1 = require("../../../../types/OAuthProviders");
32
32
  exports.BulkTriggerHistoricalPullBody = core.serialization.object({
33
33
  userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string())),
34
34
  provider: OAuthProviders_1.OAuthProviders,
35
+ waitForCompletion: core.serialization.property("wait_for_completion", core.serialization.boolean().optional()),
35
36
  });
@@ -5,6 +5,11 @@ import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { Address } from "../../../../types/Address";
8
+ import { GuarantorDetails } from "../../../../types/GuarantorDetails";
9
+ import { Race } from "../../../../types/Race";
10
+ import { Ethnicity } from "../../../../types/Ethnicity";
11
+ import { SexualOrientation } from "../../../../types/SexualOrientation";
12
+ import { GenderIdentity } from "../../../../types/GenderIdentity";
8
13
  export declare const UserInfoCreateRequest: core.serialization.Schema<serializers.UserInfoCreateRequest.Raw, Vital.UserInfoCreateRequest>;
9
14
  export declare namespace UserInfoCreateRequest {
10
15
  interface Raw {
@@ -15,5 +20,10 @@ export declare namespace UserInfoCreateRequest {
15
20
  gender: string;
16
21
  dob: string;
17
22
  address: Address.Raw;
23
+ medical_proxy?: GuarantorDetails.Raw | null;
24
+ race?: Race.Raw | null;
25
+ ethnicity?: Ethnicity.Raw | null;
26
+ sexual_orientation?: SexualOrientation.Raw | null;
27
+ gender_identity?: GenderIdentity.Raw | null;
18
28
  }
19
29
  }
@@ -29,6 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.UserInfoCreateRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const Address_1 = require("../../../../types/Address");
32
+ const GuarantorDetails_1 = require("../../../../types/GuarantorDetails");
33
+ const Race_1 = require("../../../../types/Race");
34
+ const Ethnicity_1 = require("../../../../types/Ethnicity");
35
+ const SexualOrientation_1 = require("../../../../types/SexualOrientation");
36
+ const GenderIdentity_1 = require("../../../../types/GenderIdentity");
32
37
  exports.UserInfoCreateRequest = core.serialization.object({
33
38
  firstName: core.serialization.property("first_name", core.serialization.string()),
34
39
  lastName: core.serialization.property("last_name", core.serialization.string()),
@@ -37,4 +42,9 @@ exports.UserInfoCreateRequest = core.serialization.object({
37
42
  gender: core.serialization.string(),
38
43
  dob: core.serialization.string(),
39
44
  address: Address_1.Address,
45
+ medicalProxy: core.serialization.property("medical_proxy", GuarantorDetails_1.GuarantorDetails.optional()),
46
+ race: Race_1.Race.optional(),
47
+ ethnicity: Ethnicity_1.Ethnicity.optional(),
48
+ sexualOrientation: core.serialization.property("sexual_orientation", SexualOrientation_1.SexualOrientation.optional()),
49
+ genderIdentity: core.serialization.property("gender_identity", GenderIdentity_1.GenderIdentity.optional()),
40
50
  });
@@ -0,0 +1,21 @@
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 { BulkOpType } from "./BulkOpType";
8
+ import { BulkOpStatus } from "./BulkOpStatus";
9
+ import { Providers } from "./Providers";
10
+ export declare const BulkOp: core.serialization.ObjectSchema<serializers.BulkOp.Raw, Vital.BulkOp>;
11
+ export declare namespace BulkOp {
12
+ interface Raw {
13
+ type: BulkOpType.Raw;
14
+ status: BulkOpStatus.Raw;
15
+ provider: Providers.Raw;
16
+ pending: number;
17
+ processed: number;
18
+ started_at: string;
19
+ ended_at?: string | null;
20
+ }
21
+ }