@tryvital/vital-node 3.1.72 → 3.1.73

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 (255) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.d.ts +13 -8
  3. package/api/resources/aggregate/client/Client.js +14 -9
  4. package/api/resources/aggregate/client/requests/Query.d.ts +13 -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 +27 -27
  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/{ActivitySelector.d.ts → ActivityColumnExpr.d.ts} +2 -2
  22. package/{dist/api/types/ActivitySelectorActivity.d.ts → api/types/ActivityColumnExprActivity.d.ts} +2 -2
  23. package/{dist/api/types/ActivitySelectorActivity.js → api/types/ActivityColumnExprActivity.js} +2 -2
  24. package/api/types/AggregateExpr.d.ts +8 -0
  25. package/api/types/AggregateExprArg.d.ts +5 -0
  26. package/api/types/{ReducerFunction.d.ts → AggregateExprFunc.d.ts} +2 -2
  27. package/{dist/api/types/ReducerFunction.js → api/types/AggregateExprFunc.js} +2 -2
  28. package/api/types/DatePartExpr.d.ts +8 -0
  29. package/api/types/DatePartExprArg.d.ts +5 -0
  30. package/api/types/DatePartExprDatePart.d.ts +15 -0
  31. package/{dist/api/types/SwizzlingBinGranularity.js → api/types/DatePartExprDatePart.js} +6 -2
  32. package/api/types/DateTruncExpr.d.ts +8 -0
  33. package/api/types/DateTruncExprArg.d.ts +5 -0
  34. package/api/types/GroupKeyColumnExpr.d.ts +7 -0
  35. package/api/types/GroupKeyColumnExprGroupKey.d.ts +4 -0
  36. package/{dist/api/types/Reducer.d.ts → api/types/IndexColumnExpr.d.ts} +2 -2
  37. package/api/types/IndexColumnExprIndex.d.ts +8 -0
  38. package/api/types/IndexColumnExprIndex.js +10 -0
  39. package/api/types/LabTestSampleType.d.ts +2 -1
  40. package/api/types/LabTestSampleType.js +1 -0
  41. package/api/types/Labs.d.ts +2 -1
  42. package/api/types/Labs.js +1 -0
  43. package/api/types/QueryInstruction.d.ts +2 -4
  44. package/api/types/{QueryInstructionSelect.d.ts → QueryInstructionGroupByItem.d.ts} +1 -1
  45. package/api/types/QueryInstructionSelectItem.d.ts +5 -0
  46. package/api/types/Question.d.ts +1 -0
  47. package/api/types/{SleepSelector.d.ts → SleepColumnExpr.d.ts} +2 -2
  48. package/api/types/SleepColumnExpr.js +5 -0
  49. package/api/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  50. package/{dist/api/types/SleepSelectorSleep.js → api/types/SleepColumnExprSleep.js} +2 -2
  51. package/api/types/TimeseriesMetricPoint.d.ts +1 -0
  52. package/api/types/index.d.ts +18 -10
  53. package/api/types/index.js +18 -10
  54. package/dist/api/resources/activity/client/Client.js +2 -2
  55. package/dist/api/resources/aggregate/client/Client.d.ts +13 -8
  56. package/dist/api/resources/aggregate/client/Client.js +14 -9
  57. package/dist/api/resources/aggregate/client/requests/Query.d.ts +13 -8
  58. package/dist/api/resources/body/client/Client.js +2 -2
  59. package/dist/api/resources/devices/client/Client.js +1 -1
  60. package/dist/api/resources/insurance/client/Client.js +2 -2
  61. package/dist/api/resources/introspect/client/Client.js +2 -2
  62. package/dist/api/resources/labTests/client/Client.js +27 -27
  63. package/dist/api/resources/link/client/Client.js +14 -14
  64. package/dist/api/resources/meal/client/Client.js +1 -1
  65. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  66. package/dist/api/resources/profile/client/Client.js +2 -2
  67. package/dist/api/resources/providers/client/Client.js +1 -1
  68. package/dist/api/resources/sleep/client/Client.js +4 -4
  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 +56 -56
  73. package/dist/api/resources/workouts/client/Client.js +3 -3
  74. package/dist/api/types/{ActivitySelector.d.ts → ActivityColumnExpr.d.ts} +2 -2
  75. package/dist/api/types/ActivityColumnExpr.js +5 -0
  76. package/{api/types/ActivitySelectorActivity.d.ts → dist/api/types/ActivityColumnExprActivity.d.ts} +2 -2
  77. package/{api/types/ActivitySelectorActivity.js → dist/api/types/ActivityColumnExprActivity.js} +2 -2
  78. package/dist/api/types/AggregateExpr.d.ts +8 -0
  79. package/dist/api/types/AggregateExpr.js +5 -0
  80. package/dist/api/types/AggregateExprArg.d.ts +5 -0
  81. package/dist/api/types/AggregateExprArg.js +5 -0
  82. package/dist/api/types/{ReducerFunction.d.ts → AggregateExprFunc.d.ts} +2 -2
  83. package/{api/types/ReducerFunction.js → dist/api/types/AggregateExprFunc.js} +2 -2
  84. package/dist/api/types/DatePartExpr.d.ts +8 -0
  85. package/dist/api/types/DatePartExpr.js +5 -0
  86. package/dist/api/types/DatePartExprArg.d.ts +5 -0
  87. package/dist/api/types/DatePartExprArg.js +5 -0
  88. package/dist/api/types/DatePartExprDatePart.d.ts +15 -0
  89. package/{api/types/SwizzlingBinGranularity.js → dist/api/types/DatePartExprDatePart.js} +6 -2
  90. package/dist/api/types/DateTruncExpr.d.ts +8 -0
  91. package/dist/api/types/DateTruncExpr.js +5 -0
  92. package/dist/api/types/DateTruncExprArg.d.ts +5 -0
  93. package/dist/api/types/DateTruncExprArg.js +5 -0
  94. package/dist/api/types/GroupKeyColumnExpr.d.ts +7 -0
  95. package/dist/api/types/GroupKeyColumnExpr.js +5 -0
  96. package/dist/api/types/GroupKeyColumnExprGroupKey.d.ts +4 -0
  97. package/dist/api/types/GroupKeyColumnExprGroupKey.js +5 -0
  98. package/dist/api/types/{SleepSelector.d.ts → IndexColumnExpr.d.ts} +2 -2
  99. package/dist/api/types/IndexColumnExpr.js +5 -0
  100. package/dist/api/types/IndexColumnExprIndex.d.ts +8 -0
  101. package/dist/api/types/IndexColumnExprIndex.js +10 -0
  102. package/dist/api/types/LabTestSampleType.d.ts +2 -1
  103. package/dist/api/types/LabTestSampleType.js +1 -0
  104. package/dist/api/types/Labs.d.ts +2 -1
  105. package/dist/api/types/Labs.js +1 -0
  106. package/dist/api/types/QueryInstruction.d.ts +2 -4
  107. package/{api/types/QueryInstructionPartitionBy.d.ts → dist/api/types/QueryInstructionGroupByItem.d.ts} +1 -1
  108. package/dist/api/types/QueryInstructionGroupByItem.js +5 -0
  109. package/dist/api/types/QueryInstructionSelectItem.d.ts +5 -0
  110. package/dist/api/types/QueryInstructionSelectItem.js +5 -0
  111. package/dist/api/types/Question.d.ts +1 -0
  112. package/{api/types/Reducer.d.ts → dist/api/types/SleepColumnExpr.d.ts} +2 -2
  113. package/dist/api/types/SleepColumnExpr.js +5 -0
  114. package/dist/api/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  115. package/{api/types/SleepSelectorSleep.js → dist/api/types/SleepColumnExprSleep.js} +2 -2
  116. package/dist/api/types/TimeseriesMetricPoint.d.ts +1 -0
  117. package/dist/api/types/index.d.ts +18 -10
  118. package/dist/api/types/index.js +18 -10
  119. package/dist/serialization/types/ActivityColumnExpr.d.ts +13 -0
  120. package/dist/serialization/types/{ActivitySelector.js → ActivityColumnExpr.js} +4 -4
  121. package/{serialization/types/ActivitySelectorActivity.d.ts → dist/serialization/types/ActivityColumnExprActivity.d.ts} +2 -2
  122. package/dist/serialization/types/{ActivitySelectorActivity.js → ActivityColumnExprActivity.js} +2 -2
  123. package/dist/serialization/types/AggregateExpr.d.ts +15 -0
  124. package/dist/serialization/types/AggregateExpr.js +36 -0
  125. package/dist/serialization/types/AggregateExprArg.d.ts +14 -0
  126. package/dist/serialization/types/{QueryInstructionSelect.js → AggregateExprArg.js} +6 -4
  127. package/{serialization/types/ReducerFunction.d.ts → dist/serialization/types/AggregateExprFunc.d.ts} +2 -2
  128. package/{serialization/types/ReducerFunction.js → dist/serialization/types/AggregateExprFunc.js} +2 -2
  129. package/dist/serialization/types/DatePartExpr.d.ts +15 -0
  130. package/dist/serialization/types/DatePartExpr.js +36 -0
  131. package/dist/serialization/types/DatePartExprArg.d.ts +12 -0
  132. package/{serialization/types/QueryInstructionPartitionBy.js → dist/serialization/types/DatePartExprArg.js} +3 -3
  133. package/dist/serialization/types/DatePartExprDatePart.d.ts +10 -0
  134. package/dist/serialization/types/DatePartExprDatePart.js +41 -0
  135. package/dist/serialization/types/DateTruncExpr.d.ts +15 -0
  136. package/dist/serialization/types/DateTruncExpr.js +36 -0
  137. package/dist/serialization/types/DateTruncExprArg.d.ts +12 -0
  138. package/dist/serialization/types/DateTruncExprArg.js +33 -0
  139. package/dist/serialization/types/GroupKeyColumnExpr.d.ts +13 -0
  140. package/dist/serialization/types/GroupKeyColumnExpr.js +34 -0
  141. package/dist/serialization/types/GroupKeyColumnExprGroupKey.d.ts +10 -0
  142. package/dist/serialization/types/{Reducer.js → GroupKeyColumnExprGroupKey.js} +2 -5
  143. package/dist/serialization/types/IndexColumnExpr.d.ts +13 -0
  144. package/dist/serialization/types/{SleepSelector.js → IndexColumnExpr.js} +4 -4
  145. package/dist/serialization/types/IndexColumnExprIndex.d.ts +10 -0
  146. package/dist/serialization/types/{SwizzlingBinGranularity.js → IndexColumnExprIndex.js} +2 -2
  147. package/dist/serialization/types/LabTestSampleType.d.ts +1 -1
  148. package/dist/serialization/types/LabTestSampleType.js +1 -1
  149. package/dist/serialization/types/Labs.d.ts +1 -1
  150. package/dist/serialization/types/Labs.js +1 -0
  151. package/dist/serialization/types/QueryInstruction.d.ts +4 -8
  152. package/dist/serialization/types/QueryInstruction.js +4 -8
  153. package/dist/serialization/types/QueryInstructionGroupByItem.d.ts +12 -0
  154. package/dist/serialization/types/QueryInstructionGroupByItem.js +33 -0
  155. package/dist/serialization/types/QueryInstructionSelectItem.d.ts +15 -0
  156. package/dist/serialization/types/QueryInstructionSelectItem.js +42 -0
  157. package/dist/serialization/types/Question.d.ts +1 -0
  158. package/dist/serialization/types/Question.js +1 -0
  159. package/dist/serialization/types/SleepColumnExpr.d.ts +13 -0
  160. package/{serialization/types/SleepSelector.js → dist/serialization/types/SleepColumnExpr.js} +4 -4
  161. package/dist/serialization/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  162. package/{serialization/types/SleepSelectorSleep.js → dist/serialization/types/SleepColumnExprSleep.js} +2 -2
  163. package/dist/serialization/types/TimeseriesMetricPoint.d.ts +1 -0
  164. package/dist/serialization/types/TimeseriesMetricPoint.js +1 -0
  165. package/dist/serialization/types/index.d.ts +18 -10
  166. package/dist/serialization/types/index.js +18 -10
  167. package/dist/version.d.ts +1 -1
  168. package/dist/version.js +1 -1
  169. package/package.json +1 -1
  170. package/reference.md +15 -8
  171. package/serialization/types/ActivityColumnExpr.d.ts +13 -0
  172. package/serialization/types/{ActivitySelector.js → ActivityColumnExpr.js} +4 -4
  173. package/{dist/serialization/types/ActivitySelectorActivity.d.ts → serialization/types/ActivityColumnExprActivity.d.ts} +2 -2
  174. package/serialization/types/{ActivitySelectorActivity.js → ActivityColumnExprActivity.js} +2 -2
  175. package/serialization/types/AggregateExpr.d.ts +15 -0
  176. package/serialization/types/AggregateExpr.js +36 -0
  177. package/serialization/types/AggregateExprArg.d.ts +14 -0
  178. package/serialization/types/AggregateExprArg.js +35 -0
  179. package/{dist/serialization/types/ReducerFunction.d.ts → serialization/types/AggregateExprFunc.d.ts} +2 -2
  180. package/{dist/serialization/types/ReducerFunction.js → serialization/types/AggregateExprFunc.js} +2 -2
  181. package/serialization/types/DatePartExpr.d.ts +15 -0
  182. package/serialization/types/DatePartExpr.js +36 -0
  183. package/serialization/types/DatePartExprArg.d.ts +12 -0
  184. package/{dist/serialization/types/QueryInstructionPartitionBy.js → serialization/types/DatePartExprArg.js} +3 -3
  185. package/serialization/types/DatePartExprDatePart.d.ts +10 -0
  186. package/serialization/types/DatePartExprDatePart.js +41 -0
  187. package/serialization/types/DateTruncExpr.d.ts +15 -0
  188. package/serialization/types/DateTruncExpr.js +36 -0
  189. package/serialization/types/DateTruncExprArg.d.ts +12 -0
  190. package/serialization/types/DateTruncExprArg.js +33 -0
  191. package/serialization/types/GroupKeyColumnExpr.d.ts +13 -0
  192. package/serialization/types/GroupKeyColumnExpr.js +34 -0
  193. package/serialization/types/GroupKeyColumnExprGroupKey.d.ts +10 -0
  194. package/serialization/types/{Reducer.js → GroupKeyColumnExprGroupKey.js} +2 -5
  195. package/serialization/types/IndexColumnExpr.d.ts +13 -0
  196. package/serialization/types/IndexColumnExpr.js +34 -0
  197. package/serialization/types/IndexColumnExprIndex.d.ts +10 -0
  198. package/serialization/types/{SwizzlingBinGranularity.js → IndexColumnExprIndex.js} +2 -2
  199. package/serialization/types/LabTestSampleType.d.ts +1 -1
  200. package/serialization/types/LabTestSampleType.js +1 -1
  201. package/serialization/types/Labs.d.ts +1 -1
  202. package/serialization/types/Labs.js +1 -0
  203. package/serialization/types/QueryInstruction.d.ts +4 -8
  204. package/serialization/types/QueryInstruction.js +4 -8
  205. package/serialization/types/QueryInstructionGroupByItem.d.ts +12 -0
  206. package/serialization/types/QueryInstructionGroupByItem.js +33 -0
  207. package/serialization/types/QueryInstructionSelectItem.d.ts +15 -0
  208. package/serialization/types/QueryInstructionSelectItem.js +42 -0
  209. package/serialization/types/Question.d.ts +1 -0
  210. package/serialization/types/Question.js +1 -0
  211. package/serialization/types/SleepColumnExpr.d.ts +13 -0
  212. package/serialization/types/SleepColumnExpr.js +34 -0
  213. package/serialization/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  214. package/{dist/serialization/types/SleepSelectorSleep.js → serialization/types/SleepColumnExprSleep.js} +2 -2
  215. package/serialization/types/TimeseriesMetricPoint.d.ts +1 -0
  216. package/serialization/types/TimeseriesMetricPoint.js +1 -0
  217. package/serialization/types/index.d.ts +18 -10
  218. package/serialization/types/index.js +18 -10
  219. package/version.d.ts +1 -1
  220. package/version.js +1 -1
  221. package/api/types/Swizzling.d.ts +0 -36
  222. package/api/types/SwizzlingBinGranularity.d.ts +0 -11
  223. package/dist/api/types/QueryInstructionPartitionBy.d.ts +0 -5
  224. package/dist/api/types/QueryInstructionSelect.d.ts +0 -5
  225. package/dist/api/types/Swizzling.d.ts +0 -36
  226. package/dist/api/types/SwizzlingBinGranularity.d.ts +0 -11
  227. package/dist/serialization/types/ActivitySelector.d.ts +0 -13
  228. package/dist/serialization/types/QueryInstructionPartitionBy.d.ts +0 -12
  229. package/dist/serialization/types/QueryInstructionSelect.d.ts +0 -12
  230. package/dist/serialization/types/Reducer.d.ts +0 -13
  231. package/dist/serialization/types/SleepSelector.d.ts +0 -13
  232. package/dist/serialization/types/Swizzling.d.ts +0 -16
  233. package/dist/serialization/types/Swizzling.js +0 -37
  234. package/dist/serialization/types/SwizzlingBinGranularity.d.ts +0 -10
  235. package/serialization/types/ActivitySelector.d.ts +0 -13
  236. package/serialization/types/QueryInstructionPartitionBy.d.ts +0 -12
  237. package/serialization/types/QueryInstructionSelect.d.ts +0 -12
  238. package/serialization/types/QueryInstructionSelect.js +0 -33
  239. package/serialization/types/Reducer.d.ts +0 -13
  240. package/serialization/types/SleepSelector.d.ts +0 -13
  241. package/serialization/types/Swizzling.d.ts +0 -16
  242. package/serialization/types/Swizzling.js +0 -37
  243. package/serialization/types/SwizzlingBinGranularity.d.ts +0 -10
  244. /package/api/types/{ActivitySelector.js → ActivityColumnExpr.js} +0 -0
  245. /package/api/types/{QueryInstructionPartitionBy.js → AggregateExpr.js} +0 -0
  246. /package/api/types/{QueryInstructionSelect.js → AggregateExprArg.js} +0 -0
  247. /package/api/types/{Reducer.js → DatePartExpr.js} +0 -0
  248. /package/api/types/{SleepSelector.js → DatePartExprArg.js} +0 -0
  249. /package/api/types/{Swizzling.js → DateTruncExpr.js} +0 -0
  250. /package/{dist/api/types/ActivitySelector.js → api/types/DateTruncExprArg.js} +0 -0
  251. /package/{dist/api/types/QueryInstructionPartitionBy.js → api/types/GroupKeyColumnExpr.js} +0 -0
  252. /package/{dist/api/types/QueryInstructionSelect.js → api/types/GroupKeyColumnExprGroupKey.js} +0 -0
  253. /package/{dist/api/types/Reducer.js → api/types/IndexColumnExpr.js} +0 -0
  254. /package/{dist/api/types/SleepSelector.js → api/types/QueryInstructionGroupByItem.js} +0 -0
  255. /package/{dist/api/types/Swizzling.js → api/types/QueryInstructionSelectItem.js} +0 -0
@@ -0,0 +1,15 @@
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 { AggregateExprArg } from "./AggregateExprArg";
8
+ import { AggregateExprFunc } from "./AggregateExprFunc";
9
+ export declare const AggregateExpr: core.serialization.ObjectSchema<serializers.AggregateExpr.Raw, Vital.AggregateExpr>;
10
+ export declare namespace AggregateExpr {
11
+ interface Raw {
12
+ arg: AggregateExprArg.Raw;
13
+ func: AggregateExprFunc.Raw;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.AggregateExpr = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const AggregateExprArg_1 = require("./AggregateExprArg");
32
+ const AggregateExprFunc_1 = require("./AggregateExprFunc");
33
+ exports.AggregateExpr = core.serialization.object({
34
+ arg: AggregateExprArg_1.AggregateExprArg,
35
+ func: AggregateExprFunc_1.AggregateExprFunc,
36
+ });
@@ -0,0 +1,14 @@
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 { SleepColumnExpr } from "./SleepColumnExpr";
8
+ import { ActivityColumnExpr } from "./ActivityColumnExpr";
9
+ import { IndexColumnExpr } from "./IndexColumnExpr";
10
+ import { GroupKeyColumnExpr } from "./GroupKeyColumnExpr";
11
+ export declare const AggregateExprArg: core.serialization.Schema<serializers.AggregateExprArg.Raw, Vital.AggregateExprArg>;
12
+ export declare namespace AggregateExprArg {
13
+ type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | IndexColumnExpr.Raw | GroupKeyColumnExpr.Raw;
14
+ }
@@ -26,8 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.QueryInstructionSelect = void 0;
29
+ exports.AggregateExprArg = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const SleepSelector_1 = require("./SleepSelector");
32
- const ActivitySelector_1 = require("./ActivitySelector");
33
- exports.QueryInstructionSelect = core.serialization.undiscriminatedUnion([SleepSelector_1.SleepSelector, ActivitySelector_1.ActivitySelector]);
31
+ const SleepColumnExpr_1 = require("./SleepColumnExpr");
32
+ const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
33
+ const IndexColumnExpr_1 = require("./IndexColumnExpr");
34
+ const GroupKeyColumnExpr_1 = require("./GroupKeyColumnExpr");
35
+ exports.AggregateExprArg = core.serialization.undiscriminatedUnion([SleepColumnExpr_1.SleepColumnExpr, ActivityColumnExpr_1.ActivityColumnExpr, IndexColumnExpr_1.IndexColumnExpr, GroupKeyColumnExpr_1.GroupKeyColumnExpr]);
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- export declare const ReducerFunction: core.serialization.Schema<serializers.ReducerFunction.Raw, Vital.ReducerFunction>;
8
- export declare namespace ReducerFunction {
7
+ export declare const AggregateExprFunc: core.serialization.Schema<serializers.AggregateExprFunc.Raw, Vital.AggregateExprFunc>;
8
+ export declare namespace AggregateExprFunc {
9
9
  type Raw = "mean" | "min" | "max" | "sum" | "count" | "median" | "stddev" | "oldest" | "newest";
10
10
  }
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ReducerFunction = void 0;
29
+ exports.AggregateExprFunc = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ReducerFunction = core.serialization.enum_(["mean", "min", "max", "sum", "count", "median", "stddev", "oldest", "newest"]);
31
+ exports.AggregateExprFunc = core.serialization.enum_(["mean", "min", "max", "sum", "count", "median", "stddev", "oldest", "newest"]);
@@ -0,0 +1,15 @@
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 { DatePartExprArg } from "./DatePartExprArg";
8
+ import { DatePartExprDatePart } from "./DatePartExprDatePart";
9
+ export declare const DatePartExpr: core.serialization.ObjectSchema<serializers.DatePartExpr.Raw, Vital.DatePartExpr>;
10
+ export declare namespace DatePartExpr {
11
+ interface Raw {
12
+ arg: DatePartExprArg.Raw;
13
+ date_part: DatePartExprDatePart.Raw;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.DatePartExpr = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const DatePartExprArg_1 = require("./DatePartExprArg");
32
+ const DatePartExprDatePart_1 = require("./DatePartExprDatePart");
33
+ exports.DatePartExpr = core.serialization.object({
34
+ arg: DatePartExprArg_1.DatePartExprArg,
35
+ datePart: core.serialization.property("date_part", DatePartExprDatePart_1.DatePartExprDatePart),
36
+ });
@@ -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
+ import { IndexColumnExpr } from "./IndexColumnExpr";
8
+ import { Placeholder } from "./Placeholder";
9
+ export declare const DatePartExprArg: core.serialization.Schema<serializers.DatePartExprArg.Raw, Vital.DatePartExprArg>;
10
+ export declare namespace DatePartExprArg {
11
+ type Raw = IndexColumnExpr.Raw | Placeholder.Raw;
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.QueryInstructionPartitionBy = void 0;
29
+ exports.DatePartExprArg = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const Period_1 = require("./Period");
31
+ const IndexColumnExpr_1 = require("./IndexColumnExpr");
32
32
  const Placeholder_1 = require("./Placeholder");
33
- exports.QueryInstructionPartitionBy = core.serialization.undiscriminatedUnion([Period_1.Period, Placeholder_1.Placeholder]);
33
+ exports.DatePartExprArg = core.serialization.undiscriminatedUnion([IndexColumnExpr_1.IndexColumnExpr, Placeholder_1.Placeholder]);
@@ -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 DatePartExprDatePart: core.serialization.Schema<serializers.DatePartExprDatePart.Raw, Vital.DatePartExprDatePart>;
8
+ export declare namespace DatePartExprDatePart {
9
+ type Raw = "minute" | "hour" | "day" | "week" | "month" | "year" | "weekday" | "week_of_year" | "day_of_year";
10
+ }
@@ -0,0 +1,41 @@
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.DatePartExprDatePart = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.DatePartExprDatePart = core.serialization.enum_([
32
+ "minute",
33
+ "hour",
34
+ "day",
35
+ "week",
36
+ "month",
37
+ "year",
38
+ "weekday",
39
+ "week_of_year",
40
+ "day_of_year",
41
+ ]);
@@ -0,0 +1,15 @@
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 { Period } from "./Period";
8
+ import { DateTruncExprArg } from "./DateTruncExprArg";
9
+ export declare const DateTruncExpr: core.serialization.ObjectSchema<serializers.DateTruncExpr.Raw, Vital.DateTruncExpr>;
10
+ export declare namespace DateTruncExpr {
11
+ interface Raw {
12
+ date_trunc: Period.Raw;
13
+ arg: DateTruncExprArg.Raw;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.DateTruncExpr = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Period_1 = require("./Period");
32
+ const DateTruncExprArg_1 = require("./DateTruncExprArg");
33
+ exports.DateTruncExpr = core.serialization.object({
34
+ dateTrunc: core.serialization.property("date_trunc", Period_1.Period),
35
+ arg: DateTruncExprArg_1.DateTruncExprArg,
36
+ });
@@ -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
+ import { IndexColumnExpr } from "./IndexColumnExpr";
8
+ import { Placeholder } from "./Placeholder";
9
+ export declare const DateTruncExprArg: core.serialization.Schema<serializers.DateTruncExprArg.Raw, Vital.DateTruncExprArg>;
10
+ export declare namespace DateTruncExprArg {
11
+ type Raw = IndexColumnExpr.Raw | Placeholder.Raw;
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.DateTruncExprArg = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const IndexColumnExpr_1 = require("./IndexColumnExpr");
32
+ const Placeholder_1 = require("./Placeholder");
33
+ exports.DateTruncExprArg = core.serialization.undiscriminatedUnion([IndexColumnExpr_1.IndexColumnExpr, Placeholder_1.Placeholder]);
@@ -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 { GroupKeyColumnExprGroupKey } from "./GroupKeyColumnExprGroupKey";
8
+ export declare const GroupKeyColumnExpr: core.serialization.ObjectSchema<serializers.GroupKeyColumnExpr.Raw, Vital.GroupKeyColumnExpr>;
9
+ export declare namespace GroupKeyColumnExpr {
10
+ interface Raw {
11
+ group_key?: GroupKeyColumnExprGroupKey.Raw | null;
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.GroupKeyColumnExpr = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const GroupKeyColumnExprGroupKey_1 = require("./GroupKeyColumnExprGroupKey");
32
+ exports.GroupKeyColumnExpr = core.serialization.object({
33
+ groupKey: core.serialization.property("group_key", GroupKeyColumnExprGroupKey_1.GroupKeyColumnExprGroupKey.optional()),
34
+ });
@@ -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 GroupKeyColumnExprGroupKey: core.serialization.Schema<serializers.GroupKeyColumnExprGroupKey.Raw, Vital.GroupKeyColumnExprGroupKey>;
8
+ export declare namespace GroupKeyColumnExprGroupKey {
9
+ type Raw = number | "*";
10
+ }
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Reducer = void 0;
29
+ exports.GroupKeyColumnExprGroupKey = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const ReducerFunction_1 = require("./ReducerFunction");
32
- exports.Reducer = core.serialization.object({
33
- function: ReducerFunction_1.ReducerFunction,
34
- });
31
+ exports.GroupKeyColumnExprGroupKey = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.stringLiteral("*")]);
@@ -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 { IndexColumnExprIndex } from "./IndexColumnExprIndex";
8
+ export declare const IndexColumnExpr: core.serialization.ObjectSchema<serializers.IndexColumnExpr.Raw, Vital.IndexColumnExpr>;
9
+ export declare namespace IndexColumnExpr {
10
+ interface Raw {
11
+ index: IndexColumnExprIndex.Raw;
12
+ }
13
+ }
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SleepSelector = void 0;
29
+ exports.IndexColumnExpr = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const SleepSelectorSleep_1 = require("./SleepSelectorSleep");
32
- exports.SleepSelector = core.serialization.object({
33
- sleep: SleepSelectorSleep_1.SleepSelectorSleep,
31
+ const IndexColumnExprIndex_1 = require("./IndexColumnExprIndex");
32
+ exports.IndexColumnExpr = core.serialization.object({
33
+ index: IndexColumnExprIndex_1.IndexColumnExprIndex,
34
34
  });
@@ -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 IndexColumnExprIndex: core.serialization.Schema<serializers.IndexColumnExprIndex.Raw, Vital.IndexColumnExprIndex>;
8
+ export declare namespace IndexColumnExprIndex {
9
+ type Raw = "sleep" | "activity";
10
+ }
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SwizzlingBinGranularity = void 0;
29
+ exports.IndexColumnExprIndex = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.SwizzlingBinGranularity = core.serialization.enum_(["minute", "hour", "day", "week", "month"]);
31
+ exports.IndexColumnExprIndex = core.serialization.enum_(["sleep", "activity"]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const LabTestSampleType: core.serialization.Schema<serializers.LabTestSampleType.Raw, Vital.LabTestSampleType>;
8
8
  export declare namespace LabTestSampleType {
9
- type Raw = "dried_blood_spot" | "serum" | "saliva" | "urine";
9
+ type Raw = "dried_blood_spot" | "arm_collector" | "serum" | "saliva" | "urine";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.LabTestSampleType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.LabTestSampleType = core.serialization.enum_(["dried_blood_spot", "serum", "saliva", "urine"]);
31
+ exports.LabTestSampleType = core.serialization.enum_(["dried_blood_spot", "arm_collector", "serum", "saliva", "urine"]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Labs: core.serialization.Schema<serializers.Labs.Raw, Vital.Labs>;
8
8
  export declare namespace Labs {
9
- type Raw = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "manual";
9
+ type Raw = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "manual" | "sanocardio";
10
10
  }
@@ -36,4 +36,5 @@ exports.Labs = core.serialization.enum_([
36
36
  "labcorp",
37
37
  "bioreference",
38
38
  "manual",
39
+ "sanocardio",
39
40
  ]);
@@ -4,17 +4,13 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { QueryInstructionSelect } from "./QueryInstructionSelect";
8
- import { QueryInstructionPartitionBy } from "./QueryInstructionPartitionBy";
9
- import { Swizzling } from "./Swizzling";
10
- import { Reducer } from "./Reducer";
7
+ import { QueryInstructionSelectItem } from "./QueryInstructionSelectItem";
8
+ import { QueryInstructionGroupByItem } from "./QueryInstructionGroupByItem";
11
9
  export declare const QueryInstruction: core.serialization.ObjectSchema<serializers.QueryInstruction.Raw, Vital.QueryInstruction>;
12
10
  export declare namespace QueryInstruction {
13
11
  interface Raw {
14
- select: QueryInstructionSelect.Raw;
15
- partition_by: QueryInstructionPartitionBy.Raw;
16
- swizzle_by?: Swizzling.Raw | null;
17
- reduce_by: Reducer.Raw[];
12
+ select: QueryInstructionSelectItem.Raw[];
13
+ group_by: QueryInstructionGroupByItem.Raw[];
18
14
  split_by_source?: boolean | null;
19
15
  }
20
16
  }
@@ -28,14 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.QueryInstruction = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const QueryInstructionSelect_1 = require("./QueryInstructionSelect");
32
- const QueryInstructionPartitionBy_1 = require("./QueryInstructionPartitionBy");
33
- const Swizzling_1 = require("./Swizzling");
34
- const Reducer_1 = require("./Reducer");
31
+ const QueryInstructionSelectItem_1 = require("./QueryInstructionSelectItem");
32
+ const QueryInstructionGroupByItem_1 = require("./QueryInstructionGroupByItem");
35
33
  exports.QueryInstruction = core.serialization.object({
36
- select: QueryInstructionSelect_1.QueryInstructionSelect,
37
- partitionBy: core.serialization.property("partition_by", QueryInstructionPartitionBy_1.QueryInstructionPartitionBy),
38
- swizzleBy: core.serialization.property("swizzle_by", Swizzling_1.Swizzling.optional()),
39
- reduceBy: core.serialization.property("reduce_by", core.serialization.list(Reducer_1.Reducer)),
34
+ select: core.serialization.list(QueryInstructionSelectItem_1.QueryInstructionSelectItem),
35
+ groupBy: core.serialization.property("group_by", core.serialization.list(QueryInstructionGroupByItem_1.QueryInstructionGroupByItem)),
40
36
  splitBySource: core.serialization.property("split_by_source", core.serialization.boolean().optional()),
41
37
  });
@@ -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
+ import { DateTruncExpr } from "./DateTruncExpr";
8
+ import { DatePartExpr } from "./DatePartExpr";
9
+ export declare const QueryInstructionGroupByItem: core.serialization.Schema<serializers.QueryInstructionGroupByItem.Raw, Vital.QueryInstructionGroupByItem>;
10
+ export declare namespace QueryInstructionGroupByItem {
11
+ type Raw = DateTruncExpr.Raw | DatePartExpr.Raw;
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.QueryInstructionGroupByItem = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const DateTruncExpr_1 = require("./DateTruncExpr");
32
+ const DatePartExpr_1 = require("./DatePartExpr");
33
+ exports.QueryInstructionGroupByItem = core.serialization.undiscriminatedUnion([DateTruncExpr_1.DateTruncExpr, DatePartExpr_1.DatePartExpr]);
@@ -0,0 +1,15 @@
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 { AggregateExpr } from "./AggregateExpr";
8
+ import { SleepColumnExpr } from "./SleepColumnExpr";
9
+ import { ActivityColumnExpr } from "./ActivityColumnExpr";
10
+ import { IndexColumnExpr } from "./IndexColumnExpr";
11
+ import { GroupKeyColumnExpr } from "./GroupKeyColumnExpr";
12
+ export declare const QueryInstructionSelectItem: core.serialization.Schema<serializers.QueryInstructionSelectItem.Raw, Vital.QueryInstructionSelectItem>;
13
+ export declare namespace QueryInstructionSelectItem {
14
+ type Raw = AggregateExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | IndexColumnExpr.Raw | GroupKeyColumnExpr.Raw;
15
+ }