@tryvital/vital-node 1.0.0 → 1.0.1
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/Testkits.ts
CHANGED
@@ -59,9 +59,12 @@ export class TestkitsApi {
|
|
59
59
|
return resp.data;
|
60
60
|
}
|
61
61
|
|
62
|
-
public async get_results(orderId: string): Promise<
|
62
|
+
public async get_results(orderId: string): Promise<string> {
|
63
63
|
const resp = await this.client.get(
|
64
|
-
this.baseURL.concat(`/testkit/orders/${orderId}/results`)
|
64
|
+
this.baseURL.concat(`/testkit/orders/${orderId}/results`),
|
65
|
+
{
|
66
|
+
responseType: 'arraybuffer',
|
67
|
+
}
|
65
68
|
);
|
66
69
|
return resp.data;
|
67
70
|
}
|
@@ -8,5 +8,5 @@ export declare class TestkitsApi {
|
|
8
8
|
get_orders(startDate: Date, endDate: Date): Promise<OrderResponse>;
|
9
9
|
order(userKey: string, testkitId: string, patientAddress: PatientAdress, patientDetails: PatientDetails): Promise<OrderRequestResponse>;
|
10
10
|
get_order(orderId: string): Promise<Order>;
|
11
|
-
get_results(orderId: string): Promise<
|
11
|
+
get_results(orderId: string): Promise<string>;
|
12
12
|
}
|
package/dist/client/Testkits.js
CHANGED
@@ -106,7 +106,9 @@ var TestkitsApi = /** @class */ (function () {
|
|
106
106
|
var resp;
|
107
107
|
return __generator(this, function (_a) {
|
108
108
|
switch (_a.label) {
|
109
|
-
case 0: return [4 /*yield*/, this.client.get(this.baseURL.concat("/testkit/orders/" + orderId + "/results")
|
109
|
+
case 0: return [4 /*yield*/, this.client.get(this.baseURL.concat("/testkit/orders/" + orderId + "/results"), {
|
110
|
+
responseType: 'arraybuffer',
|
111
|
+
})];
|
110
112
|
case 1:
|
111
113
|
resp = _a.sent();
|
112
114
|
return [2 /*return*/, resp.data];
|