@tryvital/vital-node 3.0.0-beta.0 → 3.0.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/Client.d.ts +0 -3
- package/Client.js +14 -19
- package/README.md +91 -0
- 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/index.d.ts +0 -1
- package/api/resources/index.js +1 -2
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +10 -1
- package/api/resources/labTests/client/Client.js +145 -21
- package/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +7 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/link/client/Client.d.ts +1 -1
- package/api/resources/link/client/Client.js +16 -16
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +1 -1
- package/api/resources/providers/client/Client.js +3 -3
- package/api/resources/sleep/client/Client.d.ts +5 -0
- package/api/resources/sleep/client/Client.js +61 -3
- package/api/resources/team/client/Client.d.ts +6 -6
- package/api/resources/team/client/Client.js +13 -13
- package/api/resources/team/client/requests/{GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.d.ts → TeamGetSourcePrioritiesRequest.d.ts} +1 -1
- package/{dist/api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.d.ts → api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts} +1 -1
- package/{dist/api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.d.ts → api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts} +1 -1
- package/api/resources/team/client/requests/index.d.ts +3 -3
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +11 -11
- package/api/resources/vitals/client/Client.d.ts +5 -0
- package/api/resources/vitals/client/Client.js +90 -22
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/index.d.ts +1 -0
- package/api/resources/workouts/client/Client.d.ts +4 -0
- package/api/resources/workouts/client/Client.js +59 -2
- package/api/types/BiomarkerResult.d.ts +2 -0
- package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/api/types/ClientFacingLoinc.d.ts +10 -0
- package/api/types/ClientFacingLoinc.js +5 -0
- package/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/api/types/ClientFacingMarkerComplete.js +5 -0
- package/api/types/ClientFacingResult.d.ts +12 -0
- package/api/types/ClientFacingResult.js +5 -0
- package/api/types/ClientFacingSleep.d.ts +1 -1
- package/api/types/GetMarkersResponse.d.ts +1 -1
- package/api/types/Region.d.ts +2 -1
- package/api/types/Region.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +14 -19
- 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/index.d.ts +0 -1
- package/dist/api/resources/index.js +1 -2
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +10 -1
- package/dist/api/resources/labTests/client/Client.js +145 -21
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +7 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/link/client/Client.d.ts +1 -1
- package/dist/api/resources/link/client/Client.js +16 -16
- 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.d.ts +1 -1
- package/dist/api/resources/providers/client/Client.js +3 -3
- package/dist/api/resources/sleep/client/Client.d.ts +5 -0
- package/dist/api/resources/sleep/client/Client.js +61 -3
- package/dist/api/resources/team/client/Client.d.ts +6 -6
- package/dist/api/resources/team/client/Client.js +13 -13
- package/dist/api/resources/team/client/requests/{GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.d.ts → TeamGetSourcePrioritiesRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.js +5 -0
- package/{api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.d.ts → dist/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamGetUserByIdRequest.js +5 -0
- package/{api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.d.ts → dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js +5 -0
- package/dist/api/resources/team/client/requests/index.d.ts +3 -3
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +11 -11
- package/dist/api/resources/vitals/client/Client.d.ts +5 -0
- package/dist/api/resources/vitals/client/Client.js +90 -22
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workouts/client/Client.d.ts +4 -0
- package/dist/api/resources/workouts/client/Client.js +59 -2
- package/dist/api/types/BiomarkerResult.d.ts +2 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.js +5 -0
- package/dist/api/types/ClientFacingLoinc.d.ts +10 -0
- package/dist/api/types/ClientFacingLoinc.js +5 -0
- package/dist/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/dist/api/types/ClientFacingMarkerComplete.js +5 -0
- package/dist/api/types/ClientFacingResult.d.ts +12 -0
- package/dist/api/types/ClientFacingResult.js +5 -0
- package/dist/api/types/ClientFacingSleep.d.ts +1 -1
- package/dist/api/types/GetMarkersResponse.d.ts +1 -1
- package/dist/api/types/Region.d.ts +2 -1
- package/dist/api/types/Region.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/link/client/{getProviders.d.ts → getAllProviders.d.ts} +1 -1
- package/dist/serialization/resources/link/client/index.d.ts +1 -1
- package/dist/serialization/resources/link/client/index.js +2 -2
- package/{serialization/resources/providers/client/getListOfProviders.d.ts → dist/serialization/resources/providers/client/getAll.d.ts} +1 -1
- package/dist/serialization/resources/providers/client/index.d.ts +1 -1
- package/dist/serialization/resources/providers/client/index.js +2 -2
- package/{serialization/resources/team/client/getTeamConfig.d.ts → dist/serialization/resources/team/client/getLinkConfig.d.ts} +1 -1
- package/dist/serialization/resources/team/client/{getTeamConfig.d.ts → getSvixUrl.d.ts} +1 -1
- package/{serialization/resources/team/client/searchTeamUsersByUuidOrClientUserId.d.ts → dist/serialization/resources/team/client/getUserById.d.ts} +1 -1
- package/dist/serialization/resources/team/client/index.d.ts +3 -3
- package/dist/serialization/resources/team/client/index.js +4 -4
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/dist/serialization/resources/vitals/client/index.d.ts +1 -0
- package/dist/serialization/resources/vitals/client/index.js +2 -1
- package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
- package/dist/serialization/types/BiomarkerResult.js +2 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/dist/serialization/types/ClientFacingLoinc.js +37 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/dist/serialization/types/ClientFacingResult.d.ts +17 -0
- package/dist/serialization/types/ClientFacingResult.js +47 -0
- package/dist/serialization/types/GetMarkersResponse.d.ts +1 -1
- package/dist/serialization/types/GetMarkersResponse.js +1 -1
- package/dist/serialization/types/Region.d.ts +1 -1
- package/dist/serialization/types/Region.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/package.json +1 -1
- package/serialization/resources/link/client/{getProviders.d.ts → getAllProviders.d.ts} +1 -1
- package/serialization/resources/link/client/index.d.ts +1 -1
- package/serialization/resources/link/client/index.js +2 -2
- package/{dist/serialization/resources/providers/client/getListOfProviders.d.ts → serialization/resources/providers/client/getAll.d.ts} +1 -1
- package/serialization/resources/providers/client/index.d.ts +1 -1
- package/serialization/resources/providers/client/index.js +2 -2
- package/serialization/resources/team/client/{getSvixWebhookUrl.d.ts → getLinkConfig.d.ts} +1 -1
- package/{dist/serialization/resources/team/client/getSvixWebhookUrl.d.ts → serialization/resources/team/client/getSvixUrl.d.ts} +1 -1
- package/{dist/serialization/resources/team/client/searchTeamUsersByUuidOrClientUserId.d.ts → serialization/resources/team/client/getUserById.d.ts} +1 -1
- package/serialization/resources/team/client/index.d.ts +3 -3
- package/serialization/resources/team/client/index.js +4 -4
- package/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/serialization/resources/vitals/client/index.d.ts +1 -0
- package/serialization/resources/vitals/client/index.js +2 -1
- package/serialization/types/BiomarkerResult.d.ts +2 -0
- package/serialization/types/BiomarkerResult.js +2 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/serialization/types/ClientFacingLoinc.js +37 -0
- package/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/serialization/types/ClientFacingResult.d.ts +17 -0
- package/serialization/types/ClientFacingResult.js +47 -0
- package/serialization/types/GetMarkersResponse.d.ts +1 -1
- package/serialization/types/GetMarkersResponse.js +1 -1
- package/serialization/types/Region.d.ts +1 -1
- package/serialization/types/Region.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/api/resources/timeseries/client/Client.d.ts +0 -28
- package/api/resources/timeseries/client/Client.js +0 -168
- package/api/resources/timeseries/client/index.d.ts +0 -1
- package/api/resources/timeseries/client/index.js +0 -2
- package/api/resources/timeseries/index.d.ts +0 -1
- package/api/resources/timeseries/index.js +0 -17
- package/dist/api/resources/timeseries/client/Client.d.ts +0 -28
- package/dist/api/resources/timeseries/client/Client.js +0 -168
- package/dist/api/resources/timeseries/client/index.d.ts +0 -1
- package/dist/api/resources/timeseries/client/index.js +0 -2
- package/dist/api/resources/timeseries/index.d.ts +0 -1
- package/dist/api/resources/timeseries/index.js +0 -17
- /package/api/resources/{team/client/requests/GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.js → labTests/client/requests/LabTestsGetMarkersForLabTestRequest.js} +0 -0
- /package/api/resources/team/client/requests/{SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → TeamGetSourcePrioritiesRequest.js} +0 -0
- /package/api/resources/team/client/requests/{UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → TeamGetUserByIdRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.js → api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → api/types/ClientFacingElectrocardiogramVoltageTimeseries.js} +0 -0
- /package/dist/serialization/resources/link/client/{getProviders.js → getAllProviders.js} +0 -0
- /package/dist/serialization/resources/providers/client/{getListOfProviders.js → getAll.js} +0 -0
- /package/dist/serialization/resources/team/client/{getSvixWebhookUrl.js → getLinkConfig.js} +0 -0
- /package/dist/serialization/resources/team/client/{getTeamConfig.js → getSvixUrl.js} +0 -0
- /package/dist/serialization/resources/team/client/{searchTeamUsersByUuidOrClientUserId.js → getUserById.js} +0 -0
- /package/serialization/resources/link/client/{getProviders.js → getAllProviders.js} +0 -0
- /package/serialization/resources/providers/client/{getListOfProviders.js → getAll.js} +0 -0
- /package/serialization/resources/team/client/{getSvixWebhookUrl.js → getLinkConfig.js} +0 -0
- /package/serialization/resources/team/client/{getTeamConfig.js → getSvixUrl.js} +0 -0
- /package/serialization/resources/team/client/{searchTeamUsersByUuidOrClientUserId.js → getUserById.js} +0 -0
@@ -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.
|
76
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
144
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
212
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
280
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
348
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
416
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
484
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
552
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
620
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
688
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
756
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
824
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
892
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
960
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
1028
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
1096
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
1164
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
1232
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
1300
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
1368
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
1436
|
+
"X-Fern-SDK-Version": "3.0.2",
|
1437
1437
|
},
|
1438
1438
|
contentType: "application/json",
|
1439
1439
|
queryParameters: _queryParams,
|
@@ -1478,6 +1478,74 @@ class Vitals {
|
|
1478
1478
|
}
|
1479
1479
|
});
|
1480
1480
|
}
|
1481
|
+
/**
|
1482
|
+
* Get timeseries data for user
|
1483
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1484
|
+
*/
|
1485
|
+
electrocardiogramVoltage(userId, request, requestOptions) {
|
1486
|
+
var _a;
|
1487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1488
|
+
const { provider, startDate, endDate } = request;
|
1489
|
+
const _queryParams = new url_search_params_1.default();
|
1490
|
+
if (provider != null) {
|
1491
|
+
_queryParams.append("provider", provider);
|
1492
|
+
}
|
1493
|
+
_queryParams.append("start_date", startDate);
|
1494
|
+
if (endDate != null) {
|
1495
|
+
_queryParams.append("end_date", endDate);
|
1496
|
+
}
|
1497
|
+
const _response = yield core.fetcher({
|
1498
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/electrocardiogram_voltage`),
|
1499
|
+
method: "GET",
|
1500
|
+
headers: {
|
1501
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1502
|
+
"X-Fern-Language": "JavaScript",
|
1503
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1504
|
+
"X-Fern-SDK-Version": "3.0.2",
|
1505
|
+
},
|
1506
|
+
contentType: "application/json",
|
1507
|
+
queryParameters: _queryParams,
|
1508
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1509
|
+
});
|
1510
|
+
if (_response.ok) {
|
1511
|
+
return yield serializers.vitals.electrocardiogramVoltage.Response.parseOrThrow(_response.body, {
|
1512
|
+
unrecognizedObjectKeys: "passthrough",
|
1513
|
+
allowUnrecognizedUnionMembers: true,
|
1514
|
+
allowUnrecognizedEnumValues: true,
|
1515
|
+
breadcrumbsPrefix: ["response"],
|
1516
|
+
});
|
1517
|
+
}
|
1518
|
+
if (_response.error.reason === "status-code") {
|
1519
|
+
switch (_response.error.statusCode) {
|
1520
|
+
case 422:
|
1521
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1522
|
+
unrecognizedObjectKeys: "passthrough",
|
1523
|
+
allowUnrecognizedUnionMembers: true,
|
1524
|
+
allowUnrecognizedEnumValues: true,
|
1525
|
+
breadcrumbsPrefix: ["response"],
|
1526
|
+
}));
|
1527
|
+
default:
|
1528
|
+
throw new errors.VitalError({
|
1529
|
+
statusCode: _response.error.statusCode,
|
1530
|
+
body: _response.error.body,
|
1531
|
+
});
|
1532
|
+
}
|
1533
|
+
}
|
1534
|
+
switch (_response.error.reason) {
|
1535
|
+
case "non-json":
|
1536
|
+
throw new errors.VitalError({
|
1537
|
+
statusCode: _response.error.statusCode,
|
1538
|
+
body: _response.error.rawBody,
|
1539
|
+
});
|
1540
|
+
case "timeout":
|
1541
|
+
throw new errors.VitalTimeoutError();
|
1542
|
+
case "unknown":
|
1543
|
+
throw new errors.VitalError({
|
1544
|
+
message: _response.error.errorMessage,
|
1545
|
+
});
|
1546
|
+
}
|
1547
|
+
});
|
1548
|
+
}
|
1481
1549
|
/**
|
1482
1550
|
* Get timeseries data for user
|
1483
1551
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -1501,7 +1569,7 @@ class Vitals {
|
|
1501
1569
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1502
1570
|
"X-Fern-Language": "JavaScript",
|
1503
1571
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1504
|
-
"X-Fern-SDK-Version": "3.0.
|
1572
|
+
"X-Fern-SDK-Version": "3.0.2",
|
1505
1573
|
},
|
1506
1574
|
contentType: "application/json",
|
1507
1575
|
queryParameters: _queryParams,
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface VitalsElectrocardiogramVoltageRequest {
|
5
|
+
/**
|
6
|
+
* Provider oura/strava etc
|
7
|
+
*/
|
8
|
+
provider?: string;
|
9
|
+
/**
|
10
|
+
* Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
|
11
|
+
*/
|
12
|
+
startDate: string;
|
13
|
+
/**
|
14
|
+
* Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
|
15
|
+
*/
|
16
|
+
endDate?: string;
|
17
|
+
}
|
@@ -19,4 +19,5 @@ export { VitalsCholesterolHdlRequest } from "./VitalsCholesterolHdlRequest";
|
|
19
19
|
export { VitalsCholesterolLdlRequest } from "./VitalsCholesterolLdlRequest";
|
20
20
|
export { VitalsCholesterolRequest } from "./VitalsCholesterolRequest";
|
21
21
|
export { VitalsBloodOxygenRequest } from "./VitalsBloodOxygenRequest";
|
22
|
+
export { VitalsElectrocardiogramVoltageRequest } from "./VitalsElectrocardiogramVoltageRequest";
|
22
23
|
export { VitalsBloodPressureRequest } from "./VitalsBloodPressureRequest";
|
@@ -26,4 +26,8 @@ export declare class Workouts {
|
|
26
26
|
* @throws {@link Vital.UnprocessableEntityError}
|
27
27
|
*/
|
28
28
|
getRaw(userId: string, request: Vital.WorkoutsGetRawRequest, requestOptions?: Workouts.RequestOptions): Promise<Vital.RawWorkout>;
|
29
|
+
/**
|
30
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
31
|
+
*/
|
32
|
+
getByWorkoutId(workoutId: string, requestOptions?: Workouts.RequestOptions): Promise<Vital.ClientFacingStream>;
|
29
33
|
}
|
@@ -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.
|
76
|
+
"X-Fern-SDK-Version": "3.0.2",
|
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.
|
144
|
+
"X-Fern-SDK-Version": "3.0.2",
|
145
145
|
},
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
@@ -186,5 +186,62 @@ class Workouts {
|
|
186
186
|
}
|
187
187
|
});
|
188
188
|
}
|
189
|
+
/**
|
190
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
191
|
+
*/
|
192
|
+
getByWorkoutId(workoutId, requestOptions) {
|
193
|
+
var _a;
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
195
|
+
const _response = yield core.fetcher({
|
196
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${workoutId}/stream`),
|
197
|
+
method: "GET",
|
198
|
+
headers: {
|
199
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
200
|
+
"X-Fern-Language": "JavaScript",
|
201
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
202
|
+
"X-Fern-SDK-Version": "3.0.2",
|
203
|
+
},
|
204
|
+
contentType: "application/json",
|
205
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
206
|
+
});
|
207
|
+
if (_response.ok) {
|
208
|
+
return yield serializers.ClientFacingStream.parseOrThrow(_response.body, {
|
209
|
+
unrecognizedObjectKeys: "passthrough",
|
210
|
+
allowUnrecognizedUnionMembers: true,
|
211
|
+
allowUnrecognizedEnumValues: true,
|
212
|
+
breadcrumbsPrefix: ["response"],
|
213
|
+
});
|
214
|
+
}
|
215
|
+
if (_response.error.reason === "status-code") {
|
216
|
+
switch (_response.error.statusCode) {
|
217
|
+
case 422:
|
218
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
219
|
+
unrecognizedObjectKeys: "passthrough",
|
220
|
+
allowUnrecognizedUnionMembers: true,
|
221
|
+
allowUnrecognizedEnumValues: true,
|
222
|
+
breadcrumbsPrefix: ["response"],
|
223
|
+
}));
|
224
|
+
default:
|
225
|
+
throw new errors.VitalError({
|
226
|
+
statusCode: _response.error.statusCode,
|
227
|
+
body: _response.error.body,
|
228
|
+
});
|
229
|
+
}
|
230
|
+
}
|
231
|
+
switch (_response.error.reason) {
|
232
|
+
case "non-json":
|
233
|
+
throw new errors.VitalError({
|
234
|
+
statusCode: _response.error.statusCode,
|
235
|
+
body: _response.error.rawBody,
|
236
|
+
});
|
237
|
+
case "timeout":
|
238
|
+
throw new errors.VitalTimeoutError();
|
239
|
+
case "unknown":
|
240
|
+
throw new errors.VitalError({
|
241
|
+
message: _response.error.errorMessage,
|
242
|
+
});
|
243
|
+
}
|
244
|
+
});
|
245
|
+
}
|
189
246
|
}
|
190
247
|
exports.Workouts = Workouts;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface ClientFacingElectrocardiogramVoltageTimeseries {
|
5
|
+
/** Deprecated */
|
6
|
+
id?: number;
|
7
|
+
/** Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source. */
|
8
|
+
timezoneOffset?: number;
|
9
|
+
/** The lead of the measurement. */
|
10
|
+
type: string;
|
11
|
+
/** Measured in mV. */
|
12
|
+
unit: string;
|
13
|
+
/** The timestamp of the measurement. */
|
14
|
+
timestamp: Date;
|
15
|
+
/** The value of the measurement. */
|
16
|
+
value: number;
|
17
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "..";
|
5
|
+
export interface ClientFacingMarkerComplete {
|
6
|
+
id: number;
|
7
|
+
name: string;
|
8
|
+
slug: string;
|
9
|
+
description?: string;
|
10
|
+
labId?: number;
|
11
|
+
providerId?: string;
|
12
|
+
type?: Vital.MarkerType;
|
13
|
+
unit?: string;
|
14
|
+
price?: string;
|
15
|
+
expectedResults: Vital.ClientFacingResult[];
|
16
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "..";
|
5
|
+
export interface ClientFacingResult {
|
6
|
+
id: number;
|
7
|
+
name: string;
|
8
|
+
slug: string;
|
9
|
+
labId?: number;
|
10
|
+
providerId?: string;
|
11
|
+
loinc?: Vital.ClientFacingLoinc;
|
12
|
+
}
|
@@ -42,7 +42,7 @@ export interface ClientFacingSleep {
|
|
42
42
|
temperatureDelta?: number;
|
43
43
|
/** The skin temperature::celcius */
|
44
44
|
skinTemperature?: number;
|
45
|
-
/** Sleeping Heart Rate Dip is the percentage difference between your average waking heart rate and your average sleeping heart rate. In health studies, a greater "dip" is typically seen as a positive indicator of overall health::perc */
|
45
|
+
/** Sleeping Heart Rate Dip is the percentage difference between your average waking heart rate and your average sleeping heart rate. In health studies, a greater "dip" is typically seen as a positive indicator of overall health. Currently only available for Garmin::perc */
|
46
46
|
hrDip?: number;
|
47
47
|
/** The average heart rate variability registered during the sleep period::rmssd */
|
48
48
|
averageHrv?: number;
|
package/api/types/Region.d.ts
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
/**
|
5
5
|
* An enumeration.
|
6
6
|
*/
|
7
|
-
export declare type Region = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr";
|
7
|
+
export declare type Region = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca";
|
8
8
|
export declare const Region: {
|
9
9
|
readonly Us: "us";
|
10
10
|
readonly Eu: "eu";
|
@@ -14,4 +14,5 @@ export declare const Region: {
|
|
14
14
|
readonly Br: "br";
|
15
15
|
readonly Nl: "nl";
|
16
16
|
readonly Fr: "fr";
|
17
|
+
readonly Ca: "ca";
|
17
18
|
};
|
package/api/types/Region.js
CHANGED
package/api/types/index.d.ts
CHANGED
@@ -28,6 +28,7 @@ export * from "./ClientFacingCaloriesBasalTimeseries";
|
|
28
28
|
export * from "./ClientFacingCholesterolTimeseries";
|
29
29
|
export * from "./ClientFacingDiagnosisInformation";
|
30
30
|
export * from "./ClientFacingDistanceTimeseries";
|
31
|
+
export * from "./ClientFacingElectrocardiogramVoltageTimeseries";
|
31
32
|
export * from "./ClientFacingFloorsClimbedTimeseries";
|
32
33
|
export * from "./ClientFacingFood";
|
33
34
|
export * from "./ClientFacingGlucoseTimeseries";
|
@@ -39,7 +40,9 @@ export * from "./ClientFacingIgeTimeseries";
|
|
39
40
|
export * from "./ClientFacingIggTimeseries";
|
40
41
|
export * from "./ClientFacingLab";
|
41
42
|
export * from "./ClientFacingLabTest";
|
43
|
+
export * from "./ClientFacingLoinc";
|
42
44
|
export * from "./ClientFacingMarker";
|
45
|
+
export * from "./ClientFacingMarkerComplete";
|
43
46
|
export * from "./ClientFacingMealResponse";
|
44
47
|
export * from "./ClientFacingMindfulnessMinutesTimeseries";
|
45
48
|
export * from "./ClientFacingOrder";
|
@@ -53,6 +56,7 @@ export * from "./ClientFacingProviderDetailed";
|
|
53
56
|
export * from "./ClientFacingProviderWithStatus";
|
54
57
|
export * from "./ClientFacingResource";
|
55
58
|
export * from "./ClientFacingRespiratoryRateTimeseries";
|
59
|
+
export * from "./ClientFacingResult";
|
56
60
|
export * from "./ClientFacingShipment";
|
57
61
|
export * from "./ClientFacingSleep";
|
58
62
|
export * from "./ClientFacingSleepStream";
|
package/api/types/index.js
CHANGED
@@ -44,6 +44,7 @@ __exportStar(require("./ClientFacingCaloriesBasalTimeseries"), exports);
|
|
44
44
|
__exportStar(require("./ClientFacingCholesterolTimeseries"), exports);
|
45
45
|
__exportStar(require("./ClientFacingDiagnosisInformation"), exports);
|
46
46
|
__exportStar(require("./ClientFacingDistanceTimeseries"), exports);
|
47
|
+
__exportStar(require("./ClientFacingElectrocardiogramVoltageTimeseries"), exports);
|
47
48
|
__exportStar(require("./ClientFacingFloorsClimbedTimeseries"), exports);
|
48
49
|
__exportStar(require("./ClientFacingFood"), exports);
|
49
50
|
__exportStar(require("./ClientFacingGlucoseTimeseries"), exports);
|
@@ -55,7 +56,9 @@ __exportStar(require("./ClientFacingIgeTimeseries"), exports);
|
|
55
56
|
__exportStar(require("./ClientFacingIggTimeseries"), exports);
|
56
57
|
__exportStar(require("./ClientFacingLab"), exports);
|
57
58
|
__exportStar(require("./ClientFacingLabTest"), exports);
|
59
|
+
__exportStar(require("./ClientFacingLoinc"), exports);
|
58
60
|
__exportStar(require("./ClientFacingMarker"), exports);
|
61
|
+
__exportStar(require("./ClientFacingMarkerComplete"), exports);
|
59
62
|
__exportStar(require("./ClientFacingMealResponse"), exports);
|
60
63
|
__exportStar(require("./ClientFacingMindfulnessMinutesTimeseries"), exports);
|
61
64
|
__exportStar(require("./ClientFacingOrder"), exports);
|
@@ -69,6 +72,7 @@ __exportStar(require("./ClientFacingProviderDetailed"), exports);
|
|
69
72
|
__exportStar(require("./ClientFacingProviderWithStatus"), exports);
|
70
73
|
__exportStar(require("./ClientFacingResource"), exports);
|
71
74
|
__exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
|
75
|
+
__exportStar(require("./ClientFacingResult"), exports);
|
72
76
|
__exportStar(require("./ClientFacingShipment"), exports);
|
73
77
|
__exportStar(require("./ClientFacingSleep"), exports);
|
74
78
|
__exportStar(require("./ClientFacingSleepStream"), exports);
|
package/dist/Client.d.ts
CHANGED
@@ -11,7 +11,6 @@ import { Workouts } from "./api/resources/workouts/client/Client";
|
|
11
11
|
import { Sleep } from "./api/resources/sleep/client/Client";
|
12
12
|
import { Body } from "./api/resources/body/client/Client";
|
13
13
|
import { Meal } from "./api/resources/meal/client/Client";
|
14
|
-
import { Timeseries } from "./api/resources/timeseries/client/Client";
|
15
14
|
import { Vitals } from "./api/resources/vitals/client/Client";
|
16
15
|
import { User } from "./api/resources/user/client/Client";
|
17
16
|
import { Team } from "./api/resources/team/client/Client";
|
@@ -47,8 +46,6 @@ export declare class VitalClient {
|
|
47
46
|
get body(): Body;
|
48
47
|
protected _meal: Meal | undefined;
|
49
48
|
get meal(): Meal;
|
50
|
-
protected _timeseries: Timeseries | undefined;
|
51
|
-
get timeseries(): Timeseries;
|
52
49
|
protected _vitals: Vitals | undefined;
|
53
50
|
get vitals(): Vitals;
|
54
51
|
protected _user: User | undefined;
|