@tryvital/vital-node 3.0.7 → 3.0.8

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 (237) hide show
  1. package/Client.d.ts +1 -0
  2. package/api/errors/BadRequestError.js +1 -0
  3. package/api/errors/UnprocessableEntityError.js +1 -0
  4. package/api/resources/activity/client/Client.d.ts +11 -0
  5. package/api/resources/activity/client/Client.js +22 -11
  6. package/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +6 -0
  7. package/api/resources/activity/client/requests/ActivityGetRequest.d.ts +6 -0
  8. package/api/resources/body/client/Client.d.ts +11 -0
  9. package/api/resources/body/client/Client.js +22 -11
  10. package/api/resources/body/client/requests/BodyGetRawRequest.d.ts +6 -0
  11. package/api/resources/body/client/requests/BodyGetRequest.d.ts +6 -0
  12. package/api/resources/devices/client/Client.d.ts +4 -0
  13. package/api/resources/devices/client/Client.js +7 -4
  14. package/api/resources/devices/client/requests/DevicesGetRawRequest.d.ts +4 -0
  15. package/api/resources/insurance/client/Client.d.ts +6 -0
  16. package/api/resources/insurance/client/Client.js +11 -5
  17. package/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +6 -0
  18. package/api/resources/introspect/client/Client.d.ts +11 -0
  19. package/api/resources/introspect/client/Client.js +24 -13
  20. package/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +6 -0
  21. package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +6 -0
  22. package/api/resources/labTests/client/Client.d.ts +21 -1
  23. package/api/resources/labTests/client/Client.js +115 -59
  24. package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  25. package/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +4 -0
  26. package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +4 -0
  27. package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
  28. package/api/resources/link/client/Client.d.ts +7 -0
  29. package/api/resources/link/client/Client.js +35 -17
  30. package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +4 -0
  31. package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +4 -0
  32. package/api/resources/meal/client/Client.d.ts +6 -0
  33. package/api/resources/meal/client/Client.js +11 -6
  34. package/api/resources/meal/client/requests/MealGetRequest.d.ts +6 -0
  35. package/api/resources/profile/client/Client.d.ts +1 -0
  36. package/api/resources/profile/client/Client.js +8 -7
  37. package/api/resources/providers/client/Client.d.ts +4 -0
  38. package/api/resources/providers/client/Client.js +5 -1
  39. package/api/resources/sleep/client/Client.d.ts +19 -0
  40. package/api/resources/sleep/client/Client.js +38 -17
  41. package/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +6 -0
  42. package/api/resources/sleep/client/requests/SleepGetRequest.d.ts +6 -0
  43. package/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +6 -0
  44. package/api/resources/team/client/Client.d.ts +18 -0
  45. package/api/resources/team/client/Client.js +37 -14
  46. package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +4 -0
  47. package/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.d.ts +4 -0
  48. package/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts +4 -0
  49. package/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +6 -0
  50. package/api/resources/testkit/client/Client.d.ts +1 -0
  51. package/api/resources/testkit/client/Client.js +4 -2
  52. package/api/resources/user/client/Client.d.ts +7 -0
  53. package/api/resources/user/client/Client.js +33 -17
  54. package/api/resources/user/client/requests/UserPatchBody.d.ts +4 -0
  55. package/api/resources/vitals/client/Client.d.ts +116 -0
  56. package/api/resources/vitals/client/Client.js +253 -116
  57. package/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +6 -0
  58. package/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +6 -0
  59. package/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +6 -0
  60. package/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +6 -0
  61. package/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +6 -0
  62. package/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +6 -0
  63. package/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +6 -0
  64. package/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +6 -0
  65. package/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +6 -0
  66. package/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +6 -0
  67. package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +6 -0
  68. package/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +6 -0
  69. package/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +6 -0
  70. package/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +6 -0
  71. package/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +6 -0
  72. package/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +6 -0
  73. package/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +6 -0
  74. package/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +6 -0
  75. package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +6 -0
  76. package/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +6 -0
  77. package/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +6 -0
  78. package/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.d.ts +6 -0
  79. package/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +6 -0
  80. package/api/resources/workouts/client/Client.d.ts +14 -0
  81. package/api/resources/workouts/client/Client.js +27 -12
  82. package/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +6 -0
  83. package/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +6 -0
  84. package/api/types/ClientFacingDiagnosisInformation.d.ts +2 -2
  85. package/api/types/ClientFacingLabTest.d.ts +1 -1
  86. package/api/types/ClientFacingOrder.d.ts +1 -1
  87. package/api/types/ClientFacingPayorSearchResponse.d.ts +3 -3
  88. package/api/types/ClientFacingSleep.d.ts +1 -1
  89. package/api/types/ClientFacingUser.d.ts +0 -1
  90. package/api/types/FallbackTimeZone.d.ts +0 -1
  91. package/api/types/index.d.ts +7 -7
  92. package/api/types/index.js +7 -7
  93. package/core/fetcher/APIResponse.d.ts +1 -0
  94. package/core/fetcher/Fetcher.d.ts +3 -6
  95. package/core/fetcher/Fetcher.js +70 -26
  96. package/core/fetcher/getHeader.d.ts +1 -0
  97. package/{dist/core/streaming-fetcher → core/fetcher}/getHeader.js +2 -2
  98. package/core/fetcher/index.d.ts +1 -0
  99. package/core/fetcher/index.js +3 -1
  100. package/core/index.d.ts +0 -1
  101. package/core/index.js +0 -1
  102. package/core/schemas/Schema.d.ts +1 -0
  103. package/core/schemas/Schema.js +1 -0
  104. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  105. package/core/schemas/builders/literals/booleanLiteral.js +29 -0
  106. package/core/schemas/builders/literals/index.d.ts +1 -0
  107. package/core/schemas/builders/literals/index.js +3 -1
  108. package/core/schemas/builders/object/index.d.ts +2 -0
  109. package/core/schemas/builders/object/index.js +3 -1
  110. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  111. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  112. package/dist/Client.d.ts +1 -0
  113. package/dist/api/errors/BadRequestError.js +1 -0
  114. package/dist/api/errors/UnprocessableEntityError.js +1 -0
  115. package/dist/api/resources/activity/client/Client.d.ts +11 -0
  116. package/dist/api/resources/activity/client/Client.js +22 -11
  117. package/dist/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +6 -0
  118. package/dist/api/resources/activity/client/requests/ActivityGetRequest.d.ts +6 -0
  119. package/dist/api/resources/body/client/Client.d.ts +11 -0
  120. package/dist/api/resources/body/client/Client.js +22 -11
  121. package/dist/api/resources/body/client/requests/BodyGetRawRequest.d.ts +6 -0
  122. package/dist/api/resources/body/client/requests/BodyGetRequest.d.ts +6 -0
  123. package/dist/api/resources/devices/client/Client.d.ts +4 -0
  124. package/dist/api/resources/devices/client/Client.js +7 -4
  125. package/dist/api/resources/devices/client/requests/DevicesGetRawRequest.d.ts +4 -0
  126. package/dist/api/resources/insurance/client/Client.d.ts +6 -0
  127. package/dist/api/resources/insurance/client/Client.js +11 -5
  128. package/dist/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +6 -0
  129. package/dist/api/resources/introspect/client/Client.d.ts +11 -0
  130. package/dist/api/resources/introspect/client/Client.js +24 -13
  131. package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +6 -0
  132. package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +6 -0
  133. package/dist/api/resources/labTests/client/Client.d.ts +21 -1
  134. package/dist/api/resources/labTests/client/Client.js +115 -59
  135. package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  136. package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +4 -0
  137. package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +4 -0
  138. package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
  139. package/dist/api/resources/link/client/Client.d.ts +7 -0
  140. package/dist/api/resources/link/client/Client.js +35 -17
  141. package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +4 -0
  142. package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +4 -0
  143. package/dist/api/resources/meal/client/Client.d.ts +6 -0
  144. package/dist/api/resources/meal/client/Client.js +11 -6
  145. package/dist/api/resources/meal/client/requests/MealGetRequest.d.ts +6 -0
  146. package/dist/api/resources/profile/client/Client.d.ts +1 -0
  147. package/dist/api/resources/profile/client/Client.js +8 -7
  148. package/dist/api/resources/providers/client/Client.d.ts +4 -0
  149. package/dist/api/resources/providers/client/Client.js +5 -1
  150. package/dist/api/resources/sleep/client/Client.d.ts +19 -0
  151. package/dist/api/resources/sleep/client/Client.js +38 -17
  152. package/dist/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +6 -0
  153. package/dist/api/resources/sleep/client/requests/SleepGetRequest.d.ts +6 -0
  154. package/dist/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +6 -0
  155. package/dist/api/resources/team/client/Client.d.ts +18 -0
  156. package/dist/api/resources/team/client/Client.js +37 -14
  157. package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +4 -0
  158. package/dist/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.d.ts +4 -0
  159. package/dist/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts +4 -0
  160. package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +6 -0
  161. package/dist/api/resources/testkit/client/Client.d.ts +1 -0
  162. package/dist/api/resources/testkit/client/Client.js +4 -2
  163. package/dist/api/resources/user/client/Client.d.ts +7 -0
  164. package/dist/api/resources/user/client/Client.js +33 -17
  165. package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +4 -0
  166. package/dist/api/resources/vitals/client/Client.d.ts +116 -0
  167. package/dist/api/resources/vitals/client/Client.js +253 -116
  168. package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +6 -0
  169. package/dist/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +6 -0
  170. package/dist/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +6 -0
  171. package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +6 -0
  172. package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +6 -0
  173. package/dist/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +6 -0
  174. package/dist/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +6 -0
  175. package/dist/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +6 -0
  176. package/dist/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +6 -0
  177. package/dist/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +6 -0
  178. package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +6 -0
  179. package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +6 -0
  180. package/dist/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +6 -0
  181. package/dist/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +6 -0
  182. package/dist/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +6 -0
  183. package/dist/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +6 -0
  184. package/dist/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +6 -0
  185. package/dist/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +6 -0
  186. package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +6 -0
  187. package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +6 -0
  188. package/dist/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +6 -0
  189. package/dist/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.d.ts +6 -0
  190. package/dist/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +6 -0
  191. package/dist/api/resources/workouts/client/Client.d.ts +14 -0
  192. package/dist/api/resources/workouts/client/Client.js +27 -12
  193. package/dist/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +6 -0
  194. package/dist/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +6 -0
  195. package/dist/api/types/ClientFacingDiagnosisInformation.d.ts +2 -2
  196. package/dist/api/types/ClientFacingLabTest.d.ts +1 -1
  197. package/dist/api/types/ClientFacingOrder.d.ts +1 -1
  198. package/dist/api/types/ClientFacingPayorSearchResponse.d.ts +3 -3
  199. package/dist/api/types/ClientFacingSleep.d.ts +1 -1
  200. package/dist/api/types/ClientFacingUser.d.ts +0 -1
  201. package/dist/api/types/FallbackTimeZone.d.ts +0 -1
  202. package/dist/api/types/index.d.ts +7 -7
  203. package/dist/api/types/index.js +7 -7
  204. package/dist/core/fetcher/APIResponse.d.ts +1 -0
  205. package/dist/core/fetcher/Fetcher.d.ts +3 -6
  206. package/dist/core/fetcher/Fetcher.js +70 -26
  207. package/dist/core/fetcher/getHeader.d.ts +1 -0
  208. package/{core/streaming-fetcher → dist/core/fetcher}/getHeader.js +2 -2
  209. package/dist/core/fetcher/index.d.ts +1 -0
  210. package/dist/core/fetcher/index.js +3 -1
  211. package/dist/core/index.d.ts +0 -1
  212. package/dist/core/index.js +0 -1
  213. package/dist/core/schemas/Schema.d.ts +1 -0
  214. package/dist/core/schemas/Schema.js +1 -0
  215. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  216. package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
  217. package/dist/core/schemas/builders/literals/index.d.ts +1 -0
  218. package/dist/core/schemas/builders/literals/index.js +3 -1
  219. package/dist/core/schemas/builders/object/index.d.ts +2 -0
  220. package/dist/core/schemas/builders/object/index.js +3 -1
  221. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  222. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  223. package/dist/serialization/types/index.d.ts +7 -7
  224. package/dist/serialization/types/index.js +7 -7
  225. package/package.json +7 -4
  226. package/serialization/types/index.d.ts +7 -7
  227. package/serialization/types/index.js +7 -7
  228. package/core/streaming-fetcher/StreamingFetcher.d.ts +0 -30
  229. package/core/streaming-fetcher/StreamingFetcher.js +0 -79
  230. package/core/streaming-fetcher/getHeader.d.ts +0 -2
  231. package/core/streaming-fetcher/index.d.ts +0 -3
  232. package/core/streaming-fetcher/index.js +0 -7
  233. package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +0 -30
  234. package/dist/core/streaming-fetcher/StreamingFetcher.js +0 -79
  235. package/dist/core/streaming-fetcher/getHeader.d.ts +0 -2
  236. package/dist/core/streaming-fetcher/index.d.ts +0 -3
  237. package/dist/core/streaming-fetcher/index.js +0 -7
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsBloodOxygenRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsBloodPressureRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsCaffeineRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsCaloriesActiveRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsCaloriesBasalRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsCholesterolHdlRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsCholesterolLdlRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsCholesterolRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsCholesterolTotalRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsDistanceRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsElectrocardiogramVoltageRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsFloorsClimbedRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsGlucoseRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsHeartrateRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsHrvRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsHypnogramRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsIgeRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsIggRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsMindfulnessMinutesRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsRespiratoryRateRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsStepsRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsTriglyceridesRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface VitalsWaterRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -11,6 +11,7 @@ export declare namespace Workouts {
11
11
  }
12
12
  interface RequestOptions {
13
13
  timeoutInSeconds?: number;
14
+ maxRetries?: number;
14
15
  }
15
16
  }
16
17
  export declare class Workouts {
@@ -19,15 +20,28 @@ export declare class Workouts {
19
20
  /**
20
21
  * Get Daily workout for user_id
21
22
  * @throws {@link Vital.UnprocessableEntityError}
23
+ *
24
+ * @example
25
+ * await vital.workouts.get("user-id", {
26
+ * startDate: "start-date"
27
+ * })
22
28
  */
23
29
  get(userId: string, request: Vital.WorkoutsGetRequest, requestOptions?: Workouts.RequestOptions): Promise<Vital.ClientWorkoutResponse>;
24
30
  /**
25
31
  * Get Daily workout for user_id
26
32
  * @throws {@link Vital.UnprocessableEntityError}
33
+ *
34
+ * @example
35
+ * await vital.workouts.getRaw("user-id", {
36
+ * startDate: "start-date"
37
+ * })
27
38
  */
28
39
  getRaw(userId: string, request: Vital.WorkoutsGetRawRequest, requestOptions?: Workouts.RequestOptions): Promise<Vital.RawWorkout>;
29
40
  /**
30
41
  * @throws {@link Vital.UnprocessableEntityError}
42
+ *
43
+ * @example
44
+ * await vital.workouts.getByWorkoutId("workout-id")
31
45
  */
32
46
  getByWorkoutId(workoutId: string, requestOptions?: Workouts.RequestOptions): Promise<Vital.ClientFacingStream>;
33
47
  }
@@ -42,7 +42,6 @@ exports.Workouts = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
44
  const Vital = __importStar(require("../../.."));
45
- const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
46
45
  const url_join_1 = __importDefault(require("url-join"));
47
46
  const serializers = __importStar(require("../../../../serialization"));
48
47
  const errors = __importStar(require("../../../../errors"));
@@ -53,18 +52,23 @@ class Workouts {
53
52
  /**
54
53
  * Get Daily workout for user_id
55
54
  * @throws {@link Vital.UnprocessableEntityError}
55
+ *
56
+ * @example
57
+ * await vital.workouts.get("user-id", {
58
+ * startDate: "start-date"
59
+ * })
56
60
  */
57
61
  get(userId, request, requestOptions) {
58
62
  var _a;
59
63
  return __awaiter(this, void 0, void 0, function* () {
60
64
  const { provider, startDate, endDate } = request;
61
- const _queryParams = new url_search_params_1.default();
65
+ const _queryParams = {};
62
66
  if (provider != null) {
63
- _queryParams.append("provider", provider);
67
+ _queryParams["provider"] = provider;
64
68
  }
65
- _queryParams.append("start_date", startDate);
69
+ _queryParams["start_date"] = startDate;
66
70
  if (endDate != null) {
67
- _queryParams.append("end_date", endDate);
71
+ _queryParams["end_date"] = endDate;
68
72
  }
69
73
  const _response = yield core.fetcher({
70
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${userId}`),
@@ -73,11 +77,12 @@ class Workouts {
73
77
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
74
78
  "X-Fern-Language": "JavaScript",
75
79
  "X-Fern-SDK-Name": "@tryvital/vital-node",
76
- "X-Fern-SDK-Version": "3.0.7",
80
+ "X-Fern-SDK-Version": "3.0.8",
77
81
  },
78
82
  contentType: "application/json",
79
83
  queryParameters: _queryParams,
80
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
81
86
  });
82
87
  if (_response.ok) {
83
88
  return yield serializers.ClientWorkoutResponse.parseOrThrow(_response.body, {
@@ -121,18 +126,23 @@ class Workouts {
121
126
  /**
122
127
  * Get Daily workout for user_id
123
128
  * @throws {@link Vital.UnprocessableEntityError}
129
+ *
130
+ * @example
131
+ * await vital.workouts.getRaw("user-id", {
132
+ * startDate: "start-date"
133
+ * })
124
134
  */
125
135
  getRaw(userId, request, requestOptions) {
126
136
  var _a;
127
137
  return __awaiter(this, void 0, void 0, function* () {
128
138
  const { provider, startDate, endDate } = request;
129
- const _queryParams = new url_search_params_1.default();
139
+ const _queryParams = {};
130
140
  if (provider != null) {
131
- _queryParams.append("provider", provider);
141
+ _queryParams["provider"] = provider;
132
142
  }
133
- _queryParams.append("start_date", startDate);
143
+ _queryParams["start_date"] = startDate;
134
144
  if (endDate != null) {
135
- _queryParams.append("end_date", endDate);
145
+ _queryParams["end_date"] = endDate;
136
146
  }
137
147
  const _response = yield core.fetcher({
138
148
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${userId}/raw`),
@@ -141,11 +151,12 @@ class Workouts {
141
151
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
142
152
  "X-Fern-Language": "JavaScript",
143
153
  "X-Fern-SDK-Name": "@tryvital/vital-node",
144
- "X-Fern-SDK-Version": "3.0.7",
154
+ "X-Fern-SDK-Version": "3.0.8",
145
155
  },
146
156
  contentType: "application/json",
147
157
  queryParameters: _queryParams,
148
158
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
159
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
149
160
  });
150
161
  if (_response.ok) {
151
162
  return yield serializers.RawWorkout.parseOrThrow(_response.body, {
@@ -188,6 +199,9 @@ class Workouts {
188
199
  }
189
200
  /**
190
201
  * @throws {@link Vital.UnprocessableEntityError}
202
+ *
203
+ * @example
204
+ * await vital.workouts.getByWorkoutId("workout-id")
191
205
  */
192
206
  getByWorkoutId(workoutId, requestOptions) {
193
207
  var _a;
@@ -199,10 +213,11 @@ class Workouts {
199
213
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
200
214
  "X-Fern-Language": "JavaScript",
201
215
  "X-Fern-SDK-Name": "@tryvital/vital-node",
202
- "X-Fern-SDK-Version": "3.0.7",
216
+ "X-Fern-SDK-Version": "3.0.8",
203
217
  },
204
218
  contentType: "application/json",
205
219
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
220
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
206
221
  });
207
222
  if (_response.ok) {
208
223
  return yield serializers.ClientFacingStream.parseOrThrow(_response.body, {
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface WorkoutsGetRawRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * startDate: "start-date"
8
+ * }
9
+ */
4
10
  export interface WorkoutsGetRequest {
5
11
  /**
6
12
  * Provider oura/strava etc
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ClientFacingDiagnosisInformation {
5
- /** Diagnosis code for insurance information required by Labcorp. */
5
+ /** Diagnosis code for insurance information. */
6
6
  diagnosisCode: string;
7
- /** Diagnosis description insurance information required by Labcorp. */
7
+ /** Diagnosis description insurance information. */
8
8
  description: string;
9
9
  }
@@ -12,7 +12,7 @@ export interface ClientFacingLabTest {
12
12
  /** Deprecated. Use status instead. */
13
13
  isActive: boolean;
14
14
  status: Vital.LabTestStatus;
15
- /** Defines whether a lab test requires fasting. Only available for Labcorp. */
15
+ /** Defines whether a lab test requires fasting. */
16
16
  fasting?: boolean;
17
17
  lab?: Vital.ClientFacingLab;
18
18
  markers?: Vital.ClientFacingMarker[];
@@ -31,7 +31,7 @@ export interface ClientFacingOrder {
31
31
  healthInsuranceId?: string;
32
32
  /** DEPRECATED. Requistion form url. */
33
33
  requisitionFormUrl?: string;
34
- /** Defines whether order is priority or not. Only available for Labcorp. For Labcorp, this corresponds to a STAT order. */
34
+ /** Defines whether order is priority or not. For some labs, this refers to a STAT order. */
35
35
  priority?: boolean;
36
36
  /** Shipping Details. For unregistered testkit orders. */
37
37
  shippingDetails?: Vital.ShippingAddress;
@@ -3,10 +3,10 @@
3
3
  */
4
4
  import * as Vital from "..";
5
5
  export interface ClientFacingPayorSearchResponse {
6
- /** Payor code returned for the insurance information required by Labcorp. */
6
+ /** Payor code returned for the insurance information. */
7
7
  code: string;
8
- /** Insurance name returned for the insurance information required by Labcorp. */
8
+ /** Insurance name returned for the insurance information. */
9
9
  name: string;
10
- /** Insurance business address returned for the insurance information required by Labcorp. */
10
+ /** Insurance business address returned for the insurance information. */
11
11
  orgAddress: Vital.Address;
12
12
  }
@@ -34,7 +34,7 @@ export interface ClientFacingSleep {
34
34
  hrLowest?: number;
35
35
  /** The average heart rate registered during the sleep period::beats per minute */
36
36
  hrAverage?: number;
37
- /** Sleep efficiency is the percentage of the sleep period spent asleep (100% * sleep.total / sleep.duration)::perc */
37
+ /** Sleep efficiency is the percentage of the sleep period spent asleep (100% \* sleep.total / sleep.duration)::perc */
38
38
  efficiency?: number;
39
39
  /** Detected latency from bedtime_start to the beginning of the first five minutes of persistent sleep::seconds */
40
40
  latency?: number;
@@ -16,7 +16,6 @@ export interface ClientFacingUser {
16
16
  /**
17
17
  * Fallback time zone of the user, in the form of a valid IANA tzdatabase identifier (e.g., `Europe/London` or `America/Los_Angeles`).
18
18
  * Used when pulling data from sources that are completely time zone agnostic (e.g., all time is relative to UTC clock, without any time zone attributions on data points).
19
- *
20
19
  */
21
20
  fallbackTimeZone?: Vital.FallbackTimeZone;
22
21
  }
@@ -5,7 +5,6 @@ export interface FallbackTimeZone {
5
5
  /**
6
6
  * Fallback time zone of the user, in the form of a valid IANA tzdatabase identifier (e.g., `Europe/London` or `America/Los_Angeles`).
7
7
  * Used when pulling data from sources that are completely time zone agnostic (e.g., all time is relative to UTC clock, without any time zone attributions on data points).
8
- *
9
8
  */
10
9
  id: string;
11
10
  /** Slug for designated source */
@@ -1,4 +1,3 @@
1
- export * from "./UsAddress";
2
1
  export * from "./ActivityV2InDb";
3
2
  export * from "./Address";
4
3
  export * from "./AppointmentAvailabilitySlots";
@@ -47,8 +46,8 @@ export * from "./ClientFacingMarker";
47
46
  export * from "./ClientFacingMarkerComplete";
48
47
  export * from "./ClientFacingMealResponse";
49
48
  export * from "./ClientFacingMindfulnessMinutesTimeseries";
50
- export * from "./ClientFacingOrder";
51
49
  export * from "./ClientFacingOrderDetails";
50
+ export * from "./ClientFacingOrder";
52
51
  export * from "./ClientFacingOrderEvent";
53
52
  export * from "./ClientFacingPatientDetailsCompatible";
54
53
  export * from "./ClientFacingPayorSearchResponse";
@@ -89,24 +88,24 @@ export * from "./DemoProviders";
89
88
  export * from "./DeviceV2InDb";
90
89
  export * from "./EmailProviders";
91
90
  export * from "./Energy";
92
- export * from "./EventDestinationPreferences";
93
91
  export * from "./EventDestinationPreferencesPreferred";
94
92
  export * from "./EventDestinationPreferencesEnabledItem";
93
+ export * from "./EventDestinationPreferences";
95
94
  export * from "./FallbackTimeZone";
96
95
  export * from "./Fats";
97
96
  export * from "./Gender";
98
97
  export * from "./GetMarkersResponse";
99
98
  export * from "./GetOrdersResponse";
100
99
  export * from "./HttpValidationError";
101
- export * from "./HealthInsuranceCreateRequest";
102
100
  export * from "./HealthInsuranceCreateRequestFrontImage";
103
101
  export * from "./HealthInsuranceCreateRequestBackImage";
104
102
  export * from "./HealthInsuranceCreateRequestPatientSignatureImage";
103
+ export * from "./HealthInsuranceCreateRequest";
105
104
  export * from "./HistoricalPullStatus";
106
105
  export * from "./Jpeg";
107
106
  export * from "./LabResultsMetadata";
108
- export * from "./LabResultsRaw";
109
107
  export * from "./LabResultsRawResults";
108
+ export * from "./LabResultsRaw";
110
109
  export * from "./LabTestCollectionMethod";
111
110
  export * from "./LabTestSampleType";
112
111
  export * from "./LabTestStatus";
@@ -130,8 +129,8 @@ export * from "./PatientDetails";
130
129
  export * from "./PersonDetails";
131
130
  export * from "./PhlebotomyAreaInfo";
132
131
  export * from "./PhlebotomyProviderInfo";
133
- export * from "./PhysicianCreateRequest";
134
132
  export * from "./PhysicianCreateRequestSignatureImage";
133
+ export * from "./PhysicianCreateRequest";
135
134
  export * from "./PhysicianCreateRequestBase";
136
135
  export * from "./Png";
137
136
  export * from "./PostOrderResponse";
@@ -162,13 +161,14 @@ export * from "./TeamConfig";
162
161
  export * from "./TimeSlot";
163
162
  export * from "./TimeseriesMetricPoint";
164
163
  export * from "./TimeseriesResource";
164
+ export * from "./UsAddress";
165
165
  export * from "./UserHistoricalPullsResponse";
166
166
  export * from "./UserRefreshErrorResponse";
167
167
  export * from "./UserRefreshSuccessResponse";
168
168
  export * from "./UserResourcesResponse";
169
169
  export * from "./UserSignInTokenResponse";
170
170
  export * from "./UserSuccessResponse";
171
- export * from "./ValidationError";
172
171
  export * from "./ValidationErrorLocItem";
172
+ export * from "./ValidationError";
173
173
  export * from "./VitalTokenCreatedResponse";
174
174
  export * from "./WorkoutV2InDb";