testaugnitoambientsdk
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"name": "testaugnitoambientsdk", | ||
"version": "1.5.0", | ||
"version": "1.6.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,7 +35,14 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!this._ambientRestAPI) { | ||
Logger_1.Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
try { | ||
if (!this._ambientRestAPI) { | ||
Logger_1.Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return yield this._ambientRestAPI.GetNoteParams(); | ||
} | ||
return yield this._ambientRestAPI.GetNoteParams(); | ||
catch (e) { | ||
if (e instanceof Error) { | ||
this.onErrorCallback(e.message); | ||
} | ||
} | ||
}); | ||
@@ -49,7 +56,14 @@ } | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!this._ambientRestAPI) { | ||
Logger_1.Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
try { | ||
if (!this._ambientRestAPI) { | ||
Logger_1.Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return yield this._ambientRestAPI.FetchJob(JobId); | ||
} | ||
return yield this._ambientRestAPI.FetchJob(JobId); | ||
catch (e) { | ||
if (e instanceof Error) { | ||
this.onErrorCallback(e.message); | ||
} | ||
} | ||
}); | ||
@@ -64,7 +78,14 @@ } | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!this._ambientRestAPI) { | ||
Logger_1.Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
try { | ||
if (!this._ambientRestAPI) { | ||
Logger_1.Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return yield this._ambientRestAPI.SendFinalNote(JobId, NoteDate); | ||
} | ||
return yield this._ambientRestAPI.SendFinalNote(JobId, NoteDate); | ||
catch (e) { | ||
if (e instanceof Error) { | ||
this.onErrorCallback(e.message); | ||
} | ||
} | ||
}); | ||
@@ -71,0 +92,0 @@ } |
@@ -45,8 +45,14 @@ import AmbientConfig from "./config/AmbientConfig"; | ||
public async getNoteParams():Promise<any>{ | ||
if (!this._ambientRestAPI) { | ||
Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return await this._ambientRestAPI.GetNoteParams(); | ||
try{ | ||
if (!this._ambientRestAPI) { | ||
Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return await this._ambientRestAPI.GetNoteParams(); | ||
} | ||
catch(e:any){ | ||
if(e instanceof Error){ | ||
this.onErrorCallback(e.message); | ||
} | ||
} | ||
} | ||
@@ -59,7 +65,14 @@ | ||
public async getSummarizedNote(JobId:string):Promise<any>{ | ||
if (!this._ambientRestAPI) { | ||
Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return await this._ambientRestAPI.FetchJob(JobId); | ||
try{ | ||
if (!this._ambientRestAPI) { | ||
Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return await this._ambientRestAPI.FetchJob(JobId); | ||
} | ||
catch(e:any){ | ||
if(e instanceof Error){ | ||
this.onErrorCallback(e.message); | ||
} | ||
} | ||
} | ||
@@ -73,7 +86,14 @@ | ||
public async sendSummarizedNote(JobId:string, NoteDate:string):Promise<any>{ | ||
if (!this._ambientRestAPI) { | ||
Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return await this._ambientRestAPI.SendFinalNote(JobId,NoteDate); | ||
try{ | ||
if (!this._ambientRestAPI) { | ||
Logger.error('SDK not initialized', this._logTag); | ||
return; | ||
} | ||
return await this._ambientRestAPI.SendFinalNote(JobId,NoteDate); | ||
} | ||
catch(e:any){ | ||
if(e instanceof Error){ | ||
this.onErrorCallback(e.message); | ||
} | ||
} | ||
} | ||
@@ -80,0 +100,0 @@ |
@@ -64,4 +64,4 @@ "use strict"; | ||
this.recordingInpogress = true; | ||
this.InitRecorder(); | ||
this.StartAudioStream(); | ||
yield this.InitRecorder(); | ||
yield this.StartAudioStream(); | ||
this.onStartOfRecording(); | ||
@@ -68,0 +68,0 @@ } |
@@ -35,4 +35,4 @@ import { socketConfig } from '../config/socketConfig.js'; | ||
this.recordingInpogress = true; | ||
this.InitRecorder(); | ||
this.StartAudioStream(); | ||
await this.InitRecorder(); | ||
await this.StartAudioStream(); | ||
this.onStartOfRecording(); | ||
@@ -39,0 +39,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
77390
1518