@tryvital/vital-node 3.1.138 → 3.1.139

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 (162) hide show
  1. package/api/resources/activity/client/Client.d.ts +2 -2
  2. package/api/resources/activity/client/Client.js +4 -4
  3. package/api/resources/aggregate/client/Client.d.ts +3 -3
  4. package/api/resources/aggregate/client/Client.js +11 -6
  5. package/api/resources/aggregate/client/requests/{Query.d.ts → QueryBatch.d.ts} +4 -4
  6. package/api/resources/aggregate/client/requests/index.d.ts +1 -1
  7. package/{dist/api/resources/aggregate/types/QueryTimeframe.d.ts → api/resources/aggregate/types/QueryBatchTimeframe.d.ts} +1 -1
  8. package/api/resources/aggregate/types/index.d.ts +1 -1
  9. package/api/resources/aggregate/types/index.js +1 -1
  10. package/api/resources/body/client/Client.d.ts +2 -2
  11. package/api/resources/body/client/Client.js +4 -4
  12. package/api/resources/devices/client/Client.js +1 -1
  13. package/api/resources/insurance/client/Client.js +2 -2
  14. package/api/resources/introspect/client/Client.js +2 -2
  15. package/api/resources/labTests/client/Client.js +34 -34
  16. package/api/resources/link/client/Client.js +14 -14
  17. package/api/resources/meal/client/Client.js +1 -1
  18. package/api/resources/menstrualCycle/client/Client.js +1 -1
  19. package/api/resources/profile/client/Client.d.ts +2 -2
  20. package/api/resources/profile/client/Client.js +4 -4
  21. package/api/resources/providers/client/Client.js +1 -1
  22. package/api/resources/sleep/client/Client.d.ts +3 -3
  23. package/api/resources/sleep/client/Client.js +7 -7
  24. package/api/resources/sleepCycle/client/Client.d.ts +1 -1
  25. package/api/resources/sleepCycle/client/Client.js +2 -2
  26. package/api/resources/team/client/Client.js +7 -7
  27. package/api/resources/testkit/client/Client.js +2 -2
  28. package/api/resources/user/client/Client.js +16 -16
  29. package/api/resources/vitals/client/Client.js +58 -58
  30. package/api/resources/workouts/client/Client.d.ts +2 -2
  31. package/api/resources/workouts/client/Client.js +5 -5
  32. package/api/types/{QueryInstructionGroupByItem.d.ts → AggregationResponse.d.ts} +3 -1
  33. package/api/types/AggregationResult.d.ts +7 -0
  34. package/api/types/ClientFacingLabLocation.d.ts +1 -0
  35. package/api/types/ClientFacingResource.d.ts +2 -1
  36. package/api/types/ClientFacingResource.js +1 -0
  37. package/api/types/IndexColumnExprIndex.d.ts +2 -1
  38. package/api/types/IndexColumnExprIndex.js +1 -0
  39. package/api/types/{QueryInstruction.d.ts → Query.d.ts} +3 -3
  40. package/{dist/api/types/QueryInstructionGroupByItem.d.ts → api/types/QueryGroupByItem.d.ts} +1 -1
  41. package/api/types/QuerySelectItem.d.ts +5 -0
  42. package/api/types/index.d.ts +5 -3
  43. package/api/types/index.js +5 -3
  44. package/dist/api/resources/activity/client/Client.d.ts +2 -2
  45. package/dist/api/resources/activity/client/Client.js +4 -4
  46. package/dist/api/resources/aggregate/client/Client.d.ts +3 -3
  47. package/dist/api/resources/aggregate/client/Client.js +11 -6
  48. package/dist/api/resources/aggregate/client/requests/{Query.d.ts → QueryBatch.d.ts} +4 -4
  49. package/dist/api/resources/aggregate/client/requests/index.d.ts +1 -1
  50. package/{api/resources/aggregate/types/QueryTimeframe.d.ts → dist/api/resources/aggregate/types/QueryBatchTimeframe.d.ts} +1 -1
  51. package/dist/api/resources/aggregate/types/index.d.ts +1 -1
  52. package/dist/api/resources/aggregate/types/index.js +1 -1
  53. package/dist/api/resources/body/client/Client.d.ts +2 -2
  54. package/dist/api/resources/body/client/Client.js +4 -4
  55. package/dist/api/resources/devices/client/Client.js +1 -1
  56. package/dist/api/resources/insurance/client/Client.js +2 -2
  57. package/dist/api/resources/introspect/client/Client.js +2 -2
  58. package/dist/api/resources/labTests/client/Client.js +34 -34
  59. package/dist/api/resources/link/client/Client.js +14 -14
  60. package/dist/api/resources/meal/client/Client.js +1 -1
  61. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  62. package/dist/api/resources/profile/client/Client.d.ts +2 -2
  63. package/dist/api/resources/profile/client/Client.js +4 -4
  64. package/dist/api/resources/providers/client/Client.js +1 -1
  65. package/dist/api/resources/sleep/client/Client.d.ts +3 -3
  66. package/dist/api/resources/sleep/client/Client.js +7 -7
  67. package/dist/api/resources/sleepCycle/client/Client.d.ts +1 -1
  68. package/dist/api/resources/sleepCycle/client/Client.js +2 -2
  69. package/dist/api/resources/team/client/Client.js +7 -7
  70. package/dist/api/resources/testkit/client/Client.js +2 -2
  71. package/dist/api/resources/user/client/Client.js +16 -16
  72. package/dist/api/resources/vitals/client/Client.js +58 -58
  73. package/dist/api/resources/workouts/client/Client.d.ts +2 -2
  74. package/dist/api/resources/workouts/client/Client.js +5 -5
  75. package/dist/api/types/AggregationResponse.d.ts +7 -0
  76. package/dist/api/types/AggregationResult.d.ts +7 -0
  77. package/dist/api/types/AggregationResult.js +5 -0
  78. package/dist/api/types/ClientFacingLabLocation.d.ts +1 -0
  79. package/dist/api/types/ClientFacingResource.d.ts +2 -1
  80. package/dist/api/types/ClientFacingResource.js +1 -0
  81. package/dist/api/types/IndexColumnExprIndex.d.ts +2 -1
  82. package/dist/api/types/IndexColumnExprIndex.js +1 -0
  83. package/dist/api/types/{QueryInstruction.d.ts → Query.d.ts} +3 -3
  84. package/dist/api/types/Query.js +5 -0
  85. package/dist/api/types/QueryGroupByItem.d.ts +5 -0
  86. package/dist/api/types/QueryGroupByItem.js +5 -0
  87. package/dist/api/types/QuerySelectItem.d.ts +5 -0
  88. package/dist/api/types/QuerySelectItem.js +5 -0
  89. package/dist/api/types/index.d.ts +5 -3
  90. package/dist/api/types/index.js +5 -3
  91. package/dist/serialization/resources/aggregate/client/requests/{Query.d.ts → QueryBatch.d.ts} +6 -6
  92. package/dist/serialization/resources/aggregate/client/requests/{Query.js → QueryBatch.js} +6 -6
  93. package/dist/serialization/resources/aggregate/client/requests/index.d.ts +1 -1
  94. package/dist/serialization/resources/aggregate/client/requests/index.js +3 -3
  95. package/{serialization/resources/aggregate/types/QueryTimeframe.d.ts → dist/serialization/resources/aggregate/types/QueryBatchTimeframe.d.ts} +2 -2
  96. package/{serialization/resources/aggregate/types/QueryTimeframe.js → dist/serialization/resources/aggregate/types/QueryBatchTimeframe.js} +2 -2
  97. package/dist/serialization/resources/aggregate/types/index.d.ts +1 -1
  98. package/dist/serialization/resources/aggregate/types/index.js +1 -1
  99. package/dist/serialization/types/AggregationResponse.d.ts +13 -0
  100. package/dist/serialization/types/AggregationResponse.js +34 -0
  101. package/dist/serialization/types/AggregationResult.d.ts +12 -0
  102. package/dist/serialization/types/AggregationResult.js +33 -0
  103. package/dist/serialization/types/ClientFacingLabLocation.d.ts +2 -0
  104. package/dist/serialization/types/ClientFacingLabLocation.js +2 -0
  105. package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
  106. package/dist/serialization/types/ClientFacingResource.js +1 -0
  107. package/dist/serialization/types/IndexColumnExprIndex.d.ts +1 -1
  108. package/dist/serialization/types/IndexColumnExprIndex.js +1 -1
  109. package/dist/serialization/types/Query.d.ts +16 -0
  110. package/dist/serialization/types/{QueryInstruction.js → Query.js} +6 -6
  111. package/{serialization/types/QueryInstructionGroupByItem.d.ts → dist/serialization/types/QueryGroupByItem.d.ts} +2 -2
  112. package/{serialization/types/QueryInstructionGroupByItem.js → dist/serialization/types/QueryGroupByItem.js} +2 -2
  113. package/dist/serialization/types/{QueryInstructionSelectItem.d.ts → QuerySelectItem.d.ts} +2 -2
  114. package/dist/serialization/types/{QueryInstructionSelectItem.js → QuerySelectItem.js} +2 -2
  115. package/dist/serialization/types/index.d.ts +5 -3
  116. package/dist/serialization/types/index.js +5 -3
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/package.json +1 -1
  120. package/reference.md +15 -15
  121. package/serialization/resources/aggregate/client/requests/{Query.d.ts → QueryBatch.d.ts} +6 -6
  122. package/serialization/resources/aggregate/client/requests/{Query.js → QueryBatch.js} +6 -6
  123. package/serialization/resources/aggregate/client/requests/index.d.ts +1 -1
  124. package/serialization/resources/aggregate/client/requests/index.js +3 -3
  125. package/{dist/serialization/resources/aggregate/types/QueryTimeframe.d.ts → serialization/resources/aggregate/types/QueryBatchTimeframe.d.ts} +2 -2
  126. package/{dist/serialization/resources/aggregate/types/QueryTimeframe.js → serialization/resources/aggregate/types/QueryBatchTimeframe.js} +2 -2
  127. package/serialization/resources/aggregate/types/index.d.ts +1 -1
  128. package/serialization/resources/aggregate/types/index.js +1 -1
  129. package/serialization/types/AggregationResponse.d.ts +13 -0
  130. package/serialization/types/AggregationResponse.js +34 -0
  131. package/serialization/types/AggregationResult.d.ts +12 -0
  132. package/serialization/types/AggregationResult.js +33 -0
  133. package/serialization/types/ClientFacingLabLocation.d.ts +2 -0
  134. package/serialization/types/ClientFacingLabLocation.js +2 -0
  135. package/serialization/types/ClientFacingResource.d.ts +1 -1
  136. package/serialization/types/ClientFacingResource.js +1 -0
  137. package/serialization/types/IndexColumnExprIndex.d.ts +1 -1
  138. package/serialization/types/IndexColumnExprIndex.js +1 -1
  139. package/serialization/types/Query.d.ts +16 -0
  140. package/serialization/types/{QueryInstruction.js → Query.js} +6 -6
  141. package/{dist/serialization/types/QueryInstructionGroupByItem.d.ts → serialization/types/QueryGroupByItem.d.ts} +2 -2
  142. package/{dist/serialization/types/QueryInstructionGroupByItem.js → serialization/types/QueryGroupByItem.js} +2 -2
  143. package/serialization/types/{QueryInstructionSelectItem.d.ts → QuerySelectItem.d.ts} +2 -2
  144. package/serialization/types/{QueryInstructionSelectItem.js → QuerySelectItem.js} +2 -2
  145. package/serialization/types/index.d.ts +5 -3
  146. package/serialization/types/index.js +5 -3
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
  149. package/api/types/QueryInstructionSelectItem.d.ts +0 -5
  150. package/dist/api/types/QueryInstructionSelectItem.d.ts +0 -5
  151. package/dist/serialization/types/QueryInstruction.d.ts +0 -16
  152. package/serialization/types/QueryInstruction.d.ts +0 -16
  153. /package/api/resources/aggregate/client/requests/{Query.js → QueryBatch.js} +0 -0
  154. /package/api/resources/aggregate/types/{QueryTimeframe.js → QueryBatchTimeframe.js} +0 -0
  155. /package/api/types/{QueryInstruction.js → AggregationResponse.js} +0 -0
  156. /package/api/types/{QueryInstructionGroupByItem.js → AggregationResult.js} +0 -0
  157. /package/{dist/api/resources/aggregate/client/requests → api/types}/Query.js +0 -0
  158. /package/api/types/{QueryInstructionSelectItem.js → QueryGroupByItem.js} +0 -0
  159. /package/{dist/api/resources/aggregate/types/QueryTimeframe.js → api/types/QuerySelectItem.js} +0 -0
  160. /package/dist/api/{types/QueryInstruction.js → resources/aggregate/client/requests/QueryBatch.js} +0 -0
  161. /package/dist/api/{types/QueryInstructionGroupByItem.js → resources/aggregate/types/QueryBatchTimeframe.js} +0 -0
  162. /package/dist/api/types/{QueryInstructionSelectItem.js → AggregationResponse.js} +0 -0
@@ -22,6 +22,8 @@ __exportStar(require("./Address"), exports);
22
22
  __exportStar(require("./AggregateExprArg"), exports);
23
23
  __exportStar(require("./AggregateExprFunc"), exports);
24
24
  __exportStar(require("./AggregateExpr"), exports);
25
+ __exportStar(require("./AggregationResponse"), exports);
26
+ __exportStar(require("./AggregationResult"), exports);
25
27
  __exportStar(require("./AllowedRadius"), exports);
26
28
  __exportStar(require("./Answer"), exports);
27
29
  __exportStar(require("./AoE"), exports);
@@ -272,12 +274,12 @@ __exportStar(require("./ProviderLinkResponse"), exports);
272
274
  __exportStar(require("./ProviderMfaRequestMethod"), exports);
273
275
  __exportStar(require("./ProviderMfaRequest"), exports);
274
276
  __exportStar(require("./Providers"), exports);
277
+ __exportStar(require("./QuerySelectItem"), exports);
278
+ __exportStar(require("./QueryGroupByItem"), exports);
279
+ __exportStar(require("./Query"), exports);
275
280
  __exportStar(require("./QueryConfigWeekStartsOn"), exports);
276
281
  __exportStar(require("./QueryConfigProviderPriorityOverridesItem"), exports);
277
282
  __exportStar(require("./QueryConfig"), exports);
278
- __exportStar(require("./QueryInstructionSelectItem"), exports);
279
- __exportStar(require("./QueryInstructionGroupByItem"), exports);
280
- __exportStar(require("./QueryInstruction"), exports);
281
283
  __exportStar(require("./Question"), exports);
282
284
  __exportStar(require("./QuestionType"), exports);
283
285
  __exportStar(require("./RawActivity"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.138";
1
+ export declare const SDK_VERSION = "3.1.139";
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.138";
4
+ exports.SDK_VERSION = "3.1.139";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.138",
3
+ "version": "3.1.139",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -945,7 +945,7 @@ await client.link.connectDemoProvider({
945
945
  <dl>
946
946
  <dd>
947
947
 
948
- Get Daily sleep cycle for user_id
948
+ Get sleep cycle for user_id
949
949
 
950
950
  </dd>
951
951
  </dl>
@@ -1020,7 +1020,7 @@ await client.sleepCycle.get("user_id", {
1020
1020
  <dl>
1021
1021
  <dd>
1022
1022
 
1023
- Get Daily profile for user_id
1023
+ Get profile for user_id
1024
1024
 
1025
1025
  </dd>
1026
1026
  </dl>
@@ -1091,7 +1091,7 @@ await client.profile.get("user_id");
1091
1091
  <dl>
1092
1092
  <dd>
1093
1093
 
1094
- Get Daily profile for user_id
1094
+ Get raw profile for user_id
1095
1095
 
1096
1096
  </dd>
1097
1097
  </dl>
@@ -1237,7 +1237,7 @@ await client.devices.getRaw("user_id");
1237
1237
  <dl>
1238
1238
  <dd>
1239
1239
 
1240
- Get Daily Activity for user_id
1240
+ Get activity summary for user_id
1241
1241
 
1242
1242
  </dd>
1243
1243
  </dl>
@@ -1310,7 +1310,7 @@ await client.activity.get("user_id", {
1310
1310
  <dl>
1311
1311
  <dd>
1312
1312
 
1313
- Get Daily Activity for user_id
1313
+ Get raw activity summary for user_id
1314
1314
 
1315
1315
  </dd>
1316
1316
  </dl>
@@ -1385,7 +1385,7 @@ await client.activity.getRaw("user_id", {
1385
1385
  <dl>
1386
1386
  <dd>
1387
1387
 
1388
- Get Daily workout for user_id
1388
+ Get workout summary for user_id
1389
1389
 
1390
1390
  </dd>
1391
1391
  </dl>
@@ -1458,7 +1458,7 @@ await client.workouts.get("user_id", {
1458
1458
  <dl>
1459
1459
  <dd>
1460
1460
 
1461
- Get Daily workout for user_id
1461
+ Get raw workout summary for user_id
1462
1462
 
1463
1463
  </dd>
1464
1464
  </dl>
@@ -1581,7 +1581,7 @@ await client.workouts.getByWorkoutId("workout_id");
1581
1581
  <dl>
1582
1582
  <dd>
1583
1583
 
1584
- Get Daily sleep for user_id
1584
+ Get sleep summary for user_id
1585
1585
 
1586
1586
  </dd>
1587
1587
  </dl>
@@ -1654,7 +1654,7 @@ await client.sleep.get("user_id", {
1654
1654
  <dl>
1655
1655
  <dd>
1656
1656
 
1657
- Get Daily sleep stream for user_id
1657
+ Get sleep stream for user_id
1658
1658
 
1659
1659
  </dd>
1660
1660
  </dl>
@@ -1727,7 +1727,7 @@ await client.sleep.getStream("user_id", {
1727
1727
  <dl>
1728
1728
  <dd>
1729
1729
 
1730
- Get Daily sleep for user_id
1730
+ Get raw sleep summary for user_id
1731
1731
 
1732
1732
  </dd>
1733
1733
  </dl>
@@ -1865,7 +1865,7 @@ await client.sleep.getStreamBySleepId("sleep_id");
1865
1865
  <dl>
1866
1866
  <dd>
1867
1867
 
1868
- Get Daily Body data for user_id
1868
+ Get Body summary for user_id
1869
1869
 
1870
1870
  </dd>
1871
1871
  </dl>
@@ -1938,7 +1938,7 @@ await client.body.get("user_id", {
1938
1938
  <dl>
1939
1939
  <dd>
1940
1940
 
1941
- Get Daily Body data for user_id
1941
+ Get raw Body summary for user_id
1942
1942
 
1943
1943
  </dd>
1944
1944
  </dl>
@@ -9373,7 +9373,7 @@ await client.insurance.searchDiagnosis({
9373
9373
 
9374
9374
  ## Aggregate
9375
9375
 
9376
- <details><summary><code>client.aggregate.<a href="/src/api/resources/aggregate/client/Client.ts">queryOne</a>(userId, { ...params }) -> unknown</code></summary>
9376
+ <details><summary><code>client.aggregate.<a href="/src/api/resources/aggregate/client/Client.ts">queryOne</a>(userId, { ...params }) -> Vital.AggregationResponse</code></summary>
9377
9377
  <dl>
9378
9378
  <dd>
9379
9379
 
@@ -9394,7 +9394,7 @@ await client.aggregate.queryOne("user_id", {
9394
9394
  unit: "minute",
9395
9395
  },
9396
9396
  },
9397
- instructions: [
9397
+ queries: [
9398
9398
  {
9399
9399
  select: [
9400
9400
  {
@@ -9430,7 +9430,7 @@ await client.aggregate.queryOne("user_id", {
9430
9430
  <dl>
9431
9431
  <dd>
9432
9432
 
9433
- **request:** `Vital.Query`
9433
+ **request:** `Vital.QueryBatch`
9434
9434
 
9435
9435
  </dd>
9436
9436
  </dl>
@@ -4,14 +4,14 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { QueryTimeframe } from "../../types/QueryTimeframe";
8
- import { QueryInstruction } from "../../../../types/QueryInstruction";
7
+ import { QueryBatchTimeframe } from "../../types/QueryBatchTimeframe";
8
+ import { Query } from "../../../../types/Query";
9
9
  import { QueryConfig } from "../../../../types/QueryConfig";
10
- export declare const Query: core.serialization.Schema<serializers.Query.Raw, Vital.Query>;
11
- export declare namespace Query {
10
+ export declare const QueryBatch: core.serialization.Schema<serializers.QueryBatch.Raw, Vital.QueryBatch>;
11
+ export declare namespace QueryBatch {
12
12
  interface Raw {
13
- timeframe: QueryTimeframe.Raw;
14
- instructions: QueryInstruction.Raw[];
13
+ timeframe: QueryBatchTimeframe.Raw;
14
+ queries: Query.Raw[];
15
15
  config?: QueryConfig.Raw | null;
16
16
  }
17
17
  }
@@ -26,13 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Query = void 0;
29
+ exports.QueryBatch = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const QueryTimeframe_1 = require("../../types/QueryTimeframe");
32
- const QueryInstruction_1 = require("../../../../types/QueryInstruction");
31
+ const QueryBatchTimeframe_1 = require("../../types/QueryBatchTimeframe");
32
+ const Query_1 = require("../../../../types/Query");
33
33
  const QueryConfig_1 = require("../../../../types/QueryConfig");
34
- exports.Query = core.serialization.object({
35
- timeframe: QueryTimeframe_1.QueryTimeframe,
36
- instructions: core.serialization.list(QueryInstruction_1.QueryInstruction),
34
+ exports.QueryBatch = core.serialization.object({
35
+ timeframe: QueryBatchTimeframe_1.QueryBatchTimeframe,
36
+ queries: core.serialization.list(Query_1.Query),
37
37
  config: QueryConfig_1.QueryConfig.optional(),
38
38
  });
@@ -1 +1 @@
1
- export { Query } from "./Query";
1
+ export { QueryBatch } from "./QueryBatch";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Query = void 0;
4
- var Query_1 = require("./Query");
5
- Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return Query_1.Query; } });
3
+ exports.QueryBatch = void 0;
4
+ var QueryBatch_1 = require("./QueryBatch");
5
+ Object.defineProperty(exports, "QueryBatch", { enumerable: true, get: function () { return QueryBatch_1.QueryBatch; } });
@@ -6,7 +6,7 @@ import * as Vital from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { RelativeTimeframe } from "../../../types/RelativeTimeframe";
8
8
  import { Placeholder } from "../../../types/Placeholder";
9
- export declare const QueryTimeframe: core.serialization.Schema<serializers.QueryTimeframe.Raw, Vital.QueryTimeframe>;
10
- export declare namespace QueryTimeframe {
9
+ export declare const QueryBatchTimeframe: core.serialization.Schema<serializers.QueryBatchTimeframe.Raw, Vital.QueryBatchTimeframe>;
10
+ export declare namespace QueryBatchTimeframe {
11
11
  type Raw = RelativeTimeframe.Raw | Placeholder.Raw;
12
12
  }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.QueryTimeframe = void 0;
29
+ exports.QueryBatchTimeframe = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const RelativeTimeframe_1 = require("../../../types/RelativeTimeframe");
32
32
  const Placeholder_1 = require("../../../types/Placeholder");
33
- exports.QueryTimeframe = core.serialization.undiscriminatedUnion([RelativeTimeframe_1.RelativeTimeframe, Placeholder_1.Placeholder]);
33
+ exports.QueryBatchTimeframe = core.serialization.undiscriminatedUnion([RelativeTimeframe_1.RelativeTimeframe, Placeholder_1.Placeholder]);
@@ -1 +1 @@
1
- export * from "./QueryTimeframe";
1
+ export * from "./QueryBatchTimeframe";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./QueryTimeframe"), exports);
17
+ __exportStar(require("./QueryBatchTimeframe"), exports);
@@ -0,0 +1,13 @@
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 { AggregationResult } from "./AggregationResult";
8
+ export declare const AggregationResponse: core.serialization.ObjectSchema<serializers.AggregationResponse.Raw, Vital.AggregationResponse>;
9
+ export declare namespace AggregationResponse {
10
+ interface Raw {
11
+ results: AggregationResult.Raw[];
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.AggregationResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const AggregationResult_1 = require("./AggregationResult");
32
+ exports.AggregationResponse = core.serialization.object({
33
+ results: core.serialization.list(AggregationResult_1.AggregationResult),
34
+ });
@@ -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 AggregationResult: core.serialization.ObjectSchema<serializers.AggregationResult.Raw, Vital.AggregationResult>;
8
+ export declare namespace AggregationResult {
9
+ interface Raw {
10
+ table: Record<string, unknown[]>;
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.AggregationResult = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.AggregationResult = core.serialization.object({
32
+ table: core.serialization.record(core.serialization.string(), core.serialization.list(core.serialization.unknown())),
33
+ });
@@ -5,11 +5,13 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { LabLocationMetadata } from "./LabLocationMetadata";
8
+ import { Billing } from "./Billing";
8
9
  export declare const ClientFacingLabLocation: core.serialization.ObjectSchema<serializers.ClientFacingLabLocation.Raw, Vital.ClientFacingLabLocation>;
9
10
  export declare namespace ClientFacingLabLocation {
10
11
  interface Raw {
11
12
  metadata: LabLocationMetadata.Raw;
12
13
  distance: number;
13
14
  site_code: string;
15
+ supported_bill_types: Billing.Raw[];
14
16
  }
15
17
  }
@@ -29,8 +29,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingLabLocation = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const LabLocationMetadata_1 = require("./LabLocationMetadata");
32
+ const Billing_1 = require("./Billing");
32
33
  exports.ClientFacingLabLocation = core.serialization.object({
33
34
  metadata: LabLocationMetadata_1.LabLocationMetadata,
34
35
  distance: core.serialization.number(),
35
36
  siteCode: core.serialization.property("site_code", core.serialization.string()),
37
+ supportedBillTypes: core.serialization.property("supported_bill_types", core.serialization.list(Billing_1.Billing)),
36
38
  });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingResource: core.serialization.Schema<serializers.ClientFacingResource.Raw, Vital.ClientFacingResource>;
8
8
  export declare namespace ClientFacingResource {
9
- type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
9
+ type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
10
10
  }
@@ -67,6 +67,7 @@ exports.ClientFacingResource = core.serialization.enum_([
67
67
  "stress_level",
68
68
  "menstrual_cycle",
69
69
  "sleep_cycle",
70
+ "electrocardiogram",
70
71
  "electrocardiogram_voltage",
71
72
  "afib_burden",
72
73
  "heart_rate_alert",
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const IndexColumnExprIndex: core.serialization.Schema<serializers.IndexColumnExprIndex.Raw, Vital.IndexColumnExprIndex>;
8
8
  export declare namespace IndexColumnExprIndex {
9
- type Raw = "sleep" | "activity" | "workout" | "body";
9
+ type Raw = "sleep" | "activity" | "workout" | "body" | "meal";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.IndexColumnExprIndex = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.IndexColumnExprIndex = core.serialization.enum_(["sleep", "activity", "workout", "body"]);
31
+ exports.IndexColumnExprIndex = core.serialization.enum_(["sleep", "activity", "workout", "body", "meal"]);
@@ -0,0 +1,16 @@
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 { QuerySelectItem } from "./QuerySelectItem";
8
+ import { QueryGroupByItem } from "./QueryGroupByItem";
9
+ export declare const Query: core.serialization.ObjectSchema<serializers.Query.Raw, Vital.Query>;
10
+ export declare namespace Query {
11
+ interface Raw {
12
+ select: QuerySelectItem.Raw[];
13
+ group_by?: QueryGroupByItem.Raw[] | null;
14
+ split_by_source?: boolean | null;
15
+ }
16
+ }
@@ -26,12 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.QueryInstruction = void 0;
29
+ exports.Query = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const QueryInstructionSelectItem_1 = require("./QueryInstructionSelectItem");
32
- const QueryInstructionGroupByItem_1 = require("./QueryInstructionGroupByItem");
33
- exports.QueryInstruction = core.serialization.object({
34
- select: core.serialization.list(QueryInstructionSelectItem_1.QueryInstructionSelectItem),
35
- groupBy: core.serialization.property("group_by", core.serialization.list(QueryInstructionGroupByItem_1.QueryInstructionGroupByItem).optional()),
31
+ const QuerySelectItem_1 = require("./QuerySelectItem");
32
+ const QueryGroupByItem_1 = require("./QueryGroupByItem");
33
+ exports.Query = core.serialization.object({
34
+ select: core.serialization.list(QuerySelectItem_1.QuerySelectItem),
35
+ groupBy: core.serialization.property("group_by", core.serialization.list(QueryGroupByItem_1.QueryGroupByItem).optional()),
36
36
  splitBySource: core.serialization.property("split_by_source", core.serialization.boolean().optional()),
37
37
  });
@@ -6,7 +6,7 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { DateTruncExpr } from "./DateTruncExpr";
8
8
  import { DatePartExpr } from "./DatePartExpr";
9
- export declare const QueryInstructionGroupByItem: core.serialization.Schema<serializers.QueryInstructionGroupByItem.Raw, Vital.QueryInstructionGroupByItem>;
10
- export declare namespace QueryInstructionGroupByItem {
9
+ export declare const QueryGroupByItem: core.serialization.Schema<serializers.QueryGroupByItem.Raw, Vital.QueryGroupByItem>;
10
+ export declare namespace QueryGroupByItem {
11
11
  type Raw = DateTruncExpr.Raw | DatePartExpr.Raw;
12
12
  }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.QueryInstructionGroupByItem = void 0;
29
+ exports.QueryGroupByItem = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const DateTruncExpr_1 = require("./DateTruncExpr");
32
32
  const DatePartExpr_1 = require("./DatePartExpr");
33
- exports.QueryInstructionGroupByItem = core.serialization.undiscriminatedUnion([DateTruncExpr_1.DateTruncExpr, DatePartExpr_1.DatePartExpr]);
33
+ exports.QueryGroupByItem = core.serialization.undiscriminatedUnion([DateTruncExpr_1.DateTruncExpr, DatePartExpr_1.DatePartExpr]);
@@ -14,7 +14,7 @@ import { GroupKeyColumnExpr } from "./GroupKeyColumnExpr";
14
14
  import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
15
15
  import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
16
16
  import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
17
- export declare const QueryInstructionSelectItem: core.serialization.Schema<serializers.QueryInstructionSelectItem.Raw, Vital.QueryInstructionSelectItem>;
18
- export declare namespace QueryInstructionSelectItem {
17
+ export declare const QuerySelectItem: core.serialization.Schema<serializers.QuerySelectItem.Raw, Vital.QuerySelectItem>;
18
+ export declare namespace QuerySelectItem {
19
19
  type Raw = AggregateExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | IndexColumnExpr.Raw | GroupKeyColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw;
20
20
  }
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.QueryInstructionSelectItem = void 0;
29
+ exports.QuerySelectItem = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const AggregateExpr_1 = require("./AggregateExpr");
32
32
  const SleepColumnExpr_1 = require("./SleepColumnExpr");
@@ -38,7 +38,7 @@ const GroupKeyColumnExpr_1 = require("./GroupKeyColumnExpr");
38
38
  const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
39
39
  const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
40
40
  const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
41
- exports.QueryInstructionSelectItem = core.serialization.undiscriminatedUnion([
41
+ exports.QuerySelectItem = core.serialization.undiscriminatedUnion([
42
42
  AggregateExpr_1.AggregateExpr,
43
43
  SleepColumnExpr_1.SleepColumnExpr,
44
44
  ActivityColumnExpr_1.ActivityColumnExpr,
@@ -6,6 +6,8 @@ export * from "./Address";
6
6
  export * from "./AggregateExprArg";
7
7
  export * from "./AggregateExprFunc";
8
8
  export * from "./AggregateExpr";
9
+ export * from "./AggregationResponse";
10
+ export * from "./AggregationResult";
9
11
  export * from "./AllowedRadius";
10
12
  export * from "./Answer";
11
13
  export * from "./AoE";
@@ -256,12 +258,12 @@ export * from "./ProviderLinkResponse";
256
258
  export * from "./ProviderMfaRequestMethod";
257
259
  export * from "./ProviderMfaRequest";
258
260
  export * from "./Providers";
261
+ export * from "./QuerySelectItem";
262
+ export * from "./QueryGroupByItem";
263
+ export * from "./Query";
259
264
  export * from "./QueryConfigWeekStartsOn";
260
265
  export * from "./QueryConfigProviderPriorityOverridesItem";
261
266
  export * from "./QueryConfig";
262
- export * from "./QueryInstructionSelectItem";
263
- export * from "./QueryInstructionGroupByItem";
264
- export * from "./QueryInstruction";
265
267
  export * from "./Question";
266
268
  export * from "./QuestionType";
267
269
  export * from "./RawActivity";
@@ -22,6 +22,8 @@ __exportStar(require("./Address"), exports);
22
22
  __exportStar(require("./AggregateExprArg"), exports);
23
23
  __exportStar(require("./AggregateExprFunc"), exports);
24
24
  __exportStar(require("./AggregateExpr"), exports);
25
+ __exportStar(require("./AggregationResponse"), exports);
26
+ __exportStar(require("./AggregationResult"), exports);
25
27
  __exportStar(require("./AllowedRadius"), exports);
26
28
  __exportStar(require("./Answer"), exports);
27
29
  __exportStar(require("./AoE"), exports);
@@ -272,12 +274,12 @@ __exportStar(require("./ProviderLinkResponse"), exports);
272
274
  __exportStar(require("./ProviderMfaRequestMethod"), exports);
273
275
  __exportStar(require("./ProviderMfaRequest"), exports);
274
276
  __exportStar(require("./Providers"), exports);
277
+ __exportStar(require("./QuerySelectItem"), exports);
278
+ __exportStar(require("./QueryGroupByItem"), exports);
279
+ __exportStar(require("./Query"), exports);
275
280
  __exportStar(require("./QueryConfigWeekStartsOn"), exports);
276
281
  __exportStar(require("./QueryConfigProviderPriorityOverridesItem"), exports);
277
282
  __exportStar(require("./QueryConfig"), exports);
278
- __exportStar(require("./QueryInstructionSelectItem"), exports);
279
- __exportStar(require("./QueryInstructionGroupByItem"), exports);
280
- __exportStar(require("./QueryInstruction"), exports);
281
283
  __exportStar(require("./Question"), exports);
282
284
  __exportStar(require("./QuestionType"), exports);
283
285
  __exportStar(require("./RawActivity"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.138";
1
+ export declare const SDK_VERSION = "3.1.139";
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.138";
4
+ exports.SDK_VERSION = "3.1.139";
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
@@ -1,16 +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 { QueryInstructionSelectItem } from "./QueryInstructionSelectItem";
8
- import { QueryInstructionGroupByItem } from "./QueryInstructionGroupByItem";
9
- export declare const QueryInstruction: core.serialization.ObjectSchema<serializers.QueryInstruction.Raw, Vital.QueryInstruction>;
10
- export declare namespace QueryInstruction {
11
- interface Raw {
12
- select: QueryInstructionSelectItem.Raw[];
13
- group_by?: QueryInstructionGroupByItem.Raw[] | null;
14
- split_by_source?: boolean | null;
15
- }
16
- }