@tryvital/vital-node 3.1.101 → 3.1.102

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 (102) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.d.ts +0 -8
  3. package/api/resources/aggregate/client/Client.js +1 -9
  4. package/api/resources/aggregate/client/requests/Query.d.ts +0 -8
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/insurance/client/Client.js +2 -2
  8. package/api/resources/introspect/client/Client.js +2 -2
  9. package/api/resources/labTests/client/Client.js +34 -34
  10. package/api/resources/link/client/Client.js +14 -14
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/menstrualCycle/client/Client.js +1 -1
  13. package/api/resources/profile/client/Client.js +2 -2
  14. package/api/resources/providers/client/Client.js +1 -1
  15. package/api/resources/sleep/client/Client.js +4 -4
  16. package/api/resources/team/client/Client.js +7 -7
  17. package/api/resources/testkit/client/Client.js +2 -2
  18. package/api/resources/user/client/Client.js +16 -16
  19. package/api/resources/vitals/client/Client.js +56 -56
  20. package/api/resources/workouts/client/Client.js +3 -3
  21. package/api/types/AggregateExprArg.d.ts +1 -1
  22. package/api/types/ClientFacingSleep.d.ts +7 -0
  23. package/api/types/QueryInstruction.d.ts +1 -1
  24. package/api/types/QueryInstructionSelectItem.d.ts +1 -1
  25. package/api/types/SleepScoreValueMacroExpr.d.ts +7 -0
  26. package/api/types/SleepScoreValueMacroExpr.js +5 -0
  27. package/api/types/SleepType.d.ts +10 -0
  28. package/api/types/SleepType.js +12 -0
  29. package/api/types/UnrecognizedValueMacroExpr.d.ts +6 -0
  30. package/api/types/UnrecognizedValueMacroExpr.js +5 -0
  31. package/api/types/index.d.ts +3 -0
  32. package/api/types/index.js +3 -0
  33. package/dist/api/resources/activity/client/Client.js +2 -2
  34. package/dist/api/resources/aggregate/client/Client.d.ts +0 -8
  35. package/dist/api/resources/aggregate/client/Client.js +1 -9
  36. package/dist/api/resources/aggregate/client/requests/Query.d.ts +0 -8
  37. package/dist/api/resources/body/client/Client.js +2 -2
  38. package/dist/api/resources/devices/client/Client.js +1 -1
  39. package/dist/api/resources/insurance/client/Client.js +2 -2
  40. package/dist/api/resources/introspect/client/Client.js +2 -2
  41. package/dist/api/resources/labTests/client/Client.js +34 -34
  42. package/dist/api/resources/link/client/Client.js +14 -14
  43. package/dist/api/resources/meal/client/Client.js +1 -1
  44. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  45. package/dist/api/resources/profile/client/Client.js +2 -2
  46. package/dist/api/resources/providers/client/Client.js +1 -1
  47. package/dist/api/resources/sleep/client/Client.js +4 -4
  48. package/dist/api/resources/team/client/Client.js +7 -7
  49. package/dist/api/resources/testkit/client/Client.js +2 -2
  50. package/dist/api/resources/user/client/Client.js +16 -16
  51. package/dist/api/resources/vitals/client/Client.js +56 -56
  52. package/dist/api/resources/workouts/client/Client.js +3 -3
  53. package/dist/api/types/AggregateExprArg.d.ts +1 -1
  54. package/dist/api/types/ClientFacingSleep.d.ts +7 -0
  55. package/dist/api/types/QueryInstruction.d.ts +1 -1
  56. package/dist/api/types/QueryInstructionSelectItem.d.ts +1 -1
  57. package/dist/api/types/SleepScoreValueMacroExpr.d.ts +7 -0
  58. package/dist/api/types/SleepScoreValueMacroExpr.js +5 -0
  59. package/dist/api/types/SleepType.d.ts +10 -0
  60. package/dist/api/types/SleepType.js +12 -0
  61. package/dist/api/types/UnrecognizedValueMacroExpr.d.ts +6 -0
  62. package/dist/api/types/UnrecognizedValueMacroExpr.js +5 -0
  63. package/dist/api/types/index.d.ts +3 -0
  64. package/dist/api/types/index.js +3 -0
  65. package/dist/serialization/types/AggregateExprArg.d.ts +3 -1
  66. package/dist/serialization/types/AggregateExprArg.js +4 -0
  67. package/dist/serialization/types/ClientFacingSleep.d.ts +2 -0
  68. package/dist/serialization/types/ClientFacingSleep.js +2 -0
  69. package/dist/serialization/types/QueryInstruction.d.ts +1 -1
  70. package/dist/serialization/types/QueryInstruction.js +1 -1
  71. package/dist/serialization/types/QueryInstructionSelectItem.d.ts +3 -1
  72. package/dist/serialization/types/QueryInstructionSelectItem.js +4 -0
  73. package/dist/serialization/types/SleepScoreValueMacroExpr.d.ts +13 -0
  74. package/dist/serialization/types/SleepScoreValueMacroExpr.js +34 -0
  75. package/dist/serialization/types/SleepType.d.ts +10 -0
  76. package/dist/serialization/types/SleepType.js +31 -0
  77. package/dist/serialization/types/UnrecognizedValueMacroExpr.d.ts +12 -0
  78. package/dist/serialization/types/UnrecognizedValueMacroExpr.js +33 -0
  79. package/dist/serialization/types/index.d.ts +3 -0
  80. package/dist/serialization/types/index.js +3 -0
  81. package/dist/version.d.ts +1 -1
  82. package/dist/version.js +1 -1
  83. package/package.json +1 -1
  84. package/reference.md +0 -10
  85. package/serialization/types/AggregateExprArg.d.ts +3 -1
  86. package/serialization/types/AggregateExprArg.js +4 -0
  87. package/serialization/types/ClientFacingSleep.d.ts +2 -0
  88. package/serialization/types/ClientFacingSleep.js +2 -0
  89. package/serialization/types/QueryInstruction.d.ts +1 -1
  90. package/serialization/types/QueryInstruction.js +1 -1
  91. package/serialization/types/QueryInstructionSelectItem.d.ts +3 -1
  92. package/serialization/types/QueryInstructionSelectItem.js +4 -0
  93. package/serialization/types/SleepScoreValueMacroExpr.d.ts +13 -0
  94. package/serialization/types/SleepScoreValueMacroExpr.js +34 -0
  95. package/serialization/types/SleepType.d.ts +10 -0
  96. package/serialization/types/SleepType.js +31 -0
  97. package/serialization/types/UnrecognizedValueMacroExpr.d.ts +12 -0
  98. package/serialization/types/UnrecognizedValueMacroExpr.js +33 -0
  99. package/serialization/types/index.d.ts +3 -0
  100. package/serialization/types/index.js +3 -0
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
@@ -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 SleepType: core.serialization.Schema<serializers.SleepType.Raw, Vital.SleepType>;
8
+ export declare namespace SleepType {
9
+ type Raw = "long_sleep" | "short_sleep" | "acknowledged_nap" | "unknown";
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.SleepType = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SleepType = core.serialization.enum_(["long_sleep", "short_sleep", "acknowledged_nap", "unknown"]);
@@ -0,0 +1,12 @@
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 UnrecognizedValueMacroExpr: core.serialization.ObjectSchema<serializers.UnrecognizedValueMacroExpr.Raw, Vital.UnrecognizedValueMacroExpr>;
8
+ export declare namespace UnrecognizedValueMacroExpr {
9
+ interface Raw {
10
+ value_macro: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
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.UnrecognizedValueMacroExpr = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.UnrecognizedValueMacroExpr = core.serialization.object({
32
+ valueMacro: core.serialization.property("value_macro", core.serialization.string()),
33
+ });
@@ -273,7 +273,9 @@ export * from "./SingleUserHistoricalPullResponse";
273
273
  export * from "./SingleUserResourceResponse";
274
274
  export * from "./SleepColumnExprSleep";
275
275
  export * from "./SleepColumnExpr";
276
+ export * from "./SleepScoreValueMacroExpr";
276
277
  export * from "./SleepSummaryState";
278
+ export * from "./SleepType";
277
279
  export * from "./SleepV2InDb";
278
280
  export * from "./Source";
279
281
  export * from "./SourceAuthType";
@@ -285,6 +287,7 @@ export * from "./TimeseriesMetricPoint";
285
287
  export * from "./TimeseriesResource";
286
288
  export * from "./TraceElements";
287
289
  export * from "./UsAddress";
290
+ export * from "./UnrecognizedValueMacroExpr";
288
291
  export * from "./UserHistoricalPullsResponse";
289
292
  export * from "./UserInfo";
290
293
  export * from "./UserRefreshErrorResponse";
@@ -289,7 +289,9 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
289
289
  __exportStar(require("./SingleUserResourceResponse"), exports);
290
290
  __exportStar(require("./SleepColumnExprSleep"), exports);
291
291
  __exportStar(require("./SleepColumnExpr"), exports);
292
+ __exportStar(require("./SleepScoreValueMacroExpr"), exports);
292
293
  __exportStar(require("./SleepSummaryState"), exports);
294
+ __exportStar(require("./SleepType"), exports);
293
295
  __exportStar(require("./SleepV2InDb"), exports);
294
296
  __exportStar(require("./Source"), exports);
295
297
  __exportStar(require("./SourceAuthType"), exports);
@@ -301,6 +303,7 @@ __exportStar(require("./TimeseriesMetricPoint"), exports);
301
303
  __exportStar(require("./TimeseriesResource"), exports);
302
304
  __exportStar(require("./TraceElements"), exports);
303
305
  __exportStar(require("./UsAddress"), exports);
306
+ __exportStar(require("./UnrecognizedValueMacroExpr"), exports);
304
307
  __exportStar(require("./UserHistoricalPullsResponse"), exports);
305
308
  __exportStar(require("./UserInfo"), exports);
306
309
  __exportStar(require("./UserRefreshErrorResponse"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.101";
1
+ export declare const SDK_VERSION = "3.1.102";
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.101";
4
+ exports.SDK_VERSION = "3.1.102";