@tryvital/vital-node 3.1.172 → 3.1.174

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 (96) 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.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.js +34 -34
  9. package/api/resources/link/client/Client.d.ts +3 -3
  10. package/api/resources/link/client/Client.js +17 -32
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/menstrualCycle/client/Client.js +1 -1
  13. package/api/resources/profile/client/Client.js +2 -2
  14. package/api/resources/providers/client/Client.js +1 -1
  15. package/api/resources/sleep/client/Client.js +4 -4
  16. package/api/resources/sleepCycle/client/Client.js +1 -1
  17. package/api/resources/team/client/Client.js +7 -7
  18. package/api/resources/testkit/client/Client.js +2 -2
  19. package/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +1 -1
  20. package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  21. package/api/resources/user/client/Client.js +16 -16
  22. package/api/resources/vitals/client/Client.js +58 -58
  23. package/api/resources/workouts/client/Client.js +3 -3
  24. package/api/types/ShippingAddressWithValidation.d.ts +13 -0
  25. package/api/types/index.d.ts +1 -3
  26. package/api/types/index.js +1 -3
  27. package/dist/api/resources/activity/client/Client.js +2 -2
  28. package/dist/api/resources/aggregate/client/Client.js +1 -1
  29. package/dist/api/resources/body/client/Client.js +2 -2
  30. package/dist/api/resources/devices/client/Client.js +1 -1
  31. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  32. package/dist/api/resources/insurance/client/Client.js +3 -3
  33. package/dist/api/resources/introspect/client/Client.js +2 -2
  34. package/dist/api/resources/labTests/client/Client.js +34 -34
  35. package/dist/api/resources/link/client/Client.d.ts +3 -3
  36. package/dist/api/resources/link/client/Client.js +17 -32
  37. package/dist/api/resources/meal/client/Client.js +1 -1
  38. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  39. package/dist/api/resources/profile/client/Client.js +2 -2
  40. package/dist/api/resources/providers/client/Client.js +1 -1
  41. package/dist/api/resources/sleep/client/Client.js +4 -4
  42. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  43. package/dist/api/resources/team/client/Client.js +7 -7
  44. package/dist/api/resources/testkit/client/Client.js +2 -2
  45. package/dist/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +1 -1
  46. package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  47. package/dist/api/resources/user/client/Client.js +16 -16
  48. package/dist/api/resources/vitals/client/Client.js +58 -58
  49. package/dist/api/resources/workouts/client/Client.js +3 -3
  50. package/dist/api/types/ShippingAddressWithValidation.d.ts +13 -0
  51. package/dist/api/types/index.d.ts +1 -3
  52. package/dist/api/types/index.js +1 -3
  53. package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
  54. package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +2 -2
  55. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +4 -4
  56. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +4 -4
  57. package/dist/serialization/types/ShippingAddressWithValidation.d.ts +19 -0
  58. package/dist/serialization/types/{PatientDetails.js → ShippingAddressWithValidation.js} +9 -8
  59. package/dist/serialization/types/index.d.ts +1 -3
  60. package/dist/serialization/types/index.js +1 -3
  61. package/dist/version.d.ts +1 -1
  62. package/dist/version.js +1 -1
  63. package/package.json +1 -1
  64. package/reference.md +3 -3
  65. package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
  66. package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +2 -2
  67. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +4 -4
  68. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +4 -4
  69. package/serialization/types/ShippingAddressWithValidation.d.ts +19 -0
  70. package/serialization/types/{PatientDetails.js → ShippingAddressWithValidation.js} +9 -8
  71. package/serialization/types/index.d.ts +1 -3
  72. package/serialization/types/index.js +1 -3
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/api/types/ConnectionStatus.d.ts +0 -12
  76. package/api/types/ConnectionStatusState.d.ts +0 -9
  77. package/api/types/ConnectionStatusState.js +0 -11
  78. package/api/types/PatientDetails.d.ts +0 -12
  79. package/dist/api/types/ConnectionStatus.d.ts +0 -12
  80. package/dist/api/types/ConnectionStatus.js +0 -5
  81. package/dist/api/types/ConnectionStatusState.d.ts +0 -9
  82. package/dist/api/types/ConnectionStatusState.js +0 -11
  83. package/dist/api/types/PatientDetails.d.ts +0 -12
  84. package/dist/api/types/PatientDetails.js +0 -5
  85. package/dist/serialization/types/ConnectionStatus.d.ts +0 -19
  86. package/dist/serialization/types/ConnectionStatus.js +0 -40
  87. package/dist/serialization/types/ConnectionStatusState.d.ts +0 -10
  88. package/dist/serialization/types/ConnectionStatusState.js +0 -31
  89. package/dist/serialization/types/PatientDetails.d.ts +0 -18
  90. package/serialization/types/ConnectionStatus.d.ts +0 -19
  91. package/serialization/types/ConnectionStatus.js +0 -40
  92. package/serialization/types/ConnectionStatusState.d.ts +0 -10
  93. package/serialization/types/ConnectionStatusState.js +0 -31
  94. package/serialization/types/PatientDetails.d.ts +0 -18
  95. /package/api/types/{ConnectionStatus.js → ShippingAddressWithValidation.js} +0 -0
  96. /package/{api/types/PatientDetails.js → dist/api/types/ShippingAddressWithValidation.js} +0 -0
@@ -78,7 +78,7 @@ class Workouts {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.172", "User-Agent": "@tryvital/vital-node/3.1.172", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.174", "User-Agent": "@tryvital/vital-node/3.1.174", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Workouts {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.172", "User-Agent": "@tryvital/vital-node/3.1.172", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.174", "User-Agent": "@tryvital/vital-node/3.1.174", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -216,7 +216,7 @@ class Workouts {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
218
218
  method: "GET",
219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.172", "User-Agent": "@tryvital/vital-node/3.1.172", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.174", "User-Agent": "@tryvital/vital-node/3.1.174", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ShippingAddressWithValidation {
5
+ receiverName: string;
6
+ firstLine: string;
7
+ secondLine?: string;
8
+ city: string;
9
+ state: string;
10
+ zip: string;
11
+ country: string;
12
+ phoneNumber: string;
13
+ }
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
172
172
  export * from "./CompanyDetails";
173
173
  export * from "./ConnectedSourceClientFacing";
174
174
  export * from "./ConnectionRecipe";
175
- export * from "./ConnectionStatusState";
176
- export * from "./ConnectionStatus";
177
175
  export * from "./Consent";
178
176
  export * from "./ConsentType";
179
177
  export * from "./ContraceptiveEntryType";
@@ -257,7 +255,6 @@ export * from "./ParentBiomarkerData";
257
255
  export * from "./PasswordProviders";
258
256
  export * from "./PatientAddressCompatible";
259
257
  export * from "./PatientAddressWithValidation";
260
- export * from "./PatientDetails";
261
258
  export * from "./PatientDetailsWithValidation";
262
259
  export * from "./PayorCodeExternalProvider";
263
260
  export * from "./PeriodUnit";
@@ -300,6 +297,7 @@ export * from "./ScopeRequirementsGrants";
300
297
  export * from "./ScopeRequirementsStr";
301
298
  export * from "./SexualActivityEntry";
302
299
  export * from "./ShippingAddress";
300
+ export * from "./ShippingAddressWithValidation";
303
301
  export * from "./SingleHistoricalPullStatistics";
304
302
  export * from "./SingleProviderHistoricalPullResponse";
305
303
  export * from "./SingleResourceStatistics";
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
188
188
  __exportStar(require("./CompanyDetails"), exports);
189
189
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
190
  __exportStar(require("./ConnectionRecipe"), exports);
191
- __exportStar(require("./ConnectionStatusState"), exports);
192
- __exportStar(require("./ConnectionStatus"), exports);
193
191
  __exportStar(require("./Consent"), exports);
194
192
  __exportStar(require("./ConsentType"), exports);
195
193
  __exportStar(require("./ContraceptiveEntryType"), exports);
@@ -273,7 +271,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
273
271
  __exportStar(require("./PasswordProviders"), exports);
274
272
  __exportStar(require("./PatientAddressCompatible"), exports);
275
273
  __exportStar(require("./PatientAddressWithValidation"), exports);
276
- __exportStar(require("./PatientDetails"), exports);
277
274
  __exportStar(require("./PatientDetailsWithValidation"), exports);
278
275
  __exportStar(require("./PayorCodeExternalProvider"), exports);
279
276
  __exportStar(require("./PeriodUnit"), exports);
@@ -316,6 +313,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
316
313
  __exportStar(require("./ScopeRequirementsStr"), exports);
317
314
  __exportStar(require("./SexualActivityEntry"), exports);
318
315
  __exportStar(require("./ShippingAddress"), exports);
316
+ __exportStar(require("./ShippingAddressWithValidation"), exports);
319
317
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
320
318
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
321
319
  __exportStar(require("./SingleResourceStatistics"), exports);
@@ -4,13 +4,13 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { ShippingAddress } from "../../../../types/ShippingAddress";
7
+ import { ShippingAddressWithValidation } from "../../../../types/ShippingAddressWithValidation";
8
8
  export declare const CreateRegistrableTestkitOrderRequest: core.serialization.Schema<serializers.CreateRegistrableTestkitOrderRequest.Raw, Vital.CreateRegistrableTestkitOrderRequest>;
9
9
  export declare namespace CreateRegistrableTestkitOrderRequest {
10
10
  interface Raw {
11
11
  user_id: string;
12
12
  lab_test_id: string;
13
- shipping_details: ShippingAddress.Raw;
13
+ shipping_details: ShippingAddressWithValidation.Raw;
14
14
  passthrough?: string | null;
15
15
  }
16
16
  }
@@ -28,10 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateRegistrableTestkitOrderRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const ShippingAddress_1 = require("../../../../types/ShippingAddress");
31
+ const ShippingAddressWithValidation_1 = require("../../../../types/ShippingAddressWithValidation");
32
32
  exports.CreateRegistrableTestkitOrderRequest = core.serialization.object({
33
33
  userId: core.serialization.property("user_id", core.serialization.string()),
34
34
  labTestId: core.serialization.property("lab_test_id", core.serialization.string()),
35
- shippingDetails: core.serialization.property("shipping_details", ShippingAddress_1.ShippingAddress),
35
+ shippingDetails: core.serialization.property("shipping_details", ShippingAddressWithValidation_1.ShippingAddressWithValidation),
36
36
  passthrough: core.serialization.string().optional(),
37
37
  });
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { PatientDetails } from "../../../../types/PatientDetails";
8
- import { PatientAddressCompatible } from "../../../../types/PatientAddressCompatible";
7
+ import { PatientDetailsWithValidation } from "../../../../types/PatientDetailsWithValidation";
8
+ import { PatientAddressWithValidation } from "../../../../types/PatientAddressWithValidation";
9
9
  import { PhysicianCreateRequestBase } from "../../../../types/PhysicianCreateRequestBase";
10
10
  import { HealthInsuranceCreateRequest } from "../../../../types/HealthInsuranceCreateRequest";
11
11
  import { Consent } from "../../../../types/Consent";
@@ -14,8 +14,8 @@ export declare namespace RegisterTestkitRequest {
14
14
  interface Raw {
15
15
  user_id?: string | null;
16
16
  sample_id: string;
17
- patient_details: PatientDetails.Raw;
18
- patient_address: PatientAddressCompatible.Raw;
17
+ patient_details: PatientDetailsWithValidation.Raw;
18
+ patient_address: PatientAddressWithValidation.Raw;
19
19
  physician?: PhysicianCreateRequestBase.Raw | null;
20
20
  health_insurance?: HealthInsuranceCreateRequest.Raw | null;
21
21
  consents?: Consent.Raw[] | null;
@@ -28,16 +28,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.RegisterTestkitRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const PatientDetails_1 = require("../../../../types/PatientDetails");
32
- const PatientAddressCompatible_1 = require("../../../../types/PatientAddressCompatible");
31
+ const PatientDetailsWithValidation_1 = require("../../../../types/PatientDetailsWithValidation");
32
+ const PatientAddressWithValidation_1 = require("../../../../types/PatientAddressWithValidation");
33
33
  const PhysicianCreateRequestBase_1 = require("../../../../types/PhysicianCreateRequestBase");
34
34
  const HealthInsuranceCreateRequest_1 = require("../../../../types/HealthInsuranceCreateRequest");
35
35
  const Consent_1 = require("../../../../types/Consent");
36
36
  exports.RegisterTestkitRequest = core.serialization.object({
37
37
  userId: core.serialization.property("user_id", core.serialization.string().optional()),
38
38
  sampleId: core.serialization.property("sample_id", core.serialization.string()),
39
- patientDetails: core.serialization.property("patient_details", PatientDetails_1.PatientDetails),
40
- patientAddress: core.serialization.property("patient_address", PatientAddressCompatible_1.PatientAddressCompatible),
39
+ patientDetails: core.serialization.property("patient_details", PatientDetailsWithValidation_1.PatientDetailsWithValidation),
40
+ patientAddress: core.serialization.property("patient_address", PatientAddressWithValidation_1.PatientAddressWithValidation),
41
41
  physician: PhysicianCreateRequestBase_1.PhysicianCreateRequestBase.optional(),
42
42
  healthInsurance: core.serialization.property("health_insurance", HealthInsuranceCreateRequest_1.HealthInsuranceCreateRequest.optional()),
43
43
  consents: core.serialization.list(Consent_1.Consent).optional(),
@@ -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 ShippingAddressWithValidation: core.serialization.ObjectSchema<serializers.ShippingAddressWithValidation.Raw, Vital.ShippingAddressWithValidation>;
8
+ export declare namespace ShippingAddressWithValidation {
9
+ interface Raw {
10
+ receiver_name: string;
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;
18
+ }
19
+ }
@@ -26,14 +26,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PatientDetails = void 0;
29
+ exports.ShippingAddressWithValidation = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const Gender_1 = require("./Gender");
32
- exports.PatientDetails = core.serialization.object({
33
- firstName: core.serialization.property("first_name", core.serialization.string()),
34
- lastName: core.serialization.property("last_name", core.serialization.string()),
35
- dob: core.serialization.date(),
36
- gender: Gender_1.Gender,
31
+ exports.ShippingAddressWithValidation = core.serialization.object({
32
+ receiverName: core.serialization.property("receiver_name", core.serialization.string()),
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(),
37
39
  phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
38
- email: core.serialization.string(),
39
40
  });
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
172
172
  export * from "./CompanyDetails";
173
173
  export * from "./ConnectedSourceClientFacing";
174
174
  export * from "./ConnectionRecipe";
175
- export * from "./ConnectionStatusState";
176
- export * from "./ConnectionStatus";
177
175
  export * from "./Consent";
178
176
  export * from "./ConsentType";
179
177
  export * from "./ContraceptiveEntryType";
@@ -257,7 +255,6 @@ export * from "./ParentBiomarkerData";
257
255
  export * from "./PasswordProviders";
258
256
  export * from "./PatientAddressCompatible";
259
257
  export * from "./PatientAddressWithValidation";
260
- export * from "./PatientDetails";
261
258
  export * from "./PatientDetailsWithValidation";
262
259
  export * from "./PayorCodeExternalProvider";
263
260
  export * from "./PeriodUnit";
@@ -300,6 +297,7 @@ export * from "./ScopeRequirementsGrants";
300
297
  export * from "./ScopeRequirementsStr";
301
298
  export * from "./SexualActivityEntry";
302
299
  export * from "./ShippingAddress";
300
+ export * from "./ShippingAddressWithValidation";
303
301
  export * from "./SingleHistoricalPullStatistics";
304
302
  export * from "./SingleProviderHistoricalPullResponse";
305
303
  export * from "./SingleResourceStatistics";
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
188
188
  __exportStar(require("./CompanyDetails"), exports);
189
189
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
190
  __exportStar(require("./ConnectionRecipe"), exports);
191
- __exportStar(require("./ConnectionStatusState"), exports);
192
- __exportStar(require("./ConnectionStatus"), exports);
193
191
  __exportStar(require("./Consent"), exports);
194
192
  __exportStar(require("./ConsentType"), exports);
195
193
  __exportStar(require("./ContraceptiveEntryType"), exports);
@@ -273,7 +271,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
273
271
  __exportStar(require("./PasswordProviders"), exports);
274
272
  __exportStar(require("./PatientAddressCompatible"), exports);
275
273
  __exportStar(require("./PatientAddressWithValidation"), exports);
276
- __exportStar(require("./PatientDetails"), exports);
277
274
  __exportStar(require("./PatientDetailsWithValidation"), exports);
278
275
  __exportStar(require("./PayorCodeExternalProvider"), exports);
279
276
  __exportStar(require("./PeriodUnit"), exports);
@@ -316,6 +313,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
316
313
  __exportStar(require("./ScopeRequirementsStr"), exports);
317
314
  __exportStar(require("./SexualActivityEntry"), exports);
318
315
  __exportStar(require("./ShippingAddress"), exports);
316
+ __exportStar(require("./ShippingAddressWithValidation"), exports);
319
317
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
320
318
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
321
319
  __exportStar(require("./SingleResourceStatistics"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.172";
1
+ export declare const SDK_VERSION = "3.1.174";
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.172";
4
+ exports.SDK_VERSION = "3.1.174";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.172",
3
+ "version": "3.1.174",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -318,7 +318,7 @@ await client.link.tokenState();
318
318
  </dl>
319
319
  </details>
320
320
 
321
- <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) -> Vital.ConnectionStatus</code></summary>
321
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) -> unknown</code></summary>
322
322
  <dl>
323
323
  <dd>
324
324
 
@@ -385,7 +385,7 @@ await client.link.emailAuth({
385
385
  </dl>
386
386
  </details>
387
387
 
388
- <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) -> Vital.ConnectionStatus</code></summary>
388
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) -> unknown</code></summary>
389
389
  <dl>
390
390
  <dd>
391
391
 
@@ -671,7 +671,7 @@ await client.link.completePasswordProviderMfa("whoop", {
671
671
  </dl>
672
672
  </details>
673
673
 
674
- <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) -> Vital.ConnectionStatus</code></summary>
674
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) -> unknown</code></summary>
675
675
  <dl>
676
676
  <dd>
677
677
 
@@ -4,13 +4,13 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { ShippingAddress } from "../../../../types/ShippingAddress";
7
+ import { ShippingAddressWithValidation } from "../../../../types/ShippingAddressWithValidation";
8
8
  export declare const CreateRegistrableTestkitOrderRequest: core.serialization.Schema<serializers.CreateRegistrableTestkitOrderRequest.Raw, Vital.CreateRegistrableTestkitOrderRequest>;
9
9
  export declare namespace CreateRegistrableTestkitOrderRequest {
10
10
  interface Raw {
11
11
  user_id: string;
12
12
  lab_test_id: string;
13
- shipping_details: ShippingAddress.Raw;
13
+ shipping_details: ShippingAddressWithValidation.Raw;
14
14
  passthrough?: string | null;
15
15
  }
16
16
  }
@@ -28,10 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateRegistrableTestkitOrderRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const ShippingAddress_1 = require("../../../../types/ShippingAddress");
31
+ const ShippingAddressWithValidation_1 = require("../../../../types/ShippingAddressWithValidation");
32
32
  exports.CreateRegistrableTestkitOrderRequest = core.serialization.object({
33
33
  userId: core.serialization.property("user_id", core.serialization.string()),
34
34
  labTestId: core.serialization.property("lab_test_id", core.serialization.string()),
35
- shippingDetails: core.serialization.property("shipping_details", ShippingAddress_1.ShippingAddress),
35
+ shippingDetails: core.serialization.property("shipping_details", ShippingAddressWithValidation_1.ShippingAddressWithValidation),
36
36
  passthrough: core.serialization.string().optional(),
37
37
  });
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { PatientDetails } from "../../../../types/PatientDetails";
8
- import { PatientAddressCompatible } from "../../../../types/PatientAddressCompatible";
7
+ import { PatientDetailsWithValidation } from "../../../../types/PatientDetailsWithValidation";
8
+ import { PatientAddressWithValidation } from "../../../../types/PatientAddressWithValidation";
9
9
  import { PhysicianCreateRequestBase } from "../../../../types/PhysicianCreateRequestBase";
10
10
  import { HealthInsuranceCreateRequest } from "../../../../types/HealthInsuranceCreateRequest";
11
11
  import { Consent } from "../../../../types/Consent";
@@ -14,8 +14,8 @@ export declare namespace RegisterTestkitRequest {
14
14
  interface Raw {
15
15
  user_id?: string | null;
16
16
  sample_id: string;
17
- patient_details: PatientDetails.Raw;
18
- patient_address: PatientAddressCompatible.Raw;
17
+ patient_details: PatientDetailsWithValidation.Raw;
18
+ patient_address: PatientAddressWithValidation.Raw;
19
19
  physician?: PhysicianCreateRequestBase.Raw | null;
20
20
  health_insurance?: HealthInsuranceCreateRequest.Raw | null;
21
21
  consents?: Consent.Raw[] | null;
@@ -28,16 +28,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.RegisterTestkitRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const PatientDetails_1 = require("../../../../types/PatientDetails");
32
- const PatientAddressCompatible_1 = require("../../../../types/PatientAddressCompatible");
31
+ const PatientDetailsWithValidation_1 = require("../../../../types/PatientDetailsWithValidation");
32
+ const PatientAddressWithValidation_1 = require("../../../../types/PatientAddressWithValidation");
33
33
  const PhysicianCreateRequestBase_1 = require("../../../../types/PhysicianCreateRequestBase");
34
34
  const HealthInsuranceCreateRequest_1 = require("../../../../types/HealthInsuranceCreateRequest");
35
35
  const Consent_1 = require("../../../../types/Consent");
36
36
  exports.RegisterTestkitRequest = core.serialization.object({
37
37
  userId: core.serialization.property("user_id", core.serialization.string().optional()),
38
38
  sampleId: core.serialization.property("sample_id", core.serialization.string()),
39
- patientDetails: core.serialization.property("patient_details", PatientDetails_1.PatientDetails),
40
- patientAddress: core.serialization.property("patient_address", PatientAddressCompatible_1.PatientAddressCompatible),
39
+ patientDetails: core.serialization.property("patient_details", PatientDetailsWithValidation_1.PatientDetailsWithValidation),
40
+ patientAddress: core.serialization.property("patient_address", PatientAddressWithValidation_1.PatientAddressWithValidation),
41
41
  physician: PhysicianCreateRequestBase_1.PhysicianCreateRequestBase.optional(),
42
42
  healthInsurance: core.serialization.property("health_insurance", HealthInsuranceCreateRequest_1.HealthInsuranceCreateRequest.optional()),
43
43
  consents: core.serialization.list(Consent_1.Consent).optional(),
@@ -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 ShippingAddressWithValidation: core.serialization.ObjectSchema<serializers.ShippingAddressWithValidation.Raw, Vital.ShippingAddressWithValidation>;
8
+ export declare namespace ShippingAddressWithValidation {
9
+ interface Raw {
10
+ receiver_name: string;
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;
18
+ }
19
+ }
@@ -26,14 +26,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.PatientDetails = void 0;
29
+ exports.ShippingAddressWithValidation = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const Gender_1 = require("./Gender");
32
- exports.PatientDetails = core.serialization.object({
33
- firstName: core.serialization.property("first_name", core.serialization.string()),
34
- lastName: core.serialization.property("last_name", core.serialization.string()),
35
- dob: core.serialization.date(),
36
- gender: Gender_1.Gender,
31
+ exports.ShippingAddressWithValidation = core.serialization.object({
32
+ receiverName: core.serialization.property("receiver_name", core.serialization.string()),
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(),
37
39
  phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
38
- email: core.serialization.string(),
39
40
  });
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
172
172
  export * from "./CompanyDetails";
173
173
  export * from "./ConnectedSourceClientFacing";
174
174
  export * from "./ConnectionRecipe";
175
- export * from "./ConnectionStatusState";
176
- export * from "./ConnectionStatus";
177
175
  export * from "./Consent";
178
176
  export * from "./ConsentType";
179
177
  export * from "./ContraceptiveEntryType";
@@ -257,7 +255,6 @@ export * from "./ParentBiomarkerData";
257
255
  export * from "./PasswordProviders";
258
256
  export * from "./PatientAddressCompatible";
259
257
  export * from "./PatientAddressWithValidation";
260
- export * from "./PatientDetails";
261
258
  export * from "./PatientDetailsWithValidation";
262
259
  export * from "./PayorCodeExternalProvider";
263
260
  export * from "./PeriodUnit";
@@ -300,6 +297,7 @@ export * from "./ScopeRequirementsGrants";
300
297
  export * from "./ScopeRequirementsStr";
301
298
  export * from "./SexualActivityEntry";
302
299
  export * from "./ShippingAddress";
300
+ export * from "./ShippingAddressWithValidation";
303
301
  export * from "./SingleHistoricalPullStatistics";
304
302
  export * from "./SingleProviderHistoricalPullResponse";
305
303
  export * from "./SingleResourceStatistics";
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
188
188
  __exportStar(require("./CompanyDetails"), exports);
189
189
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
190
  __exportStar(require("./ConnectionRecipe"), exports);
191
- __exportStar(require("./ConnectionStatusState"), exports);
192
- __exportStar(require("./ConnectionStatus"), exports);
193
191
  __exportStar(require("./Consent"), exports);
194
192
  __exportStar(require("./ConsentType"), exports);
195
193
  __exportStar(require("./ContraceptiveEntryType"), exports);
@@ -273,7 +271,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
273
271
  __exportStar(require("./PasswordProviders"), exports);
274
272
  __exportStar(require("./PatientAddressCompatible"), exports);
275
273
  __exportStar(require("./PatientAddressWithValidation"), exports);
276
- __exportStar(require("./PatientDetails"), exports);
277
274
  __exportStar(require("./PatientDetailsWithValidation"), exports);
278
275
  __exportStar(require("./PayorCodeExternalProvider"), exports);
279
276
  __exportStar(require("./PeriodUnit"), exports);
@@ -316,6 +313,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
316
313
  __exportStar(require("./ScopeRequirementsStr"), exports);
317
314
  __exportStar(require("./SexualActivityEntry"), exports);
318
315
  __exportStar(require("./ShippingAddress"), exports);
316
+ __exportStar(require("./ShippingAddressWithValidation"), exports);
319
317
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
320
318
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
321
319
  __exportStar(require("./SingleResourceStatistics"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.172";
1
+ export declare const SDK_VERSION = "3.1.174";
package/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.172";
4
+ exports.SDK_VERSION = "3.1.174";
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export interface ConnectionStatus {
6
- state: Vital.ConnectionStatusState;
7
- redirectUrl?: string;
8
- errorType?: string;
9
- error?: string;
10
- providerMfa?: Vital.ProviderMfaRequest;
11
- success: boolean;
12
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
5
- export declare const ConnectionStatusState: {
6
- readonly Success: "success";
7
- readonly Error: "error";
8
- readonly PendingProviderMfa: "pending_provider_mfa";
9
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConnectionStatusState = void 0;
7
- exports.ConnectionStatusState = {
8
- Success: "success",
9
- Error: "error",
10
- PendingProviderMfa: "pending_provider_mfa",
11
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export interface PatientDetails {
6
- firstName: string;
7
- lastName: string;
8
- dob: Date;
9
- gender: Vital.Gender;
10
- phoneNumber: string;
11
- email: string;
12
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export interface ConnectionStatus {
6
- state: Vital.ConnectionStatusState;
7
- redirectUrl?: string;
8
- errorType?: string;
9
- error?: string;
10
- providerMfa?: Vital.ProviderMfaRequest;
11
- success: boolean;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
5
- export declare const ConnectionStatusState: {
6
- readonly Success: "success";
7
- readonly Error: "error";
8
- readonly PendingProviderMfa: "pending_provider_mfa";
9
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConnectionStatusState = void 0;
7
- exports.ConnectionStatusState = {
8
- Success: "success",
9
- Error: "error",
10
- PendingProviderMfa: "pending_provider_mfa",
11
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export interface PatientDetails {
6
- firstName: string;
7
- lastName: string;
8
- dob: Date;
9
- gender: Vital.Gender;
10
- phoneNumber: string;
11
- email: string;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });