@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.
@@ -59,9 +59,12 @@ export class TestkitsApi {
59
59
  return resp.data;
60
60
  }
61
61
 
62
- public async get_results(orderId: string): Promise<Order> {
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<Order>;
11
+ get_results(orderId: string): Promise<string>;
12
12
  }
@@ -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];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Node client for Vital",
5
5
  "author": "maitham",
6
6
  "keywords": [