@tryvital/vital-node 3.1.392 → 3.1.393
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.
- package/Client.d.ts +21 -21
- package/Client.js +46 -46
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +3 -3
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/index.d.ts +15 -15
- package/api/resources/index.js +16 -16
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +122 -122
- package/api/resources/labTests/client/Client.js +788 -788
- package/api/resources/labTests/client/requests/index.d.ts +7 -7
- package/api/resources/labTests/types/index.d.ts +2 -2
- package/api/resources/labTests/types/index.js +2 -2
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/payor/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.d.ts +12 -12
- package/api/resources/sleep/client/Client.js +34 -34
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +18 -18
- package/api/resources/vitals/client/Client.js +78 -78
- package/api/resources/workouts/client/Client.d.ts +10 -10
- package/api/resources/workouts/client/Client.js +34 -34
- package/dist/Client.d.ts +21 -21
- package/dist/Client.js +46 -46
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +3 -3
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +15 -15
- package/dist/api/resources/index.js +16 -16
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +122 -122
- package/dist/api/resources/labTests/client/Client.js +788 -788
- package/dist/api/resources/labTests/client/requests/index.d.ts +7 -7
- package/dist/api/resources/labTests/types/index.d.ts +2 -2
- package/dist/api/resources/labTests/types/index.js +2 -2
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/payor/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.d.ts +12 -12
- package/dist/api/resources/sleep/client/Client.js +34 -34
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +18 -18
- package/dist/api/resources/vitals/client/Client.js +78 -78
- package/dist/api/resources/workouts/client/Client.d.ts +10 -10
- package/dist/api/resources/workouts/client/Client.js +34 -34
- package/dist/serialization/resources/index.d.ts +4 -4
- package/dist/serialization/resources/index.js +5 -5
- package/dist/serialization/resources/labTests/client/index.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/index.js +3 -3
- package/dist/serialization/resources/labTests/client/requests/index.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/requests/index.js +5 -5
- package/dist/serialization/resources/labTests/types/index.d.ts +2 -2
- package/dist/serialization/resources/labTests/types/index.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1985 -1985
- package/serialization/resources/index.d.ts +4 -4
- package/serialization/resources/index.js +5 -5
- package/serialization/resources/labTests/client/index.d.ts +2 -2
- package/serialization/resources/labTests/client/index.js +3 -3
- package/serialization/resources/labTests/client/requests/index.d.ts +2 -2
- package/serialization/resources/labTests/client/requests/index.js +5 -5
- package/serialization/resources/labTests/types/index.d.ts +2 -2
- package/serialization/resources/labTests/types/index.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -23,6 +23,128 @@ export declare namespace LabTests {
|
|
|
23
23
|
export declare class LabTests {
|
|
24
24
|
protected readonly _options: LabTests.Options;
|
|
25
25
|
constructor(_options?: LabTests.Options);
|
|
26
|
+
/**
|
|
27
|
+
* GET all the lab tests the team has access to.
|
|
28
|
+
*
|
|
29
|
+
* @param {Vital.LabTestsGetRequest} request
|
|
30
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.labTests.get()
|
|
36
|
+
*/
|
|
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[]>;
|
|
132
|
+
/**
|
|
133
|
+
* GET lab tests the team has access to as a paginated list.
|
|
134
|
+
*
|
|
135
|
+
* @param {Vital.LabTestsGetPaginatedRequest} request
|
|
136
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* await client.labTests.getPaginated()
|
|
142
|
+
*/
|
|
143
|
+
getPaginated(request?: Vital.LabTestsGetPaginatedRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabTestResourcesResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
146
|
+
*/
|
|
147
|
+
getLabTestCollectionInstructionPdf(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
|
26
148
|
/**
|
|
27
149
|
* GET many orders with filters.
|
|
28
150
|
*
|
|
@@ -414,128 +536,6 @@ export declare class LabTests {
|
|
|
414
536
|
* await client.labTests.updateOnSiteCollectionOrderDrawCompleted("order_id")
|
|
415
537
|
*/
|
|
416
538
|
updateOnSiteCollectionOrderDrawCompleted(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.PostOrderResponse>;
|
|
417
|
-
/**
|
|
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
|
|
503
|
-
*
|
|
504
|
-
* @param {string} providerId
|
|
505
|
-
* @param {number} labId
|
|
506
|
-
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
|
507
|
-
*
|
|
508
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
|
509
|
-
*
|
|
510
|
-
* @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()
|
|
521
|
-
*/
|
|
522
|
-
getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
|
|
523
|
-
/**
|
|
524
|
-
* GET lab tests the team has access to as a paginated list.
|
|
525
|
-
*
|
|
526
|
-
* @param {Vital.LabTestsGetPaginatedRequest} request
|
|
527
|
-
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
|
528
|
-
*
|
|
529
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
|
530
|
-
*
|
|
531
|
-
* @example
|
|
532
|
-
* await client.labTests.getPaginated()
|
|
533
|
-
*/
|
|
534
|
-
getPaginated(request?: Vital.LabTestsGetPaginatedRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabTestResourcesResponse>;
|
|
535
|
-
/**
|
|
536
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
|
537
|
-
*/
|
|
538
|
-
getLabTestCollectionInstructionPdf(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
|
539
539
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
540
540
|
"x-vital-api-key": string | undefined;
|
|
541
541
|
}>;
|