@tryvital/vital-node 3.1.121 → 3.1.123

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 (111) 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 +2 -1
  21. package/api/types/BodyColumnExprBody.js +1 -0
  22. package/api/types/ClientFacingBody.d.ts +2 -0
  23. package/api/types/{SleepCycle.d.ts → ClientFacingSleepCycle.d.ts} +5 -3
  24. package/{dist/api/types/SleepCycleSourceProvider.d.ts → api/types/ClientFacingSleepCycleSourceProvider.d.ts} +1 -1
  25. package/{dist/api/types/SleepCycleSourceType.d.ts → api/types/ClientFacingSleepCycleSourceType.d.ts} +2 -2
  26. package/{dist/api/types/SleepCycleSourceType.js → api/types/ClientFacingSleepCycleSourceType.js} +2 -2
  27. package/api/types/ClientSleepCycleResponse.d.ts +1 -1
  28. package/api/types/HttpValidationError.d.ts +1 -2
  29. package/api/types/Providers.d.ts +2 -1
  30. package/api/types/Providers.js +1 -0
  31. package/api/types/index.d.ts +3 -3
  32. package/api/types/index.js +3 -3
  33. package/dist/api/resources/activity/client/Client.js +2 -2
  34. package/dist/api/resources/aggregate/client/Client.js +1 -1
  35. package/dist/api/resources/body/client/Client.js +2 -2
  36. package/dist/api/resources/devices/client/Client.js +1 -1
  37. package/dist/api/resources/insurance/client/Client.js +2 -2
  38. package/dist/api/resources/introspect/client/Client.js +2 -2
  39. package/dist/api/resources/labTests/client/Client.js +34 -34
  40. package/dist/api/resources/link/client/Client.js +14 -14
  41. package/dist/api/resources/meal/client/Client.js +1 -1
  42. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  43. package/dist/api/resources/profile/client/Client.js +2 -2
  44. package/dist/api/resources/providers/client/Client.js +1 -1
  45. package/dist/api/resources/sleep/client/Client.js +4 -4
  46. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  47. package/dist/api/resources/team/client/Client.js +7 -7
  48. package/dist/api/resources/testkit/client/Client.js +2 -2
  49. package/dist/api/resources/user/client/Client.js +16 -16
  50. package/dist/api/resources/vitals/client/Client.js +56 -56
  51. package/dist/api/resources/workouts/client/Client.js +3 -3
  52. package/dist/api/types/BodyColumnExprBody.d.ts +2 -1
  53. package/dist/api/types/BodyColumnExprBody.js +1 -0
  54. package/dist/api/types/ClientFacingBody.d.ts +2 -0
  55. package/dist/api/types/{SleepCycle.d.ts → ClientFacingSleepCycle.d.ts} +5 -3
  56. package/{api/types/SleepCycleSourceProvider.d.ts → dist/api/types/ClientFacingSleepCycleSourceProvider.d.ts} +1 -1
  57. package/{api/types/SleepCycleSourceType.d.ts → dist/api/types/ClientFacingSleepCycleSourceType.d.ts} +2 -2
  58. package/{api/types/SleepCycleSourceType.js → dist/api/types/ClientFacingSleepCycleSourceType.js} +2 -2
  59. package/dist/api/types/ClientSleepCycleResponse.d.ts +1 -1
  60. package/dist/api/types/HttpValidationError.d.ts +1 -2
  61. package/dist/api/types/Providers.d.ts +2 -1
  62. package/dist/api/types/Providers.js +1 -0
  63. package/dist/api/types/index.d.ts +3 -3
  64. package/dist/api/types/index.js +3 -3
  65. package/dist/serialization/types/BodyColumnExprBody.d.ts +1 -1
  66. package/dist/serialization/types/BodyColumnExprBody.js +1 -0
  67. package/dist/serialization/types/ClientFacingBody.d.ts +1 -0
  68. package/dist/serialization/types/ClientFacingBody.js +1 -0
  69. package/dist/serialization/types/ClientFacingSleepCycle.d.ts +28 -0
  70. package/dist/serialization/types/{SleepCycle.js → ClientFacingSleepCycle.js} +9 -6
  71. package/{serialization/types/SleepCycleSourceProvider.d.ts → dist/serialization/types/ClientFacingSleepCycleSourceProvider.d.ts} +2 -2
  72. package/dist/serialization/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +2 -2
  73. package/dist/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts} +2 -2
  74. package/{serialization/types/SleepCycleSourceType.js → dist/serialization/types/ClientFacingSleepCycleSourceType.js} +2 -2
  75. package/dist/serialization/types/ClientSleepCycleResponse.d.ts +2 -2
  76. package/dist/serialization/types/ClientSleepCycleResponse.js +2 -2
  77. package/dist/serialization/types/HttpValidationError.d.ts +1 -2
  78. package/dist/serialization/types/HttpValidationError.js +1 -2
  79. package/dist/serialization/types/Providers.d.ts +1 -1
  80. package/dist/serialization/types/Providers.js +1 -0
  81. package/dist/serialization/types/index.d.ts +3 -3
  82. package/dist/serialization/types/index.js +3 -3
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/package.json +1 -1
  86. package/serialization/types/BodyColumnExprBody.d.ts +1 -1
  87. package/serialization/types/BodyColumnExprBody.js +1 -0
  88. package/serialization/types/ClientFacingBody.d.ts +1 -0
  89. package/serialization/types/ClientFacingBody.js +1 -0
  90. package/serialization/types/ClientFacingSleepCycle.d.ts +28 -0
  91. package/serialization/types/{SleepCycle.js → ClientFacingSleepCycle.js} +9 -6
  92. package/{dist/serialization/types/SleepCycleSourceProvider.d.ts → serialization/types/ClientFacingSleepCycleSourceProvider.d.ts} +2 -2
  93. package/serialization/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +2 -2
  94. package/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts} +2 -2
  95. package/{dist/serialization/types/SleepCycleSourceType.js → serialization/types/ClientFacingSleepCycleSourceType.js} +2 -2
  96. package/serialization/types/ClientSleepCycleResponse.d.ts +2 -2
  97. package/serialization/types/ClientSleepCycleResponse.js +2 -2
  98. package/serialization/types/HttpValidationError.d.ts +1 -2
  99. package/serialization/types/HttpValidationError.js +1 -2
  100. package/serialization/types/Providers.d.ts +1 -1
  101. package/serialization/types/Providers.js +1 -0
  102. package/serialization/types/index.d.ts +3 -3
  103. package/serialization/types/index.js +3 -3
  104. package/version.d.ts +1 -1
  105. package/version.js +1 -1
  106. package/dist/serialization/types/SleepCycle.d.ts +0 -25
  107. package/serialization/types/SleepCycle.d.ts +0 -25
  108. /package/api/types/{SleepCycle.js → ClientFacingSleepCycle.js} +0 -0
  109. /package/api/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +0 -0
  110. /package/dist/api/types/{SleepCycle.js → ClientFacingSleepCycle.js} +0 -0
  111. /package/dist/api/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +0 -0
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientSleepCycleResponse = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const SleepCycle_1 = require("./SleepCycle");
31
+ const ClientFacingSleepCycle_1 = require("./ClientFacingSleepCycle");
32
32
  exports.ClientSleepCycleResponse = core.serialization.object({
33
- sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(SleepCycle_1.SleepCycle)),
33
+ sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(ClientFacingSleepCycle_1.ClientFacingSleepCycle)),
34
34
  });
@@ -4,10 +4,9 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { ValidationError } from "./ValidationError";
8
7
  export declare const HttpValidationError: core.serialization.ObjectSchema<serializers.HttpValidationError.Raw, Vital.HttpValidationError>;
9
8
  export declare namespace HttpValidationError {
10
9
  interface Raw {
11
- detail?: ValidationError.Raw[] | null;
10
+ detail?: unknown | null;
12
11
  }
13
12
  }
@@ -28,7 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.HttpValidationError = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const ValidationError_1 = require("./ValidationError");
32
31
  exports.HttpValidationError = core.serialization.object({
33
- detail: core.serialization.list(ValidationError_1.ValidationError).optional(),
32
+ detail: core.serialization.unknown().optional(),
34
33
  });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Providers: core.serialization.Schema<serializers.Providers.Raw, Vital.Providers>;
8
8
  export declare namespace Providers {
9
- type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2";
9
+ type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2" | "map_my_fitness";
10
10
  }
@@ -65,4 +65,5 @@ exports.Providers = core.serialization.enum_([
65
65
  "whoop_v2",
66
66
  "ultrahuman",
67
67
  "my_fitness_pal_v2",
68
+ "map_my_fitness",
68
69
  ]);
@@ -102,6 +102,9 @@ export * from "./ClientFacingRespiratoryRateTimeseries";
102
102
  export * from "./ClientFacingResult";
103
103
  export * from "./ClientFacingShipment";
104
104
  export * from "./ClientFacingSleep";
105
+ export * from "./ClientFacingSleepCycleSourceProvider";
106
+ export * from "./ClientFacingSleepCycleSourceType";
107
+ export * from "./ClientFacingSleepCycle";
105
108
  export * from "./ClientFacingSleepStream";
106
109
  export * from "./ClientFacingSource";
107
110
  export * from "./ClientFacingSport";
@@ -275,9 +278,6 @@ export * from "./SingleUserHistoricalPullResponse";
275
278
  export * from "./SingleUserResourceResponse";
276
279
  export * from "./SleepColumnExprSleep";
277
280
  export * from "./SleepColumnExpr";
278
- export * from "./SleepCycleSourceProvider";
279
- export * from "./SleepCycleSourceType";
280
- export * from "./SleepCycle";
281
281
  export * from "./SleepScoreValueMacroExpr";
282
282
  export * from "./SleepSummaryState";
283
283
  export * from "./SleepType";
@@ -118,6 +118,9 @@ __exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
118
118
  __exportStar(require("./ClientFacingResult"), exports);
119
119
  __exportStar(require("./ClientFacingShipment"), exports);
120
120
  __exportStar(require("./ClientFacingSleep"), exports);
121
+ __exportStar(require("./ClientFacingSleepCycleSourceProvider"), exports);
122
+ __exportStar(require("./ClientFacingSleepCycleSourceType"), exports);
123
+ __exportStar(require("./ClientFacingSleepCycle"), exports);
121
124
  __exportStar(require("./ClientFacingSleepStream"), exports);
122
125
  __exportStar(require("./ClientFacingSource"), exports);
123
126
  __exportStar(require("./ClientFacingSport"), exports);
@@ -291,9 +294,6 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
291
294
  __exportStar(require("./SingleUserResourceResponse"), exports);
292
295
  __exportStar(require("./SleepColumnExprSleep"), exports);
293
296
  __exportStar(require("./SleepColumnExpr"), exports);
294
- __exportStar(require("./SleepCycleSourceProvider"), exports);
295
- __exportStar(require("./SleepCycleSourceType"), exports);
296
- __exportStar(require("./SleepCycle"), exports);
297
297
  __exportStar(require("./SleepScoreValueMacroExpr"), exports);
298
298
  __exportStar(require("./SleepSummaryState"), exports);
299
299
  __exportStar(require("./SleepType"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.121";
1
+ export declare const SDK_VERSION = "3.1.123";
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.121";
4
+ exports.SDK_VERSION = "3.1.123";
@@ -1,25 +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 { VitalSleepStage } from "./VitalSleepStage";
8
- import { SleepCycleSourceProvider } from "./SleepCycleSourceProvider";
9
- import { SleepCycleSourceType } from "./SleepCycleSourceType";
10
- export declare const SleepCycle: core.serialization.ObjectSchema<serializers.SleepCycle.Raw, Vital.SleepCycle>;
11
- export declare namespace SleepCycle {
12
- interface Raw {
13
- id: string;
14
- sleep_id: string;
15
- session_start: string;
16
- session_end: string;
17
- stage_start_offset_second: number[];
18
- stage_end_offset_second: number[];
19
- stage_type: VitalSleepStage.Raw[];
20
- time_zone?: string | null;
21
- source_provider: SleepCycleSourceProvider.Raw;
22
- source_type: SleepCycleSourceType.Raw;
23
- source_app_id?: string | null;
24
- }
25
- }
@@ -1,25 +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 { VitalSleepStage } from "./VitalSleepStage";
8
- import { SleepCycleSourceProvider } from "./SleepCycleSourceProvider";
9
- import { SleepCycleSourceType } from "./SleepCycleSourceType";
10
- export declare const SleepCycle: core.serialization.ObjectSchema<serializers.SleepCycle.Raw, Vital.SleepCycle>;
11
- export declare namespace SleepCycle {
12
- interface Raw {
13
- id: string;
14
- sleep_id: string;
15
- session_start: string;
16
- session_end: string;
17
- stage_start_offset_second: number[];
18
- stage_end_offset_second: number[];
19
- stage_type: VitalSleepStage.Raw[];
20
- time_zone?: string | null;
21
- source_provider: SleepCycleSourceProvider.Raw;
22
- source_type: SleepCycleSourceType.Raw;
23
- source_app_id?: string | null;
24
- }
25
- }