@tryvital/vital-node 3.1.66 → 3.1.67

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/body/client/Client.js +2 -2
  3. package/api/resources/devices/client/Client.js +1 -1
  4. package/api/resources/insurance/client/Client.js +2 -2
  5. package/api/resources/introspect/client/Client.js +2 -2
  6. package/api/resources/labTests/client/Client.js +27 -27
  7. package/api/resources/link/client/Client.js +14 -14
  8. package/api/resources/meal/client/Client.js +1 -1
  9. package/api/resources/menstrualCycle/client/Client.js +1 -1
  10. package/api/resources/profile/client/Client.js +2 -2
  11. package/api/resources/providers/client/Client.js +1 -1
  12. package/api/resources/sleep/client/Client.js +4 -4
  13. package/api/resources/team/client/Client.js +7 -7
  14. package/api/resources/testkit/client/Client.js +2 -2
  15. package/api/resources/user/client/Client.js +16 -16
  16. package/api/resources/vitals/client/Client.js +56 -56
  17. package/api/resources/workouts/client/Client.js +3 -3
  18. package/api/types/ClientFacingSleep.d.ts +1 -0
  19. package/api/types/SleepSummaryState.d.ts +8 -0
  20. package/api/types/SleepSummaryState.js +10 -0
  21. package/api/types/index.d.ts +1 -0
  22. package/api/types/index.js +1 -0
  23. package/dist/api/resources/activity/client/Client.js +2 -2
  24. package/dist/api/resources/body/client/Client.js +2 -2
  25. package/dist/api/resources/devices/client/Client.js +1 -1
  26. package/dist/api/resources/insurance/client/Client.js +2 -2
  27. package/dist/api/resources/introspect/client/Client.js +2 -2
  28. package/dist/api/resources/labTests/client/Client.js +27 -27
  29. package/dist/api/resources/link/client/Client.js +14 -14
  30. package/dist/api/resources/meal/client/Client.js +1 -1
  31. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  32. package/dist/api/resources/profile/client/Client.js +2 -2
  33. package/dist/api/resources/providers/client/Client.js +1 -1
  34. package/dist/api/resources/sleep/client/Client.js +4 -4
  35. package/dist/api/resources/team/client/Client.js +7 -7
  36. package/dist/api/resources/testkit/client/Client.js +2 -2
  37. package/dist/api/resources/user/client/Client.js +16 -16
  38. package/dist/api/resources/vitals/client/Client.js +56 -56
  39. package/dist/api/resources/workouts/client/Client.js +3 -3
  40. package/dist/api/types/ClientFacingSleep.d.ts +1 -0
  41. package/dist/api/types/SleepSummaryState.d.ts +8 -0
  42. package/dist/api/types/SleepSummaryState.js +10 -0
  43. package/dist/api/types/index.d.ts +1 -0
  44. package/dist/api/types/index.js +1 -0
  45. package/dist/serialization/types/ClientFacingSleep.d.ts +2 -0
  46. package/dist/serialization/types/ClientFacingSleep.js +2 -0
  47. package/dist/serialization/types/SleepSummaryState.d.ts +10 -0
  48. package/dist/serialization/types/SleepSummaryState.js +31 -0
  49. package/dist/serialization/types/index.d.ts +1 -0
  50. package/dist/serialization/types/index.js +1 -0
  51. package/package.json +1 -1
  52. package/serialization/types/ClientFacingSleep.d.ts +2 -0
  53. package/serialization/types/ClientFacingSleep.js +2 -0
  54. package/serialization/types/SleepSummaryState.d.ts +10 -0
  55. package/serialization/types/SleepSummaryState.js +31 -0
  56. package/serialization/types/index.d.ts +1 -0
  57. package/serialization/types/index.js +1 -0
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type SleepSummaryState = "tentative" | "confirmed";
5
+ export declare const SleepSummaryState: {
6
+ readonly Tentative: "tentative";
7
+ readonly Confirmed: "confirmed";
8
+ };
@@ -0,0 +1,10 @@
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.SleepSummaryState = void 0;
7
+ exports.SleepSummaryState = {
8
+ Tentative: "tentative",
9
+ Confirmed: "confirmed",
10
+ };
@@ -234,6 +234,7 @@ export * from "./SingleProviderHistoricalPullResponse";
234
234
  export * from "./SingleResourceStatistics";
235
235
  export * from "./SingleUserHistoricalPullResponse";
236
236
  export * from "./SingleUserResourceResponse";
237
+ export * from "./SleepSummaryState";
237
238
  export * from "./SleepV2InDb";
238
239
  export * from "./Source";
239
240
  export * from "./SourceAuthType";
@@ -250,6 +250,7 @@ __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
250
250
  __exportStar(require("./SingleResourceStatistics"), exports);
251
251
  __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
252
252
  __exportStar(require("./SingleUserResourceResponse"), exports);
253
+ __exportStar(require("./SleepSummaryState"), exports);
253
254
  __exportStar(require("./SleepV2InDb"), exports);
254
255
  __exportStar(require("./Source"), exports);
255
256
  __exportStar(require("./SourceAuthType"), exports);
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "..";
5
5
  import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
+ import { SleepSummaryState } from "./SleepSummaryState";
7
8
  import { ClientFacingSource } from "./ClientFacingSource";
8
9
  import { ClientFacingSleepStream } from "./ClientFacingSleepStream";
9
10
  export declare const ClientFacingSleep: core.serialization.ObjectSchema<serializers.ClientFacingSleep.Raw, Vital.ClientFacingSleep>;
@@ -30,6 +31,7 @@ export declare namespace ClientFacingSleep {
30
31
  temperature_delta?: number | null;
31
32
  skin_temperature?: number | null;
32
33
  hr_dip?: number | null;
34
+ state?: SleepSummaryState.Raw | null;
33
35
  average_hrv?: number | null;
34
36
  respiratory_rate?: number | null;
35
37
  source: ClientFacingSource.Raw;
@@ -28,6 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingSleep = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const SleepSummaryState_1 = require("./SleepSummaryState");
31
32
  const ClientFacingSource_1 = require("./ClientFacingSource");
32
33
  const ClientFacingSleepStream_1 = require("./ClientFacingSleepStream");
33
34
  exports.ClientFacingSleep = core.serialization.object({
@@ -52,6 +53,7 @@ exports.ClientFacingSleep = core.serialization.object({
52
53
  temperatureDelta: core.serialization.property("temperature_delta", core.serialization.number().optional()),
53
54
  skinTemperature: core.serialization.property("skin_temperature", core.serialization.number().optional()),
54
55
  hrDip: core.serialization.property("hr_dip", core.serialization.number().optional()),
56
+ state: SleepSummaryState_1.SleepSummaryState.optional(),
55
57
  averageHrv: core.serialization.property("average_hrv", core.serialization.number().optional()),
56
58
  respiratoryRate: core.serialization.property("respiratory_rate", core.serialization.number().optional()),
57
59
  source: ClientFacingSource_1.ClientFacingSource,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SleepSummaryState: core.serialization.Schema<serializers.SleepSummaryState.Raw, Vital.SleepSummaryState>;
8
+ export declare namespace SleepSummaryState {
9
+ type Raw = "tentative" | "confirmed";
10
+ }
@@ -0,0 +1,31 @@
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.SleepSummaryState = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SleepSummaryState = core.serialization.enum_(["tentative", "confirmed"]);
@@ -234,6 +234,7 @@ export * from "./SingleProviderHistoricalPullResponse";
234
234
  export * from "./SingleResourceStatistics";
235
235
  export * from "./SingleUserHistoricalPullResponse";
236
236
  export * from "./SingleUserResourceResponse";
237
+ export * from "./SleepSummaryState";
237
238
  export * from "./SleepV2InDb";
238
239
  export * from "./Source";
239
240
  export * from "./SourceAuthType";
@@ -250,6 +250,7 @@ __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
250
250
  __exportStar(require("./SingleResourceStatistics"), exports);
251
251
  __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
252
252
  __exportStar(require("./SingleUserResourceResponse"), exports);
253
+ __exportStar(require("./SleepSummaryState"), exports);
253
254
  __exportStar(require("./SleepV2InDb"), exports);
254
255
  __exportStar(require("./Source"), exports);
255
256
  __exportStar(require("./SourceAuthType"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.66",
3
+ "version": "3.1.67",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "..";
5
5
  import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
+ import { SleepSummaryState } from "./SleepSummaryState";
7
8
  import { ClientFacingSource } from "./ClientFacingSource";
8
9
  import { ClientFacingSleepStream } from "./ClientFacingSleepStream";
9
10
  export declare const ClientFacingSleep: core.serialization.ObjectSchema<serializers.ClientFacingSleep.Raw, Vital.ClientFacingSleep>;
@@ -30,6 +31,7 @@ export declare namespace ClientFacingSleep {
30
31
  temperature_delta?: number | null;
31
32
  skin_temperature?: number | null;
32
33
  hr_dip?: number | null;
34
+ state?: SleepSummaryState.Raw | null;
33
35
  average_hrv?: number | null;
34
36
  respiratory_rate?: number | null;
35
37
  source: ClientFacingSource.Raw;
@@ -28,6 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingSleep = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const SleepSummaryState_1 = require("./SleepSummaryState");
31
32
  const ClientFacingSource_1 = require("./ClientFacingSource");
32
33
  const ClientFacingSleepStream_1 = require("./ClientFacingSleepStream");
33
34
  exports.ClientFacingSleep = core.serialization.object({
@@ -52,6 +53,7 @@ exports.ClientFacingSleep = core.serialization.object({
52
53
  temperatureDelta: core.serialization.property("temperature_delta", core.serialization.number().optional()),
53
54
  skinTemperature: core.serialization.property("skin_temperature", core.serialization.number().optional()),
54
55
  hrDip: core.serialization.property("hr_dip", core.serialization.number().optional()),
56
+ state: SleepSummaryState_1.SleepSummaryState.optional(),
55
57
  averageHrv: core.serialization.property("average_hrv", core.serialization.number().optional()),
56
58
  respiratoryRate: core.serialization.property("respiratory_rate", core.serialization.number().optional()),
57
59
  source: ClientFacingSource_1.ClientFacingSource,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SleepSummaryState: core.serialization.Schema<serializers.SleepSummaryState.Raw, Vital.SleepSummaryState>;
8
+ export declare namespace SleepSummaryState {
9
+ type Raw = "tentative" | "confirmed";
10
+ }
@@ -0,0 +1,31 @@
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.SleepSummaryState = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SleepSummaryState = core.serialization.enum_(["tentative", "confirmed"]);
@@ -234,6 +234,7 @@ export * from "./SingleProviderHistoricalPullResponse";
234
234
  export * from "./SingleResourceStatistics";
235
235
  export * from "./SingleUserHistoricalPullResponse";
236
236
  export * from "./SingleUserResourceResponse";
237
+ export * from "./SleepSummaryState";
237
238
  export * from "./SleepV2InDb";
238
239
  export * from "./Source";
239
240
  export * from "./SourceAuthType";
@@ -250,6 +250,7 @@ __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
250
250
  __exportStar(require("./SingleResourceStatistics"), exports);
251
251
  __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
252
252
  __exportStar(require("./SingleUserResourceResponse"), exports);
253
+ __exportStar(require("./SleepSummaryState"), exports);
253
254
  __exportStar(require("./SleepV2InDb"), exports);
254
255
  __exportStar(require("./Source"), exports);
255
256
  __exportStar(require("./SourceAuthType"), exports);