@tryvital/vital-node 3.1.384 → 3.1.386

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 (78) hide show
  1. package/Client.d.ts +6 -6
  2. package/Client.js +36 -36
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +3 -3
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/electrocardiogram/client/Client.js +1 -1
  8. package/api/resources/index.d.ts +3 -3
  9. package/api/resources/index.js +4 -4
  10. package/api/resources/insurance/client/Client.js +3 -3
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.d.ts +102 -102
  13. package/api/resources/labTests/client/Client.js +736 -736
  14. package/api/resources/labTests/client/requests/index.d.ts +7 -7
  15. package/api/resources/labTests/types/index.d.ts +2 -2
  16. package/api/resources/labTests/types/index.js +2 -2
  17. package/api/resources/link/client/Client.js +19 -19
  18. package/api/resources/meal/client/Client.js +1 -1
  19. package/api/resources/menstrualCycle/client/Client.js +1 -1
  20. package/api/resources/order/client/Client.js +1 -1
  21. package/api/resources/payor/client/Client.js +1 -1
  22. package/api/resources/profile/client/Client.js +2 -2
  23. package/api/resources/providers/client/Client.js +1 -1
  24. package/api/resources/sleep/client/Client.js +3 -3
  25. package/api/resources/sleepCycle/client/Client.js +1 -1
  26. package/api/resources/team/client/Client.js +7 -7
  27. package/api/resources/testkit/client/Client.js +2 -2
  28. package/api/resources/user/client/Client.js +18 -18
  29. package/api/resources/vitals/client/Client.js +78 -78
  30. package/api/resources/workouts/client/Client.js +3 -3
  31. package/dist/Client.d.ts +6 -6
  32. package/dist/Client.js +36 -36
  33. package/dist/api/resources/activity/client/Client.js +2 -2
  34. package/dist/api/resources/aggregate/client/Client.js +3 -3
  35. package/dist/api/resources/body/client/Client.js +2 -2
  36. package/dist/api/resources/devices/client/Client.js +1 -1
  37. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  38. package/dist/api/resources/index.d.ts +3 -3
  39. package/dist/api/resources/index.js +4 -4
  40. package/dist/api/resources/insurance/client/Client.js +3 -3
  41. package/dist/api/resources/introspect/client/Client.js +2 -2
  42. package/dist/api/resources/labTests/client/Client.d.ts +102 -102
  43. package/dist/api/resources/labTests/client/Client.js +736 -736
  44. package/dist/api/resources/labTests/client/requests/index.d.ts +7 -7
  45. package/dist/api/resources/labTests/types/index.d.ts +2 -2
  46. package/dist/api/resources/labTests/types/index.js +2 -2
  47. package/dist/api/resources/link/client/Client.js +19 -19
  48. package/dist/api/resources/meal/client/Client.js +1 -1
  49. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  50. package/dist/api/resources/order/client/Client.js +1 -1
  51. package/dist/api/resources/payor/client/Client.js +1 -1
  52. package/dist/api/resources/profile/client/Client.js +2 -2
  53. package/dist/api/resources/providers/client/Client.js +1 -1
  54. package/dist/api/resources/sleep/client/Client.js +3 -3
  55. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  56. package/dist/api/resources/team/client/Client.js +7 -7
  57. package/dist/api/resources/testkit/client/Client.js +2 -2
  58. package/dist/api/resources/user/client/Client.js +18 -18
  59. package/dist/api/resources/vitals/client/Client.js +78 -78
  60. package/dist/api/resources/workouts/client/Client.js +3 -3
  61. package/dist/serialization/resources/labTests/client/index.d.ts +2 -2
  62. package/dist/serialization/resources/labTests/client/index.js +3 -3
  63. package/dist/serialization/resources/labTests/client/requests/index.d.ts +2 -2
  64. package/dist/serialization/resources/labTests/client/requests/index.js +5 -5
  65. package/dist/serialization/resources/labTests/types/index.d.ts +2 -2
  66. package/dist/serialization/resources/labTests/types/index.js +2 -2
  67. package/dist/version.d.ts +1 -1
  68. package/dist/version.js +1 -1
  69. package/package.json +1 -1
  70. package/reference.md +1374 -1374
  71. package/serialization/resources/labTests/client/index.d.ts +2 -2
  72. package/serialization/resources/labTests/client/index.js +3 -3
  73. package/serialization/resources/labTests/client/requests/index.d.ts +2 -2
  74. package/serialization/resources/labTests/client/requests/index.js +5 -5
  75. package/serialization/resources/labTests/types/index.d.ts +2 -2
  76. package/serialization/resources/labTests/types/index.js +2 -2
  77. package/version.d.ts +1 -1
  78. package/version.js +1 -1
@@ -24,17 +24,111 @@ export declare class LabTests {
24
24
  protected readonly _options: LabTests.Options;
25
25
  constructor(_options?: LabTests.Options);
26
26
  /**
27
- * GET many orders with filters.
27
+ * GET all the lab tests the team has access to.
28
28
  *
29
- * @param {Vital.LabTestsGetOrdersRequest} request
29
+ * @param {Vital.LabTestsGetRequest} request
30
30
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
31
31
  *
32
32
  * @throws {@link Vital.UnprocessableEntityError}
33
33
  *
34
34
  * @example
35
- * await client.labTests.getOrders()
35
+ * await client.labTests.get()
36
36
  */
37
- getOrders(request?: Vital.LabTestsGetOrdersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetOrdersResponse>;
37
+ get(request?: Vital.LabTestsGetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
38
+ /**
39
+ * @param {Vital.CreateLabTestRequest} request
40
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link Vital.UnprocessableEntityError}
43
+ *
44
+ * @example
45
+ * await client.labTests.create({
46
+ * name: "name",
47
+ * method: "testkit",
48
+ * description: "description"
49
+ * })
50
+ */
51
+ create(request: Vital.CreateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
52
+ /**
53
+ * GET all the lab tests the team has access to.
54
+ *
55
+ * @param {string} labTestId
56
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Vital.UnprocessableEntityError}
59
+ *
60
+ * @example
61
+ * await client.labTests.getById("lab_test_id")
62
+ */
63
+ getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
64
+ /**
65
+ * @param {string} labTestId
66
+ * @param {Vital.UpdateLabTestRequest} request
67
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Vital.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.labTests.updateLabTest("lab_test_id")
73
+ */
74
+ updateLabTest(labTestId: string, request?: Vital.UpdateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
75
+ /**
76
+ * GET all the markers for the given lab.
77
+ *
78
+ * @param {Vital.LabTestsGetMarkersRequest} request
79
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link Vital.UnprocessableEntityError}
82
+ *
83
+ * @example
84
+ * await client.labTests.getMarkers()
85
+ */
86
+ getMarkers(request?: Vital.LabTestsGetMarkersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
87
+ /**
88
+ * @param {Vital.LabTestsGetMarkersForOrderSetRequest} request
89
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link Vital.UnprocessableEntityError}
92
+ *
93
+ * @example
94
+ * await client.labTests.getMarkersForOrderSet({
95
+ * body: {}
96
+ * })
97
+ */
98
+ getMarkersForOrderSet(request: Vital.LabTestsGetMarkersForOrderSetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
99
+ /**
100
+ * @param {string} labTestId
101
+ * @param {Vital.LabTestsGetMarkersForLabTestRequest} request
102
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link Vital.UnprocessableEntityError}
105
+ *
106
+ * @example
107
+ * await client.labTests.getMarkersForLabTest("lab_test_id")
108
+ */
109
+ getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
110
+ /**
111
+ * GET a specific marker for the given lab and provider_id
112
+ *
113
+ * @param {string} providerId
114
+ * @param {number} labId
115
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
116
+ *
117
+ * @throws {@link Vital.UnprocessableEntityError}
118
+ *
119
+ * @example
120
+ * await client.labTests.getMarkersByLabAndProviderId("provider_id", 1)
121
+ */
122
+ getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
123
+ /**
124
+ * GET all the labs.
125
+ *
126
+ * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
127
+ *
128
+ * @example
129
+ * await client.labTests.getLabs()
130
+ */
131
+ getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
38
132
  /**
39
133
  * Return the available time slots to book an appointment with a phlebotomist
40
134
  * for the given address and order.
@@ -415,111 +509,17 @@ export declare class LabTests {
415
509
  */
416
510
  updateOnSiteCollectionOrderDrawCompleted(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.PostOrderResponse>;
417
511
  /**
418
- * GET all the lab tests the team has access to.
419
- *
420
- * @param {Vital.LabTestsGetRequest} request
421
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
422
- *
423
- * @throws {@link Vital.UnprocessableEntityError}
424
- *
425
- * @example
426
- * await client.labTests.get()
427
- */
428
- get(request?: Vital.LabTestsGetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
429
- /**
430
- * @param {Vital.CreateLabTestRequest} request
431
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
432
- *
433
- * @throws {@link Vital.UnprocessableEntityError}
434
- *
435
- * @example
436
- * await client.labTests.create({
437
- * name: "name",
438
- * method: "testkit",
439
- * description: "description"
440
- * })
441
- */
442
- create(request: Vital.CreateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
443
- /**
444
- * GET all the lab tests the team has access to.
445
- *
446
- * @param {string} labTestId
447
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
448
- *
449
- * @throws {@link Vital.UnprocessableEntityError}
450
- *
451
- * @example
452
- * await client.labTests.getById("lab_test_id")
453
- */
454
- getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
455
- /**
456
- * @param {string} labTestId
457
- * @param {Vital.UpdateLabTestRequest} request
458
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
459
- *
460
- * @throws {@link Vital.UnprocessableEntityError}
461
- *
462
- * @example
463
- * await client.labTests.updateLabTest("lab_test_id")
464
- */
465
- updateLabTest(labTestId: string, request?: Vital.UpdateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
466
- /**
467
- * GET all the markers for the given lab.
468
- *
469
- * @param {Vital.LabTestsGetMarkersRequest} request
470
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
471
- *
472
- * @throws {@link Vital.UnprocessableEntityError}
473
- *
474
- * @example
475
- * await client.labTests.getMarkers()
476
- */
477
- getMarkers(request?: Vital.LabTestsGetMarkersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
478
- /**
479
- * @param {Vital.LabTestsGetMarkersForOrderSetRequest} request
480
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
481
- *
482
- * @throws {@link Vital.UnprocessableEntityError}
483
- *
484
- * @example
485
- * await client.labTests.getMarkersForOrderSet({
486
- * body: {}
487
- * })
488
- */
489
- getMarkersForOrderSet(request: Vital.LabTestsGetMarkersForOrderSetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
490
- /**
491
- * @param {string} labTestId
492
- * @param {Vital.LabTestsGetMarkersForLabTestRequest} request
493
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
494
- *
495
- * @throws {@link Vital.UnprocessableEntityError}
496
- *
497
- * @example
498
- * await client.labTests.getMarkersForLabTest("lab_test_id")
499
- */
500
- getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
501
- /**
502
- * GET a specific marker for the given lab and provider_id
512
+ * GET many orders with filters.
503
513
  *
504
- * @param {string} providerId
505
- * @param {number} labId
514
+ * @param {Vital.LabTestsGetOrdersRequest} request
506
515
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
507
516
  *
508
517
  * @throws {@link Vital.UnprocessableEntityError}
509
518
  *
510
519
  * @example
511
- * await client.labTests.getMarkersByLabAndProviderId("provider_id", 1)
512
- */
513
- getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
514
- /**
515
- * GET all the labs.
516
- *
517
- * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
518
- *
519
- * @example
520
- * await client.labTests.getLabs()
520
+ * await client.labTests.getOrders()
521
521
  */
522
- getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
522
+ getOrders(request?: Vital.LabTestsGetOrdersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetOrdersResponse>;
523
523
  /**
524
524
  * GET lab tests the team has access to as a paginated list.
525
525
  *