@tryvital/vital-node 3.0.1 → 3.0.3
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 +7 -2
- package/api/resources/labTests/client/Client.js +96 -25
- package/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +7 -0
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js +5 -0
- package/api/resources/labTests/client/requests/index.d.ts +2 -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/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/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/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 +8 -1
- package/api/types/index.js +8 -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 +7 -2
- package/dist/api/resources/labTests/client/Client.js +96 -25
- 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/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 +2 -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/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/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/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 +8 -1
- package/dist/api/types/index.js +8 -1
- package/dist/serialization/resources/labTests/client/index.d.ts +0 -1
- package/dist/serialization/resources/labTests/client/index.js +1 -2
- package/dist/serialization/resources/{labTests/client/getMarkersForLabTest.d.ts → team/client/getPhysicians.d.ts} +2 -2
- package/dist/serialization/resources/{labTests/client/getMarkersForLabTest.js → team/client/getPhysicians.js} +1 -1
- 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/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/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/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 +8 -1
- package/dist/serialization/types/index.js +8 -1
- package/package.json +1 -1
- package/serialization/resources/labTests/client/index.d.ts +0 -1
- package/serialization/resources/labTests/client/index.js +1 -2
- package/serialization/resources/{labTests/client/getMarkersForLabTest.d.ts → team/client/getPhysicians.d.ts} +2 -2
- package/serialization/resources/{labTests/client/getMarkersForLabTest.js → team/client/getPhysicians.js} +1 -1
- 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/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/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/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 +8 -1
- package/serialization/types/index.js +8 -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/LabTestsGetMarkersForLabTestRequest.js} +0 -0
@@ -63,7 +63,7 @@ class Team {
|
|
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.3",
|
67
67
|
},
|
68
68
|
contentType: "application/json",
|
69
69
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -111,7 +111,7 @@ class Team {
|
|
111
111
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
112
112
|
"X-Fern-Language": "JavaScript",
|
113
113
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
114
|
-
"X-Fern-SDK-Version": "3.0.
|
114
|
+
"X-Fern-SDK-Version": "3.0.3",
|
115
115
|
},
|
116
116
|
contentType: "application/json",
|
117
117
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -174,7 +174,7 @@ class Team {
|
|
174
174
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
175
175
|
"X-Fern-Language": "JavaScript",
|
176
176
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
177
|
-
"X-Fern-SDK-Version": "3.0.
|
177
|
+
"X-Fern-SDK-Version": "3.0.3",
|
178
178
|
},
|
179
179
|
contentType: "application/json",
|
180
180
|
queryParameters: _queryParams,
|
@@ -229,7 +229,7 @@ class Team {
|
|
229
229
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
230
230
|
"X-Fern-Language": "JavaScript",
|
231
231
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
232
|
-
"X-Fern-SDK-Version": "3.0.
|
232
|
+
"X-Fern-SDK-Version": "3.0.3",
|
233
233
|
},
|
234
234
|
contentType: "application/json",
|
235
235
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -282,7 +282,7 @@ class Team {
|
|
282
282
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
283
283
|
"X-Fern-Language": "JavaScript",
|
284
284
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
285
|
-
"X-Fern-SDK-Version": "3.0.
|
285
|
+
"X-Fern-SDK-Version": "3.0.3",
|
286
286
|
},
|
287
287
|
contentType: "application/json",
|
288
288
|
queryParameters: _queryParams,
|
@@ -344,7 +344,7 @@ class Team {
|
|
344
344
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
345
345
|
"X-Fern-Language": "JavaScript",
|
346
346
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
347
|
-
"X-Fern-SDK-Version": "3.0.
|
347
|
+
"X-Fern-SDK-Version": "3.0.3",
|
348
348
|
},
|
349
349
|
contentType: "application/json",
|
350
350
|
queryParameters: _queryParams,
|
@@ -389,5 +389,62 @@ class Team {
|
|
389
389
|
}
|
390
390
|
});
|
391
391
|
}
|
392
|
+
/**
|
393
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
394
|
+
*/
|
395
|
+
getPhysicians(teamId, requestOptions) {
|
396
|
+
var _a;
|
397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
398
|
+
const _response = yield core.fetcher({
|
399
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}/physicians`),
|
400
|
+
method: "GET",
|
401
|
+
headers: {
|
402
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
403
|
+
"X-Fern-Language": "JavaScript",
|
404
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
405
|
+
"X-Fern-SDK-Version": "3.0.3",
|
406
|
+
},
|
407
|
+
contentType: "application/json",
|
408
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
409
|
+
});
|
410
|
+
if (_response.ok) {
|
411
|
+
return yield serializers.team.getPhysicians.Response.parseOrThrow(_response.body, {
|
412
|
+
unrecognizedObjectKeys: "passthrough",
|
413
|
+
allowUnrecognizedUnionMembers: true,
|
414
|
+
allowUnrecognizedEnumValues: true,
|
415
|
+
breadcrumbsPrefix: ["response"],
|
416
|
+
});
|
417
|
+
}
|
418
|
+
if (_response.error.reason === "status-code") {
|
419
|
+
switch (_response.error.statusCode) {
|
420
|
+
case 422:
|
421
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
422
|
+
unrecognizedObjectKeys: "passthrough",
|
423
|
+
allowUnrecognizedUnionMembers: true,
|
424
|
+
allowUnrecognizedEnumValues: true,
|
425
|
+
breadcrumbsPrefix: ["response"],
|
426
|
+
}));
|
427
|
+
default:
|
428
|
+
throw new errors.VitalError({
|
429
|
+
statusCode: _response.error.statusCode,
|
430
|
+
body: _response.error.body,
|
431
|
+
});
|
432
|
+
}
|
433
|
+
}
|
434
|
+
switch (_response.error.reason) {
|
435
|
+
case "non-json":
|
436
|
+
throw new errors.VitalError({
|
437
|
+
statusCode: _response.error.statusCode,
|
438
|
+
body: _response.error.rawBody,
|
439
|
+
});
|
440
|
+
case "timeout":
|
441
|
+
throw new errors.VitalTimeoutError();
|
442
|
+
case "unknown":
|
443
|
+
throw new errors.VitalError({
|
444
|
+
message: _response.error.errorMessage,
|
445
|
+
});
|
446
|
+
}
|
447
|
+
});
|
448
|
+
}
|
392
449
|
}
|
393
450
|
exports.Team = Team;
|
@@ -62,7 +62,7 @@ class Testkit {
|
|
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.0.
|
65
|
+
"X-Fern-SDK-Version": "3.0.3",
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
68
68
|
body: yield serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -121,7 +121,7 @@ class Testkit {
|
|
121
121
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
122
122
|
"X-Fern-Language": "JavaScript",
|
123
123
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
124
|
-
"X-Fern-SDK-Version": "3.0.
|
124
|
+
"X-Fern-SDK-Version": "3.0.3",
|
125
125
|
},
|
126
126
|
contentType: "application/json",
|
127
127
|
body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
|
@@ -47,11 +47,11 @@ export declare class User {
|
|
47
47
|
/**
|
48
48
|
* @throws {@link Vital.UnprocessableEntityError}
|
49
49
|
*/
|
50
|
-
|
50
|
+
delete(userId: string, requestOptions?: User.RequestOptions): Promise<Vital.UserSuccessResponse>;
|
51
51
|
/**
|
52
52
|
* @throws {@link Vital.UnprocessableEntityError}
|
53
53
|
*/
|
54
|
-
|
54
|
+
patch(userId: string, request?: Vital.UserPatchBody, requestOptions?: User.RequestOptions): Promise<void>;
|
55
55
|
/**
|
56
56
|
* GET user_id from client_user_id.
|
57
57
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -72,7 +72,7 @@ class User {
|
|
72
72
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
73
73
|
"X-Fern-Language": "JavaScript",
|
74
74
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
75
|
-
"X-Fern-SDK-Version": "3.0.
|
75
|
+
"X-Fern-SDK-Version": "3.0.3",
|
76
76
|
},
|
77
77
|
contentType: "application/json",
|
78
78
|
queryParameters: _queryParams,
|
@@ -131,7 +131,7 @@ class User {
|
|
131
131
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
132
132
|
"X-Fern-Language": "JavaScript",
|
133
133
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
134
|
-
"X-Fern-SDK-Version": "3.0.
|
134
|
+
"X-Fern-SDK-Version": "3.0.3",
|
135
135
|
},
|
136
136
|
contentType: "application/json",
|
137
137
|
body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -189,7 +189,7 @@ class User {
|
|
189
189
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
190
190
|
"X-Fern-Language": "JavaScript",
|
191
191
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
192
|
-
"X-Fern-SDK-Version": "3.0.
|
192
|
+
"X-Fern-SDK-Version": "3.0.3",
|
193
193
|
},
|
194
194
|
contentType: "application/json",
|
195
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -236,7 +236,7 @@ class User {
|
|
236
236
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
237
237
|
"X-Fern-Language": "JavaScript",
|
238
238
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
239
|
-
"X-Fern-SDK-Version": "3.0.
|
239
|
+
"X-Fern-SDK-Version": "3.0.3",
|
240
240
|
},
|
241
241
|
contentType: "application/json",
|
242
242
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -294,7 +294,7 @@ class User {
|
|
294
294
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
295
295
|
"X-Fern-Language": "JavaScript",
|
296
296
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
297
|
-
"X-Fern-SDK-Version": "3.0.
|
297
|
+
"X-Fern-SDK-Version": "3.0.3",
|
298
298
|
},
|
299
299
|
contentType: "application/json",
|
300
300
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -352,7 +352,7 @@ class User {
|
|
352
352
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
353
353
|
"X-Fern-Language": "JavaScript",
|
354
354
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
355
|
-
"X-Fern-SDK-Version": "3.0.
|
355
|
+
"X-Fern-SDK-Version": "3.0.3",
|
356
356
|
},
|
357
357
|
contentType: "application/json",
|
358
358
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -399,24 +399,28 @@ class User {
|
|
399
399
|
/**
|
400
400
|
* @throws {@link Vital.UnprocessableEntityError}
|
401
401
|
*/
|
402
|
-
|
402
|
+
delete(userId, requestOptions) {
|
403
403
|
var _a;
|
404
404
|
return __awaiter(this, void 0, void 0, function* () {
|
405
405
|
const _response = yield core.fetcher({
|
406
406
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
407
|
-
method: "
|
407
|
+
method: "DELETE",
|
408
408
|
headers: {
|
409
409
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
410
410
|
"X-Fern-Language": "JavaScript",
|
411
411
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
412
|
-
"X-Fern-SDK-Version": "3.0.
|
412
|
+
"X-Fern-SDK-Version": "3.0.3",
|
413
413
|
},
|
414
414
|
contentType: "application/json",
|
415
|
-
body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
416
415
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
417
416
|
});
|
418
417
|
if (_response.ok) {
|
419
|
-
return
|
418
|
+
return yield serializers.UserSuccessResponse.parseOrThrow(_response.body, {
|
419
|
+
unrecognizedObjectKeys: "passthrough",
|
420
|
+
allowUnrecognizedUnionMembers: true,
|
421
|
+
allowUnrecognizedEnumValues: true,
|
422
|
+
breadcrumbsPrefix: ["response"],
|
423
|
+
});
|
420
424
|
}
|
421
425
|
if (_response.error.reason === "status-code") {
|
422
426
|
switch (_response.error.statusCode) {
|
@@ -452,28 +456,24 @@ class User {
|
|
452
456
|
/**
|
453
457
|
* @throws {@link Vital.UnprocessableEntityError}
|
454
458
|
*/
|
455
|
-
|
459
|
+
patch(userId, request = {}, requestOptions) {
|
456
460
|
var _a;
|
457
461
|
return __awaiter(this, void 0, void 0, function* () {
|
458
462
|
const _response = yield core.fetcher({
|
459
463
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
460
|
-
method: "
|
464
|
+
method: "PATCH",
|
461
465
|
headers: {
|
462
466
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
463
467
|
"X-Fern-Language": "JavaScript",
|
464
468
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
465
|
-
"X-Fern-SDK-Version": "3.0.
|
469
|
+
"X-Fern-SDK-Version": "3.0.3",
|
466
470
|
},
|
467
471
|
contentType: "application/json",
|
472
|
+
body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
468
473
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
469
474
|
});
|
470
475
|
if (_response.ok) {
|
471
|
-
return
|
472
|
-
unrecognizedObjectKeys: "passthrough",
|
473
|
-
allowUnrecognizedUnionMembers: true,
|
474
|
-
allowUnrecognizedEnumValues: true,
|
475
|
-
breadcrumbsPrefix: ["response"],
|
476
|
-
});
|
476
|
+
return;
|
477
477
|
}
|
478
478
|
if (_response.error.reason === "status-code") {
|
479
479
|
switch (_response.error.statusCode) {
|
@@ -520,7 +520,7 @@ class User {
|
|
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.0.
|
523
|
+
"X-Fern-SDK-Version": "3.0.3",
|
524
524
|
},
|
525
525
|
contentType: "application/json",
|
526
526
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -577,7 +577,7 @@ class User {
|
|
577
577
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
578
578
|
"X-Fern-Language": "JavaScript",
|
579
579
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
580
|
-
"X-Fern-SDK-Version": "3.0.
|
580
|
+
"X-Fern-SDK-Version": "3.0.3",
|
581
581
|
},
|
582
582
|
contentType: "application/json",
|
583
583
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -636,7 +636,7 @@ class User {
|
|
636
636
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
637
637
|
"X-Fern-Language": "JavaScript",
|
638
638
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
639
|
-
"X-Fern-SDK-Version": "3.0.
|
639
|
+
"X-Fern-SDK-Version": "3.0.3",
|
640
640
|
},
|
641
641
|
contentType: "application/json",
|
642
642
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
1437
1437
|
},
|
1438
1438
|
contentType: "application/json",
|
1439
1439
|
queryParameters: _queryParams,
|
@@ -1501,7 +1501,7 @@ class Vitals {
|
|
1501
1501
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1502
1502
|
"X-Fern-Language": "JavaScript",
|
1503
1503
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1504
|
-
"X-Fern-SDK-Version": "3.0.
|
1504
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1505
1505
|
},
|
1506
1506
|
contentType: "application/json",
|
1507
1507
|
queryParameters: _queryParams,
|
@@ -1569,7 +1569,7 @@ class Vitals {
|
|
1569
1569
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1570
1570
|
"X-Fern-Language": "JavaScript",
|
1571
1571
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1572
|
-
"X-Fern-SDK-Version": "3.0.
|
1572
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1573
1573
|
},
|
1574
1574
|
contentType: "application/json",
|
1575
1575
|
queryParameters: _queryParams,
|
@@ -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.3",
|
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.3",
|
145
145
|
},
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
@@ -199,7 +199,7 @@ class Workouts {
|
|
199
199
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
200
200
|
"X-Fern-Language": "JavaScript",
|
201
201
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
202
|
-
"X-Fern-SDK-Version": "3.0.
|
202
|
+
"X-Fern-SDK-Version": "3.0.3",
|
203
203
|
},
|
204
204
|
contentType: "application/json",
|
205
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* An enumeration.
|
6
|
+
*/
|
7
|
+
export declare type AttemptStatus = "success" | "failure";
|
8
|
+
export declare const AttemptStatus: {
|
9
|
+
readonly Success: "success";
|
10
|
+
readonly Failure: "failure";
|
11
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.AttemptStatus = void 0;
|
7
|
+
exports.AttemptStatus = {
|
8
|
+
Success: "success",
|
9
|
+
Failure: "failure",
|
10
|
+
};
|
@@ -9,7 +9,9 @@ export interface ClientFacingLabTest {
|
|
9
9
|
sampleType: Vital.LabTestSampleType;
|
10
10
|
method: Vital.LabTestCollectionMethod;
|
11
11
|
price: number;
|
12
|
+
/** Deprecated. Use status instead. */
|
12
13
|
isActive: boolean;
|
14
|
+
status: Vital.LabTestStatus;
|
13
15
|
/** Defines whether a lab test requires fasting. Only available for Labcorp. */
|
14
16
|
fasting?: boolean;
|
15
17
|
lab?: Vital.ClientFacingLab;
|
@@ -26,7 +26,7 @@ export interface ClientFacingOrder {
|
|
26
26
|
updatedAt: Date;
|
27
27
|
events: Vital.ClientFacingOrderEvent[];
|
28
28
|
status?: Vital.OrderTopLevelStatus;
|
29
|
-
physician?: Vital.
|
29
|
+
physician?: Vital.ClientFacingPhysician;
|
30
30
|
/** Vital ID of the health insurance. */
|
31
31
|
healthInsuranceId?: string;
|
32
32
|
/** DEPRECATED. Requistion form url. */
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* An enumeration.
|
6
|
+
*/
|
7
|
+
export declare type DelegatedFlowType = "order_and_results_with_customer_physician_network" | "order_with_vital_physician_network" | "order_and_results_with_vital_physician_network";
|
8
|
+
export declare const DelegatedFlowType: {
|
9
|
+
readonly OrderAndResultsWithCustomerPhysicianNetwork: "order_and_results_with_customer_physician_network";
|
10
|
+
readonly OrderWithVitalPhysicianNetwork: "order_with_vital_physician_network";
|
11
|
+
readonly OrderAndResultsWithVitalPhysicianNetwork: "order_and_results_with_vital_physician_network";
|
12
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.DelegatedFlowType = void 0;
|
7
|
+
exports.DelegatedFlowType = {
|
8
|
+
OrderAndResultsWithCustomerPhysicianNetwork: "order_and_results_with_customer_physician_network",
|
9
|
+
OrderWithVitalPhysicianNetwork: "order_with_vital_physician_network",
|
10
|
+
OrderAndResultsWithVitalPhysicianNetwork: "order_and_results_with_vital_physician_network",
|
11
|
+
};
|