@tryvital/vital-node 3.1.172 → 3.1.173

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 (77) 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.js +14 -14
  10. package/api/resources/meal/client/Client.js +1 -1
  11. package/api/resources/menstrualCycle/client/Client.js +1 -1
  12. package/api/resources/profile/client/Client.js +2 -2
  13. package/api/resources/providers/client/Client.js +1 -1
  14. package/api/resources/sleep/client/Client.js +4 -4
  15. package/api/resources/sleepCycle/client/Client.js +1 -1
  16. package/api/resources/team/client/Client.js +7 -7
  17. package/api/resources/testkit/client/Client.js +2 -2
  18. package/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +1 -1
  19. package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  20. package/api/resources/user/client/Client.js +16 -16
  21. package/api/resources/vitals/client/Client.js +58 -58
  22. package/api/resources/workouts/client/Client.js +3 -3
  23. package/api/types/ShippingAddressWithValidation.d.ts +13 -0
  24. package/api/types/index.d.ts +1 -1
  25. package/api/types/index.js +1 -1
  26. package/dist/api/resources/activity/client/Client.js +2 -2
  27. package/dist/api/resources/aggregate/client/Client.js +1 -1
  28. package/dist/api/resources/body/client/Client.js +2 -2
  29. package/dist/api/resources/devices/client/Client.js +1 -1
  30. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  31. package/dist/api/resources/insurance/client/Client.js +3 -3
  32. package/dist/api/resources/introspect/client/Client.js +2 -2
  33. package/dist/api/resources/labTests/client/Client.js +34 -34
  34. package/dist/api/resources/link/client/Client.js +14 -14
  35. package/dist/api/resources/meal/client/Client.js +1 -1
  36. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  37. package/dist/api/resources/profile/client/Client.js +2 -2
  38. package/dist/api/resources/providers/client/Client.js +1 -1
  39. package/dist/api/resources/sleep/client/Client.js +4 -4
  40. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  41. package/dist/api/resources/team/client/Client.js +7 -7
  42. package/dist/api/resources/testkit/client/Client.js +2 -2
  43. package/dist/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +1 -1
  44. package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  45. package/dist/api/resources/user/client/Client.js +16 -16
  46. package/dist/api/resources/vitals/client/Client.js +58 -58
  47. package/dist/api/resources/workouts/client/Client.js +3 -3
  48. package/dist/api/types/ShippingAddressWithValidation.d.ts +13 -0
  49. package/dist/api/types/index.d.ts +1 -1
  50. package/dist/api/types/index.js +1 -1
  51. package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
  52. package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +2 -2
  53. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +4 -4
  54. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +4 -4
  55. package/dist/serialization/types/ShippingAddressWithValidation.d.ts +19 -0
  56. package/dist/serialization/types/{PatientDetails.js → ShippingAddressWithValidation.js} +9 -8
  57. package/dist/serialization/types/index.d.ts +1 -1
  58. package/dist/serialization/types/index.js +1 -1
  59. package/dist/version.d.ts +1 -1
  60. package/dist/version.js +1 -1
  61. package/package.json +1 -1
  62. package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
  63. package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +2 -2
  64. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +4 -4
  65. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +4 -4
  66. package/serialization/types/ShippingAddressWithValidation.d.ts +19 -0
  67. package/serialization/types/{PatientDetails.js → ShippingAddressWithValidation.js} +9 -8
  68. package/serialization/types/index.d.ts +1 -1
  69. package/serialization/types/index.js +1 -1
  70. package/version.d.ts +1 -1
  71. package/version.js +1 -1
  72. package/api/types/PatientDetails.d.ts +0 -12
  73. package/dist/api/types/PatientDetails.d.ts +0 -12
  74. package/dist/serialization/types/PatientDetails.d.ts +0 -18
  75. package/serialization/types/PatientDetails.d.ts +0 -18
  76. /package/api/types/{PatientDetails.js → ShippingAddressWithValidation.js} +0 -0
  77. /package/dist/api/types/{PatientDetails.js → 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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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
+ }
@@ -257,7 +257,6 @@ export * from "./ParentBiomarkerData";
257
257
  export * from "./PasswordProviders";
258
258
  export * from "./PatientAddressCompatible";
259
259
  export * from "./PatientAddressWithValidation";
260
- export * from "./PatientDetails";
261
260
  export * from "./PatientDetailsWithValidation";
262
261
  export * from "./PayorCodeExternalProvider";
263
262
  export * from "./PeriodUnit";
@@ -300,6 +299,7 @@ export * from "./ScopeRequirementsGrants";
300
299
  export * from "./ScopeRequirementsStr";
301
300
  export * from "./SexualActivityEntry";
302
301
  export * from "./ShippingAddress";
302
+ export * from "./ShippingAddressWithValidation";
303
303
  export * from "./SingleHistoricalPullStatistics";
304
304
  export * from "./SingleProviderHistoricalPullResponse";
305
305
  export * from "./SingleResourceStatistics";
@@ -273,7 +273,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
273
273
  __exportStar(require("./PasswordProviders"), exports);
274
274
  __exportStar(require("./PatientAddressCompatible"), exports);
275
275
  __exportStar(require("./PatientAddressWithValidation"), exports);
276
- __exportStar(require("./PatientDetails"), exports);
277
276
  __exportStar(require("./PatientDetailsWithValidation"), exports);
278
277
  __exportStar(require("./PayorCodeExternalProvider"), exports);
279
278
  __exportStar(require("./PeriodUnit"), exports);
@@ -316,6 +315,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
316
315
  __exportStar(require("./ScopeRequirementsStr"), exports);
317
316
  __exportStar(require("./SexualActivityEntry"), exports);
318
317
  __exportStar(require("./ShippingAddress"), exports);
318
+ __exportStar(require("./ShippingAddressWithValidation"), exports);
319
319
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
320
320
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
321
321
  __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
  });
@@ -257,7 +257,6 @@ export * from "./ParentBiomarkerData";
257
257
  export * from "./PasswordProviders";
258
258
  export * from "./PatientAddressCompatible";
259
259
  export * from "./PatientAddressWithValidation";
260
- export * from "./PatientDetails";
261
260
  export * from "./PatientDetailsWithValidation";
262
261
  export * from "./PayorCodeExternalProvider";
263
262
  export * from "./PeriodUnit";
@@ -300,6 +299,7 @@ export * from "./ScopeRequirementsGrants";
300
299
  export * from "./ScopeRequirementsStr";
301
300
  export * from "./SexualActivityEntry";
302
301
  export * from "./ShippingAddress";
302
+ export * from "./ShippingAddressWithValidation";
303
303
  export * from "./SingleHistoricalPullStatistics";
304
304
  export * from "./SingleProviderHistoricalPullResponse";
305
305
  export * from "./SingleResourceStatistics";
@@ -273,7 +273,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
273
273
  __exportStar(require("./PasswordProviders"), exports);
274
274
  __exportStar(require("./PatientAddressCompatible"), exports);
275
275
  __exportStar(require("./PatientAddressWithValidation"), exports);
276
- __exportStar(require("./PatientDetails"), exports);
277
276
  __exportStar(require("./PatientDetailsWithValidation"), exports);
278
277
  __exportStar(require("./PayorCodeExternalProvider"), exports);
279
278
  __exportStar(require("./PeriodUnit"), exports);
@@ -316,6 +315,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
316
315
  __exportStar(require("./ScopeRequirementsStr"), exports);
317
316
  __exportStar(require("./SexualActivityEntry"), exports);
318
317
  __exportStar(require("./ShippingAddress"), exports);
318
+ __exportStar(require("./ShippingAddressWithValidation"), exports);
319
319
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
320
320
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
321
321
  __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.173";
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.173";
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.173",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -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
  });
@@ -257,7 +257,6 @@ export * from "./ParentBiomarkerData";
257
257
  export * from "./PasswordProviders";
258
258
  export * from "./PatientAddressCompatible";
259
259
  export * from "./PatientAddressWithValidation";
260
- export * from "./PatientDetails";
261
260
  export * from "./PatientDetailsWithValidation";
262
261
  export * from "./PayorCodeExternalProvider";
263
262
  export * from "./PeriodUnit";
@@ -300,6 +299,7 @@ export * from "./ScopeRequirementsGrants";
300
299
  export * from "./ScopeRequirementsStr";
301
300
  export * from "./SexualActivityEntry";
302
301
  export * from "./ShippingAddress";
302
+ export * from "./ShippingAddressWithValidation";
303
303
  export * from "./SingleHistoricalPullStatistics";
304
304
  export * from "./SingleProviderHistoricalPullResponse";
305
305
  export * from "./SingleResourceStatistics";
@@ -273,7 +273,6 @@ __exportStar(require("./ParentBiomarkerData"), exports);
273
273
  __exportStar(require("./PasswordProviders"), exports);
274
274
  __exportStar(require("./PatientAddressCompatible"), exports);
275
275
  __exportStar(require("./PatientAddressWithValidation"), exports);
276
- __exportStar(require("./PatientDetails"), exports);
277
276
  __exportStar(require("./PatientDetailsWithValidation"), exports);
278
277
  __exportStar(require("./PayorCodeExternalProvider"), exports);
279
278
  __exportStar(require("./PeriodUnit"), exports);
@@ -316,6 +315,7 @@ __exportStar(require("./ScopeRequirementsGrants"), exports);
316
315
  __exportStar(require("./ScopeRequirementsStr"), exports);
317
316
  __exportStar(require("./SexualActivityEntry"), exports);
318
317
  __exportStar(require("./ShippingAddress"), exports);
318
+ __exportStar(require("./ShippingAddressWithValidation"), exports);
319
319
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
320
320
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
321
321
  __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.173";
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.173";
@@ -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 PatientDetails {
6
- firstName: string;
7
- lastName: string;
8
- dob: Date;
9
- gender: Vital.Gender;
10
- phoneNumber: string;
11
- email: string;
12
- }
@@ -1,18 +0,0 @@
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 { Gender } from "./Gender";
8
- export declare const PatientDetails: core.serialization.ObjectSchema<serializers.PatientDetails.Raw, Vital.PatientDetails>;
9
- export declare namespace PatientDetails {
10
- interface Raw {
11
- first_name: string;
12
- last_name: string;
13
- dob: string;
14
- gender: Gender.Raw;
15
- phone_number: string;
16
- email: string;
17
- }
18
- }
@@ -1,18 +0,0 @@
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 { Gender } from "./Gender";
8
- export declare const PatientDetails: core.serialization.ObjectSchema<serializers.PatientDetails.Raw, Vital.PatientDetails>;
9
- export declare namespace PatientDetails {
10
- interface Raw {
11
- first_name: string;
12
- last_name: string;
13
- dob: string;
14
- gender: Gender.Raw;
15
- phone_number: string;
16
- email: string;
17
- }
18
- }