Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tryvital/vital-node

Package Overview
Dependencies
Maintainers
1
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryvital/vital-node - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

client/LabTests.ts

2

client/index.ts

@@ -8,5 +8,5 @@ export { ActivityApi } from './Activity';

export { WorkoutsApi } from './Workouts';
export { TestkitsApi } from './Testkits';
export { LabTestsApi } from './LabTests';
export { ProfileApi } from './Profile';
export { DevicesAPI } from './Devices';
export { MealsApi } from './Meals';

@@ -37,3 +37,3 @@ import { AxiosInstance } from 'axios';

const resp = await this.client.post(
this.baseURL.concat('/link/token/'),
this.baseURL.concat('/link/token'),
default_params

@@ -40,0 +40,0 @@ );

@@ -0,5 +1,7 @@

import internal = require("stream");
import { IntegrationKeyOut } from "svix";
export interface PatientAdress {
receiver_name: string;
first_line: string;
second_line?: string;
street: string;
city: string;

@@ -10,2 +12,3 @@ state: string;

phone_number: string;
street_number?: string;
}

@@ -16,3 +19,15 @@

gender: string;
email: string;
}
export interface Physician {
first_name: string;
last_name: string;
npi: string;
email?: string;
licensed_states?: string[];
created_at?: string;
updated_at?: string;
}
export interface Marker {

@@ -34,8 +49,26 @@ name: string;

export interface TestkitEvent {
id: number;
created_at: string;
status: string;
}
export interface Order {
user_id: string;
id: string;
team_id: string;
created_on: Date;
updated_on: Date;
status:
patient_details: PatientDetails;
patient_address: PatientAdress;
lab_test: Testkit;
// TODO CHECK WHAT DETAILS IS
details: Object;
created_at: string;
updated_at: string;
events: TestkitEvent;
user_key?: string;
sample_id?: string;
notes?: string;
status?:
| 'ordered'

@@ -56,18 +89,4 @@ | 'transit_customer'

| "lost";
user_key: string;
testkit_id: string;
testkit: Testkit;
inbound_tracking_number?: string;
outbound_tracking_number?: string;
outbound_courier?: string;
inbound_courier?: string;
}
export interface OrderResponse {
orders: Order[];
total: number;
page: number;
size: number;
}
export interface OrderRequestResponse {

@@ -79,2 +98,21 @@ order: Order;

export interface LabClientFacing {
slug: string;
name: string;
first_line_address: string;
city: string;
zipcode: string;
}
export interface ClientFacingLabTest {
id: string;
slug: string;
name: string;
sample_type: string;
method: string;
price: number;
is_active: boolean;
lab: LabClientFacing;
markers: Marker;
}
export interface TestkitResponse {

@@ -87,16 +125,15 @@ testkits: Testkit[];

dob: string;
clia_number: string;
patient: string;
provider: string;
laboratory: string;
date_reported: string;
date_collected: string;
specimen_number: string;
clia?: string;
provider?: string;
laboratory?: string;
date_received?: string;
clia?: string;
}
export interface LabResultsRaw {
export interface LabResultsResponse {
metadata: LabResultsMetadata;
data: Record<string, string>;
results: Object;
}

@@ -14,5 +14,5 @@ import { AxiosInstance } from 'axios';

public async getSupportedProviders(): Promise<Provider[]> {
const resp = await this.client.get(this.baseURL.concat('/providers/'));
const resp = await this.client.get(this.baseURL.concat('/providers'));
return resp.data;
}
}

@@ -38,3 +38,3 @@ import { AxiosInstance } from 'axios';

}: GetTeamUsersParams = {}): Promise<GetTeamUsersResponse> {
const url = new URL(this.baseURL.concat('/user/'));
const url = new URL(this.baseURL.concat('/user'));

@@ -41,0 +41,0 @@ url.searchParams.set('limit', String(limit));

@@ -8,5 +8,5 @@ export { ActivityApi } from './Activity';

export { WorkoutsApi } from './Workouts';
export { TestkitsApi } from './Testkits';
export { LabTestsApi } from './LabTests';
export { ProfileApi } from './Profile';
export { DevicesAPI } from './Devices';
export { MealsApi } from './Meals';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MealsApi = exports.DevicesAPI = exports.ProfileApi = exports.TestkitsApi = exports.WorkoutsApi = exports.WebhooksApi = exports.UserApi = exports.SleepApi = exports.LinkApi = exports.BodyApi = exports.ActivityApi = void 0;
exports.MealsApi = exports.DevicesAPI = exports.ProfileApi = exports.LabTestsApi = exports.WorkoutsApi = exports.WebhooksApi = exports.UserApi = exports.SleepApi = exports.LinkApi = exports.BodyApi = exports.ActivityApi = void 0;
var Activity_1 = require("./Activity");

@@ -18,4 +18,4 @@ Object.defineProperty(exports, "ActivityApi", { enumerable: true, get: function () { return Activity_1.ActivityApi; } });

Object.defineProperty(exports, "WorkoutsApi", { enumerable: true, get: function () { return Workouts_1.WorkoutsApi; } });
var Testkits_1 = require("./Testkits");
Object.defineProperty(exports, "TestkitsApi", { enumerable: true, get: function () { return Testkits_1.TestkitsApi; } });
var LabTests_1 = require("./LabTests");
Object.defineProperty(exports, "LabTestsApi", { enumerable: true, get: function () { return LabTests_1.LabTestsApi; } });
var Profile_1 = require("./Profile");

@@ -22,0 +22,0 @@ Object.defineProperty(exports, "ProfileApi", { enumerable: true, get: function () { return Profile_1.ProfileApi; } });

@@ -63,3 +63,3 @@ "use strict";

}
return [4 /*yield*/, this.client.post(this.baseURL.concat('/link/token/'), default_params)];
return [4 /*yield*/, this.client.post(this.baseURL.concat('/link/token'), default_params)];
case 1:

@@ -66,0 +66,0 @@ resp = _a.sent();

export interface PatientAdress {
receiver_name: string;
first_line: string;
second_line?: string;
street: string;
city: string;

@@ -10,2 +9,3 @@ state: string;

phone_number: string;
street_number?: string;
}

@@ -15,3 +15,13 @@ export interface PatientDetails {

gender: string;
email: string;
}
export interface Physician {
first_name: string;
last_name: string;
npi: string;
email?: string;
licensed_states?: string[];
created_at?: string;
updated_at?: string;
}
export interface Marker {

@@ -31,22 +41,23 @@ name: string;

}
export interface TestkitEvent {
id: number;
created_at: string;
status: string;
}
export interface Order {
user_id: string;
id: string;
team_id: string;
created_on: Date;
updated_on: Date;
status: 'ordered' | 'transit_customer' | 'out_for_delivery' | 'with_customer' | 'transit_lab' | 'delivered_to_lab' | 'processing_lab' | 'completed' | 'failure_to_deliver_to_customer' | 'failure_to_deliver_to_lab' | 'cancelled' | 'do_not_process' | 'unknown' | "rejected" | "lost";
user_key: string;
testkit_id: string;
testkit: Testkit;
inbound_tracking_number?: string;
outbound_tracking_number?: string;
outbound_courier?: string;
inbound_courier?: string;
patient_details: PatientDetails;
patient_address: PatientAdress;
lab_test: Testkit;
details: Object;
created_at: string;
updated_at: string;
events: TestkitEvent;
user_key?: string;
sample_id?: string;
notes?: string;
status?: 'ordered' | 'transit_customer' | 'out_for_delivery' | 'with_customer' | 'transit_lab' | 'delivered_to_lab' | 'processing_lab' | 'completed' | 'failure_to_deliver_to_customer' | 'failure_to_deliver_to_lab' | 'cancelled' | 'do_not_process' | 'unknown' | "rejected" | "lost";
}
export interface OrderResponse {
orders: Order[];
total: number;
page: number;
size: number;
}
export interface OrderRequestResponse {

@@ -57,2 +68,20 @@ order: Order;

}
export interface LabClientFacing {
slug: string;
name: string;
first_line_address: string;
city: string;
zipcode: string;
}
export interface ClientFacingLabTest {
id: string;
slug: string;
name: string;
sample_type: string;
method: string;
price: number;
is_active: boolean;
lab: LabClientFacing;
markers: Marker;
}
export interface TestkitResponse {

@@ -64,15 +93,14 @@ testkits: Testkit[];

dob: string;
clia_number: string;
patient: string;
provider: string;
laboratory: string;
date_reported: string;
date_collected: string;
specimen_number: string;
clia?: string;
provider?: string;
laboratory?: string;
date_received?: string;
clia?: string;
}
export interface LabResultsRaw {
export interface LabResultsResponse {
metadata: LabResultsMetadata;
data: Record<string, string>;
results: Object;
}

@@ -50,3 +50,3 @@ "use strict";

switch (_a.label) {
case 0: return [4 /*yield*/, this.client.get(this.baseURL.concat('/providers/'))];
case 0: return [4 /*yield*/, this.client.get(this.baseURL.concat('/providers'))];
case 1:

@@ -53,0 +53,0 @@ resp = _a.sent();

@@ -80,3 +80,3 @@ "use strict";

case 0:
url = new URL(this.baseURL.concat('/user/'));
url = new URL(this.baseURL.concat('/user'));
url.searchParams.set('limit', String(limit));

@@ -83,0 +83,0 @@ url.searchParams.set('offset', String(offset));

@@ -1,2 +0,2 @@

import { ActivityApi, BodyApi, LinkApi, SleepApi, TestkitsApi, UserApi, WebhooksApi, WorkoutsApi, ProfileApi, DevicesAPI, MealsApi } from './client';
import { ActivityApi, BodyApi, LinkApi, SleepApi, UserApi, WebhooksApi, WorkoutsApi, ProfileApi, DevicesAPI, MealsApi } from './client';
import { ClientConfig } from './lib/models';

@@ -6,2 +6,3 @@ import { ClientCredentials } from './lib/credentials';

import { ProviderApi } from './client/Provider';
import { LabTestsApi } from './client/LabTests';
export declare class VitalClient {

@@ -19,3 +20,3 @@ config: ClientConfig;

Vitals: VitalsApi;
Testkits: TestkitsApi;
LabTests: LabTestsApi;
Profile: ProfileApi;

@@ -22,0 +23,0 @@ Providers: ProviderApi;

@@ -58,3 +58,3 @@ "use strict";

var Provider_1 = require("./client/Provider");
;
var LabTests_1 = require("./client/LabTests");
var VitalClient = /** @class */ (function () {

@@ -116,3 +116,3 @@ function VitalClient(config) {

this.Vitals = new Vitals_1.VitalsApi(baseURL.concat('/v2'), axiosApiInstance);
this.Testkits = new client_1.TestkitsApi(baseURL.concat('/v2'), axiosApiInstance);
this.LabTests = new LabTests_1.LabTestsApi(baseURL.concat('/v3'), axiosApiInstance);
this.Profile = new client_1.ProfileApi(baseURL.concat('/v2'), axiosApiInstance);

@@ -119,0 +119,0 @@ this.Providers = new Provider_1.ProviderApi(baseURL.concat('/v2'), axiosApiInstance);

@@ -8,3 +8,2 @@ import axios from 'axios';

SleepApi,
TestkitsApi,
UserApi,

@@ -21,3 +20,4 @@ WebhooksApi,

import { VitalsApi } from './client/Vitals';
import { ProviderApi } from './client/Provider';;
import { ProviderApi } from './client/Provider';
import { LabTestsApi } from './client/LabTests';

@@ -36,3 +36,3 @@ export class VitalClient {

Vitals: VitalsApi;
Testkits: TestkitsApi;
LabTests: LabTestsApi;
Profile: ProfileApi;

@@ -93,3 +93,3 @@ Providers: ProviderApi;

this.Vitals = new VitalsApi(baseURL.concat('/v2'), axiosApiInstance);
this.Testkits = new TestkitsApi(baseURL.concat('/v2'), axiosApiInstance);
this.LabTests = new LabTestsApi(baseURL.concat('/v3'), axiosApiInstance);
this.Profile = new ProfileApi(baseURL.concat('/v2'), axiosApiInstance);

@@ -96,0 +96,0 @@ this.Providers = new ProviderApi(baseURL.concat('/v2'), axiosApiInstance);

{
"name": "@tryvital/vital-node",
"version": "1.6.3",
"version": "1.6.4",
"description": "Node client for Vital",

@@ -59,2 +59,2 @@ "author": "maitham",

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc