testaugnitoambientsdk
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "testaugnitoambientsdk", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Use this typescript SDK to integrate Augnito’s Ambient Tech within your EMR. To get access credentials or know more about how Augnito Ambient can benefit you, please visit our website and connect with our sales team: https://augnito.ai/", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -35,3 +35,4 @@ "use strict"; | ||
} | ||
return yield response.json(); | ||
const data = (yield response.json()); | ||
return data; | ||
} | ||
@@ -38,0 +39,0 @@ catch (error) { |
import AmbientConfig from "../config/AmbientConfig"; | ||
import { Guard } from "../utils/Guard"; | ||
export interface BaseResult { | ||
Status: number; | ||
ErrorMessage: string; | ||
Data: any | ||
} | ||
export class AmbientRestAPI{ | ||
@@ -26,4 +32,5 @@ private _baseUrl: string; | ||
throw new Error(`HTTP error! Status: ${response.status}`); | ||
} | ||
return await response.json(); | ||
} | ||
const data = (await response.json()) as BaseResult; | ||
return data; | ||
} catch (error) { | ||
@@ -30,0 +37,0 @@ return null; |
@@ -39,5 +39,3 @@ "use strict"; | ||
} | ||
var JsonData = yield this._ambientRestAPI.GetNoteParams(); | ||
var JsonData = JSON.parse(JsonData); | ||
return JsonData.Data; | ||
return yield this._ambientRestAPI.GetNoteParams(); | ||
}); | ||
@@ -44,0 +42,0 @@ } |
@@ -49,5 +49,4 @@ import AmbientConfig from "./config/AmbientConfig"; | ||
} | ||
var JsonData = await this._ambientRestAPI.GetNoteParams(); | ||
var JsonData = JSON.parse(JsonData); | ||
return JsonData.Data; | ||
return await this._ambientRestAPI.GetNoteParams(); | ||
} | ||
@@ -54,0 +53,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76285
1481