@tryvital/vital-node 3.1.303 → 3.1.304

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 (115) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +3 -3
  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 +41 -41
  9. package/api/resources/link/client/Client.js +19 -19
  10. package/api/resources/meal/client/Client.js +1 -1
  11. package/api/resources/menstrualCycle/client/Client.js +1 -1
  12. package/api/resources/order/client/Client.js +1 -1
  13. package/api/resources/payor/client/Client.js +1 -1
  14. package/api/resources/profile/client/Client.js +2 -2
  15. package/api/resources/providers/client/Client.js +1 -1
  16. package/api/resources/sleep/client/Client.js +4 -4
  17. package/api/resources/sleepCycle/client/Client.js +1 -1
  18. package/api/resources/team/client/Client.js +7 -7
  19. package/api/resources/testkit/client/Client.js +2 -2
  20. package/api/resources/user/client/Client.js +16 -16
  21. package/api/resources/vitals/client/Client.js +78 -78
  22. package/api/resources/workouts/client/Client.js +3 -3
  23. package/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
  24. package/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
  25. package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  26. package/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
  27. package/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
  28. package/api/types/ClientFacingProfile.d.ts +2 -0
  29. package/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
  30. package/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
  31. package/api/types/DatePartExpr.d.ts +1 -0
  32. package/api/types/DatePartExprDatePart.d.ts +3 -0
  33. package/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
  34. package/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
  35. package/api/types/IntervalTimeseriesExpr.d.ts +1 -0
  36. package/api/types/IntervalTimeseriesExprField.d.ts +3 -0
  37. package/api/types/NoteTimeseriesExpr.d.ts +1 -0
  38. package/api/types/NoteTimeseriesExprField.d.ts +3 -0
  39. package/api/types/ProviderLinkResponse.d.ts +1 -1
  40. package/api/types/Sex.d.ts +12 -0
  41. package/api/types/Sex.js +11 -0
  42. package/api/types/SourceColumnExpr.d.ts +1 -0
  43. package/api/types/SourceColumnExprSource.d.ts +3 -0
  44. package/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
  45. package/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
  46. package/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
  47. package/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
  48. package/api/types/index.d.ts +1 -0
  49. package/api/types/index.js +1 -0
  50. package/dist/api/resources/activity/client/Client.js +2 -2
  51. package/dist/api/resources/aggregate/client/Client.js +3 -3
  52. package/dist/api/resources/body/client/Client.js +2 -2
  53. package/dist/api/resources/devices/client/Client.js +1 -1
  54. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  55. package/dist/api/resources/insurance/client/Client.js +3 -3
  56. package/dist/api/resources/introspect/client/Client.js +2 -2
  57. package/dist/api/resources/labTests/client/Client.js +41 -41
  58. package/dist/api/resources/link/client/Client.js +19 -19
  59. package/dist/api/resources/meal/client/Client.js +1 -1
  60. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  61. package/dist/api/resources/order/client/Client.js +1 -1
  62. package/dist/api/resources/payor/client/Client.js +1 -1
  63. package/dist/api/resources/profile/client/Client.js +2 -2
  64. package/dist/api/resources/providers/client/Client.js +1 -1
  65. package/dist/api/resources/sleep/client/Client.js +4 -4
  66. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  67. package/dist/api/resources/team/client/Client.js +7 -7
  68. package/dist/api/resources/testkit/client/Client.js +2 -2
  69. package/dist/api/resources/user/client/Client.js +16 -16
  70. package/dist/api/resources/vitals/client/Client.js +78 -78
  71. package/dist/api/resources/workouts/client/Client.js +3 -3
  72. package/dist/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
  73. package/dist/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
  74. package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  75. package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
  76. package/dist/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
  77. package/dist/api/types/ClientFacingProfile.d.ts +2 -0
  78. package/dist/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
  79. package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
  80. package/dist/api/types/DatePartExpr.d.ts +1 -0
  81. package/dist/api/types/DatePartExprDatePart.d.ts +3 -0
  82. package/dist/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
  83. package/dist/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
  84. package/dist/api/types/IntervalTimeseriesExpr.d.ts +1 -0
  85. package/dist/api/types/IntervalTimeseriesExprField.d.ts +3 -0
  86. package/dist/api/types/NoteTimeseriesExpr.d.ts +1 -0
  87. package/dist/api/types/NoteTimeseriesExprField.d.ts +3 -0
  88. package/dist/api/types/ProviderLinkResponse.d.ts +1 -1
  89. package/dist/api/types/Sex.d.ts +12 -0
  90. package/dist/api/types/Sex.js +11 -0
  91. package/dist/api/types/SourceColumnExpr.d.ts +1 -0
  92. package/dist/api/types/SourceColumnExprSource.d.ts +3 -0
  93. package/dist/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
  94. package/dist/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
  95. package/dist/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
  96. package/dist/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
  97. package/dist/api/types/index.d.ts +1 -0
  98. package/dist/api/types/index.js +1 -0
  99. package/dist/serialization/types/ClientFacingProfile.d.ts +4 -0
  100. package/dist/serialization/types/ClientFacingProfile.js +4 -0
  101. package/dist/serialization/types/Sex.d.ts +10 -0
  102. package/dist/serialization/types/Sex.js +35 -0
  103. package/dist/serialization/types/index.d.ts +1 -0
  104. package/dist/serialization/types/index.js +1 -0
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +1 -1
  108. package/serialization/types/ClientFacingProfile.d.ts +4 -0
  109. package/serialization/types/ClientFacingProfile.js +4 -0
  110. package/serialization/types/Sex.d.ts +10 -0
  111. package/serialization/types/Sex.js +35 -0
  112. package/serialization/types/index.d.ts +1 -0
  113. package/serialization/types/index.js +1 -0
  114. package/version.d.ts +1 -1
  115. package/version.js +1 -1
@@ -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.303", "User-Agent": "@tryvital/vital-node/3.1.303", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.303", "User-Agent": "@tryvital/vital-node/3.1.303", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.303", "User-Agent": "@tryvital/vital-node/3.1.303", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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,
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface BloodPressureTimeseriesExpr {
6
6
  timeseries: "blood_pressure";
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  field: Vital.BloodPressureTimeseriesExprField;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type BloodPressureTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "systolic" | "diastolic";
5
8
  export declare const BloodPressureTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -18,6 +18,6 @@ export interface ClientFacingBodyTemperatureDeltaSample {
18
18
  end: Date;
19
19
  /** The recorded value for the interval. */
20
20
  value: number;
21
- /** Location of the temperature sensor. */
21
+ /** Location of the temperature sensor. ℹ️ This enum is non-exhaustive. */
22
22
  sensorLocation?: Vital.ClientFacingBodyTemperatureDeltaSampleSensorLocation;
23
23
  }
@@ -18,6 +18,6 @@ export interface ClientFacingBodyTemperatureSample {
18
18
  end: Date;
19
19
  /** The recorded value for the interval. */
20
20
  value: number;
21
- /** Location of the temperature sensor. */
21
+ /** Location of the temperature sensor. ℹ️ This enum is non-exhaustive. */
22
22
  sensorLocation?: Vital.ClientFacingBodyTemperatureSampleSensorLocation;
23
23
  }
@@ -9,7 +9,9 @@ export interface ClientFacingElectrocardiogram {
9
9
  voltageSampleCount: number;
10
10
  heartRateMean?: number;
11
11
  samplingFrequencyHz?: number;
12
+ /** ℹ️ This enum is non-exhaustive. */
12
13
  classification?: Vital.ClientFacingElectrocardiogramClassification;
14
+ /** ℹ️ This enum is non-exhaustive. */
13
15
  inconclusiveCause?: Vital.ClientFacingElectrocardiogramInconclusiveCause;
14
16
  algorithmVersion?: string;
15
17
  timeZone?: string;
@@ -9,6 +9,8 @@ export interface ClientFacingProfile {
9
9
  height?: number;
10
10
  birthDate?: string;
11
11
  wheelchairUse?: boolean;
12
+ gender?: Vital.Gender;
13
+ sex?: Vital.Sex;
12
14
  source: Vital.ClientFacingSource;
13
15
  createdAt: Date;
14
16
  updatedAt: Date;
@@ -7,6 +7,7 @@ export interface ClientFacingSleepBreathingDisturbanceSample {
7
7
  id?: number;
8
8
  /** Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source. */
9
9
  timezoneOffset?: number;
10
+ /** ℹ️ This enum is non-exhaustive. */
10
11
  type?: Vital.ClientFacingSleepBreathingDisturbanceSampleType;
11
12
  unit: "count";
12
13
  /** Depracated. The start time (inclusive) of the interval. */
@@ -18,6 +18,6 @@ export interface ClientFacingWorkoutDurationSample {
18
18
  end: Date;
19
19
  /** The recorded value for the interval. */
20
20
  value: number;
21
- /** Workout intensity. */
21
+ /** Workout intensity. ℹ️ This enum is non-exhaustive. */
22
22
  intensity?: Vital.ClientFacingWorkoutDurationSampleIntensity;
23
23
  }
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface DatePartExpr {
6
6
  arg: Vital.DatePartExprArg;
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  datePart: Vital.DatePartExprDatePart;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type DatePartExprDatePart = "minute" | "hour" | "day" | "week" | "month" | "year" | "weekday" | "week_of_year" | "day_of_year";
5
8
  export declare const DatePartExprDatePart: {
6
9
  readonly Minute: "minute";
@@ -5,5 +5,6 @@ import * as Vital from "../index";
5
5
  export interface DiscreteTimeseriesExpr {
6
6
  /** ℹ️ This enum is non-exhaustive. */
7
7
  timeseries: Vital.DiscreteTimeseriesExprTimeseries;
8
+ /** ℹ️ This enum is non-exhaustive. */
8
9
  field: Vital.DiscreteTimeseriesExprField;
9
10
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type DiscreteTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "value";
5
8
  export declare const DiscreteTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -5,5 +5,6 @@ import * as Vital from "../index";
5
5
  export interface IntervalTimeseriesExpr {
6
6
  /** ℹ️ This enum is non-exhaustive. */
7
7
  timeseries: Vital.IntervalTimeseriesExprTimeseries;
8
+ /** ℹ️ This enum is non-exhaustive. */
8
9
  field: Vital.IntervalTimeseriesExprField;
9
10
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type IntervalTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value";
5
8
  export declare const IntervalTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface NoteTimeseriesExpr {
6
6
  timeseries: "note";
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  field: Vital.NoteTimeseriesExprField;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type NoteTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "tags" | "content";
5
8
  export declare const NoteTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -7,7 +7,7 @@ export interface ProviderLinkResponse {
7
7
  state: Vital.ProviderLinkResponseState;
8
8
  /** The redirect URL you supplied when creating the Link Token (via `POST /v2/link/token`). */
9
9
  redirectUrl?: string;
10
- /** The Link Error Type. This field is populated only when state is `error`. */
10
+ /** The Link Error Type. This field is populated only when state is `error`. ℹ️ This enum is non-exhaustive. */
11
11
  errorType?: Vital.ProviderLinkResponseErrorType;
12
12
  /** A developer-readable debug description of the Link Error. This field is populated only when state is `error`. */
13
13
  error?: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
7
+ export declare type Sex = "female" | "male" | "other";
8
+ export declare const Sex: {
9
+ readonly Female: "female";
10
+ readonly Male: "male";
11
+ readonly Other: "other";
12
+ };
@@ -0,0 +1,11 @@
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.Sex = void 0;
7
+ exports.Sex = {
8
+ Female: "female",
9
+ Male: "male",
10
+ Other: "other",
11
+ };
@@ -3,5 +3,6 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface SourceColumnExpr {
6
+ /** ℹ️ This enum is non-exhaustive. */
6
7
  source: Vital.SourceColumnExprSource;
7
8
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type SourceColumnExprSource = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport";
5
8
  export declare const SourceColumnExprSource: {
6
9
  readonly SourceProvider: "source_provider";
@@ -5,5 +5,6 @@ import * as Vital from "../index";
5
5
  export interface TemperatureTimeseriesExpr {
6
6
  /** ℹ️ This enum is non-exhaustive. */
7
7
  timeseries: Vital.TemperatureTimeseriesExprTimeseries;
8
+ /** ℹ️ This enum is non-exhaustive. */
8
9
  field: Vital.TemperatureTimeseriesExprField;
9
10
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type TemperatureTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "sensor_location";
5
8
  export declare const TemperatureTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface WorkoutDurationTimeseriesExpr {
6
6
  timeseries: "workout_duration";
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  field: Vital.WorkoutDurationTimeseriesExprField;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type WorkoutDurationTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "intensity";
5
8
  export declare const WorkoutDurationTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -348,6 +348,7 @@ export * from "./SampleDataDateReported";
348
348
  export * from "./SampleData";
349
349
  export * from "./ScopeRequirementsGrants";
350
350
  export * from "./ScopeRequirementsStr";
351
+ export * from "./Sex";
351
352
  export * from "./SexualActivityEntry";
352
353
  export * from "./SexualOrientation";
353
354
  export * from "./ShippingAddress";
@@ -364,6 +364,7 @@ __exportStar(require("./SampleDataDateReported"), exports);
364
364
  __exportStar(require("./SampleData"), exports);
365
365
  __exportStar(require("./ScopeRequirementsGrants"), exports);
366
366
  __exportStar(require("./ScopeRequirementsStr"), exports);
367
+ __exportStar(require("./Sex"), exports);
367
368
  __exportStar(require("./SexualActivityEntry"), exports);
368
369
  __exportStar(require("./SexualOrientation"), exports);
369
370
  __exportStar(require("./ShippingAddress"), exports);
@@ -4,6 +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 { Gender } from "./Gender";
8
+ import { Sex } from "./Sex";
7
9
  import { ClientFacingSource } from "./ClientFacingSource";
8
10
  export declare const ClientFacingProfile: core.serialization.ObjectSchema<serializers.ClientFacingProfile.Raw, Vital.ClientFacingProfile>;
9
11
  export declare namespace ClientFacingProfile {
@@ -13,6 +15,8 @@ export declare namespace ClientFacingProfile {
13
15
  height?: number | null;
14
16
  birth_date?: string | null;
15
17
  wheelchair_use?: boolean | null;
18
+ gender?: Gender.Raw | null;
19
+ sex?: Sex.Raw | null;
16
20
  source: ClientFacingSource.Raw;
17
21
  created_at: string;
18
22
  updated_at: string;
@@ -28,6 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingProfile = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const Gender_1 = require("./Gender");
32
+ const Sex_1 = require("./Sex");
31
33
  const ClientFacingSource_1 = require("./ClientFacingSource");
32
34
  exports.ClientFacingProfile = core.serialization.object({
33
35
  id: core.serialization.string(),
@@ -35,6 +37,8 @@ exports.ClientFacingProfile = core.serialization.object({
35
37
  height: core.serialization.number().optional(),
36
38
  birthDate: core.serialization.property("birth_date", core.serialization.string().optional()),
37
39
  wheelchairUse: core.serialization.property("wheelchair_use", core.serialization.boolean().optional()),
40
+ gender: Gender_1.Gender.optional(),
41
+ sex: Sex_1.Sex.optional(),
38
42
  source: ClientFacingSource_1.ClientFacingSource,
39
43
  createdAt: core.serialization.property("created_at", core.serialization.date()),
40
44
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
@@ -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 Sex: core.serialization.Schema<serializers.Sex.Raw, Vital.Sex>;
8
+ export declare namespace Sex {
9
+ type Raw = "female" | "male" | "other";
10
+ }
@@ -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.Sex = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Sex = core.serialization.enum_([
32
+ "female",
33
+ "male",
34
+ "other",
35
+ ]);
@@ -348,6 +348,7 @@ export * from "./SampleDataDateReported";
348
348
  export * from "./SampleData";
349
349
  export * from "./ScopeRequirementsGrants";
350
350
  export * from "./ScopeRequirementsStr";
351
+ export * from "./Sex";
351
352
  export * from "./SexualActivityEntry";
352
353
  export * from "./SexualOrientation";
353
354
  export * from "./ShippingAddress";
@@ -364,6 +364,7 @@ __exportStar(require("./SampleDataDateReported"), exports);
364
364
  __exportStar(require("./SampleData"), exports);
365
365
  __exportStar(require("./ScopeRequirementsGrants"), exports);
366
366
  __exportStar(require("./ScopeRequirementsStr"), exports);
367
+ __exportStar(require("./Sex"), exports);
367
368
  __exportStar(require("./SexualActivityEntry"), exports);
368
369
  __exportStar(require("./SexualOrientation"), exports);
369
370
  __exportStar(require("./ShippingAddress"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.303";
1
+ export declare const SDK_VERSION = "3.1.304";
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.303";
4
+ exports.SDK_VERSION = "3.1.304";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.303",
3
+ "version": "3.1.304",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -4,6 +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 { Gender } from "./Gender";
8
+ import { Sex } from "./Sex";
7
9
  import { ClientFacingSource } from "./ClientFacingSource";
8
10
  export declare const ClientFacingProfile: core.serialization.ObjectSchema<serializers.ClientFacingProfile.Raw, Vital.ClientFacingProfile>;
9
11
  export declare namespace ClientFacingProfile {
@@ -13,6 +15,8 @@ export declare namespace ClientFacingProfile {
13
15
  height?: number | null;
14
16
  birth_date?: string | null;
15
17
  wheelchair_use?: boolean | null;
18
+ gender?: Gender.Raw | null;
19
+ sex?: Sex.Raw | null;
16
20
  source: ClientFacingSource.Raw;
17
21
  created_at: string;
18
22
  updated_at: string;
@@ -28,6 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingProfile = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const Gender_1 = require("./Gender");
32
+ const Sex_1 = require("./Sex");
31
33
  const ClientFacingSource_1 = require("./ClientFacingSource");
32
34
  exports.ClientFacingProfile = core.serialization.object({
33
35
  id: core.serialization.string(),
@@ -35,6 +37,8 @@ exports.ClientFacingProfile = core.serialization.object({
35
37
  height: core.serialization.number().optional(),
36
38
  birthDate: core.serialization.property("birth_date", core.serialization.string().optional()),
37
39
  wheelchairUse: core.serialization.property("wheelchair_use", core.serialization.boolean().optional()),
40
+ gender: Gender_1.Gender.optional(),
41
+ sex: Sex_1.Sex.optional(),
38
42
  source: ClientFacingSource_1.ClientFacingSource,
39
43
  createdAt: core.serialization.property("created_at", core.serialization.date()),
40
44
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
@@ -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 Sex: core.serialization.Schema<serializers.Sex.Raw, Vital.Sex>;
8
+ export declare namespace Sex {
9
+ type Raw = "female" | "male" | "other";
10
+ }
@@ -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.Sex = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.Sex = core.serialization.enum_([
32
+ "female",
33
+ "male",
34
+ "other",
35
+ ]);
@@ -348,6 +348,7 @@ export * from "./SampleDataDateReported";
348
348
  export * from "./SampleData";
349
349
  export * from "./ScopeRequirementsGrants";
350
350
  export * from "./ScopeRequirementsStr";
351
+ export * from "./Sex";
351
352
  export * from "./SexualActivityEntry";
352
353
  export * from "./SexualOrientation";
353
354
  export * from "./ShippingAddress";
@@ -364,6 +364,7 @@ __exportStar(require("./SampleDataDateReported"), exports);
364
364
  __exportStar(require("./SampleData"), exports);
365
365
  __exportStar(require("./ScopeRequirementsGrants"), exports);
366
366
  __exportStar(require("./ScopeRequirementsStr"), exports);
367
+ __exportStar(require("./Sex"), exports);
367
368
  __exportStar(require("./SexualActivityEntry"), exports);
368
369
  __exportStar(require("./SexualOrientation"), exports);
369
370
  __exportStar(require("./ShippingAddress"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.303";
1
+ export declare const SDK_VERSION = "3.1.304";
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.303";
4
+ exports.SDK_VERSION = "3.1.304";