@tryvital/vital-node 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +11 -6
- 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 +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.d.ts +23 -0
- package/api/resources/introspect/client/Client.js +126 -0
- package/api/resources/introspect/client/index.d.ts +1 -0
- package/api/resources/introspect/client/index.js +17 -0
- package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
- package/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/api/resources/introspect/client/requests/index.js +2 -0
- package/api/resources/introspect/index.d.ts +1 -0
- package/api/resources/introspect/index.js +17 -0
- package/api/resources/labTests/client/Client.d.ts +6 -1
- package/api/resources/labTests/client/Client.js +93 -24
- package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/link/client/Client.js +14 -14
- 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.d.ts +4 -0
- package/api/resources/team/client/Client.js +63 -6
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +2 -2
- package/api/resources/user/client/Client.js +23 -23
- package/api/resources/vitals/client/Client.js +23 -23
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ActivityV2InDb.d.ts +1 -1
- package/api/types/AttemptStatus.d.ts +11 -0
- package/api/types/AttemptStatus.js +10 -0
- package/api/types/BodyV2InDb.d.ts +1 -1
- package/api/types/ClientFacingLabTest.d.ts +2 -0
- package/api/types/ClientFacingOrder.d.ts +1 -1
- package/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
- package/api/types/ClientFacingPhysician.js +5 -0
- package/api/types/ClientFacingTeam.d.ts +1 -0
- package/api/types/DelegatedFlowType.d.ts +12 -0
- package/api/types/DelegatedFlowType.js +11 -0
- package/api/types/EventDestinationPreferences.d.ts +8 -0
- package/api/types/EventDestinationPreferences.js +5 -0
- package/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
- package/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
- package/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
- package/api/types/EventDestinationPreferencesPreferred.js +11 -0
- package/api/types/GetMarkersResponse.d.ts +4 -3
- package/api/types/GetOrdersResponse.d.ts +3 -3
- package/api/types/LabTestStatus.d.ts +12 -0
- package/api/types/LabTestStatus.js +11 -0
- package/api/types/LastAttempt.d.ts +8 -0
- package/api/types/LastAttempt.js +5 -0
- package/api/types/PatientAddressCompatible.d.ts +2 -2
- package/api/types/SingleResourceStatistics.d.ts +10 -0
- package/api/types/SingleResourceStatistics.js +5 -0
- package/api/types/SingleUserResourceResponse.d.ts +6 -0
- package/api/types/SingleUserResourceResponse.js +5 -0
- package/api/types/SleepV2InDb.d.ts +1 -1
- package/api/types/TeamConfig.d.ts +3 -0
- package/api/types/UserResourcesResponse.d.ts +8 -0
- package/api/types/UserResourcesResponse.js +5 -0
- package/api/types/WorkoutV2InDb.d.ts +1 -1
- package/api/types/index.d.ts +11 -1
- package/api/types/index.js +11 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- 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 +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.d.ts +23 -0
- package/dist/api/resources/introspect/client/Client.js +126 -0
- package/dist/api/resources/introspect/client/index.d.ts +1 -0
- package/dist/api/resources/introspect/client/index.js +17 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js +5 -0
- package/dist/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/dist/api/resources/introspect/client/requests/index.js +2 -0
- package/dist/api/resources/introspect/index.d.ts +1 -0
- package/dist/api/resources/introspect/index.js +17 -0
- package/dist/api/resources/labTests/client/Client.d.ts +6 -1
- package/dist/api/resources/labTests/client/Client.js +93 -24
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/link/client/Client.js +14 -14
- 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.d.ts +4 -0
- package/dist/api/resources/team/client/Client.js +63 -6
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.d.ts +2 -2
- package/dist/api/resources/user/client/Client.js +23 -23
- package/dist/api/resources/vitals/client/Client.js +23 -23
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ActivityV2InDb.d.ts +1 -1
- package/dist/api/types/AttemptStatus.d.ts +11 -0
- package/dist/api/types/AttemptStatus.js +10 -0
- package/dist/api/types/BodyV2InDb.d.ts +1 -1
- package/dist/api/types/ClientFacingLabTest.d.ts +2 -0
- package/dist/api/types/ClientFacingOrder.d.ts +1 -1
- package/dist/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
- package/dist/api/types/ClientFacingPhysician.js +5 -0
- package/dist/api/types/ClientFacingTeam.d.ts +1 -0
- package/dist/api/types/DelegatedFlowType.d.ts +12 -0
- package/dist/api/types/DelegatedFlowType.js +11 -0
- package/dist/api/types/EventDestinationPreferences.d.ts +8 -0
- package/dist/api/types/EventDestinationPreferences.js +5 -0
- package/dist/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
- package/dist/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
- package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
- package/dist/api/types/EventDestinationPreferencesPreferred.js +11 -0
- package/dist/api/types/GetMarkersResponse.d.ts +4 -3
- package/dist/api/types/GetOrdersResponse.d.ts +3 -3
- package/dist/api/types/LabTestStatus.d.ts +12 -0
- package/dist/api/types/LabTestStatus.js +11 -0
- package/dist/api/types/LastAttempt.d.ts +8 -0
- package/dist/api/types/LastAttempt.js +5 -0
- package/dist/api/types/PatientAddressCompatible.d.ts +2 -2
- package/dist/api/types/SingleResourceStatistics.d.ts +10 -0
- package/dist/api/types/SingleResourceStatistics.js +5 -0
- package/dist/api/types/SingleUserResourceResponse.d.ts +6 -0
- package/dist/api/types/SingleUserResourceResponse.js +5 -0
- package/dist/api/types/SleepV2InDb.d.ts +1 -1
- package/dist/api/types/TeamConfig.d.ts +3 -0
- package/dist/api/types/UserResourcesResponse.d.ts +8 -0
- package/dist/api/types/UserResourcesResponse.js +5 -0
- package/dist/api/types/WorkoutV2InDb.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -1
- package/dist/api/types/index.js +11 -1
- package/dist/serialization/resources/team/client/getPhysicians.d.ts +10 -0
- package/dist/serialization/resources/team/client/getPhysicians.js +40 -0
- package/dist/serialization/resources/team/client/index.d.ts +1 -0
- package/dist/serialization/resources/team/client/index.js +2 -1
- package/dist/serialization/types/ActivityV2InDb.d.ts +1 -1
- package/dist/serialization/types/ActivityV2InDb.js +1 -1
- package/dist/serialization/types/AttemptStatus.d.ts +10 -0
- package/dist/serialization/types/AttemptStatus.js +31 -0
- package/dist/serialization/types/BodyV2InDb.d.ts +1 -1
- package/dist/serialization/types/BodyV2InDb.js +1 -1
- package/dist/serialization/types/ClientFacingLabTest.d.ts +1 -0
- package/dist/serialization/types/ClientFacingLabTest.js +1 -0
- package/dist/serialization/types/ClientFacingOrder.d.ts +1 -1
- package/dist/serialization/types/ClientFacingOrder.js +1 -1
- package/dist/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
- package/dist/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
- package/dist/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/dist/serialization/types/ClientFacingTeam.js +1 -0
- package/dist/serialization/types/DelegatedFlowType.d.ts +10 -0
- package/dist/serialization/types/DelegatedFlowType.js +35 -0
- package/dist/serialization/types/EventDestinationPreferences.d.ts +13 -0
- package/dist/serialization/types/EventDestinationPreferences.js +43 -0
- package/dist/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
- package/dist/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
- package/dist/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
- package/dist/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
- package/dist/serialization/types/GetMarkersResponse.d.ts +4 -3
- package/dist/serialization/types/GetMarkersResponse.js +4 -3
- package/dist/serialization/types/GetOrdersResponse.d.ts +3 -3
- package/dist/serialization/types/GetOrdersResponse.js +3 -3
- package/dist/serialization/types/LabTestStatus.d.ts +10 -0
- package/dist/serialization/types/LabTestStatus.js +31 -0
- package/dist/serialization/types/LastAttempt.d.ts +13 -0
- package/dist/serialization/types/LastAttempt.js +43 -0
- package/dist/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/dist/serialization/types/PatientAddressCompatible.js +2 -2
- package/dist/serialization/types/SingleResourceStatistics.d.ts +15 -0
- package/dist/serialization/types/SingleResourceStatistics.js +45 -0
- package/dist/serialization/types/SingleUserResourceResponse.d.ts +12 -0
- package/dist/serialization/types/SingleUserResourceResponse.js +33 -0
- package/dist/serialization/types/SleepV2InDb.d.ts +1 -1
- package/dist/serialization/types/SleepV2InDb.js +1 -1
- package/dist/serialization/types/TeamConfig.d.ts +3 -0
- package/dist/serialization/types/TeamConfig.js +3 -0
- package/dist/serialization/types/UserResourcesResponse.d.ts +13 -0
- package/dist/serialization/types/UserResourcesResponse.js +43 -0
- package/dist/serialization/types/WorkoutV2InDb.d.ts +1 -1
- package/dist/serialization/types/WorkoutV2InDb.js +1 -1
- package/dist/serialization/types/index.d.ts +11 -1
- package/dist/serialization/types/index.js +11 -1
- package/package.json +1 -1
- package/serialization/resources/team/client/getPhysicians.d.ts +10 -0
- package/serialization/resources/team/client/getPhysicians.js +40 -0
- package/serialization/resources/team/client/index.d.ts +1 -0
- package/serialization/resources/team/client/index.js +2 -1
- package/serialization/types/ActivityV2InDb.d.ts +1 -1
- package/serialization/types/ActivityV2InDb.js +1 -1
- package/serialization/types/AttemptStatus.d.ts +10 -0
- package/serialization/types/AttemptStatus.js +31 -0
- package/serialization/types/BodyV2InDb.d.ts +1 -1
- package/serialization/types/BodyV2InDb.js +1 -1
- package/serialization/types/ClientFacingLabTest.d.ts +1 -0
- package/serialization/types/ClientFacingLabTest.js +1 -0
- package/serialization/types/ClientFacingOrder.d.ts +1 -1
- package/serialization/types/ClientFacingOrder.js +1 -1
- package/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
- package/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
- package/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/serialization/types/ClientFacingTeam.js +1 -0
- package/serialization/types/DelegatedFlowType.d.ts +10 -0
- package/serialization/types/DelegatedFlowType.js +35 -0
- package/serialization/types/EventDestinationPreferences.d.ts +13 -0
- package/serialization/types/EventDestinationPreferences.js +43 -0
- package/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
- package/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
- package/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
- package/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
- package/serialization/types/GetMarkersResponse.d.ts +4 -3
- package/serialization/types/GetMarkersResponse.js +4 -3
- package/serialization/types/GetOrdersResponse.d.ts +3 -3
- package/serialization/types/GetOrdersResponse.js +3 -3
- package/serialization/types/LabTestStatus.d.ts +10 -0
- package/serialization/types/LabTestStatus.js +31 -0
- package/serialization/types/LastAttempt.d.ts +13 -0
- package/serialization/types/LastAttempt.js +43 -0
- package/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/serialization/types/PatientAddressCompatible.js +2 -2
- package/serialization/types/SingleResourceStatistics.d.ts +15 -0
- package/serialization/types/SingleResourceStatistics.js +45 -0
- package/serialization/types/SingleUserResourceResponse.d.ts +12 -0
- package/serialization/types/SingleUserResourceResponse.js +33 -0
- package/serialization/types/SleepV2InDb.d.ts +1 -1
- package/serialization/types/SleepV2InDb.js +1 -1
- package/serialization/types/TeamConfig.d.ts +3 -0
- package/serialization/types/TeamConfig.js +3 -0
- package/serialization/types/UserResourcesResponse.d.ts +13 -0
- package/serialization/types/UserResourcesResponse.js +43 -0
- package/serialization/types/WorkoutV2InDb.d.ts +1 -1
- package/serialization/types/WorkoutV2InDb.js +1 -1
- package/serialization/types/index.d.ts +11 -1
- package/serialization/types/index.js +11 -1
- /package/api/{types/PhysicianClientFacing.js → resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js} +0 -0
- /package/{dist/api/types/PhysicianClientFacing.js → api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js} +0 -0
package/Client.d.ts
CHANGED
@@ -15,6 +15,7 @@ import { Vitals } from "./api/resources/vitals/client/Client";
|
|
15
15
|
import { User } from "./api/resources/user/client/Client";
|
16
16
|
import { Team } from "./api/resources/team/client/Client";
|
17
17
|
import { Providers } from "./api/resources/providers/client/Client";
|
18
|
+
import { Introspect } from "./api/resources/introspect/client/Client";
|
18
19
|
import { LabTests } from "./api/resources/labTests/client/Client";
|
19
20
|
import { Testkit } from "./api/resources/testkit/client/Client";
|
20
21
|
import { Insurance } from "./api/resources/insurance/client/Client";
|
@@ -54,6 +55,8 @@ export declare class VitalClient {
|
|
54
55
|
get team(): Team;
|
55
56
|
protected _providers: Providers | undefined;
|
56
57
|
get providers(): Providers;
|
58
|
+
protected _introspect: Introspect | undefined;
|
59
|
+
get introspect(): Introspect;
|
57
60
|
protected _labTests: LabTests | undefined;
|
58
61
|
get labTests(): LabTests;
|
59
62
|
protected _testkit: Testkit | undefined;
|
package/Client.js
CHANGED
@@ -16,9 +16,10 @@ const Client_9 = require("./api/resources/vitals/client/Client");
|
|
16
16
|
const Client_10 = require("./api/resources/user/client/Client");
|
17
17
|
const Client_11 = require("./api/resources/team/client/Client");
|
18
18
|
const Client_12 = require("./api/resources/providers/client/Client");
|
19
|
-
const Client_13 = require("./api/resources/
|
20
|
-
const Client_14 = require("./api/resources/
|
21
|
-
const Client_15 = require("./api/resources/
|
19
|
+
const Client_13 = require("./api/resources/introspect/client/Client");
|
20
|
+
const Client_14 = require("./api/resources/labTests/client/Client");
|
21
|
+
const Client_15 = require("./api/resources/testkit/client/Client");
|
22
|
+
const Client_16 = require("./api/resources/insurance/client/Client");
|
22
23
|
class VitalClient {
|
23
24
|
constructor(_options) {
|
24
25
|
this._options = _options;
|
@@ -71,17 +72,21 @@ class VitalClient {
|
|
71
72
|
var _a;
|
72
73
|
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_12.Providers(this._options)));
|
73
74
|
}
|
75
|
+
get introspect() {
|
76
|
+
var _a;
|
77
|
+
return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new Client_13.Introspect(this._options)));
|
78
|
+
}
|
74
79
|
get labTests() {
|
75
80
|
var _a;
|
76
|
-
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new
|
81
|
+
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_14.LabTests(this._options)));
|
77
82
|
}
|
78
83
|
get testkit() {
|
79
84
|
var _a;
|
80
|
-
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new
|
85
|
+
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_15.Testkit(this._options)));
|
81
86
|
}
|
82
87
|
get insurance() {
|
83
88
|
var _a;
|
84
|
-
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new
|
89
|
+
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_16.Insurance(this._options)));
|
85
90
|
}
|
86
91
|
}
|
87
92
|
exports.VitalClient = VitalClient;
|
@@ -73,7 +73,7 @@ class Activity {
|
|
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.4",
|
77
77
|
},
|
78
78
|
contentType: "application/json",
|
79
79
|
queryParameters: _queryParams,
|
@@ -141,7 +141,7 @@ class Activity {
|
|
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.4",
|
145
145
|
},
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
@@ -73,7 +73,7 @@ class Body {
|
|
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.4",
|
77
77
|
},
|
78
78
|
contentType: "application/json",
|
79
79
|
queryParameters: _queryParams,
|
@@ -141,7 +141,7 @@ class Body {
|
|
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.4",
|
145
145
|
},
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
@@ -69,7 +69,7 @@ class Devices {
|
|
69
69
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
70
70
|
"X-Fern-Language": "JavaScript",
|
71
71
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
72
|
-
"X-Fern-SDK-Version": "3.0.
|
72
|
+
"X-Fern-SDK-Version": "3.0.4",
|
73
73
|
},
|
74
74
|
contentType: "application/json",
|
75
75
|
queryParameters: _queryParams,
|
package/api/resources/index.d.ts
CHANGED
@@ -10,6 +10,7 @@ export * as vitals from "./vitals";
|
|
10
10
|
export * as user from "./user";
|
11
11
|
export * as team from "./team";
|
12
12
|
export * as providers from "./providers";
|
13
|
+
export * as introspect from "./introspect";
|
13
14
|
export * as labTests from "./labTests";
|
14
15
|
export * as testkit from "./testkit";
|
15
16
|
export * as insurance from "./insurance";
|
@@ -24,6 +25,7 @@ export * from "./meal/client/requests";
|
|
24
25
|
export * from "./vitals/client/requests";
|
25
26
|
export * from "./user/client/requests";
|
26
27
|
export * from "./team/client/requests";
|
28
|
+
export * from "./introspect/client/requests";
|
27
29
|
export * from "./labTests/client/requests";
|
28
30
|
export * from "./testkit/client/requests";
|
29
31
|
export * from "./insurance/client/requests";
|
package/api/resources/index.js
CHANGED
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.insurance = exports.testkit = exports.labTests = exports.providers = exports.team = exports.user = exports.vitals = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.link = void 0;
|
29
|
+
exports.insurance = exports.testkit = exports.labTests = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.link = void 0;
|
30
30
|
exports.link = __importStar(require("./link"));
|
31
31
|
exports.profile = __importStar(require("./profile"));
|
32
32
|
exports.devices = __importStar(require("./devices"));
|
@@ -39,6 +39,7 @@ exports.vitals = __importStar(require("./vitals"));
|
|
39
39
|
exports.user = __importStar(require("./user"));
|
40
40
|
exports.team = __importStar(require("./team"));
|
41
41
|
exports.providers = __importStar(require("./providers"));
|
42
|
+
exports.introspect = __importStar(require("./introspect"));
|
42
43
|
exports.labTests = __importStar(require("./labTests"));
|
43
44
|
exports.testkit = __importStar(require("./testkit"));
|
44
45
|
exports.insurance = __importStar(require("./insurance"));
|
@@ -53,6 +54,7 @@ __exportStar(require("./meal/client/requests"), exports);
|
|
53
54
|
__exportStar(require("./vitals/client/requests"), exports);
|
54
55
|
__exportStar(require("./user/client/requests"), exports);
|
55
56
|
__exportStar(require("./team/client/requests"), exports);
|
57
|
+
__exportStar(require("./introspect/client/requests"), exports);
|
56
58
|
__exportStar(require("./labTests/client/requests"), exports);
|
57
59
|
__exportStar(require("./testkit/client/requests"), exports);
|
58
60
|
__exportStar(require("./insurance/client/requests"), exports);
|
@@ -63,7 +63,7 @@ class Insurance {
|
|
63
63
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
64
64
|
"X-Fern-Language": "JavaScript",
|
65
65
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
66
|
-
"X-Fern-SDK-Version": "3.0.
|
66
|
+
"X-Fern-SDK-Version": "3.0.4",
|
67
67
|
},
|
68
68
|
contentType: "application/json",
|
69
69
|
body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -124,7 +124,7 @@ class Insurance {
|
|
124
124
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
125
125
|
"X-Fern-Language": "JavaScript",
|
126
126
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
127
|
-
"X-Fern-SDK-Version": "3.0.
|
127
|
+
"X-Fern-SDK-Version": "3.0.4",
|
128
128
|
},
|
129
129
|
contentType: "application/json",
|
130
130
|
queryParameters: _queryParams,
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as environments from "../../../../environments";
|
5
|
+
import * as core from "../../../../core";
|
6
|
+
import * as Vital from "../../..";
|
7
|
+
export declare namespace Introspect {
|
8
|
+
interface Options {
|
9
|
+
environment?: core.Supplier<environments.VitalEnvironment | string>;
|
10
|
+
apiKey: core.Supplier<string>;
|
11
|
+
}
|
12
|
+
interface RequestOptions {
|
13
|
+
timeoutInSeconds?: number;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
export declare class Introspect {
|
17
|
+
protected readonly _options: Introspect.Options;
|
18
|
+
constructor(_options: Introspect.Options);
|
19
|
+
/**
|
20
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
21
|
+
*/
|
22
|
+
getUserResources(request?: Vital.IntrospectGetUserResourcesRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserResourcesResponse>;
|
23
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
39
|
+
};
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
41
|
+
exports.Introspect = void 0;
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
43
|
+
const core = __importStar(require("../../../../core"));
|
44
|
+
const Vital = __importStar(require("../../.."));
|
45
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
46
|
+
const url_join_1 = __importDefault(require("url-join"));
|
47
|
+
const serializers = __importStar(require("../../../../serialization"));
|
48
|
+
const errors = __importStar(require("../../../../errors"));
|
49
|
+
class Introspect {
|
50
|
+
constructor(_options) {
|
51
|
+
this._options = _options;
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
55
|
+
*/
|
56
|
+
getUserResources(request = {}, requestOptions) {
|
57
|
+
var _a;
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
59
|
+
const { userId, provider, userLimit, cursor } = request;
|
60
|
+
const _queryParams = new url_search_params_1.default();
|
61
|
+
if (userId != null) {
|
62
|
+
_queryParams.append("user_id", userId);
|
63
|
+
}
|
64
|
+
if (provider != null) {
|
65
|
+
_queryParams.append("provider", provider);
|
66
|
+
}
|
67
|
+
if (userLimit != null) {
|
68
|
+
_queryParams.append("user_limit", userLimit.toString());
|
69
|
+
}
|
70
|
+
if (cursor != null) {
|
71
|
+
_queryParams.append("cursor", cursor);
|
72
|
+
}
|
73
|
+
const _response = yield core.fetcher({
|
74
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
75
|
+
method: "GET",
|
76
|
+
headers: {
|
77
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
|
+
"X-Fern-Language": "JavaScript",
|
79
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
+
"X-Fern-SDK-Version": "3.0.4",
|
81
|
+
},
|
82
|
+
contentType: "application/json",
|
83
|
+
queryParameters: _queryParams,
|
84
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
85
|
+
});
|
86
|
+
if (_response.ok) {
|
87
|
+
return yield serializers.UserResourcesResponse.parseOrThrow(_response.body, {
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
90
|
+
allowUnrecognizedEnumValues: true,
|
91
|
+
breadcrumbsPrefix: ["response"],
|
92
|
+
});
|
93
|
+
}
|
94
|
+
if (_response.error.reason === "status-code") {
|
95
|
+
switch (_response.error.statusCode) {
|
96
|
+
case 422:
|
97
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
98
|
+
unrecognizedObjectKeys: "passthrough",
|
99
|
+
allowUnrecognizedUnionMembers: true,
|
100
|
+
allowUnrecognizedEnumValues: true,
|
101
|
+
breadcrumbsPrefix: ["response"],
|
102
|
+
}));
|
103
|
+
default:
|
104
|
+
throw new errors.VitalError({
|
105
|
+
statusCode: _response.error.statusCode,
|
106
|
+
body: _response.error.body,
|
107
|
+
});
|
108
|
+
}
|
109
|
+
}
|
110
|
+
switch (_response.error.reason) {
|
111
|
+
case "non-json":
|
112
|
+
throw new errors.VitalError({
|
113
|
+
statusCode: _response.error.statusCode,
|
114
|
+
body: _response.error.rawBody,
|
115
|
+
});
|
116
|
+
case "timeout":
|
117
|
+
throw new errors.VitalTimeoutError();
|
118
|
+
case "unknown":
|
119
|
+
throw new errors.VitalError({
|
120
|
+
message: _response.error.errorMessage,
|
121
|
+
});
|
122
|
+
}
|
123
|
+
});
|
124
|
+
}
|
125
|
+
}
|
126
|
+
exports.Introspect = Introspect;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./requests";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./requests"), exports);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../../../..";
|
5
|
+
export interface IntrospectGetUserResourcesRequest {
|
6
|
+
userId?: string;
|
7
|
+
provider?: Vital.Providers;
|
8
|
+
userLimit?: number;
|
9
|
+
cursor?: string;
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { IntrospectGetUserResourcesRequest } from "./IntrospectGetUserResourcesRequest";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./client";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./client"), exports);
|
@@ -67,7 +67,7 @@ export declare class LabTests {
|
|
67
67
|
* Cancel a previously booked at-home phlebotomy appointment.
|
68
68
|
* @throws {@link Vital.UnprocessableEntityError}
|
69
69
|
*/
|
70
|
-
|
70
|
+
cancelPhlebotomyAppointment(orderId: string, request: Vital.AppointmentCancelRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
71
71
|
/**
|
72
72
|
* Get the list of reasons for cancelling an at-home phlebotomy appointment.
|
73
73
|
*/
|
@@ -121,6 +121,11 @@ export declare class LabTests {
|
|
121
121
|
* @throws {@link Vital.UnprocessableEntityError}
|
122
122
|
*/
|
123
123
|
cancelOrder(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.PostOrderResponse>;
|
124
|
+
/**
|
125
|
+
* Get available test kits.
|
126
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
127
|
+
*/
|
128
|
+
simulateOrderProcess(orderId: string, request?: Vital.LabTestsSimulateOrderProcessRequest, requestOptions?: LabTests.RequestOptions): Promise<unknown>;
|
124
129
|
/**
|
125
130
|
* GET many orders with filters.
|
126
131
|
* @throws {@link Vital.UnprocessableEntityError}
|