@tryvital/vital-node 3.1.118 → 3.1.120

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 (57) 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/insurance/client/Client.js +2 -2
  6. package/api/resources/introspect/client/Client.js +2 -2
  7. package/api/resources/labTests/client/Client.js +34 -34
  8. package/api/resources/link/client/Client.js +14 -14
  9. package/api/resources/meal/client/Client.js +1 -1
  10. package/api/resources/menstrualCycle/client/Client.js +1 -1
  11. package/api/resources/profile/client/Client.js +2 -2
  12. package/api/resources/providers/client/Client.js +1 -1
  13. package/api/resources/sleep/client/Client.js +4 -4
  14. package/api/resources/sleepCycle/client/Client.js +1 -1
  15. package/api/resources/team/client/Client.js +7 -7
  16. package/api/resources/testkit/client/Client.js +2 -2
  17. package/api/resources/user/client/Client.js +16 -16
  18. package/api/resources/vitals/client/Client.js +56 -56
  19. package/api/resources/workouts/client/Client.js +3 -3
  20. package/api/types/BodyColumnExprBody.d.ts +5 -2
  21. package/api/types/BodyColumnExprBody.js +4 -1
  22. package/api/types/ClientFacingBody.d.ts +7 -1
  23. package/dist/api/resources/activity/client/Client.js +2 -2
  24. package/dist/api/resources/aggregate/client/Client.js +1 -1
  25. package/dist/api/resources/body/client/Client.js +2 -2
  26. package/dist/api/resources/devices/client/Client.js +1 -1
  27. package/dist/api/resources/insurance/client/Client.js +2 -2
  28. package/dist/api/resources/introspect/client/Client.js +2 -2
  29. package/dist/api/resources/labTests/client/Client.js +34 -34
  30. package/dist/api/resources/link/client/Client.js +14 -14
  31. package/dist/api/resources/meal/client/Client.js +1 -1
  32. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  33. package/dist/api/resources/profile/client/Client.js +2 -2
  34. package/dist/api/resources/providers/client/Client.js +1 -1
  35. package/dist/api/resources/sleep/client/Client.js +4 -4
  36. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  37. package/dist/api/resources/team/client/Client.js +7 -7
  38. package/dist/api/resources/testkit/client/Client.js +2 -2
  39. package/dist/api/resources/user/client/Client.js +16 -16
  40. package/dist/api/resources/vitals/client/Client.js +56 -56
  41. package/dist/api/resources/workouts/client/Client.js +3 -3
  42. package/dist/api/types/BodyColumnExprBody.d.ts +5 -2
  43. package/dist/api/types/BodyColumnExprBody.js +4 -1
  44. package/dist/api/types/ClientFacingBody.d.ts +7 -1
  45. package/dist/serialization/types/BodyColumnExprBody.d.ts +1 -1
  46. package/dist/serialization/types/BodyColumnExprBody.js +4 -1
  47. package/dist/serialization/types/ClientFacingBody.d.ts +3 -0
  48. package/dist/serialization/types/ClientFacingBody.js +3 -0
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.js +1 -1
  51. package/package.json +1 -1
  52. package/serialization/types/BodyColumnExprBody.d.ts +1 -1
  53. package/serialization/types/BodyColumnExprBody.js +4 -1
  54. package/serialization/types/ClientFacingBody.d.ts +3 -0
  55. package/serialization/types/ClientFacingBody.js +3 -0
  56. package/version.d.ts +1 -1
  57. package/version.js +1 -1
@@ -1,11 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type BodyColumnExprBody = "measured_at" | "weight_kilogram" | "fat_percentage" | "source_type" | "source_provider" | "source_app_id";
4
+ export declare type BodyColumnExprBody = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "source_type" | "source_provider" | "source_app_id";
5
5
  export declare const BodyColumnExprBody: {
6
6
  readonly MeasuredAt: "measured_at";
7
7
  readonly WeightKilogram: "weight_kilogram";
8
- readonly FatPercentage: "fat_percentage";
8
+ readonly FatMassPercentage: "fat_mass_percentage";
9
+ readonly WaterPercentage: "water_percentage";
10
+ readonly MuscleMassPercentage: "muscle_mass_percentage";
11
+ readonly VisceralFatIndex: "visceral_fat_index";
9
12
  readonly SourceType: "source_type";
10
13
  readonly SourceProvider: "source_provider";
11
14
  readonly SourceAppId: "source_app_id";
@@ -7,7 +7,10 @@ exports.BodyColumnExprBody = void 0;
7
7
  exports.BodyColumnExprBody = {
8
8
  MeasuredAt: "measured_at",
9
9
  WeightKilogram: "weight_kilogram",
10
- FatPercentage: "fat_percentage",
10
+ FatMassPercentage: "fat_mass_percentage",
11
+ WaterPercentage: "water_percentage",
12
+ MuscleMassPercentage: "muscle_mass_percentage",
13
+ VisceralFatIndex: "visceral_fat_index",
11
14
  SourceType: "source_type",
12
15
  SourceProvider: "source_provider",
13
16
  SourceAppId: "source_app_id",
@@ -12,7 +12,13 @@ export interface ClientFacingBody {
12
12
  calendarDate: string;
13
13
  /** Weight in kg::kg */
14
14
  weight?: number;
15
- /** Body fat percentage::perc */
15
+ /** Total body fat percentage::perc */
16
16
  fat?: number;
17
+ /** Water percentage in the body::perc */
18
+ waterPercentage?: number;
19
+ /** Muscle mass percentage in the body::perc */
20
+ muscleMassPercentage?: number;
21
+ /** Visceral fat index::scalar */
22
+ visceralFatIndex?: number;
17
23
  source: Vital.ClientFacingSource;
18
24
  }
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const BodyColumnExprBody: core.serialization.Schema<serializers.BodyColumnExprBody.Raw, Vital.BodyColumnExprBody>;
8
8
  export declare namespace BodyColumnExprBody {
9
- type Raw = "measured_at" | "weight_kilogram" | "fat_percentage" | "source_type" | "source_provider" | "source_app_id";
9
+ type Raw = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "source_type" | "source_provider" | "source_app_id";
10
10
  }
@@ -31,7 +31,10 @@ const core = __importStar(require("../../core"));
31
31
  exports.BodyColumnExprBody = core.serialization.enum_([
32
32
  "measured_at",
33
33
  "weight_kilogram",
34
- "fat_percentage",
34
+ "fat_mass_percentage",
35
+ "water_percentage",
36
+ "muscle_mass_percentage",
37
+ "visceral_fat_index",
35
38
  "source_type",
36
39
  "source_provider",
37
40
  "source_app_id",
@@ -14,6 +14,9 @@ export declare namespace ClientFacingBody {
14
14
  calendar_date: string;
15
15
  weight?: number | null;
16
16
  fat?: number | null;
17
+ water_percentage?: number | null;
18
+ muscle_mass_percentage?: number | null;
19
+ visceral_fat_index?: number | null;
17
20
  source: ClientFacingSource.Raw;
18
21
  }
19
22
  }
@@ -36,5 +36,8 @@ exports.ClientFacingBody = core.serialization.object({
36
36
  calendarDate: core.serialization.property("calendar_date", core.serialization.string()),
37
37
  weight: core.serialization.number().optional(),
38
38
  fat: core.serialization.number().optional(),
39
+ waterPercentage: core.serialization.property("water_percentage", core.serialization.number().optional()),
40
+ muscleMassPercentage: core.serialization.property("muscle_mass_percentage", core.serialization.number().optional()),
41
+ visceralFatIndex: core.serialization.property("visceral_fat_index", core.serialization.number().optional()),
39
42
  source: ClientFacingSource_1.ClientFacingSource,
40
43
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.118";
1
+ export declare const SDK_VERSION = "3.1.120";
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.118";
4
+ exports.SDK_VERSION = "3.1.120";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.118",
3
+ "version": "3.1.120",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const BodyColumnExprBody: core.serialization.Schema<serializers.BodyColumnExprBody.Raw, Vital.BodyColumnExprBody>;
8
8
  export declare namespace BodyColumnExprBody {
9
- type Raw = "measured_at" | "weight_kilogram" | "fat_percentage" | "source_type" | "source_provider" | "source_app_id";
9
+ type Raw = "measured_at" | "weight_kilogram" | "fat_mass_percentage" | "water_percentage" | "muscle_mass_percentage" | "visceral_fat_index" | "source_type" | "source_provider" | "source_app_id";
10
10
  }
@@ -31,7 +31,10 @@ const core = __importStar(require("../../core"));
31
31
  exports.BodyColumnExprBody = core.serialization.enum_([
32
32
  "measured_at",
33
33
  "weight_kilogram",
34
- "fat_percentage",
34
+ "fat_mass_percentage",
35
+ "water_percentage",
36
+ "muscle_mass_percentage",
37
+ "visceral_fat_index",
35
38
  "source_type",
36
39
  "source_provider",
37
40
  "source_app_id",
@@ -14,6 +14,9 @@ export declare namespace ClientFacingBody {
14
14
  calendar_date: string;
15
15
  weight?: number | null;
16
16
  fat?: number | null;
17
+ water_percentage?: number | null;
18
+ muscle_mass_percentage?: number | null;
19
+ visceral_fat_index?: number | null;
17
20
  source: ClientFacingSource.Raw;
18
21
  }
19
22
  }
@@ -36,5 +36,8 @@ exports.ClientFacingBody = core.serialization.object({
36
36
  calendarDate: core.serialization.property("calendar_date", core.serialization.string()),
37
37
  weight: core.serialization.number().optional(),
38
38
  fat: core.serialization.number().optional(),
39
+ waterPercentage: core.serialization.property("water_percentage", core.serialization.number().optional()),
40
+ muscleMassPercentage: core.serialization.property("muscle_mass_percentage", core.serialization.number().optional()),
41
+ visceralFatIndex: core.serialization.property("visceral_fat_index", core.serialization.number().optional()),
39
42
  source: ClientFacingSource_1.ClientFacingSource,
40
43
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.118";
1
+ export declare const SDK_VERSION = "3.1.120";
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.118";
4
+ exports.SDK_VERSION = "3.1.120";