@tryvital/vital-node 3.1.0 → 3.1.2
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/api/resources/activity/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +1 -2
- package/api/resources/labTests/client/Client.js +29 -39
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/api/resources/link/client/Client.js +13 -13
- package/api/resources/meal/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.js +4 -4
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +4 -0
- package/api/resources/user/client/Client.js +78 -11
- package/api/resources/user/client/requests/UserUndoDeleteRequest.d.ts +13 -0
- package/api/resources/user/client/requests/UserUndoDeleteRequest.js +5 -0
- package/api/resources/user/client/requests/index.d.ts +1 -0
- package/api/resources/vitals/client/Client.js +50 -50
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingOrder.d.ts +1 -1
- package/api/types/ClientFacingResult.d.ts +1 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +1 -2
- package/dist/api/resources/labTests/client/Client.js +29 -39
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/dist/api/resources/link/client/Client.js +13 -13
- package/dist/api/resources/meal/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.js +4 -4
- 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.d.ts +4 -0
- package/dist/api/resources/user/client/Client.js +78 -11
- package/dist/api/resources/user/client/requests/UserUndoDeleteRequest.d.ts +13 -0
- package/dist/api/resources/user/client/requests/UserUndoDeleteRequest.js +5 -0
- package/dist/api/resources/user/client/requests/index.d.ts +1 -0
- package/dist/api/resources/vitals/client/Client.js +50 -50
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingOrder.d.ts +1 -1
- package/dist/api/types/ClientFacingResult.d.ts +1 -0
- package/dist/serialization/types/ClientFacingResult.d.ts +1 -0
- package/dist/serialization/types/ClientFacingResult.js +1 -0
- package/package.json +1 -1
- package/serialization/types/ClientFacingResult.d.ts +1 -0
- package/serialization/types/ClientFacingResult.js +1 -0
@@ -77,7 +77,7 @@ class Workouts {
|
|
77
77
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
-
"X-Fern-SDK-Version": "3.1.
|
80
|
+
"X-Fern-SDK-Version": "3.1.2",
|
81
81
|
},
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
@@ -151,7 +151,7 @@ class Workouts {
|
|
151
151
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
152
152
|
"X-Fern-Language": "JavaScript",
|
153
153
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
154
|
-
"X-Fern-SDK-Version": "3.1.
|
154
|
+
"X-Fern-SDK-Version": "3.1.2",
|
155
155
|
},
|
156
156
|
contentType: "application/json",
|
157
157
|
queryParameters: _queryParams,
|
@@ -213,7 +213,7 @@ class Workouts {
|
|
213
213
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
214
214
|
"X-Fern-Language": "JavaScript",
|
215
215
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
216
|
-
"X-Fern-SDK-Version": "3.1.
|
216
|
+
"X-Fern-SDK-Version": "3.1.2",
|
217
217
|
},
|
218
218
|
contentType: "application/json",
|
219
219
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -35,6 +35,6 @@ export interface ClientFacingOrder {
|
|
35
35
|
priority?: boolean;
|
36
36
|
/** Shipping Details. For unregistered testkit orders. */
|
37
37
|
shippingDetails?: Vital.ShippingAddress;
|
38
|
-
/**
|
38
|
+
/** Schedule an Order to be processed in a future date. */
|
39
39
|
activateBy?: string;
|
40
40
|
}
|
@@ -77,7 +77,7 @@ class Activity {
|
|
77
77
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
-
"X-Fern-SDK-Version": "3.1.
|
80
|
+
"X-Fern-SDK-Version": "3.1.2",
|
81
81
|
},
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
@@ -151,7 +151,7 @@ class Activity {
|
|
151
151
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
152
152
|
"X-Fern-Language": "JavaScript",
|
153
153
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
154
|
-
"X-Fern-SDK-Version": "3.1.
|
154
|
+
"X-Fern-SDK-Version": "3.1.2",
|
155
155
|
},
|
156
156
|
contentType: "application/json",
|
157
157
|
queryParameters: _queryParams,
|
@@ -77,7 +77,7 @@ class Body {
|
|
77
77
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
-
"X-Fern-SDK-Version": "3.1.
|
80
|
+
"X-Fern-SDK-Version": "3.1.2",
|
81
81
|
},
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
@@ -151,7 +151,7 @@ class Body {
|
|
151
151
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
152
152
|
"X-Fern-Language": "JavaScript",
|
153
153
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
154
|
-
"X-Fern-SDK-Version": "3.1.
|
154
|
+
"X-Fern-SDK-Version": "3.1.2",
|
155
155
|
},
|
156
156
|
contentType: "application/json",
|
157
157
|
queryParameters: _queryParams,
|
@@ -71,7 +71,7 @@ class Devices {
|
|
71
71
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
72
72
|
"X-Fern-Language": "JavaScript",
|
73
73
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
74
|
-
"X-Fern-SDK-Version": "3.1.
|
74
|
+
"X-Fern-SDK-Version": "3.1.2",
|
75
75
|
},
|
76
76
|
contentType: "application/json",
|
77
77
|
queryParameters: _queryParams,
|
@@ -62,7 +62,7 @@ class Insurance {
|
|
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.1.
|
65
|
+
"X-Fern-SDK-Version": "3.1.2",
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
68
68
|
body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -129,7 +129,7 @@ class Insurance {
|
|
129
129
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
130
130
|
"X-Fern-Language": "JavaScript",
|
131
131
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
132
|
-
"X-Fern-SDK-Version": "3.1.
|
132
|
+
"X-Fern-SDK-Version": "3.1.2",
|
133
133
|
},
|
134
134
|
contentType: "application/json",
|
135
135
|
queryParameters: _queryParams,
|
@@ -81,7 +81,7 @@ class Introspect {
|
|
81
81
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
82
82
|
"X-Fern-Language": "JavaScript",
|
83
83
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
84
|
-
"X-Fern-SDK-Version": "3.1.
|
84
|
+
"X-Fern-SDK-Version": "3.1.2",
|
85
85
|
},
|
86
86
|
contentType: "application/json",
|
87
87
|
queryParameters: _queryParams,
|
@@ -159,7 +159,7 @@ class Introspect {
|
|
159
159
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
160
160
|
"X-Fern-Language": "JavaScript",
|
161
161
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
162
|
-
"X-Fern-SDK-Version": "3.1.
|
162
|
+
"X-Fern-SDK-Version": "3.1.2",
|
163
163
|
},
|
164
164
|
contentType: "application/json",
|
165
165
|
queryParameters: _queryParams,
|
@@ -126,9 +126,8 @@ export declare class LabTests {
|
|
126
126
|
getResultRaw(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabResultsRaw>;
|
127
127
|
/**
|
128
128
|
* GET requisition pdf for an order
|
129
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
130
129
|
*/
|
131
|
-
getOrderRequistionPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<
|
130
|
+
getOrderRequistionPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
132
131
|
/**
|
133
132
|
* GET individual order by ID.
|
134
133
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -65,7 +65,7 @@ class LabTests {
|
|
65
65
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
66
66
|
"X-Fern-Language": "JavaScript",
|
67
67
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
68
|
-
"X-Fern-SDK-Version": "3.1.
|
68
|
+
"X-Fern-SDK-Version": "3.1.2",
|
69
69
|
},
|
70
70
|
contentType: "application/json",
|
71
71
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -113,7 +113,7 @@ class LabTests {
|
|
113
113
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
114
114
|
"X-Fern-Language": "JavaScript",
|
115
115
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
116
|
-
"X-Fern-SDK-Version": "3.1.
|
116
|
+
"X-Fern-SDK-Version": "3.1.2",
|
117
117
|
},
|
118
118
|
contentType: "application/json",
|
119
119
|
body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -195,7 +195,7 @@ class LabTests {
|
|
195
195
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
196
196
|
"X-Fern-Language": "JavaScript",
|
197
197
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
198
|
-
"X-Fern-SDK-Version": "3.1.
|
198
|
+
"X-Fern-SDK-Version": "3.1.2",
|
199
199
|
},
|
200
200
|
contentType: "application/json",
|
201
201
|
queryParameters: _queryParams,
|
@@ -265,7 +265,7 @@ class LabTests {
|
|
265
265
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
266
266
|
"X-Fern-Language": "JavaScript",
|
267
267
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
268
|
-
"X-Fern-SDK-Version": "3.1.
|
268
|
+
"X-Fern-SDK-Version": "3.1.2",
|
269
269
|
},
|
270
270
|
contentType: "application/json",
|
271
271
|
queryParameters: _queryParams,
|
@@ -325,7 +325,7 @@ class LabTests {
|
|
325
325
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
326
326
|
"X-Fern-Language": "JavaScript",
|
327
327
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
328
|
-
"X-Fern-SDK-Version": "3.1.
|
328
|
+
"X-Fern-SDK-Version": "3.1.2",
|
329
329
|
},
|
330
330
|
contentType: "application/json",
|
331
331
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -386,7 +386,7 @@ class LabTests {
|
|
386
386
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
387
387
|
"X-Fern-Language": "JavaScript",
|
388
388
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
389
|
-
"X-Fern-SDK-Version": "3.1.
|
389
|
+
"X-Fern-SDK-Version": "3.1.2",
|
390
390
|
},
|
391
391
|
contentType: "application/json",
|
392
392
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -435,7 +435,7 @@ class LabTests {
|
|
435
435
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
436
436
|
"X-Fern-Language": "JavaScript",
|
437
437
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
438
|
-
"X-Fern-SDK-Version": "3.1.
|
438
|
+
"X-Fern-SDK-Version": "3.1.2",
|
439
439
|
},
|
440
440
|
contentType: "application/json",
|
441
441
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -495,7 +495,7 @@ class LabTests {
|
|
495
495
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
496
496
|
"X-Fern-Language": "JavaScript",
|
497
497
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
498
|
-
"X-Fern-SDK-Version": "3.1.
|
498
|
+
"X-Fern-SDK-Version": "3.1.2",
|
499
499
|
},
|
500
500
|
contentType: "application/json",
|
501
501
|
body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -555,7 +555,7 @@ class LabTests {
|
|
555
555
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
556
556
|
"X-Fern-Language": "JavaScript",
|
557
557
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
558
|
-
"X-Fern-SDK-Version": "3.1.
|
558
|
+
"X-Fern-SDK-Version": "3.1.2",
|
559
559
|
},
|
560
560
|
contentType: "application/json",
|
561
561
|
body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -615,7 +615,7 @@ class LabTests {
|
|
615
615
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
616
616
|
"X-Fern-Language": "JavaScript",
|
617
617
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
618
|
-
"X-Fern-SDK-Version": "3.1.
|
618
|
+
"X-Fern-SDK-Version": "3.1.2",
|
619
619
|
},
|
620
620
|
contentType: "application/json",
|
621
621
|
body: yield serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -675,7 +675,7 @@ class LabTests {
|
|
675
675
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
676
676
|
"X-Fern-Language": "JavaScript",
|
677
677
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
678
|
-
"X-Fern-SDK-Version": "3.1.
|
678
|
+
"X-Fern-SDK-Version": "3.1.2",
|
679
679
|
},
|
680
680
|
contentType: "application/json",
|
681
681
|
body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
|
@@ -737,7 +737,7 @@ class LabTests {
|
|
737
737
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
738
738
|
"X-Fern-Language": "JavaScript",
|
739
739
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
740
|
-
"X-Fern-SDK-Version": "3.1.
|
740
|
+
"X-Fern-SDK-Version": "3.1.2",
|
741
741
|
},
|
742
742
|
contentType: "application/json",
|
743
743
|
body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -799,7 +799,7 @@ class LabTests {
|
|
799
799
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
800
800
|
"X-Fern-Language": "JavaScript",
|
801
801
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
802
|
-
"X-Fern-SDK-Version": "3.1.
|
802
|
+
"X-Fern-SDK-Version": "3.1.2",
|
803
803
|
},
|
804
804
|
contentType: "application/json",
|
805
805
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -848,7 +848,7 @@ class LabTests {
|
|
848
848
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
849
849
|
"X-Fern-Language": "JavaScript",
|
850
850
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
851
|
-
"X-Fern-SDK-Version": "3.1.
|
851
|
+
"X-Fern-SDK-Version": "3.1.2",
|
852
852
|
},
|
853
853
|
contentType: "application/json",
|
854
854
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -914,7 +914,7 @@ class LabTests {
|
|
914
914
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
915
915
|
"X-Fern-Language": "JavaScript",
|
916
916
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
917
|
-
"X-Fern-SDK-Version": "3.1.
|
917
|
+
"X-Fern-SDK-Version": "3.1.2",
|
918
918
|
},
|
919
919
|
contentType: "application/json",
|
920
920
|
queryParameters: _queryParams,
|
@@ -973,7 +973,7 @@ class LabTests {
|
|
973
973
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
974
974
|
"X-Fern-Language": "JavaScript",
|
975
975
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
976
|
-
"X-Fern-SDK-Version": "3.1.
|
976
|
+
"X-Fern-SDK-Version": "3.1.2",
|
977
977
|
},
|
978
978
|
contentType: "application/json",
|
979
979
|
responseType: "streaming",
|
@@ -1019,7 +1019,7 @@ class LabTests {
|
|
1019
1019
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1020
1020
|
"X-Fern-Language": "JavaScript",
|
1021
1021
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1022
|
-
"X-Fern-SDK-Version": "3.1.
|
1022
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1023
1023
|
},
|
1024
1024
|
contentType: "application/json",
|
1025
1025
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1078,7 +1078,7 @@ class LabTests {
|
|
1078
1078
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1079
1079
|
"X-Fern-Language": "JavaScript",
|
1080
1080
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1081
|
-
"X-Fern-SDK-Version": "3.1.
|
1081
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1082
1082
|
},
|
1083
1083
|
contentType: "application/json",
|
1084
1084
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1125,7 +1125,6 @@ class LabTests {
|
|
1125
1125
|
}
|
1126
1126
|
/**
|
1127
1127
|
* GET requisition pdf for an order
|
1128
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
1129
1128
|
*/
|
1130
1129
|
getOrderRequistionPdf(orderId, requestOptions) {
|
1131
1130
|
var _a;
|
@@ -1137,9 +1136,10 @@ class LabTests {
|
|
1137
1136
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1138
1137
|
"X-Fern-Language": "JavaScript",
|
1139
1138
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1140
|
-
"X-Fern-SDK-Version": "3.1.
|
1139
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1141
1140
|
},
|
1142
1141
|
contentType: "application/json",
|
1142
|
+
responseType: "streaming",
|
1143
1143
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1144
1144
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1145
1145
|
});
|
@@ -1147,20 +1147,10 @@ class LabTests {
|
|
1147
1147
|
return _response.body;
|
1148
1148
|
}
|
1149
1149
|
if (_response.error.reason === "status-code") {
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
allowUnrecognizedUnionMembers: true,
|
1155
|
-
allowUnrecognizedEnumValues: true,
|
1156
|
-
breadcrumbsPrefix: ["response"],
|
1157
|
-
}));
|
1158
|
-
default:
|
1159
|
-
throw new errors.VitalError({
|
1160
|
-
statusCode: _response.error.statusCode,
|
1161
|
-
body: _response.error.body,
|
1162
|
-
});
|
1163
|
-
}
|
1150
|
+
throw new errors.VitalError({
|
1151
|
+
statusCode: _response.error.statusCode,
|
1152
|
+
body: _response.error.body,
|
1153
|
+
});
|
1164
1154
|
}
|
1165
1155
|
switch (_response.error.reason) {
|
1166
1156
|
case "non-json":
|
@@ -1191,7 +1181,7 @@ class LabTests {
|
|
1191
1181
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1192
1182
|
"X-Fern-Language": "JavaScript",
|
1193
1183
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1194
|
-
"X-Fern-SDK-Version": "3.1.
|
1184
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1195
1185
|
},
|
1196
1186
|
contentType: "application/json",
|
1197
1187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1250,7 +1240,7 @@ class LabTests {
|
|
1250
1240
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1251
1241
|
"X-Fern-Language": "JavaScript",
|
1252
1242
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1253
|
-
"X-Fern-SDK-Version": "3.1.
|
1243
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1254
1244
|
},
|
1255
1245
|
contentType: "application/json",
|
1256
1246
|
body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
|
@@ -1312,7 +1302,7 @@ class LabTests {
|
|
1312
1302
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1313
1303
|
"X-Fern-Language": "JavaScript",
|
1314
1304
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1315
|
-
"X-Fern-SDK-Version": "3.1.
|
1305
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1316
1306
|
},
|
1317
1307
|
contentType: "application/json",
|
1318
1308
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1379,7 +1369,7 @@ class LabTests {
|
|
1379
1369
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1380
1370
|
"X-Fern-Language": "JavaScript",
|
1381
1371
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1382
|
-
"X-Fern-SDK-Version": "3.1.
|
1372
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1383
1373
|
},
|
1384
1374
|
contentType: "application/json",
|
1385
1375
|
queryParameters: _queryParams,
|
@@ -1465,7 +1455,7 @@ class LabTests {
|
|
1465
1455
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1466
1456
|
"X-Fern-Language": "JavaScript",
|
1467
1457
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1468
|
-
"X-Fern-SDK-Version": "3.1.
|
1458
|
+
"X-Fern-SDK-Version": "3.1.2",
|
1469
1459
|
},
|
1470
1460
|
contentType: "application/json",
|
1471
1461
|
queryParameters: _queryParams,
|
@@ -10,7 +10,7 @@ export interface CreateOrderRequestCompatible {
|
|
10
10
|
/** Defines whether order is priority or not. For some labs, this refers to a STAT order. */
|
11
11
|
priority?: boolean;
|
12
12
|
consents?: Vital.Consent[];
|
13
|
-
/**
|
13
|
+
/** Schedule an Order to be processed in a future date. */
|
14
14
|
activateBy?: string;
|
15
15
|
patientDetails: Vital.PatientDetails;
|
16
16
|
patientAddress: Vital.PatientAddressCompatible;
|
@@ -79,7 +79,7 @@ class Link {
|
|
79
79
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
80
80
|
"X-Fern-Language": "JavaScript",
|
81
81
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
82
|
-
"X-Fern-SDK-Version": "3.1.
|
82
|
+
"X-Fern-SDK-Version": "3.1.2",
|
83
83
|
},
|
84
84
|
contentType: "application/json",
|
85
85
|
body: yield serializers.LinkTokenExchange.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -138,7 +138,7 @@ class Link {
|
|
138
138
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
139
139
|
"X-Fern-Language": "JavaScript",
|
140
140
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
141
|
-
"X-Fern-SDK-Version": "3.1.
|
141
|
+
"X-Fern-SDK-Version": "3.1.2",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
144
|
body: yield serializers.LinkTokenBase.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -204,7 +204,7 @@ class Link {
|
|
204
204
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
205
205
|
"X-Fern-Language": "JavaScript",
|
206
206
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
207
|
-
"X-Fern-SDK-Version": "3.1.
|
207
|
+
"X-Fern-SDK-Version": "3.1.2",
|
208
208
|
},
|
209
209
|
contentType: "application/json",
|
210
210
|
queryParameters: _queryParams,
|
@@ -265,7 +265,7 @@ class Link {
|
|
265
265
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
266
266
|
"X-Fern-Language": "JavaScript",
|
267
267
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
268
|
-
"X-Fern-SDK-Version": "3.1.
|
268
|
+
"X-Fern-SDK-Version": "3.1.2",
|
269
269
|
},
|
270
270
|
contentType: "application/json",
|
271
271
|
body: yield serializers.BeginLinkTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -330,7 +330,7 @@ class Link {
|
|
330
330
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
331
331
|
"X-Fern-Language": "JavaScript",
|
332
332
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
333
|
-
"X-Fern-SDK-Version": "3.1.
|
333
|
+
"X-Fern-SDK-Version": "3.1.2",
|
334
334
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
335
335
|
},
|
336
336
|
contentType: "application/json",
|
@@ -393,7 +393,7 @@ class Link {
|
|
393
393
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
394
394
|
"X-Fern-Language": "JavaScript",
|
395
395
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
396
|
-
"X-Fern-SDK-Version": "3.1.
|
396
|
+
"X-Fern-SDK-Version": "3.1.2",
|
397
397
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
398
398
|
},
|
399
399
|
contentType: "application/json",
|
@@ -457,7 +457,7 @@ class Link {
|
|
457
457
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
458
458
|
"X-Fern-Language": "JavaScript",
|
459
459
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
460
|
-
"X-Fern-SDK-Version": "3.1.
|
460
|
+
"X-Fern-SDK-Version": "3.1.2",
|
461
461
|
"x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined,
|
462
462
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
463
463
|
},
|
@@ -520,7 +520,7 @@ class Link {
|
|
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.1.
|
523
|
+
"X-Fern-SDK-Version": "3.1.2",
|
524
524
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
525
525
|
},
|
526
526
|
contentType: "application/json",
|
@@ -581,7 +581,7 @@ class Link {
|
|
581
581
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
582
582
|
"X-Fern-Language": "JavaScript",
|
583
583
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
584
|
-
"X-Fern-SDK-Version": "3.1.
|
584
|
+
"X-Fern-SDK-Version": "3.1.2",
|
585
585
|
"x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined,
|
586
586
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
587
587
|
},
|
@@ -644,7 +644,7 @@ class Link {
|
|
644
644
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
645
645
|
"X-Fern-Language": "JavaScript",
|
646
646
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
647
|
-
"X-Fern-SDK-Version": "3.1.
|
647
|
+
"X-Fern-SDK-Version": "3.1.2",
|
648
648
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
649
649
|
},
|
650
650
|
contentType: "application/json",
|
@@ -709,7 +709,7 @@ class Link {
|
|
709
709
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
710
710
|
"X-Fern-Language": "JavaScript",
|
711
711
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
712
|
-
"X-Fern-SDK-Version": "3.1.
|
712
|
+
"X-Fern-SDK-Version": "3.1.2",
|
713
713
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
714
714
|
},
|
715
715
|
contentType: "application/json",
|
@@ -771,7 +771,7 @@ class Link {
|
|
771
771
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
772
772
|
"X-Fern-Language": "JavaScript",
|
773
773
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
774
|
-
"X-Fern-SDK-Version": "3.1.
|
774
|
+
"X-Fern-SDK-Version": "3.1.2",
|
775
775
|
},
|
776
776
|
contentType: "application/json",
|
777
777
|
body: yield serializers.ManualConnectionData.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -831,7 +831,7 @@ class Link {
|
|
831
831
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
832
832
|
"X-Fern-Language": "JavaScript",
|
833
833
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
834
|
-
"X-Fern-SDK-Version": "3.1.
|
834
|
+
"X-Fern-SDK-Version": "3.1.2",
|
835
835
|
},
|
836
836
|
contentType: "application/json",
|
837
837
|
body: yield serializers.DemoConnectionCreationPayload.jsonOrThrow(request, {
|
@@ -77,7 +77,7 @@ class Meal {
|
|
77
77
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
-
"X-Fern-SDK-Version": "3.1.
|
80
|
+
"X-Fern-SDK-Version": "3.1.2",
|
81
81
|
},
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
@@ -68,7 +68,7 @@ class Profile {
|
|
68
68
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
69
69
|
"X-Fern-Language": "JavaScript",
|
70
70
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
71
|
-
"X-Fern-SDK-Version": "3.1.
|
71
|
+
"X-Fern-SDK-Version": "3.1.2",
|
72
72
|
},
|
73
73
|
contentType: "application/json",
|
74
74
|
queryParameters: _queryParams,
|
@@ -133,7 +133,7 @@ class Profile {
|
|
133
133
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
134
134
|
"X-Fern-Language": "JavaScript",
|
135
135
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
136
|
-
"X-Fern-SDK-Version": "3.1.
|
136
|
+
"X-Fern-SDK-Version": "3.1.2",
|
137
137
|
},
|
138
138
|
contentType: "application/json",
|
139
139
|
queryParameters: _queryParams,
|
@@ -64,7 +64,7 @@ class Providers {
|
|
64
64
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
65
65
|
"X-Fern-Language": "JavaScript",
|
66
66
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
67
|
-
"X-Fern-SDK-Version": "3.1.
|
67
|
+
"X-Fern-SDK-Version": "3.1.2",
|
68
68
|
},
|
69
69
|
contentType: "application/json",
|
70
70
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -77,7 +77,7 @@ class Sleep {
|
|
77
77
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
-
"X-Fern-SDK-Version": "3.1.
|
80
|
+
"X-Fern-SDK-Version": "3.1.2",
|
81
81
|
},
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
@@ -151,7 +151,7 @@ class Sleep {
|
|
151
151
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
152
152
|
"X-Fern-Language": "JavaScript",
|
153
153
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
154
|
-
"X-Fern-SDK-Version": "3.1.
|
154
|
+
"X-Fern-SDK-Version": "3.1.2",
|
155
155
|
},
|
156
156
|
contentType: "application/json",
|
157
157
|
queryParameters: _queryParams,
|
@@ -225,7 +225,7 @@ class Sleep {
|
|
225
225
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
226
226
|
"X-Fern-Language": "JavaScript",
|
227
227
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
228
|
-
"X-Fern-SDK-Version": "3.1.
|
228
|
+
"X-Fern-SDK-Version": "3.1.2",
|
229
229
|
},
|
230
230
|
contentType: "application/json",
|
231
231
|
queryParameters: _queryParams,
|
@@ -288,7 +288,7 @@ class Sleep {
|
|
288
288
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
289
289
|
"X-Fern-Language": "JavaScript",
|
290
290
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
291
|
-
"X-Fern-SDK-Version": "3.1.
|
291
|
+
"X-Fern-SDK-Version": "3.1.2",
|
292
292
|
},
|
293
293
|
contentType: "application/json",
|
294
294
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|