@tryvital/vital-node 3.1.72 → 3.1.74

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 (284) 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.d.ts +8 -6
  10. package/api/resources/labTests/client/Client.js +41 -33
  11. package/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.d.ts +25 -0
  12. package/api/resources/labTests/client/requests/index.d.ts +1 -0
  13. package/api/resources/link/client/Client.js +14 -14
  14. package/api/resources/meal/client/Client.js +1 -1
  15. package/api/resources/menstrualCycle/client/Client.js +1 -1
  16. package/api/resources/profile/client/Client.js +2 -2
  17. package/api/resources/providers/client/Client.js +1 -1
  18. package/api/resources/sleep/client/Client.js +4 -4
  19. package/api/resources/team/client/Client.js +7 -7
  20. package/api/resources/testkit/client/Client.js +2 -2
  21. package/api/resources/user/client/Client.js +16 -16
  22. package/api/resources/vitals/client/Client.js +56 -56
  23. package/api/resources/workouts/client/Client.js +3 -3
  24. package/api/types/{ActivitySelector.d.ts → ActivityColumnExpr.d.ts} +2 -2
  25. package/{dist/api/types/ActivitySelectorActivity.d.ts → api/types/ActivityColumnExprActivity.d.ts} +2 -2
  26. package/{dist/api/types/ActivitySelectorActivity.js → api/types/ActivityColumnExprActivity.js} +2 -2
  27. package/api/types/AggregateExpr.d.ts +8 -0
  28. package/api/types/AggregateExprArg.d.ts +5 -0
  29. package/api/types/{ReducerFunction.d.ts → AggregateExprFunc.d.ts} +2 -2
  30. package/{dist/api/types/ReducerFunction.js → api/types/AggregateExprFunc.js} +2 -2
  31. package/api/types/DatePartExpr.d.ts +8 -0
  32. package/api/types/DatePartExprArg.d.ts +5 -0
  33. package/api/types/DatePartExprDatePart.d.ts +15 -0
  34. package/{dist/api/types/SwizzlingBinGranularity.js → api/types/DatePartExprDatePart.js} +6 -2
  35. package/api/types/DateTruncExpr.d.ts +8 -0
  36. package/api/types/DateTruncExprArg.d.ts +5 -0
  37. package/api/types/FailureType.d.ts +16 -0
  38. package/api/types/FailureType.js +18 -0
  39. package/api/types/GroupKeyColumnExpr.d.ts +7 -0
  40. package/api/types/GroupKeyColumnExprGroupKey.d.ts +4 -0
  41. package/{dist/api/types/Reducer.d.ts → api/types/IndexColumnExpr.d.ts} +2 -2
  42. package/api/types/IndexColumnExprIndex.d.ts +8 -0
  43. package/api/types/IndexColumnExprIndex.js +10 -0
  44. package/api/types/LabResultsRaw.d.ts +1 -0
  45. package/api/types/LabTestSampleType.d.ts +2 -1
  46. package/api/types/LabTestSampleType.js +1 -0
  47. package/api/types/Labs.d.ts +2 -1
  48. package/api/types/Labs.js +1 -0
  49. package/api/types/MissingBiomarkerResult.d.ts +12 -0
  50. package/api/types/QueryInstruction.d.ts +2 -4
  51. package/api/types/{QueryInstructionSelect.d.ts → QueryInstructionGroupByItem.d.ts} +1 -1
  52. package/api/types/QueryInstructionGroupByItem.js +5 -0
  53. package/api/types/QueryInstructionSelectItem.d.ts +5 -0
  54. package/api/types/QueryInstructionSelectItem.js +5 -0
  55. package/api/types/Question.d.ts +1 -0
  56. package/api/types/{SleepSelector.d.ts → SleepColumnExpr.d.ts} +2 -2
  57. package/api/types/SleepColumnExpr.js +5 -0
  58. package/api/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  59. package/{dist/api/types/SleepSelectorSleep.js → api/types/SleepColumnExprSleep.js} +2 -2
  60. package/api/types/TimeseriesMetricPoint.d.ts +1 -0
  61. package/api/types/index.d.ts +20 -10
  62. package/api/types/index.js +20 -10
  63. package/dist/api/resources/activity/client/Client.js +2 -2
  64. package/dist/api/resources/aggregate/client/Client.d.ts +13 -8
  65. package/dist/api/resources/aggregate/client/Client.js +14 -9
  66. package/dist/api/resources/aggregate/client/requests/Query.d.ts +13 -8
  67. package/dist/api/resources/body/client/Client.js +2 -2
  68. package/dist/api/resources/devices/client/Client.js +1 -1
  69. package/dist/api/resources/insurance/client/Client.js +2 -2
  70. package/dist/api/resources/introspect/client/Client.js +2 -2
  71. package/dist/api/resources/labTests/client/Client.d.ts +8 -6
  72. package/dist/api/resources/labTests/client/Client.js +41 -33
  73. package/dist/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.d.ts +25 -0
  74. package/dist/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.js +5 -0
  75. package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
  76. package/dist/api/resources/link/client/Client.js +14 -14
  77. package/dist/api/resources/meal/client/Client.js +1 -1
  78. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  79. package/dist/api/resources/profile/client/Client.js +2 -2
  80. package/dist/api/resources/providers/client/Client.js +1 -1
  81. package/dist/api/resources/sleep/client/Client.js +4 -4
  82. package/dist/api/resources/team/client/Client.js +7 -7
  83. package/dist/api/resources/testkit/client/Client.js +2 -2
  84. package/dist/api/resources/user/client/Client.js +16 -16
  85. package/dist/api/resources/vitals/client/Client.js +56 -56
  86. package/dist/api/resources/workouts/client/Client.js +3 -3
  87. package/dist/api/types/{ActivitySelector.d.ts → ActivityColumnExpr.d.ts} +2 -2
  88. package/dist/api/types/ActivityColumnExpr.js +5 -0
  89. package/{api/types/ActivitySelectorActivity.d.ts → dist/api/types/ActivityColumnExprActivity.d.ts} +2 -2
  90. package/{api/types/ActivitySelectorActivity.js → dist/api/types/ActivityColumnExprActivity.js} +2 -2
  91. package/dist/api/types/AggregateExpr.d.ts +8 -0
  92. package/dist/api/types/AggregateExpr.js +5 -0
  93. package/dist/api/types/AggregateExprArg.d.ts +5 -0
  94. package/dist/api/types/AggregateExprArg.js +5 -0
  95. package/dist/api/types/{ReducerFunction.d.ts → AggregateExprFunc.d.ts} +2 -2
  96. package/{api/types/ReducerFunction.js → dist/api/types/AggregateExprFunc.js} +2 -2
  97. package/dist/api/types/DatePartExpr.d.ts +8 -0
  98. package/dist/api/types/DatePartExpr.js +5 -0
  99. package/dist/api/types/DatePartExprArg.d.ts +5 -0
  100. package/dist/api/types/DatePartExprArg.js +5 -0
  101. package/dist/api/types/DatePartExprDatePart.d.ts +15 -0
  102. package/{api/types/SwizzlingBinGranularity.js → dist/api/types/DatePartExprDatePart.js} +6 -2
  103. package/dist/api/types/DateTruncExpr.d.ts +8 -0
  104. package/dist/api/types/DateTruncExpr.js +5 -0
  105. package/dist/api/types/DateTruncExprArg.d.ts +5 -0
  106. package/dist/api/types/DateTruncExprArg.js +5 -0
  107. package/dist/api/types/FailureType.d.ts +16 -0
  108. package/dist/api/types/FailureType.js +18 -0
  109. package/dist/api/types/GroupKeyColumnExpr.d.ts +7 -0
  110. package/dist/api/types/GroupKeyColumnExpr.js +5 -0
  111. package/dist/api/types/GroupKeyColumnExprGroupKey.d.ts +4 -0
  112. package/dist/api/types/GroupKeyColumnExprGroupKey.js +5 -0
  113. package/dist/api/types/{SleepSelector.d.ts → IndexColumnExpr.d.ts} +2 -2
  114. package/dist/api/types/IndexColumnExpr.js +5 -0
  115. package/dist/api/types/IndexColumnExprIndex.d.ts +8 -0
  116. package/dist/api/types/IndexColumnExprIndex.js +10 -0
  117. package/dist/api/types/LabResultsRaw.d.ts +1 -0
  118. package/dist/api/types/LabTestSampleType.d.ts +2 -1
  119. package/dist/api/types/LabTestSampleType.js +1 -0
  120. package/dist/api/types/Labs.d.ts +2 -1
  121. package/dist/api/types/Labs.js +1 -0
  122. package/dist/api/types/MissingBiomarkerResult.d.ts +12 -0
  123. package/dist/api/types/MissingBiomarkerResult.js +5 -0
  124. package/dist/api/types/QueryInstruction.d.ts +2 -4
  125. package/{api/types/QueryInstructionPartitionBy.d.ts → dist/api/types/QueryInstructionGroupByItem.d.ts} +1 -1
  126. package/dist/api/types/QueryInstructionGroupByItem.js +5 -0
  127. package/dist/api/types/QueryInstructionSelectItem.d.ts +5 -0
  128. package/dist/api/types/QueryInstructionSelectItem.js +5 -0
  129. package/dist/api/types/Question.d.ts +1 -0
  130. package/{api/types/Reducer.d.ts → dist/api/types/SleepColumnExpr.d.ts} +2 -2
  131. package/dist/api/types/SleepColumnExpr.js +5 -0
  132. package/dist/api/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  133. package/{api/types/SleepSelectorSleep.js → dist/api/types/SleepColumnExprSleep.js} +2 -2
  134. package/dist/api/types/TimeseriesMetricPoint.d.ts +1 -0
  135. package/dist/api/types/index.d.ts +20 -10
  136. package/dist/api/types/index.js +20 -10
  137. package/dist/serialization/types/ActivityColumnExpr.d.ts +13 -0
  138. package/dist/serialization/types/{ActivitySelector.js → ActivityColumnExpr.js} +4 -4
  139. package/{serialization/types/ActivitySelectorActivity.d.ts → dist/serialization/types/ActivityColumnExprActivity.d.ts} +2 -2
  140. package/dist/serialization/types/{ActivitySelectorActivity.js → ActivityColumnExprActivity.js} +2 -2
  141. package/dist/serialization/types/AggregateExpr.d.ts +15 -0
  142. package/dist/serialization/types/AggregateExpr.js +36 -0
  143. package/dist/serialization/types/AggregateExprArg.d.ts +14 -0
  144. package/dist/serialization/types/AggregateExprArg.js +35 -0
  145. package/{serialization/types/ReducerFunction.d.ts → dist/serialization/types/AggregateExprFunc.d.ts} +2 -2
  146. package/{serialization/types/ReducerFunction.js → dist/serialization/types/AggregateExprFunc.js} +2 -2
  147. package/dist/serialization/types/DatePartExpr.d.ts +15 -0
  148. package/dist/serialization/types/DatePartExpr.js +36 -0
  149. package/dist/serialization/types/DatePartExprArg.d.ts +12 -0
  150. package/{serialization/types/QueryInstructionPartitionBy.js → dist/serialization/types/DatePartExprArg.js} +3 -3
  151. package/dist/serialization/types/DatePartExprDatePart.d.ts +10 -0
  152. package/dist/serialization/types/DatePartExprDatePart.js +41 -0
  153. package/dist/serialization/types/DateTruncExpr.d.ts +15 -0
  154. package/dist/serialization/types/DateTruncExpr.js +36 -0
  155. package/dist/serialization/types/DateTruncExprArg.d.ts +12 -0
  156. package/dist/serialization/types/DateTruncExprArg.js +33 -0
  157. package/dist/serialization/types/FailureType.d.ts +10 -0
  158. package/dist/serialization/types/{QueryInstructionSelect.js → FailureType.js} +13 -4
  159. package/dist/serialization/types/GroupKeyColumnExpr.d.ts +13 -0
  160. package/dist/serialization/types/GroupKeyColumnExpr.js +34 -0
  161. package/dist/serialization/types/GroupKeyColumnExprGroupKey.d.ts +10 -0
  162. package/dist/serialization/types/{Reducer.js → GroupKeyColumnExprGroupKey.js} +2 -5
  163. package/dist/serialization/types/IndexColumnExpr.d.ts +13 -0
  164. package/dist/serialization/types/{SleepSelector.js → IndexColumnExpr.js} +4 -4
  165. package/dist/serialization/types/IndexColumnExprIndex.d.ts +10 -0
  166. package/dist/serialization/types/{SwizzlingBinGranularity.js → IndexColumnExprIndex.js} +2 -2
  167. package/dist/serialization/types/LabResultsRaw.d.ts +2 -0
  168. package/dist/serialization/types/LabResultsRaw.js +2 -0
  169. package/dist/serialization/types/LabTestSampleType.d.ts +1 -1
  170. package/dist/serialization/types/LabTestSampleType.js +1 -1
  171. package/dist/serialization/types/Labs.d.ts +1 -1
  172. package/dist/serialization/types/Labs.js +1 -0
  173. package/dist/serialization/types/MissingBiomarkerResult.d.ts +18 -0
  174. package/dist/serialization/types/{Swizzling.js → MissingBiomarkerResult.js} +9 -7
  175. package/dist/serialization/types/QueryInstruction.d.ts +4 -8
  176. package/dist/serialization/types/QueryInstruction.js +4 -8
  177. package/dist/serialization/types/QueryInstructionGroupByItem.d.ts +12 -0
  178. package/dist/serialization/types/QueryInstructionGroupByItem.js +33 -0
  179. package/dist/serialization/types/QueryInstructionSelectItem.d.ts +15 -0
  180. package/dist/serialization/types/QueryInstructionSelectItem.js +42 -0
  181. package/dist/serialization/types/Question.d.ts +1 -0
  182. package/dist/serialization/types/Question.js +1 -0
  183. package/dist/serialization/types/SleepColumnExpr.d.ts +13 -0
  184. package/{serialization/types/SleepSelector.js → dist/serialization/types/SleepColumnExpr.js} +4 -4
  185. package/dist/serialization/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  186. package/{serialization/types/SleepSelectorSleep.js → dist/serialization/types/SleepColumnExprSleep.js} +2 -2
  187. package/dist/serialization/types/TimeseriesMetricPoint.d.ts +1 -0
  188. package/dist/serialization/types/TimeseriesMetricPoint.js +1 -0
  189. package/dist/serialization/types/index.d.ts +20 -10
  190. package/dist/serialization/types/index.js +20 -10
  191. package/dist/version.d.ts +1 -1
  192. package/dist/version.js +1 -1
  193. package/package.json +1 -1
  194. package/reference.md +22 -13
  195. package/serialization/types/ActivityColumnExpr.d.ts +13 -0
  196. package/serialization/types/{ActivitySelector.js → ActivityColumnExpr.js} +4 -4
  197. package/{dist/serialization/types/ActivitySelectorActivity.d.ts → serialization/types/ActivityColumnExprActivity.d.ts} +2 -2
  198. package/serialization/types/{ActivitySelectorActivity.js → ActivityColumnExprActivity.js} +2 -2
  199. package/serialization/types/AggregateExpr.d.ts +15 -0
  200. package/serialization/types/AggregateExpr.js +36 -0
  201. package/serialization/types/AggregateExprArg.d.ts +14 -0
  202. package/serialization/types/AggregateExprArg.js +35 -0
  203. package/{dist/serialization/types/ReducerFunction.d.ts → serialization/types/AggregateExprFunc.d.ts} +2 -2
  204. package/{dist/serialization/types/ReducerFunction.js → serialization/types/AggregateExprFunc.js} +2 -2
  205. package/serialization/types/DatePartExpr.d.ts +15 -0
  206. package/serialization/types/DatePartExpr.js +36 -0
  207. package/serialization/types/DatePartExprArg.d.ts +12 -0
  208. package/{dist/serialization/types/QueryInstructionPartitionBy.js → serialization/types/DatePartExprArg.js} +3 -3
  209. package/serialization/types/DatePartExprDatePart.d.ts +10 -0
  210. package/serialization/types/DatePartExprDatePart.js +41 -0
  211. package/serialization/types/DateTruncExpr.d.ts +15 -0
  212. package/serialization/types/DateTruncExpr.js +36 -0
  213. package/serialization/types/DateTruncExprArg.d.ts +12 -0
  214. package/serialization/types/DateTruncExprArg.js +33 -0
  215. package/serialization/types/FailureType.d.ts +10 -0
  216. package/serialization/types/FailureType.js +42 -0
  217. package/serialization/types/GroupKeyColumnExpr.d.ts +13 -0
  218. package/serialization/types/GroupKeyColumnExpr.js +34 -0
  219. package/serialization/types/GroupKeyColumnExprGroupKey.d.ts +10 -0
  220. package/serialization/types/{Reducer.js → GroupKeyColumnExprGroupKey.js} +2 -5
  221. package/serialization/types/IndexColumnExpr.d.ts +13 -0
  222. package/serialization/types/IndexColumnExpr.js +34 -0
  223. package/serialization/types/IndexColumnExprIndex.d.ts +10 -0
  224. package/serialization/types/{SwizzlingBinGranularity.js → IndexColumnExprIndex.js} +2 -2
  225. package/serialization/types/LabResultsRaw.d.ts +2 -0
  226. package/serialization/types/LabResultsRaw.js +2 -0
  227. package/serialization/types/LabTestSampleType.d.ts +1 -1
  228. package/serialization/types/LabTestSampleType.js +1 -1
  229. package/serialization/types/Labs.d.ts +1 -1
  230. package/serialization/types/Labs.js +1 -0
  231. package/serialization/types/MissingBiomarkerResult.d.ts +18 -0
  232. package/serialization/types/MissingBiomarkerResult.js +39 -0
  233. package/serialization/types/QueryInstruction.d.ts +4 -8
  234. package/serialization/types/QueryInstruction.js +4 -8
  235. package/serialization/types/QueryInstructionGroupByItem.d.ts +12 -0
  236. package/serialization/types/QueryInstructionGroupByItem.js +33 -0
  237. package/serialization/types/QueryInstructionSelectItem.d.ts +15 -0
  238. package/serialization/types/QueryInstructionSelectItem.js +42 -0
  239. package/serialization/types/Question.d.ts +1 -0
  240. package/serialization/types/Question.js +1 -0
  241. package/serialization/types/SleepColumnExpr.d.ts +13 -0
  242. package/serialization/types/SleepColumnExpr.js +34 -0
  243. package/serialization/types/{SleepSelectorSleep.d.ts → SleepColumnExprSleep.d.ts} +2 -2
  244. package/{dist/serialization/types/SleepSelectorSleep.js → serialization/types/SleepColumnExprSleep.js} +2 -2
  245. package/serialization/types/TimeseriesMetricPoint.d.ts +1 -0
  246. package/serialization/types/TimeseriesMetricPoint.js +1 -0
  247. package/serialization/types/index.d.ts +20 -10
  248. package/serialization/types/index.js +20 -10
  249. package/version.d.ts +1 -1
  250. package/version.js +1 -1
  251. package/api/types/Swizzling.d.ts +0 -36
  252. package/api/types/SwizzlingBinGranularity.d.ts +0 -11
  253. package/dist/api/types/QueryInstructionPartitionBy.d.ts +0 -5
  254. package/dist/api/types/QueryInstructionSelect.d.ts +0 -5
  255. package/dist/api/types/Swizzling.d.ts +0 -36
  256. package/dist/api/types/SwizzlingBinGranularity.d.ts +0 -11
  257. package/dist/serialization/types/ActivitySelector.d.ts +0 -13
  258. package/dist/serialization/types/QueryInstructionPartitionBy.d.ts +0 -12
  259. package/dist/serialization/types/QueryInstructionSelect.d.ts +0 -12
  260. package/dist/serialization/types/Reducer.d.ts +0 -13
  261. package/dist/serialization/types/SleepSelector.d.ts +0 -13
  262. package/dist/serialization/types/Swizzling.d.ts +0 -16
  263. package/dist/serialization/types/SwizzlingBinGranularity.d.ts +0 -10
  264. package/serialization/types/ActivitySelector.d.ts +0 -13
  265. package/serialization/types/QueryInstructionPartitionBy.d.ts +0 -12
  266. package/serialization/types/QueryInstructionSelect.d.ts +0 -12
  267. package/serialization/types/QueryInstructionSelect.js +0 -33
  268. package/serialization/types/Reducer.d.ts +0 -13
  269. package/serialization/types/SleepSelector.d.ts +0 -13
  270. package/serialization/types/Swizzling.d.ts +0 -16
  271. package/serialization/types/Swizzling.js +0 -37
  272. package/serialization/types/SwizzlingBinGranularity.d.ts +0 -10
  273. /package/api/{types/ActivitySelector.js → resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.js} +0 -0
  274. /package/api/types/{QueryInstructionPartitionBy.js → ActivityColumnExpr.js} +0 -0
  275. /package/api/types/{QueryInstructionSelect.js → AggregateExpr.js} +0 -0
  276. /package/api/types/{Reducer.js → AggregateExprArg.js} +0 -0
  277. /package/api/types/{SleepSelector.js → DatePartExpr.js} +0 -0
  278. /package/api/types/{Swizzling.js → DatePartExprArg.js} +0 -0
  279. /package/{dist/api/types/ActivitySelector.js → api/types/DateTruncExpr.js} +0 -0
  280. /package/{dist/api/types/QueryInstructionPartitionBy.js → api/types/DateTruncExprArg.js} +0 -0
  281. /package/{dist/api/types/QueryInstructionSelect.js → api/types/GroupKeyColumnExpr.js} +0 -0
  282. /package/{dist/api/types/Reducer.js → api/types/GroupKeyColumnExprGroupKey.js} +0 -0
  283. /package/{dist/api/types/SleepSelector.js → api/types/IndexColumnExpr.js} +0 -0
  284. /package/{dist/api/types/Swizzling.js → api/types/MissingBiomarkerResult.js} +0 -0
@@ -1,36 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- /**
6
- * The Swizzling mode makes the reducer functions produce statistics
7
- * based on X-of-Y granularity (e.g., day-of-week) for each and every data partition.
8
- *
9
- * ## Basic usages
10
- *
11
- * - Hour of Day — gather_every={1, hour}, bin_granularity=day, bin_count=1
12
- * - Day of Week — gather_every={1, day}, bin_granularity=week, bin_count=1
13
- * - Day of Month — gather_every={1, day}, bin_granularity=month, bin_count=1
14
- *
15
- * ## Output columns
16
- *
17
- * Swizzling mode adds two additional columns to the output dataframes:
18
- *
19
- * 1. `swizzle_bin`: The bin index of the data point post-binning (with respect to `bin_count`
20
- * and `bin_granularity); and 2 `swizzle_period_start`: The bin-relative period start of the data point with respect to `gather_every`.
21
- *
22
- * ## Supported combinations
23
- *
24
- * | gather_every | group_by |
25
- * | ------------ | ----------------- |
26
- * | minute | minute, hour, day |
27
- * | hour | hour, day, week |
28
- * | day | day, week, month |
29
- * | week | week, month |
30
- * | month | month |
31
- */
32
- export interface Swizzling {
33
- binGranularity: Vital.SwizzlingBinGranularity;
34
- binCount?: number;
35
- gatherEvery: Vital.Period;
36
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type SwizzlingBinGranularity = "minute" | "hour" | "day" | "week" | "month";
5
- export declare const SwizzlingBinGranularity: {
6
- readonly Minute: "minute";
7
- readonly Hour: "hour";
8
- readonly Day: "day";
9
- readonly Week: "week";
10
- readonly Month: "month";
11
- };
@@ -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 QueryInstructionPartitionBy = Vital.Period | Vital.Placeholder;
@@ -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 QueryInstructionSelect = Vital.SleepSelector | Vital.ActivitySelector;
@@ -1,36 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- /**
6
- * The Swizzling mode makes the reducer functions produce statistics
7
- * based on X-of-Y granularity (e.g., day-of-week) for each and every data partition.
8
- *
9
- * ## Basic usages
10
- *
11
- * - Hour of Day — gather_every={1, hour}, bin_granularity=day, bin_count=1
12
- * - Day of Week — gather_every={1, day}, bin_granularity=week, bin_count=1
13
- * - Day of Month — gather_every={1, day}, bin_granularity=month, bin_count=1
14
- *
15
- * ## Output columns
16
- *
17
- * Swizzling mode adds two additional columns to the output dataframes:
18
- *
19
- * 1. `swizzle_bin`: The bin index of the data point post-binning (with respect to `bin_count`
20
- * and `bin_granularity); and 2 `swizzle_period_start`: The bin-relative period start of the data point with respect to `gather_every`.
21
- *
22
- * ## Supported combinations
23
- *
24
- * | gather_every | group_by |
25
- * | ------------ | ----------------- |
26
- * | minute | minute, hour, day |
27
- * | hour | hour, day, week |
28
- * | day | day, week, month |
29
- * | week | week, month |
30
- * | month | month |
31
- */
32
- export interface Swizzling {
33
- binGranularity: Vital.SwizzlingBinGranularity;
34
- binCount?: number;
35
- gatherEvery: Vital.Period;
36
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type SwizzlingBinGranularity = "minute" | "hour" | "day" | "week" | "month";
5
- export declare const SwizzlingBinGranularity: {
6
- readonly Minute: "minute";
7
- readonly Hour: "hour";
8
- readonly Day: "day";
9
- readonly Week: "week";
10
- readonly Month: "month";
11
- };
@@ -1,13 +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 { ActivitySelectorActivity } from "./ActivitySelectorActivity";
8
- export declare const ActivitySelector: core.serialization.ObjectSchema<serializers.ActivitySelector.Raw, Vital.ActivitySelector>;
9
- export declare namespace ActivitySelector {
10
- interface Raw {
11
- activity: ActivitySelectorActivity.Raw;
12
- }
13
- }
@@ -1,12 +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 { Period } from "./Period";
8
- import { Placeholder } from "./Placeholder";
9
- export declare const QueryInstructionPartitionBy: core.serialization.Schema<serializers.QueryInstructionPartitionBy.Raw, Vital.QueryInstructionPartitionBy>;
10
- export declare namespace QueryInstructionPartitionBy {
11
- type Raw = Period.Raw | Placeholder.Raw;
12
- }
@@ -1,12 +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 { SleepSelector } from "./SleepSelector";
8
- import { ActivitySelector } from "./ActivitySelector";
9
- export declare const QueryInstructionSelect: core.serialization.Schema<serializers.QueryInstructionSelect.Raw, Vital.QueryInstructionSelect>;
10
- export declare namespace QueryInstructionSelect {
11
- type Raw = SleepSelector.Raw | ActivitySelector.Raw;
12
- }
@@ -1,13 +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 { ReducerFunction } from "./ReducerFunction";
8
- export declare const Reducer: core.serialization.ObjectSchema<serializers.Reducer.Raw, Vital.Reducer>;
9
- export declare namespace Reducer {
10
- interface Raw {
11
- function: ReducerFunction.Raw;
12
- }
13
- }
@@ -1,13 +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 { SleepSelectorSleep } from "./SleepSelectorSleep";
8
- export declare const SleepSelector: core.serialization.ObjectSchema<serializers.SleepSelector.Raw, Vital.SleepSelector>;
9
- export declare namespace SleepSelector {
10
- interface Raw {
11
- sleep: SleepSelectorSleep.Raw;
12
- }
13
- }
@@ -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 { SwizzlingBinGranularity } from "./SwizzlingBinGranularity";
8
- import { Period } from "./Period";
9
- export declare const Swizzling: core.serialization.ObjectSchema<serializers.Swizzling.Raw, Vital.Swizzling>;
10
- export declare namespace Swizzling {
11
- interface Raw {
12
- bin_granularity: SwizzlingBinGranularity.Raw;
13
- bin_count?: number | null;
14
- gather_every: Period.Raw;
15
- }
16
- }
@@ -1,10 +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
- export declare const SwizzlingBinGranularity: core.serialization.Schema<serializers.SwizzlingBinGranularity.Raw, Vital.SwizzlingBinGranularity>;
8
- export declare namespace SwizzlingBinGranularity {
9
- type Raw = "minute" | "hour" | "day" | "week" | "month";
10
- }
@@ -1,13 +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 { ActivitySelectorActivity } from "./ActivitySelectorActivity";
8
- export declare const ActivitySelector: core.serialization.ObjectSchema<serializers.ActivitySelector.Raw, Vital.ActivitySelector>;
9
- export declare namespace ActivitySelector {
10
- interface Raw {
11
- activity: ActivitySelectorActivity.Raw;
12
- }
13
- }
@@ -1,12 +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 { Period } from "./Period";
8
- import { Placeholder } from "./Placeholder";
9
- export declare const QueryInstructionPartitionBy: core.serialization.Schema<serializers.QueryInstructionPartitionBy.Raw, Vital.QueryInstructionPartitionBy>;
10
- export declare namespace QueryInstructionPartitionBy {
11
- type Raw = Period.Raw | Placeholder.Raw;
12
- }
@@ -1,12 +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 { SleepSelector } from "./SleepSelector";
8
- import { ActivitySelector } from "./ActivitySelector";
9
- export declare const QueryInstructionSelect: core.serialization.Schema<serializers.QueryInstructionSelect.Raw, Vital.QueryInstructionSelect>;
10
- export declare namespace QueryInstructionSelect {
11
- type Raw = SleepSelector.Raw | ActivitySelector.Raw;
12
- }
@@ -1,33 +0,0 @@
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.QueryInstructionSelect = void 0;
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]);
@@ -1,13 +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 { ReducerFunction } from "./ReducerFunction";
8
- export declare const Reducer: core.serialization.ObjectSchema<serializers.Reducer.Raw, Vital.Reducer>;
9
- export declare namespace Reducer {
10
- interface Raw {
11
- function: ReducerFunction.Raw;
12
- }
13
- }
@@ -1,13 +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 { SleepSelectorSleep } from "./SleepSelectorSleep";
8
- export declare const SleepSelector: core.serialization.ObjectSchema<serializers.SleepSelector.Raw, Vital.SleepSelector>;
9
- export declare namespace SleepSelector {
10
- interface Raw {
11
- sleep: SleepSelectorSleep.Raw;
12
- }
13
- }
@@ -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 { SwizzlingBinGranularity } from "./SwizzlingBinGranularity";
8
- import { Period } from "./Period";
9
- export declare const Swizzling: core.serialization.ObjectSchema<serializers.Swizzling.Raw, Vital.Swizzling>;
10
- export declare namespace Swizzling {
11
- interface Raw {
12
- bin_granularity: SwizzlingBinGranularity.Raw;
13
- bin_count?: number | null;
14
- gather_every: Period.Raw;
15
- }
16
- }
@@ -1,37 +0,0 @@
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.Swizzling = void 0;
30
- const core = __importStar(require("../../core"));
31
- const SwizzlingBinGranularity_1 = require("./SwizzlingBinGranularity");
32
- const Period_1 = require("./Period");
33
- exports.Swizzling = core.serialization.object({
34
- binGranularity: core.serialization.property("bin_granularity", SwizzlingBinGranularity_1.SwizzlingBinGranularity),
35
- binCount: core.serialization.property("bin_count", core.serialization.number().optional()),
36
- gatherEvery: core.serialization.property("gather_every", Period_1.Period),
37
- });
@@ -1,10 +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
- export declare const SwizzlingBinGranularity: core.serialization.Schema<serializers.SwizzlingBinGranularity.Raw, Vital.SwizzlingBinGranularity>;
8
- export declare namespace SwizzlingBinGranularity {
9
- type Raw = "minute" | "hour" | "day" | "week" | "month";
10
- }
File without changes
File without changes
File without changes