@tryvital/vital-node 3.0.2 → 3.0.4

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 (243) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/body/client/Client.js +2 -2
  5. package/api/resources/devices/client/Client.js +1 -1
  6. package/api/resources/index.d.ts +2 -0
  7. package/api/resources/index.js +3 -1
  8. package/api/resources/insurance/client/Client.js +2 -2
  9. package/api/resources/introspect/client/Client.d.ts +23 -0
  10. package/api/resources/introspect/client/Client.js +126 -0
  11. package/api/resources/introspect/client/index.d.ts +1 -0
  12. package/api/resources/introspect/client/index.js +17 -0
  13. package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
  14. package/api/resources/introspect/client/requests/index.d.ts +1 -0
  15. package/api/resources/introspect/client/requests/index.js +2 -0
  16. package/api/resources/introspect/index.d.ts +1 -0
  17. package/api/resources/introspect/index.js +17 -0
  18. package/api/resources/labTests/client/Client.d.ts +6 -1
  19. package/api/resources/labTests/client/Client.js +93 -24
  20. package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
  21. package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
  22. package/api/resources/labTests/client/requests/index.d.ts +1 -0
  23. package/api/resources/link/client/Client.js +14 -14
  24. package/api/resources/meal/client/Client.js +1 -1
  25. package/api/resources/profile/client/Client.js +2 -2
  26. package/api/resources/providers/client/Client.js +1 -1
  27. package/api/resources/sleep/client/Client.js +4 -4
  28. package/api/resources/team/client/Client.d.ts +4 -0
  29. package/api/resources/team/client/Client.js +63 -6
  30. package/api/resources/testkit/client/Client.js +2 -2
  31. package/api/resources/user/client/Client.d.ts +2 -2
  32. package/api/resources/user/client/Client.js +23 -23
  33. package/api/resources/vitals/client/Client.js +23 -23
  34. package/api/resources/workouts/client/Client.js +3 -3
  35. package/api/types/ActivityV2InDb.d.ts +1 -1
  36. package/api/types/AttemptStatus.d.ts +11 -0
  37. package/api/types/AttemptStatus.js +10 -0
  38. package/api/types/BodyV2InDb.d.ts +1 -1
  39. package/api/types/ClientFacingLabTest.d.ts +2 -0
  40. package/api/types/ClientFacingOrder.d.ts +1 -1
  41. package/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
  42. package/api/types/ClientFacingPhysician.js +5 -0
  43. package/api/types/ClientFacingTeam.d.ts +1 -0
  44. package/api/types/DelegatedFlowType.d.ts +12 -0
  45. package/api/types/DelegatedFlowType.js +11 -0
  46. package/api/types/EventDestinationPreferences.d.ts +8 -0
  47. package/api/types/EventDestinationPreferences.js +5 -0
  48. package/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
  49. package/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
  50. package/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
  51. package/api/types/EventDestinationPreferencesPreferred.js +11 -0
  52. package/api/types/GetMarkersResponse.d.ts +4 -3
  53. package/api/types/GetOrdersResponse.d.ts +3 -3
  54. package/api/types/LabTestStatus.d.ts +12 -0
  55. package/api/types/LabTestStatus.js +11 -0
  56. package/api/types/LastAttempt.d.ts +8 -0
  57. package/api/types/LastAttempt.js +5 -0
  58. package/api/types/PatientAddressCompatible.d.ts +2 -2
  59. package/api/types/SingleResourceStatistics.d.ts +10 -0
  60. package/api/types/SingleResourceStatistics.js +5 -0
  61. package/api/types/SingleUserResourceResponse.d.ts +6 -0
  62. package/api/types/SingleUserResourceResponse.js +5 -0
  63. package/api/types/SleepV2InDb.d.ts +1 -1
  64. package/api/types/TeamConfig.d.ts +3 -0
  65. package/api/types/UserResourcesResponse.d.ts +8 -0
  66. package/api/types/UserResourcesResponse.js +5 -0
  67. package/api/types/WorkoutV2InDb.d.ts +1 -1
  68. package/api/types/index.d.ts +11 -1
  69. package/api/types/index.js +11 -1
  70. package/dist/Client.d.ts +3 -0
  71. package/dist/Client.js +11 -6
  72. package/dist/api/resources/activity/client/Client.js +2 -2
  73. package/dist/api/resources/body/client/Client.js +2 -2
  74. package/dist/api/resources/devices/client/Client.js +1 -1
  75. package/dist/api/resources/index.d.ts +2 -0
  76. package/dist/api/resources/index.js +3 -1
  77. package/dist/api/resources/insurance/client/Client.js +2 -2
  78. package/dist/api/resources/introspect/client/Client.d.ts +23 -0
  79. package/dist/api/resources/introspect/client/Client.js +126 -0
  80. package/dist/api/resources/introspect/client/index.d.ts +1 -0
  81. package/dist/api/resources/introspect/client/index.js +17 -0
  82. package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
  83. package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js +5 -0
  84. package/dist/api/resources/introspect/client/requests/index.d.ts +1 -0
  85. package/dist/api/resources/introspect/client/requests/index.js +2 -0
  86. package/dist/api/resources/introspect/index.d.ts +1 -0
  87. package/dist/api/resources/introspect/index.js +17 -0
  88. package/dist/api/resources/labTests/client/Client.d.ts +6 -1
  89. package/dist/api/resources/labTests/client/Client.js +93 -24
  90. package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
  91. package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
  92. package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js +5 -0
  93. package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
  94. package/dist/api/resources/link/client/Client.js +14 -14
  95. package/dist/api/resources/meal/client/Client.js +1 -1
  96. package/dist/api/resources/profile/client/Client.js +2 -2
  97. package/dist/api/resources/providers/client/Client.js +1 -1
  98. package/dist/api/resources/sleep/client/Client.js +4 -4
  99. package/dist/api/resources/team/client/Client.d.ts +4 -0
  100. package/dist/api/resources/team/client/Client.js +63 -6
  101. package/dist/api/resources/testkit/client/Client.js +2 -2
  102. package/dist/api/resources/user/client/Client.d.ts +2 -2
  103. package/dist/api/resources/user/client/Client.js +23 -23
  104. package/dist/api/resources/vitals/client/Client.js +23 -23
  105. package/dist/api/resources/workouts/client/Client.js +3 -3
  106. package/dist/api/types/ActivityV2InDb.d.ts +1 -1
  107. package/dist/api/types/AttemptStatus.d.ts +11 -0
  108. package/dist/api/types/AttemptStatus.js +10 -0
  109. package/dist/api/types/BodyV2InDb.d.ts +1 -1
  110. package/dist/api/types/ClientFacingLabTest.d.ts +2 -0
  111. package/dist/api/types/ClientFacingOrder.d.ts +1 -1
  112. package/dist/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
  113. package/dist/api/types/ClientFacingPhysician.js +5 -0
  114. package/dist/api/types/ClientFacingTeam.d.ts +1 -0
  115. package/dist/api/types/DelegatedFlowType.d.ts +12 -0
  116. package/dist/api/types/DelegatedFlowType.js +11 -0
  117. package/dist/api/types/EventDestinationPreferences.d.ts +8 -0
  118. package/dist/api/types/EventDestinationPreferences.js +5 -0
  119. package/dist/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
  120. package/dist/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
  121. package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
  122. package/dist/api/types/EventDestinationPreferencesPreferred.js +11 -0
  123. package/dist/api/types/GetMarkersResponse.d.ts +4 -3
  124. package/dist/api/types/GetOrdersResponse.d.ts +3 -3
  125. package/dist/api/types/LabTestStatus.d.ts +12 -0
  126. package/dist/api/types/LabTestStatus.js +11 -0
  127. package/dist/api/types/LastAttempt.d.ts +8 -0
  128. package/dist/api/types/LastAttempt.js +5 -0
  129. package/dist/api/types/PatientAddressCompatible.d.ts +2 -2
  130. package/dist/api/types/SingleResourceStatistics.d.ts +10 -0
  131. package/dist/api/types/SingleResourceStatistics.js +5 -0
  132. package/dist/api/types/SingleUserResourceResponse.d.ts +6 -0
  133. package/dist/api/types/SingleUserResourceResponse.js +5 -0
  134. package/dist/api/types/SleepV2InDb.d.ts +1 -1
  135. package/dist/api/types/TeamConfig.d.ts +3 -0
  136. package/dist/api/types/UserResourcesResponse.d.ts +8 -0
  137. package/dist/api/types/UserResourcesResponse.js +5 -0
  138. package/dist/api/types/WorkoutV2InDb.d.ts +1 -1
  139. package/dist/api/types/index.d.ts +11 -1
  140. package/dist/api/types/index.js +11 -1
  141. package/dist/serialization/resources/team/client/getPhysicians.d.ts +10 -0
  142. package/dist/serialization/resources/team/client/getPhysicians.js +40 -0
  143. package/dist/serialization/resources/team/client/index.d.ts +1 -0
  144. package/dist/serialization/resources/team/client/index.js +2 -1
  145. package/dist/serialization/types/ActivityV2InDb.d.ts +1 -1
  146. package/dist/serialization/types/ActivityV2InDb.js +1 -1
  147. package/dist/serialization/types/AttemptStatus.d.ts +10 -0
  148. package/dist/serialization/types/AttemptStatus.js +31 -0
  149. package/dist/serialization/types/BodyV2InDb.d.ts +1 -1
  150. package/dist/serialization/types/BodyV2InDb.js +1 -1
  151. package/dist/serialization/types/ClientFacingLabTest.d.ts +1 -0
  152. package/dist/serialization/types/ClientFacingLabTest.js +1 -0
  153. package/dist/serialization/types/ClientFacingOrder.d.ts +1 -1
  154. package/dist/serialization/types/ClientFacingOrder.js +1 -1
  155. package/dist/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
  156. package/dist/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
  157. package/dist/serialization/types/ClientFacingTeam.d.ts +1 -0
  158. package/dist/serialization/types/ClientFacingTeam.js +1 -0
  159. package/dist/serialization/types/DelegatedFlowType.d.ts +10 -0
  160. package/dist/serialization/types/DelegatedFlowType.js +35 -0
  161. package/dist/serialization/types/EventDestinationPreferences.d.ts +13 -0
  162. package/dist/serialization/types/EventDestinationPreferences.js +43 -0
  163. package/dist/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
  164. package/dist/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
  165. package/dist/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
  166. package/dist/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
  167. package/dist/serialization/types/GetMarkersResponse.d.ts +4 -3
  168. package/dist/serialization/types/GetMarkersResponse.js +4 -3
  169. package/dist/serialization/types/GetOrdersResponse.d.ts +3 -3
  170. package/dist/serialization/types/GetOrdersResponse.js +3 -3
  171. package/dist/serialization/types/LabTestStatus.d.ts +10 -0
  172. package/dist/serialization/types/LabTestStatus.js +31 -0
  173. package/dist/serialization/types/LastAttempt.d.ts +13 -0
  174. package/dist/serialization/types/LastAttempt.js +43 -0
  175. package/dist/serialization/types/PatientAddressCompatible.d.ts +2 -2
  176. package/dist/serialization/types/PatientAddressCompatible.js +2 -2
  177. package/dist/serialization/types/SingleResourceStatistics.d.ts +15 -0
  178. package/dist/serialization/types/SingleResourceStatistics.js +45 -0
  179. package/dist/serialization/types/SingleUserResourceResponse.d.ts +12 -0
  180. package/dist/serialization/types/SingleUserResourceResponse.js +33 -0
  181. package/dist/serialization/types/SleepV2InDb.d.ts +1 -1
  182. package/dist/serialization/types/SleepV2InDb.js +1 -1
  183. package/dist/serialization/types/TeamConfig.d.ts +3 -0
  184. package/dist/serialization/types/TeamConfig.js +3 -0
  185. package/dist/serialization/types/UserResourcesResponse.d.ts +13 -0
  186. package/dist/serialization/types/UserResourcesResponse.js +43 -0
  187. package/dist/serialization/types/WorkoutV2InDb.d.ts +1 -1
  188. package/dist/serialization/types/WorkoutV2InDb.js +1 -1
  189. package/dist/serialization/types/index.d.ts +11 -1
  190. package/dist/serialization/types/index.js +11 -1
  191. package/package.json +1 -1
  192. package/serialization/resources/team/client/getPhysicians.d.ts +10 -0
  193. package/serialization/resources/team/client/getPhysicians.js +40 -0
  194. package/serialization/resources/team/client/index.d.ts +1 -0
  195. package/serialization/resources/team/client/index.js +2 -1
  196. package/serialization/types/ActivityV2InDb.d.ts +1 -1
  197. package/serialization/types/ActivityV2InDb.js +1 -1
  198. package/serialization/types/AttemptStatus.d.ts +10 -0
  199. package/serialization/types/AttemptStatus.js +31 -0
  200. package/serialization/types/BodyV2InDb.d.ts +1 -1
  201. package/serialization/types/BodyV2InDb.js +1 -1
  202. package/serialization/types/ClientFacingLabTest.d.ts +1 -0
  203. package/serialization/types/ClientFacingLabTest.js +1 -0
  204. package/serialization/types/ClientFacingOrder.d.ts +1 -1
  205. package/serialization/types/ClientFacingOrder.js +1 -1
  206. package/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
  207. package/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
  208. package/serialization/types/ClientFacingTeam.d.ts +1 -0
  209. package/serialization/types/ClientFacingTeam.js +1 -0
  210. package/serialization/types/DelegatedFlowType.d.ts +10 -0
  211. package/serialization/types/DelegatedFlowType.js +35 -0
  212. package/serialization/types/EventDestinationPreferences.d.ts +13 -0
  213. package/serialization/types/EventDestinationPreferences.js +43 -0
  214. package/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
  215. package/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
  216. package/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
  217. package/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
  218. package/serialization/types/GetMarkersResponse.d.ts +4 -3
  219. package/serialization/types/GetMarkersResponse.js +4 -3
  220. package/serialization/types/GetOrdersResponse.d.ts +3 -3
  221. package/serialization/types/GetOrdersResponse.js +3 -3
  222. package/serialization/types/LabTestStatus.d.ts +10 -0
  223. package/serialization/types/LabTestStatus.js +31 -0
  224. package/serialization/types/LastAttempt.d.ts +13 -0
  225. package/serialization/types/LastAttempt.js +43 -0
  226. package/serialization/types/PatientAddressCompatible.d.ts +2 -2
  227. package/serialization/types/PatientAddressCompatible.js +2 -2
  228. package/serialization/types/SingleResourceStatistics.d.ts +15 -0
  229. package/serialization/types/SingleResourceStatistics.js +45 -0
  230. package/serialization/types/SingleUserResourceResponse.d.ts +12 -0
  231. package/serialization/types/SingleUserResourceResponse.js +33 -0
  232. package/serialization/types/SleepV2InDb.d.ts +1 -1
  233. package/serialization/types/SleepV2InDb.js +1 -1
  234. package/serialization/types/TeamConfig.d.ts +3 -0
  235. package/serialization/types/TeamConfig.js +3 -0
  236. package/serialization/types/UserResourcesResponse.d.ts +13 -0
  237. package/serialization/types/UserResourcesResponse.js +43 -0
  238. package/serialization/types/WorkoutV2InDb.d.ts +1 -1
  239. package/serialization/types/WorkoutV2InDb.js +1 -1
  240. package/serialization/types/index.d.ts +11 -1
  241. package/serialization/types/index.js +11 -1
  242. /package/api/{types/PhysicianClientFacing.js → resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js} +0 -0
  243. /package/{dist/api/types/PhysicianClientFacing.js → api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js} +0 -0
@@ -63,7 +63,7 @@ class Team {
63
63
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
64
64
  "X-Fern-Language": "JavaScript",
65
65
  "X-Fern-SDK-Name": "@tryvital/vital-node",
66
- "X-Fern-SDK-Version": "3.0.2",
66
+ "X-Fern-SDK-Version": "3.0.4",
67
67
  },
68
68
  contentType: "application/json",
69
69
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Team {
111
111
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
112
112
  "X-Fern-Language": "JavaScript",
113
113
  "X-Fern-SDK-Name": "@tryvital/vital-node",
114
- "X-Fern-SDK-Version": "3.0.2",
114
+ "X-Fern-SDK-Version": "3.0.4",
115
115
  },
116
116
  contentType: "application/json",
117
117
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -174,7 +174,7 @@ class Team {
174
174
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
175
175
  "X-Fern-Language": "JavaScript",
176
176
  "X-Fern-SDK-Name": "@tryvital/vital-node",
177
- "X-Fern-SDK-Version": "3.0.2",
177
+ "X-Fern-SDK-Version": "3.0.4",
178
178
  },
179
179
  contentType: "application/json",
180
180
  queryParameters: _queryParams,
@@ -229,7 +229,7 @@ class Team {
229
229
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
230
230
  "X-Fern-Language": "JavaScript",
231
231
  "X-Fern-SDK-Name": "@tryvital/vital-node",
232
- "X-Fern-SDK-Version": "3.0.2",
232
+ "X-Fern-SDK-Version": "3.0.4",
233
233
  },
234
234
  contentType: "application/json",
235
235
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -282,7 +282,7 @@ class Team {
282
282
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
283
283
  "X-Fern-Language": "JavaScript",
284
284
  "X-Fern-SDK-Name": "@tryvital/vital-node",
285
- "X-Fern-SDK-Version": "3.0.2",
285
+ "X-Fern-SDK-Version": "3.0.4",
286
286
  },
287
287
  contentType: "application/json",
288
288
  queryParameters: _queryParams,
@@ -344,7 +344,7 @@ class Team {
344
344
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
345
345
  "X-Fern-Language": "JavaScript",
346
346
  "X-Fern-SDK-Name": "@tryvital/vital-node",
347
- "X-Fern-SDK-Version": "3.0.2",
347
+ "X-Fern-SDK-Version": "3.0.4",
348
348
  },
349
349
  contentType: "application/json",
350
350
  queryParameters: _queryParams,
@@ -389,5 +389,62 @@ class Team {
389
389
  }
390
390
  });
391
391
  }
392
+ /**
393
+ * @throws {@link Vital.UnprocessableEntityError}
394
+ */
395
+ getPhysicians(teamId, requestOptions) {
396
+ var _a;
397
+ return __awaiter(this, void 0, void 0, function* () {
398
+ const _response = yield core.fetcher({
399
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}/physicians`),
400
+ method: "GET",
401
+ headers: {
402
+ "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
403
+ "X-Fern-Language": "JavaScript",
404
+ "X-Fern-SDK-Name": "@tryvital/vital-node",
405
+ "X-Fern-SDK-Version": "3.0.4",
406
+ },
407
+ contentType: "application/json",
408
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
409
+ });
410
+ if (_response.ok) {
411
+ return yield serializers.team.getPhysicians.Response.parseOrThrow(_response.body, {
412
+ unrecognizedObjectKeys: "passthrough",
413
+ allowUnrecognizedUnionMembers: true,
414
+ allowUnrecognizedEnumValues: true,
415
+ breadcrumbsPrefix: ["response"],
416
+ });
417
+ }
418
+ if (_response.error.reason === "status-code") {
419
+ switch (_response.error.statusCode) {
420
+ case 422:
421
+ throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
422
+ unrecognizedObjectKeys: "passthrough",
423
+ allowUnrecognizedUnionMembers: true,
424
+ allowUnrecognizedEnumValues: true,
425
+ breadcrumbsPrefix: ["response"],
426
+ }));
427
+ default:
428
+ throw new errors.VitalError({
429
+ statusCode: _response.error.statusCode,
430
+ body: _response.error.body,
431
+ });
432
+ }
433
+ }
434
+ switch (_response.error.reason) {
435
+ case "non-json":
436
+ throw new errors.VitalError({
437
+ statusCode: _response.error.statusCode,
438
+ body: _response.error.rawBody,
439
+ });
440
+ case "timeout":
441
+ throw new errors.VitalTimeoutError();
442
+ case "unknown":
443
+ throw new errors.VitalError({
444
+ message: _response.error.errorMessage,
445
+ });
446
+ }
447
+ });
448
+ }
392
449
  }
393
450
  exports.Team = Team;
@@ -62,7 +62,7 @@ class Testkit {
62
62
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "@tryvital/vital-node",
65
- "X-Fern-SDK-Version": "3.0.2",
65
+ "X-Fern-SDK-Version": "3.0.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: yield serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -121,7 +121,7 @@ class Testkit {
121
121
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
122
122
  "X-Fern-Language": "JavaScript",
123
123
  "X-Fern-SDK-Name": "@tryvital/vital-node",
124
- "X-Fern-SDK-Version": "3.0.2",
124
+ "X-Fern-SDK-Version": "3.0.4",
125
125
  },
126
126
  contentType: "application/json",
127
127
  body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
@@ -47,11 +47,11 @@ export declare class User {
47
47
  /**
48
48
  * @throws {@link Vital.UnprocessableEntityError}
49
49
  */
50
- patch(userId: string, request?: Vital.UserPatchBody, requestOptions?: User.RequestOptions): Promise<void>;
50
+ delete(userId: string, requestOptions?: User.RequestOptions): Promise<Vital.UserSuccessResponse>;
51
51
  /**
52
52
  * @throws {@link Vital.UnprocessableEntityError}
53
53
  */
54
- delete(userId: string, requestOptions?: User.RequestOptions): Promise<Vital.UserSuccessResponse>;
54
+ patch(userId: string, request?: Vital.UserPatchBody, requestOptions?: User.RequestOptions): Promise<void>;
55
55
  /**
56
56
  * GET user_id from client_user_id.
57
57
  * @throws {@link Vital.UnprocessableEntityError}
@@ -72,7 +72,7 @@ class User {
72
72
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
73
73
  "X-Fern-Language": "JavaScript",
74
74
  "X-Fern-SDK-Name": "@tryvital/vital-node",
75
- "X-Fern-SDK-Version": "3.0.2",
75
+ "X-Fern-SDK-Version": "3.0.4",
76
76
  },
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
@@ -131,7 +131,7 @@ class User {
131
131
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
132
132
  "X-Fern-Language": "JavaScript",
133
133
  "X-Fern-SDK-Name": "@tryvital/vital-node",
134
- "X-Fern-SDK-Version": "3.0.2",
134
+ "X-Fern-SDK-Version": "3.0.4",
135
135
  },
136
136
  contentType: "application/json",
137
137
  body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -189,7 +189,7 @@ class User {
189
189
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
190
190
  "X-Fern-Language": "JavaScript",
191
191
  "X-Fern-SDK-Name": "@tryvital/vital-node",
192
- "X-Fern-SDK-Version": "3.0.2",
192
+ "X-Fern-SDK-Version": "3.0.4",
193
193
  },
194
194
  contentType: "application/json",
195
195
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -236,7 +236,7 @@ class User {
236
236
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
237
237
  "X-Fern-Language": "JavaScript",
238
238
  "X-Fern-SDK-Name": "@tryvital/vital-node",
239
- "X-Fern-SDK-Version": "3.0.2",
239
+ "X-Fern-SDK-Version": "3.0.4",
240
240
  },
241
241
  contentType: "application/json",
242
242
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -294,7 +294,7 @@ class User {
294
294
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
295
295
  "X-Fern-Language": "JavaScript",
296
296
  "X-Fern-SDK-Name": "@tryvital/vital-node",
297
- "X-Fern-SDK-Version": "3.0.2",
297
+ "X-Fern-SDK-Version": "3.0.4",
298
298
  },
299
299
  contentType: "application/json",
300
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -352,7 +352,7 @@ class User {
352
352
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
353
353
  "X-Fern-Language": "JavaScript",
354
354
  "X-Fern-SDK-Name": "@tryvital/vital-node",
355
- "X-Fern-SDK-Version": "3.0.2",
355
+ "X-Fern-SDK-Version": "3.0.4",
356
356
  },
357
357
  contentType: "application/json",
358
358
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -399,24 +399,28 @@ class User {
399
399
  /**
400
400
  * @throws {@link Vital.UnprocessableEntityError}
401
401
  */
402
- patch(userId, request = {}, requestOptions) {
402
+ delete(userId, requestOptions) {
403
403
  var _a;
404
404
  return __awaiter(this, void 0, void 0, function* () {
405
405
  const _response = yield core.fetcher({
406
406
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
407
- method: "PATCH",
407
+ method: "DELETE",
408
408
  headers: {
409
409
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
410
410
  "X-Fern-Language": "JavaScript",
411
411
  "X-Fern-SDK-Name": "@tryvital/vital-node",
412
- "X-Fern-SDK-Version": "3.0.2",
412
+ "X-Fern-SDK-Version": "3.0.4",
413
413
  },
414
414
  contentType: "application/json",
415
- body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
416
415
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
417
416
  });
418
417
  if (_response.ok) {
419
- return;
418
+ return yield serializers.UserSuccessResponse.parseOrThrow(_response.body, {
419
+ unrecognizedObjectKeys: "passthrough",
420
+ allowUnrecognizedUnionMembers: true,
421
+ allowUnrecognizedEnumValues: true,
422
+ breadcrumbsPrefix: ["response"],
423
+ });
420
424
  }
421
425
  if (_response.error.reason === "status-code") {
422
426
  switch (_response.error.statusCode) {
@@ -452,28 +456,24 @@ class User {
452
456
  /**
453
457
  * @throws {@link Vital.UnprocessableEntityError}
454
458
  */
455
- delete(userId, requestOptions) {
459
+ patch(userId, request = {}, requestOptions) {
456
460
  var _a;
457
461
  return __awaiter(this, void 0, void 0, function* () {
458
462
  const _response = yield core.fetcher({
459
463
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
460
- method: "DELETE",
464
+ method: "PATCH",
461
465
  headers: {
462
466
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
463
467
  "X-Fern-Language": "JavaScript",
464
468
  "X-Fern-SDK-Name": "@tryvital/vital-node",
465
- "X-Fern-SDK-Version": "3.0.2",
469
+ "X-Fern-SDK-Version": "3.0.4",
466
470
  },
467
471
  contentType: "application/json",
472
+ body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
468
473
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
469
474
  });
470
475
  if (_response.ok) {
471
- return yield serializers.UserSuccessResponse.parseOrThrow(_response.body, {
472
- unrecognizedObjectKeys: "passthrough",
473
- allowUnrecognizedUnionMembers: true,
474
- allowUnrecognizedEnumValues: true,
475
- breadcrumbsPrefix: ["response"],
476
- });
476
+ return;
477
477
  }
478
478
  if (_response.error.reason === "status-code") {
479
479
  switch (_response.error.statusCode) {
@@ -520,7 +520,7 @@ class User {
520
520
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
521
521
  "X-Fern-Language": "JavaScript",
522
522
  "X-Fern-SDK-Name": "@tryvital/vital-node",
523
- "X-Fern-SDK-Version": "3.0.2",
523
+ "X-Fern-SDK-Version": "3.0.4",
524
524
  },
525
525
  contentType: "application/json",
526
526
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -577,7 +577,7 @@ class User {
577
577
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
578
578
  "X-Fern-Language": "JavaScript",
579
579
  "X-Fern-SDK-Name": "@tryvital/vital-node",
580
- "X-Fern-SDK-Version": "3.0.2",
580
+ "X-Fern-SDK-Version": "3.0.4",
581
581
  },
582
582
  contentType: "application/json",
583
583
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -636,7 +636,7 @@ class User {
636
636
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
637
637
  "X-Fern-Language": "JavaScript",
638
638
  "X-Fern-SDK-Name": "@tryvital/vital-node",
639
- "X-Fern-SDK-Version": "3.0.2",
639
+ "X-Fern-SDK-Version": "3.0.4",
640
640
  },
641
641
  contentType: "application/json",
642
642
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -73,7 +73,7 @@ class Vitals {
73
73
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "@tryvital/vital-node",
76
- "X-Fern-SDK-Version": "3.0.2",
76
+ "X-Fern-SDK-Version": "3.0.4",
77
77
  },
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
@@ -141,7 +141,7 @@ class Vitals {
141
141
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "@tryvital/vital-node",
144
- "X-Fern-SDK-Version": "3.0.2",
144
+ "X-Fern-SDK-Version": "3.0.4",
145
145
  },
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
@@ -209,7 +209,7 @@ class Vitals {
209
209
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
210
210
  "X-Fern-Language": "JavaScript",
211
211
  "X-Fern-SDK-Name": "@tryvital/vital-node",
212
- "X-Fern-SDK-Version": "3.0.2",
212
+ "X-Fern-SDK-Version": "3.0.4",
213
213
  },
214
214
  contentType: "application/json",
215
215
  queryParameters: _queryParams,
@@ -277,7 +277,7 @@ class Vitals {
277
277
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
278
278
  "X-Fern-Language": "JavaScript",
279
279
  "X-Fern-SDK-Name": "@tryvital/vital-node",
280
- "X-Fern-SDK-Version": "3.0.2",
280
+ "X-Fern-SDK-Version": "3.0.4",
281
281
  },
282
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
@@ -345,7 +345,7 @@ class Vitals {
345
345
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
346
346
  "X-Fern-Language": "JavaScript",
347
347
  "X-Fern-SDK-Name": "@tryvital/vital-node",
348
- "X-Fern-SDK-Version": "3.0.2",
348
+ "X-Fern-SDK-Version": "3.0.4",
349
349
  },
350
350
  contentType: "application/json",
351
351
  queryParameters: _queryParams,
@@ -413,7 +413,7 @@ class Vitals {
413
413
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
414
414
  "X-Fern-Language": "JavaScript",
415
415
  "X-Fern-SDK-Name": "@tryvital/vital-node",
416
- "X-Fern-SDK-Version": "3.0.2",
416
+ "X-Fern-SDK-Version": "3.0.4",
417
417
  },
418
418
  contentType: "application/json",
419
419
  queryParameters: _queryParams,
@@ -481,7 +481,7 @@ class Vitals {
481
481
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
482
482
  "X-Fern-Language": "JavaScript",
483
483
  "X-Fern-SDK-Name": "@tryvital/vital-node",
484
- "X-Fern-SDK-Version": "3.0.2",
484
+ "X-Fern-SDK-Version": "3.0.4",
485
485
  },
486
486
  contentType: "application/json",
487
487
  queryParameters: _queryParams,
@@ -549,7 +549,7 @@ class Vitals {
549
549
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
550
550
  "X-Fern-Language": "JavaScript",
551
551
  "X-Fern-SDK-Name": "@tryvital/vital-node",
552
- "X-Fern-SDK-Version": "3.0.2",
552
+ "X-Fern-SDK-Version": "3.0.4",
553
553
  },
554
554
  contentType: "application/json",
555
555
  queryParameters: _queryParams,
@@ -617,7 +617,7 @@ class Vitals {
617
617
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
618
618
  "X-Fern-Language": "JavaScript",
619
619
  "X-Fern-SDK-Name": "@tryvital/vital-node",
620
- "X-Fern-SDK-Version": "3.0.2",
620
+ "X-Fern-SDK-Version": "3.0.4",
621
621
  },
622
622
  contentType: "application/json",
623
623
  queryParameters: _queryParams,
@@ -685,7 +685,7 @@ class Vitals {
685
685
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
686
686
  "X-Fern-Language": "JavaScript",
687
687
  "X-Fern-SDK-Name": "@tryvital/vital-node",
688
- "X-Fern-SDK-Version": "3.0.2",
688
+ "X-Fern-SDK-Version": "3.0.4",
689
689
  },
690
690
  contentType: "application/json",
691
691
  queryParameters: _queryParams,
@@ -753,7 +753,7 @@ class Vitals {
753
753
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
754
754
  "X-Fern-Language": "JavaScript",
755
755
  "X-Fern-SDK-Name": "@tryvital/vital-node",
756
- "X-Fern-SDK-Version": "3.0.2",
756
+ "X-Fern-SDK-Version": "3.0.4",
757
757
  },
758
758
  contentType: "application/json",
759
759
  queryParameters: _queryParams,
@@ -821,7 +821,7 @@ class Vitals {
821
821
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
822
822
  "X-Fern-Language": "JavaScript",
823
823
  "X-Fern-SDK-Name": "@tryvital/vital-node",
824
- "X-Fern-SDK-Version": "3.0.2",
824
+ "X-Fern-SDK-Version": "3.0.4",
825
825
  },
826
826
  contentType: "application/json",
827
827
  queryParameters: _queryParams,
@@ -889,7 +889,7 @@ class Vitals {
889
889
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
890
890
  "X-Fern-Language": "JavaScript",
891
891
  "X-Fern-SDK-Name": "@tryvital/vital-node",
892
- "X-Fern-SDK-Version": "3.0.2",
892
+ "X-Fern-SDK-Version": "3.0.4",
893
893
  },
894
894
  contentType: "application/json",
895
895
  queryParameters: _queryParams,
@@ -957,7 +957,7 @@ class Vitals {
957
957
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
958
958
  "X-Fern-Language": "JavaScript",
959
959
  "X-Fern-SDK-Name": "@tryvital/vital-node",
960
- "X-Fern-SDK-Version": "3.0.2",
960
+ "X-Fern-SDK-Version": "3.0.4",
961
961
  },
962
962
  contentType: "application/json",
963
963
  queryParameters: _queryParams,
@@ -1025,7 +1025,7 @@ class Vitals {
1025
1025
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1026
1026
  "X-Fern-Language": "JavaScript",
1027
1027
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1028
- "X-Fern-SDK-Version": "3.0.2",
1028
+ "X-Fern-SDK-Version": "3.0.4",
1029
1029
  },
1030
1030
  contentType: "application/json",
1031
1031
  queryParameters: _queryParams,
@@ -1093,7 +1093,7 @@ class Vitals {
1093
1093
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1094
1094
  "X-Fern-Language": "JavaScript",
1095
1095
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1096
- "X-Fern-SDK-Version": "3.0.2",
1096
+ "X-Fern-SDK-Version": "3.0.4",
1097
1097
  },
1098
1098
  contentType: "application/json",
1099
1099
  queryParameters: _queryParams,
@@ -1161,7 +1161,7 @@ class Vitals {
1161
1161
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1162
1162
  "X-Fern-Language": "JavaScript",
1163
1163
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1164
- "X-Fern-SDK-Version": "3.0.2",
1164
+ "X-Fern-SDK-Version": "3.0.4",
1165
1165
  },
1166
1166
  contentType: "application/json",
1167
1167
  queryParameters: _queryParams,
@@ -1229,7 +1229,7 @@ class Vitals {
1229
1229
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1230
1230
  "X-Fern-Language": "JavaScript",
1231
1231
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1232
- "X-Fern-SDK-Version": "3.0.2",
1232
+ "X-Fern-SDK-Version": "3.0.4",
1233
1233
  },
1234
1234
  contentType: "application/json",
1235
1235
  queryParameters: _queryParams,
@@ -1297,7 +1297,7 @@ class Vitals {
1297
1297
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1298
1298
  "X-Fern-Language": "JavaScript",
1299
1299
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1300
- "X-Fern-SDK-Version": "3.0.2",
1300
+ "X-Fern-SDK-Version": "3.0.4",
1301
1301
  },
1302
1302
  contentType: "application/json",
1303
1303
  queryParameters: _queryParams,
@@ -1365,7 +1365,7 @@ class Vitals {
1365
1365
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1366
1366
  "X-Fern-Language": "JavaScript",
1367
1367
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1368
- "X-Fern-SDK-Version": "3.0.2",
1368
+ "X-Fern-SDK-Version": "3.0.4",
1369
1369
  },
1370
1370
  contentType: "application/json",
1371
1371
  queryParameters: _queryParams,
@@ -1433,7 +1433,7 @@ class Vitals {
1433
1433
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1434
1434
  "X-Fern-Language": "JavaScript",
1435
1435
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1436
- "X-Fern-SDK-Version": "3.0.2",
1436
+ "X-Fern-SDK-Version": "3.0.4",
1437
1437
  },
1438
1438
  contentType: "application/json",
1439
1439
  queryParameters: _queryParams,
@@ -1501,7 +1501,7 @@ class Vitals {
1501
1501
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1502
1502
  "X-Fern-Language": "JavaScript",
1503
1503
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1504
- "X-Fern-SDK-Version": "3.0.2",
1504
+ "X-Fern-SDK-Version": "3.0.4",
1505
1505
  },
1506
1506
  contentType: "application/json",
1507
1507
  queryParameters: _queryParams,
@@ -1569,7 +1569,7 @@ class Vitals {
1569
1569
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
1570
1570
  "X-Fern-Language": "JavaScript",
1571
1571
  "X-Fern-SDK-Name": "@tryvital/vital-node",
1572
- "X-Fern-SDK-Version": "3.0.2",
1572
+ "X-Fern-SDK-Version": "3.0.4",
1573
1573
  },
1574
1574
  contentType: "application/json",
1575
1575
  queryParameters: _queryParams,
@@ -73,7 +73,7 @@ class Workouts {
73
73
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "@tryvital/vital-node",
76
- "X-Fern-SDK-Version": "3.0.2",
76
+ "X-Fern-SDK-Version": "3.0.4",
77
77
  },
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
@@ -141,7 +141,7 @@ class Workouts {
141
141
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "@tryvital/vital-node",
144
- "X-Fern-SDK-Version": "3.0.2",
144
+ "X-Fern-SDK-Version": "3.0.4",
145
145
  },
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
@@ -199,7 +199,7 @@ class Workouts {
199
199
  "x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
200
200
  "X-Fern-Language": "JavaScript",
201
201
  "X-Fern-SDK-Name": "@tryvital/vital-node",
202
- "X-Fern-SDK-Version": "3.0.2",
202
+ "X-Fern-SDK-Version": "3.0.4",
203
203
  },
204
204
  contentType: "application/json",
205
205
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,7 +4,7 @@
4
4
  import * as Vital from "..";
5
5
  export interface ActivityV2InDb {
6
6
  timestamp: Date;
7
- data?: string;
7
+ data: Record<string, unknown>;
8
8
  providerId: string;
9
9
  userId: string;
10
10
  sourceId: number;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * An enumeration.
6
+ */
7
+ export declare type AttemptStatus = "success" | "failure";
8
+ export declare const AttemptStatus: {
9
+ readonly Success: "success";
10
+ readonly Failure: "failure";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AttemptStatus = void 0;
7
+ exports.AttemptStatus = {
8
+ Success: "success",
9
+ Failure: "failure",
10
+ };
@@ -4,7 +4,7 @@
4
4
  import * as Vital from "..";
5
5
  export interface BodyV2InDb {
6
6
  timestamp: Date;
7
- data?: string;
7
+ data: Record<string, unknown>;
8
8
  providerId: string;
9
9
  userId: string;
10
10
  sourceId: number;
@@ -9,7 +9,9 @@ export interface ClientFacingLabTest {
9
9
  sampleType: Vital.LabTestSampleType;
10
10
  method: Vital.LabTestCollectionMethod;
11
11
  price: number;
12
+ /** Deprecated. Use status instead. */
12
13
  isActive: boolean;
14
+ status: Vital.LabTestStatus;
13
15
  /** Defines whether a lab test requires fasting. Only available for Labcorp. */
14
16
  fasting?: boolean;
15
17
  lab?: Vital.ClientFacingLab;
@@ -26,7 +26,7 @@ export interface ClientFacingOrder {
26
26
  updatedAt: Date;
27
27
  events: Vital.ClientFacingOrderEvent[];
28
28
  status?: Vital.OrderTopLevelStatus;
29
- physician?: Vital.PhysicianClientFacing;
29
+ physician?: Vital.ClientFacingPhysician;
30
30
  /** Vital ID of the health insurance. */
31
31
  healthInsuranceId?: string;
32
32
  /** DEPRECATED. Requistion form url. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface PhysicianClientFacing {
4
+ export interface ClientFacingPhysician {
5
5
  firstName: string;
6
6
  lastName: string;
7
7
  npi: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,4 +19,5 @@ export interface ClientFacingTeam {
19
19
  labTestsPatientSmsCommunicationEnabled: boolean;
20
20
  labTestsPatientEmailCommunicationEnabled: boolean;
21
21
  logoUrl?: string;
22
+ delegatedFlow: Vital.DelegatedFlowType;
22
23
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * An enumeration.
6
+ */
7
+ export declare type DelegatedFlowType = "order_and_results_with_customer_physician_network" | "order_with_vital_physician_network" | "order_and_results_with_vital_physician_network";
8
+ export declare const DelegatedFlowType: {
9
+ readonly OrderAndResultsWithCustomerPhysicianNetwork: "order_and_results_with_customer_physician_network";
10
+ readonly OrderWithVitalPhysicianNetwork: "order_with_vital_physician_network";
11
+ readonly OrderAndResultsWithVitalPhysicianNetwork: "order_and_results_with_vital_physician_network";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DelegatedFlowType = void 0;
7
+ exports.DelegatedFlowType = {
8
+ OrderAndResultsWithCustomerPhysicianNetwork: "order_and_results_with_customer_physician_network",
9
+ OrderWithVitalPhysicianNetwork: "order_with_vital_physician_network",
10
+ OrderAndResultsWithVitalPhysicianNetwork: "order_and_results_with_vital_physician_network",
11
+ };