whio-api-sdk 1.1.28 → 1.1.33
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/dist/src/sdk/modules/agent.module.d.ts +90 -5
- package/dist/src/sdk/modules/agent.module.js +87 -2
- package/dist/src/sdk/modules/audio.module.d.ts +143 -2
- package/dist/src/sdk/modules/audio.module.js +144 -5
- package/dist/src/sdk/modules/auth.module.d.ts +67 -0
- package/dist/src/sdk/modules/auth.module.js +81 -0
- package/dist/src/sdk/modules/data-strategy.module.d.ts +45 -7
- package/dist/src/sdk/modules/data-strategy.module.js +39 -1
- package/dist/src/sdk/modules/external-integration.module.d.ts +30 -0
- package/dist/src/sdk/modules/external-integration.module.js +30 -0
- package/dist/src/sdk/modules/integration-action.module.d.ts +39 -0
- package/dist/src/sdk/modules/integration-action.module.js +39 -0
- package/dist/src/sdk/modules/log.module.d.ts +4 -4
- package/dist/src/sdk/modules/organization.module.d.ts +62 -3
- package/dist/src/sdk/modules/organization.module.js +61 -2
- package/dist/src/sdk/modules/patient.module.d.ts +5 -2
- package/dist/src/sdk/modules/patient.module.js +5 -2
- package/dist/src/sdk/modules/reports.module.d.ts +4 -4
- package/dist/src/sdk/modules/reports.module.js +6 -6
- package/dist/src/sdk/modules/session/orgadmin-session.module.d.ts +46 -1
- package/dist/src/sdk/modules/session/orgadmin-session.module.js +53 -6
- package/dist/src/sdk/modules/session/session.module.d.ts +62 -1
- package/dist/src/sdk/modules/session/session.module.js +64 -1
- package/dist/src/sdk/modules/session/superuser-session.module.d.ts +46 -1
- package/dist/src/sdk/modules/session/superuser-session.module.js +52 -5
- package/dist/src/sdk/modules/session.module.d.ts +142 -3
- package/dist/src/sdk/modules/session.module.js +153 -12
- package/dist/src/sdk/modules/team.module.d.ts +56 -4
- package/dist/src/sdk/modules/team.module.js +54 -6
- package/dist/src/sdk/modules/template.module.d.ts +96 -4
- package/dist/src/sdk/modules/template.module.js +95 -24
- package/dist/src/sdk/modules/transcription-summary.module.d.ts +60 -3
- package/dist/src/sdk/modules/transcription-summary.module.js +60 -7
- package/dist/src/sdk/modules/user.module.d.ts +127 -0
- package/dist/src/sdk/modules/user.module.js +136 -1
- package/dist/src/sdk/modules/websocket.module.d.ts +25 -8
- package/dist/src/sdk/modules/websocket.module.js +23 -6
- package/dist/src/sdk/modules/workflow.module.d.ts +39 -0
- package/dist/src/sdk/modules/workflow.module.js +39 -0
- package/dist/src/sdk/sdk.d.ts +23 -29
- package/dist/src/sdk/sdk.js +14 -44
- package/dist/src/sdk/types/agent.types.d.ts +3 -0
- package/dist/src/sdk/types/audio.types.d.ts +8 -9
- package/dist/src/sdk/types/data-strategy.types.d.ts +3 -0
- package/dist/src/sdk/types/external-integration.types.d.ts +6 -0
- package/dist/src/sdk/types/log.types.d.ts +2 -21
- package/dist/src/sdk/types/patient.types.d.ts +2 -3
- package/dist/src/sdk/types/reports.types.d.ts +1 -1
- package/dist/src/sdk/types/session.types.d.ts +8 -8
- package/dist/src/sdk/types/team.types.d.ts +4 -3
- package/dist/src/sdk/types/template.types.d.ts +15 -7
- package/dist/src/sdk/types/user.types.d.ts +6 -0
- package/dist/src/sdk/types/websocket.types.d.ts +4 -10
- package/dist/src/sdk/urls.d.ts +2 -4
- package/dist/src/sdk/urls.js +2 -5
- package/dist/src/sdk/whio-orgadmin-sdk.d.ts +9 -7
- package/dist/src/sdk/whio-orgadmin-sdk.js +10 -0
- package/dist/src/sdk/whio-sdk.d.ts +15 -8
- package/dist/src/sdk/whio-sdk.js +46 -18
- package/dist/src/sdk/whio-superuser-sdk.d.ts +14 -16
- package/dist/src/sdk/whio-superuser-sdk.js +11 -16
- package/dist/src/sdk/whio-teamadmin-sdk.d.ts +4 -8
- package/dist/src/sdk/whio-teamadmin-sdk.js +1 -18
- package/package.json +1 -1
- package/src/sdk/modules/agent.module.ts +94 -9
- package/src/sdk/modules/audio.module.ts +146 -8
- package/src/sdk/modules/auth.module.ts +88 -0
- package/src/sdk/modules/data-strategy.module.ts +51 -13
- package/src/sdk/modules/external-integration.module.ts +30 -0
- package/src/sdk/modules/integration-action.module.ts +39 -0
- package/src/sdk/modules/log.module.ts +4 -4
- package/src/sdk/modules/organization.module.ts +64 -5
- package/src/sdk/modules/patient.module.ts +5 -2
- package/src/sdk/modules/reports.module.ts +6 -6
- package/src/sdk/modules/session/orgadmin-session.module.ts +53 -7
- package/src/sdk/modules/session/session.module.ts +64 -2
- package/src/sdk/modules/session/superuser-session.module.ts +52 -6
- package/src/sdk/modules/session.module.ts +155 -15
- package/src/sdk/modules/team.module.ts +58 -9
- package/src/sdk/modules/template.module.ts +95 -32
- package/src/sdk/modules/transcription-summary.module.ts +62 -8
- package/src/sdk/modules/user.module.ts +135 -2
- package/src/sdk/modules/websocket.module.ts +26 -8
- package/src/sdk/modules/workflow.module.ts +39 -0
- package/src/sdk/sdk.ts +12 -37
- package/src/sdk/types/agent.types.ts +5 -0
- package/src/sdk/types/audio.types.ts +8 -10
- package/src/sdk/types/data-strategy.types.ts +3 -0
- package/src/sdk/types/external-integration.types.ts +6 -0
- package/src/sdk/types/log.types.ts +4 -23
- package/src/sdk/types/patient.types.ts +2 -3
- package/src/sdk/types/reports.types.ts +1 -1
- package/src/sdk/types/session.types.ts +8 -8
- package/src/sdk/types/team.types.ts +5 -3
- package/src/sdk/types/template.types.ts +18 -7
- package/src/sdk/types/user.types.ts +6 -0
- package/src/sdk/types/websocket.types.ts +8 -7
- package/src/sdk/urls.ts +3 -8
- package/src/sdk/whio-orgadmin-sdk.ts +8 -0
- package/src/sdk/whio-sdk.ts +39 -16
- package/src/sdk/whio-superuser-sdk.ts +9 -16
- package/src/sdk/whio-teamadmin-sdk.ts +1 -16
- package/tsconfig.json +1 -1
- package/src/sdk/modules/debug.module.ts +0 -44
package/dist/src/sdk/whio-sdk.js
CHANGED
|
@@ -20,7 +20,6 @@ import { AudioModule } from './modules/audio.module';
|
|
|
20
20
|
import { WorkflowModule } from './modules/workflow.module';
|
|
21
21
|
import { IntegrationActionModule } from './modules/integration-action.module';
|
|
22
22
|
import { LogModule } from './modules/log.module';
|
|
23
|
-
import { DebugModule } from './modules/debug.module';
|
|
24
23
|
import { ExternalIntegrationModule } from './modules/external-integration.module';
|
|
25
24
|
import { WebSocketModule } from './modules/websocket.module';
|
|
26
25
|
import { ReportsModule } from './modules/reports.module';
|
|
@@ -50,7 +49,6 @@ export class WhioSDK extends BaseClient {
|
|
|
50
49
|
this.workflowsModule = new WorkflowModule(config);
|
|
51
50
|
this.integrationActionsModule = new IntegrationActionModule(config);
|
|
52
51
|
this.logsModule = new LogModule(config);
|
|
53
|
-
this.debugModule = new DebugModule(config);
|
|
54
52
|
this.externalIntegrationsModule = new ExternalIntegrationModule(config);
|
|
55
53
|
this.websocketModule = config.skipWebsocket ? null : new WebSocketModule(config);
|
|
56
54
|
this.reportsModule = new ReportsModule(config);
|
|
@@ -63,7 +61,7 @@ export class WhioSDK extends BaseClient {
|
|
|
63
61
|
this.modules = [
|
|
64
62
|
this.authModule, this.usersModule, this.organizationsModule, this.teamsModule, this.templatesModule,
|
|
65
63
|
this.transcriptionSummariesModule, this.sessionsModule, this.agentsModule, this.audioModule,
|
|
66
|
-
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.
|
|
64
|
+
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.externalIntegrationsModule,
|
|
67
65
|
this.reportsModule, this.patientsModule, this.dataStrategiesModule, this.systemSnapshotsModule, this.ratingsModule,
|
|
68
66
|
this.tiakiModule,
|
|
69
67
|
...(this.websocketModule ? [this.websocketModule] : [])
|
|
@@ -131,6 +129,18 @@ export class WhioSDK extends BaseClient {
|
|
|
131
129
|
return result;
|
|
132
130
|
});
|
|
133
131
|
}
|
|
132
|
+
loginWithEntra(...args) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const result = yield this.authModule.loginWithEntra(...args);
|
|
135
|
+
yield this.syncUserState(result.user, result.access_token, result.refresh_token);
|
|
136
|
+
return result;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
connectEntra(...args) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
return this.authModule.connectEntra(...args);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
134
144
|
getProfile(...args) {
|
|
135
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
146
|
return this.authModule.getProfile(...args);
|
|
@@ -281,21 +291,6 @@ export class WhioSDK extends BaseClient {
|
|
|
281
291
|
// ======================
|
|
282
292
|
// AUDIO METHODS
|
|
283
293
|
// ======================
|
|
284
|
-
uploadAudioFile(...args) {
|
|
285
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
return this.templatesModule.uploadAudioFile(...args);
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
uploadLargeAudioFile(...args) {
|
|
290
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
return this.templatesModule.uploadLargeAudioFile(...args);
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
transcribeBase64Audio(...args) {
|
|
295
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
-
return this.templatesModule.transcribeBase64Audio(...args);
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
294
|
uploadAudioFileToSession(...args) {
|
|
300
295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
296
|
return this.audioModule.uploadAudioFileToSession(...args);
|
|
@@ -386,4 +381,37 @@ export class WhioSDK extends BaseClient {
|
|
|
386
381
|
return this.patientsModule.getPatientsFromIntegration(...args);
|
|
387
382
|
});
|
|
388
383
|
}
|
|
384
|
+
// ======================
|
|
385
|
+
// INTEGRATION ACTION METHODS
|
|
386
|
+
// ======================
|
|
387
|
+
createIntegrationAction(...args) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
return this.integrationActionsModule.createIntegrationAction(...args);
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
getIntegrationActions(...args) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
return this.integrationActionsModule.getIntegrationActions(...args);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
getIntegrationAction(...args) {
|
|
398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
+
return this.integrationActionsModule.getIntegrationAction(...args);
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
getIntegrationActionsByOrganization(...args) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
return this.integrationActionsModule.getIntegrationActionsByOrganization(...args);
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
updateIntegrationAction(...args) {
|
|
408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
return this.integrationActionsModule.updateIntegrationAction(...args);
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
deleteIntegrationAction(...args) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
return this.integrationActionsModule.deleteIntegrationAction(...args);
|
|
415
|
+
});
|
|
416
|
+
}
|
|
389
417
|
}
|
|
@@ -11,7 +11,6 @@ import { AgentModule } from './modules/agent.module';
|
|
|
11
11
|
import { AudioModule } from './modules/audio.module';
|
|
12
12
|
import { WorkflowModule } from './modules/workflow.module';
|
|
13
13
|
import { LogModule } from './modules/log.module';
|
|
14
|
-
import { DebugModule } from './modules/debug.module';
|
|
15
14
|
import { ExternalIntegrationModule } from './modules/external-integration.module';
|
|
16
15
|
import { ReportsModule } from './modules/reports.module';
|
|
17
16
|
import { DataStrategyModule } from './modules/data-strategy.module';
|
|
@@ -33,7 +32,6 @@ export declare class WhioSuperuserSDK extends BaseClient {
|
|
|
33
32
|
private readonly workflowsModule;
|
|
34
33
|
private readonly integrationActionsModule;
|
|
35
34
|
private readonly logsModule;
|
|
36
|
-
private readonly debugModule;
|
|
37
35
|
private readonly externalIntegrationsModule;
|
|
38
36
|
private readonly websocketModule;
|
|
39
37
|
private readonly reportsModule;
|
|
@@ -59,7 +57,7 @@ export declare class WhioSuperuserSDK extends BaseClient {
|
|
|
59
57
|
getSessionsByOrganization(...args: Parameters<SuperuserSessionModule['getSessionsByOrganization']>): Promise<import("./types").SessionsResponse>;
|
|
60
58
|
searchSessions(...args: Parameters<SuperuserSessionModule['searchSessions']>): Promise<import("./types").SearchSessionsResponse>;
|
|
61
59
|
updateSession(...args: Parameters<SuperuserSessionModule['updateSession']>): Promise<import("./types").Session>;
|
|
62
|
-
deleteSession(...args: Parameters<SuperuserSessionModule['deleteSession']>): Promise<
|
|
60
|
+
deleteSession(...args: Parameters<SuperuserSessionModule['deleteSession']>): Promise<import("./types").Session>;
|
|
63
61
|
setPrimaryTranscriptionSummary(...args: Parameters<SuperuserSessionModule['setPrimaryTranscriptionSummary']>): Promise<import("./types").Session>;
|
|
64
62
|
getSession(...args: Parameters<SuperuserSessionModule['getSession']>): Promise<import("./types").Session>;
|
|
65
63
|
createUser(...args: Parameters<UserModule['createUser']>): Promise<User>;
|
|
@@ -67,6 +65,8 @@ export declare class WhioSuperuserSDK extends BaseClient {
|
|
|
67
65
|
getUser(...args: Parameters<UserModule['getUser']>): Promise<User>;
|
|
68
66
|
getUsersByOrganization(...args: Parameters<UserModule['getUsersByOrganization']>): Promise<User[]>;
|
|
69
67
|
updateUser(...args: Parameters<UserModule['updateUser']>): Promise<User>;
|
|
68
|
+
activateUser(...args: Parameters<UserModule['activateUser']>): Promise<User>;
|
|
69
|
+
deactivateUser(...args: Parameters<UserModule['deactivateUser']>): Promise<User>;
|
|
70
70
|
deleteUser(...args: Parameters<UserModule['deleteUser']>): Promise<void>;
|
|
71
71
|
createEditorUser(...args: Parameters<UserModule['createEditorUser']>): Promise<User>;
|
|
72
72
|
createAdminUser(...args: Parameters<UserModule['createAdminUser']>): Promise<User>;
|
|
@@ -78,16 +78,16 @@ export declare class WhioSuperuserSDK extends BaseClient {
|
|
|
78
78
|
getOrganization(...args: Parameters<OrganizationModule['getOrganization']>): Promise<import("./types").Organization>;
|
|
79
79
|
updateOrganization(...args: Parameters<OrganizationModule['updateOrganization']>): Promise<import("./types").Organization>;
|
|
80
80
|
deleteOrganization(...args: Parameters<OrganizationModule['deleteOrganization']>): Promise<void>;
|
|
81
|
-
addUserToOrganization(...args: Parameters<OrganizationModule['addUserToOrganization']>): Promise<
|
|
82
|
-
removeUserFromOrganization(...args: Parameters<OrganizationModule['removeUserFromOrganization']>): Promise<
|
|
81
|
+
addUserToOrganization(...args: Parameters<OrganizationModule['addUserToOrganization']>): Promise<User>;
|
|
82
|
+
removeUserFromOrganization(...args: Parameters<OrganizationModule['removeUserFromOrganization']>): Promise<User>;
|
|
83
83
|
createTeam(...args: Parameters<TeamModule['createTeam']>): Promise<import("./types").Team>;
|
|
84
84
|
getTeams(...args: Parameters<TeamModule['getTeams']>): Promise<import("./types").Team[]>;
|
|
85
85
|
getTeam(...args: Parameters<TeamModule['getTeam']>): Promise<import("./types").Team>;
|
|
86
86
|
getTeamsByOrganization(...args: Parameters<TeamModule['getTeamsByOrganization']>): Promise<import("./types").Team[]>;
|
|
87
87
|
updateTeam(...args: Parameters<TeamModule['updateTeam']>): Promise<import("./types").Team>;
|
|
88
88
|
deleteTeam(...args: Parameters<TeamModule['deleteTeam']>): Promise<void>;
|
|
89
|
-
addUserToTeam(...args: Parameters<TeamModule['addUserToTeam']>): Promise<
|
|
90
|
-
removeUserFromTeam(...args: Parameters<TeamModule['removeUserFromTeam']>): Promise<
|
|
89
|
+
addUserToTeam(...args: Parameters<TeamModule['addUserToTeam']>): Promise<import("./types").TeamRole>;
|
|
90
|
+
removeUserFromTeam(...args: Parameters<TeamModule['removeUserFromTeam']>): Promise<import("./types").TeamRole>;
|
|
91
91
|
createTemplate(...args: Parameters<TemplateModule['createTemplate']>): Promise<import("./types").Template>;
|
|
92
92
|
getTemplates(...args: Parameters<TemplateModule['getTemplates']>): Promise<import("./types").Template[]>;
|
|
93
93
|
getTemplate(...args: Parameters<TemplateModule['getTemplate']>): Promise<import("./types").Template>;
|
|
@@ -102,8 +102,8 @@ export declare class WhioSuperuserSDK extends BaseClient {
|
|
|
102
102
|
getTranscriptionSummariesByUser(...args: Parameters<TranscriptionSummaryModule['getTranscriptionSummariesByUser']>): Promise<import("./types").TranscriptionSummary[]>;
|
|
103
103
|
getByOrganizationTranscriptionSummaries(...args: Parameters<TranscriptionSummaryModule['getByOrganizationTranscriptionSummaries']>): Promise<import("./types").TranscriptionSummary[]>;
|
|
104
104
|
createAgent(...args: Parameters<AgentModule['createAgent']>): Promise<import("./types").Agent>;
|
|
105
|
-
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").
|
|
106
|
-
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").
|
|
105
|
+
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").AgentWithOrganizations[]>;
|
|
106
|
+
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").AgentWithOrganizations>;
|
|
107
107
|
updateAgent(...args: Parameters<AgentModule['updateAgent']>): Promise<import("./types").Agent>;
|
|
108
108
|
deleteAgent(...args: Parameters<AgentModule['deleteAgent']>): Promise<void>;
|
|
109
109
|
createWorkflow(...args: Parameters<WorkflowModule['createWorkflow']>): Promise<import("./types").Workflow>;
|
|
@@ -116,8 +116,6 @@ export declare class WhioSuperuserSDK extends BaseClient {
|
|
|
116
116
|
getLogs(...args: Parameters<LogModule['getLogs']>): Promise<import("./types").LogsResponse>;
|
|
117
117
|
getLogsByUser(...args: Parameters<LogModule['getLogsByUser']>): Promise<import("./types").LogsResponse>;
|
|
118
118
|
getLogStats(...args: Parameters<LogModule['getLogStats']>): Promise<import("./types").LogStats>;
|
|
119
|
-
getSessionsWithoutMedicalTranscriptions(...args: Parameters<DebugModule['getSessionsWithoutMedicalTranscriptions']>): Promise<import("./types").DebugSessionSummary[]>;
|
|
120
|
-
downloadSessionAsZip(...args: Parameters<DebugModule['downloadSessionAsZip']>): Promise<Blob>;
|
|
121
119
|
getSystemSnapshots(...args: Parameters<SystemSnapshotModule['getSnapshots']>): Promise<import("./types").SystemSnapshotsResponse>;
|
|
122
120
|
getLatestSystemSnapshot(...args: Parameters<SystemSnapshotModule['getLatestSnapshot']>): Promise<import("./types").SystemSnapshot | null>;
|
|
123
121
|
getCurrentSystemMetrics(...args: Parameters<SystemSnapshotModule['getCurrentMetrics']>): Promise<import("./types").CurrentMetrics>;
|
|
@@ -125,11 +123,11 @@ export declare class WhioSuperuserSDK extends BaseClient {
|
|
|
125
123
|
getExternalIntegrations(...args: Parameters<ExternalIntegrationModule['getExternalIntegrations']>): Promise<import("./types").ExternalIntegration[]>;
|
|
126
124
|
updateExternalIntegration(...args: Parameters<ExternalIntegrationModule['updateExternalIntegration']>): Promise<import("./types").ExternalIntegration>;
|
|
127
125
|
deleteExternalIntegration(...args: Parameters<ExternalIntegrationModule['deleteExternalIntegration']>): Promise<void>;
|
|
128
|
-
createDataStrategy(...args: Parameters<DataStrategyModule['createDataStrategy']>): Promise<import("./types").
|
|
129
|
-
getDataStrategies(...args: Parameters<DataStrategyModule['getDataStrategies']>): Promise<import("./types").
|
|
130
|
-
getDataStrategy(...args: Parameters<DataStrategyModule['getDataStrategy']>): Promise<import("./types").
|
|
131
|
-
updateDataStrategy(...args: Parameters<DataStrategyModule['updateDataStrategy']>): Promise<import("./types").
|
|
132
|
-
deleteDataStrategy(...args: Parameters<DataStrategyModule['deleteDataStrategy']>): Promise<
|
|
126
|
+
createDataStrategy(...args: Parameters<DataStrategyModule['createDataStrategy']>): Promise<import("./types").DataStrategyWithOrganization>;
|
|
127
|
+
getDataStrategies(...args: Parameters<DataStrategyModule['getDataStrategies']>): Promise<import("./types").DataStrategyWithOrganization[]>;
|
|
128
|
+
getDataStrategy(...args: Parameters<DataStrategyModule['getDataStrategy']>): Promise<import("./types").DataStrategyWithOrganization>;
|
|
129
|
+
updateDataStrategy(...args: Parameters<DataStrategyModule['updateDataStrategy']>): Promise<import("./types").DataStrategyWithOrganization>;
|
|
130
|
+
deleteDataStrategy(...args: Parameters<DataStrategyModule['deleteDataStrategy']>): Promise<import("./types").DataStrategy>;
|
|
133
131
|
getCompanyDailyReportCsv(...args: Parameters<ReportsModule['getCompanyDailyReportCsv']>): Promise<string>;
|
|
134
132
|
downloadCompanyDailyReport(...args: Parameters<ReportsModule['downloadCompanyDailyReport']>): Promise<Blob>;
|
|
135
133
|
}
|
|
@@ -20,7 +20,6 @@ import { AudioModule } from './modules/audio.module';
|
|
|
20
20
|
import { WorkflowModule } from './modules/workflow.module';
|
|
21
21
|
import { IntegrationActionModule } from './modules/integration-action.module';
|
|
22
22
|
import { LogModule } from './modules/log.module';
|
|
23
|
-
import { DebugModule } from './modules/debug.module';
|
|
24
23
|
import { ExternalIntegrationModule } from './modules/external-integration.module';
|
|
25
24
|
import { WebSocketModule } from './modules/websocket.module';
|
|
26
25
|
import { ReportsModule } from './modules/reports.module';
|
|
@@ -49,7 +48,6 @@ export class WhioSuperuserSDK extends BaseClient {
|
|
|
49
48
|
this.workflowsModule = new WorkflowModule(config);
|
|
50
49
|
this.integrationActionsModule = new IntegrationActionModule(config);
|
|
51
50
|
this.logsModule = new LogModule(config);
|
|
52
|
-
this.debugModule = new DebugModule(config);
|
|
53
51
|
this.externalIntegrationsModule = new ExternalIntegrationModule(config);
|
|
54
52
|
this.websocketModule = config.skipWebsocket ? null : new WebSocketModule(config);
|
|
55
53
|
this.reportsModule = new ReportsModule(config);
|
|
@@ -61,7 +59,7 @@ export class WhioSuperuserSDK extends BaseClient {
|
|
|
61
59
|
this.modules = [
|
|
62
60
|
this.authModule, this.usersModule, this.organizationsModule, this.teamsModule, this.templatesModule,
|
|
63
61
|
this.transcriptionSummariesModule, this.sessionsModule, this.agentsModule, this.audioModule,
|
|
64
|
-
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.
|
|
62
|
+
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.externalIntegrationsModule,
|
|
65
63
|
this.reportsModule, this.patientsModule, this.dataStrategiesModule, this.systemSnapshotsModule, this.ratingsModule,
|
|
66
64
|
this.tiakiModule,
|
|
67
65
|
...(this.websocketModule ? [this.websocketModule] : [])
|
|
@@ -209,6 +207,16 @@ export class WhioSuperuserSDK extends BaseClient {
|
|
|
209
207
|
return this.usersModule.updateUser(...args);
|
|
210
208
|
});
|
|
211
209
|
}
|
|
210
|
+
activateUser(...args) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
return this.usersModule.activateUser(...args);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
deactivateUser(...args) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
+
return this.usersModule.deactivateUser(...args);
|
|
218
|
+
});
|
|
219
|
+
}
|
|
212
220
|
deleteUser(...args) {
|
|
213
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
222
|
return this.usersModule.deleteUser(...args);
|
|
@@ -479,19 +487,6 @@ export class WhioSuperuserSDK extends BaseClient {
|
|
|
479
487
|
});
|
|
480
488
|
}
|
|
481
489
|
// ======================
|
|
482
|
-
// DEBUG METHODS
|
|
483
|
-
// ======================
|
|
484
|
-
getSessionsWithoutMedicalTranscriptions(...args) {
|
|
485
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
486
|
-
return this.debugModule.getSessionsWithoutMedicalTranscriptions(...args);
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
downloadSessionAsZip(...args) {
|
|
490
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
-
return this.debugModule.downloadSessionAsZip(...args);
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
// ======================
|
|
495
490
|
// SYSTEM SNAPSHOT METHODS
|
|
496
491
|
// ======================
|
|
497
492
|
getSystemSnapshots(...args) {
|
|
@@ -30,7 +30,6 @@ export declare class WhioTeamAdminSDK extends BaseClient {
|
|
|
30
30
|
private readonly workflowsModule;
|
|
31
31
|
private readonly integrationActionsModule;
|
|
32
32
|
private readonly logsModule;
|
|
33
|
-
private readonly debugModule;
|
|
34
33
|
private readonly externalIntegrationsModule;
|
|
35
34
|
private readonly websocketModule;
|
|
36
35
|
private readonly reportsModule;
|
|
@@ -58,7 +57,7 @@ export declare class WhioTeamAdminSDK extends BaseClient {
|
|
|
58
57
|
getSessions(...args: Parameters<SessionModule['getSessions']>): Promise<import("./types").Session[]>;
|
|
59
58
|
getSession(...args: Parameters<SessionModule['getSession']>): Promise<import("./types").Session>;
|
|
60
59
|
updateSession(...args: Parameters<SessionModule['updateSession']>): Promise<import("./types").Session>;
|
|
61
|
-
deleteSession(...args: Parameters<SessionModule['deleteSession']>): Promise<
|
|
60
|
+
deleteSession(...args: Parameters<SessionModule['deleteSession']>): Promise<import("./types").Session>;
|
|
62
61
|
searchSessions(...args: Parameters<SessionModule['searchSessions']>): Promise<import("./types").SearchSessionsResponse>;
|
|
63
62
|
setPrimaryTranscriptionSummary(...args: Parameters<SessionModule['setPrimaryTranscriptionSummary']>): Promise<import("./types").Session>;
|
|
64
63
|
rerunTranscription(...args: Parameters<SessionModule['rerunTranscription']>): Promise<{
|
|
@@ -77,15 +76,12 @@ export declare class WhioTeamAdminSDK extends BaseClient {
|
|
|
77
76
|
getTemplatesByOrganization(...args: Parameters<TemplateModule['getTemplatesByOrganization']>): Promise<import("./types").Template[]>;
|
|
78
77
|
getTemplateCategories(...args: Parameters<TemplateModule['getTemplateCategories']>): Promise<import("./types").TemplateCategory[]>;
|
|
79
78
|
getTemplateCategory(...args: Parameters<TemplateModule['getTemplateCategory']>): Promise<import("./types").TemplateCategory>;
|
|
80
|
-
generateTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['generateTranscriptionSummary']>): Promise<import("./types").
|
|
79
|
+
generateTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['generateTranscriptionSummary']>): Promise<import("./types").GenerateSummaryResponse>;
|
|
81
80
|
updateTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['updateTranscriptionSummary']>): Promise<import("./types").TranscriptionSummary>;
|
|
82
81
|
getTranscriptionSummaries(...args: Parameters<TranscriptionSummaryModule['getTranscriptionSummaries']>): Promise<import("./types").TranscriptionSummary[]>;
|
|
83
82
|
getTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['getTranscriptionSummary']>): Promise<import("./types").TranscriptionSummary>;
|
|
84
83
|
cloneTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['cloneTranscriptionSummary']>): Promise<import("./types").TranscriptionSummary>;
|
|
85
84
|
deleteTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['deleteTranscriptionSummary']>): Promise<void>;
|
|
86
|
-
uploadAudioFile(...args: Parameters<TemplateModule['uploadAudioFile']>): Promise<import("./types").TranscriptionAudioUploadResponse | null>;
|
|
87
|
-
uploadLargeAudioFile(...args: Parameters<TemplateModule['uploadLargeAudioFile']>): Promise<string>;
|
|
88
|
-
transcribeBase64Audio(...args: Parameters<TemplateModule['transcribeBase64Audio']>): Promise<string>;
|
|
89
85
|
uploadAudioFileToSession(...args: Parameters<AudioModule['uploadAudioFileToSession']>): Promise<import("./types").AudioFile>;
|
|
90
86
|
getMyAudioFiles(...args: Parameters<AudioModule['getMyAudioFiles']>): Promise<import("./types").AudioFile[]>;
|
|
91
87
|
getAudioFilesBySession(...args: Parameters<AudioModule['getAudioFilesBySession']>): Promise<import("./types").AudioFile[]>;
|
|
@@ -95,8 +91,8 @@ export declare class WhioTeamAdminSDK extends BaseClient {
|
|
|
95
91
|
getWorkflows(...args: Parameters<WorkflowModule['getWorkflows']>): Promise<import("./types").Workflow[]>;
|
|
96
92
|
getWorkflow(...args: Parameters<WorkflowModule['getWorkflow']>): Promise<import("./types").Workflow>;
|
|
97
93
|
getWorkflowsByOrganization(...args: Parameters<WorkflowModule['getWorkflowsByOrganization']>): Promise<import("./types").Workflow[]>;
|
|
98
|
-
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").
|
|
99
|
-
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").
|
|
94
|
+
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").AgentWithOrganizations[]>;
|
|
95
|
+
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").AgentWithOrganizations>;
|
|
100
96
|
createRating(...args: Parameters<RatingModule['createRating']>): Promise<import("./types").SummaryRating>;
|
|
101
97
|
getRatingsBySession(...args: Parameters<RatingModule['getRatingsBySession']>): Promise<import("./types").SummaryRatingsResponse>;
|
|
102
98
|
createTiakiCalendarEvent(...args: Parameters<TiakiModule['createCalendarEvent']>): Promise<import("./types").TiakiCalendarEventResponse>;
|
|
@@ -20,7 +20,6 @@ import { AudioModule } from './modules/audio.module';
|
|
|
20
20
|
import { WorkflowModule } from './modules/workflow.module';
|
|
21
21
|
import { IntegrationActionModule } from './modules/integration-action.module';
|
|
22
22
|
import { LogModule } from './modules/log.module';
|
|
23
|
-
import { DebugModule } from './modules/debug.module';
|
|
24
23
|
import { ExternalIntegrationModule } from './modules/external-integration.module';
|
|
25
24
|
import { WebSocketModule } from './modules/websocket.module';
|
|
26
25
|
import { ReportsModule } from './modules/reports.module';
|
|
@@ -51,7 +50,6 @@ export class WhioTeamAdminSDK extends BaseClient {
|
|
|
51
50
|
this.workflowsModule = new WorkflowModule(config);
|
|
52
51
|
this.integrationActionsModule = new IntegrationActionModule(config);
|
|
53
52
|
this.logsModule = new LogModule(config);
|
|
54
|
-
this.debugModule = new DebugModule(config);
|
|
55
53
|
this.externalIntegrationsModule = new ExternalIntegrationModule(config);
|
|
56
54
|
this.websocketModule = config.skipWebsocket ? null : new WebSocketModule(config);
|
|
57
55
|
this.reportsModule = new ReportsModule(config);
|
|
@@ -63,7 +61,7 @@ export class WhioTeamAdminSDK extends BaseClient {
|
|
|
63
61
|
this.modules = [
|
|
64
62
|
this.authModule, this.usersModule, this.organizationsModule, this.teamsModule, this.templatesModule,
|
|
65
63
|
this.transcriptionSummariesModule, this.sessionsModule, this.agentsModule, this.audioModule,
|
|
66
|
-
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.
|
|
64
|
+
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.externalIntegrationsModule,
|
|
67
65
|
this.reportsModule, this.patientsModule, this.dataStrategiesModule, this.systemSnapshotsModule, this.ratingsModule,
|
|
68
66
|
this.tiakiModule,
|
|
69
67
|
...(this.websocketModule ? [this.websocketModule] : [])
|
|
@@ -280,21 +278,6 @@ export class WhioTeamAdminSDK extends BaseClient {
|
|
|
280
278
|
// ======================
|
|
281
279
|
// AUDIO METHODS
|
|
282
280
|
// ======================
|
|
283
|
-
uploadAudioFile(...args) {
|
|
284
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
285
|
-
return this.templatesModule.uploadAudioFile(...args);
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
uploadLargeAudioFile(...args) {
|
|
289
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
-
return this.templatesModule.uploadLargeAudioFile(...args);
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
transcribeBase64Audio(...args) {
|
|
294
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
295
|
-
return this.templatesModule.transcribeBase64Audio(...args);
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
281
|
uploadAudioFileToSession(...args) {
|
|
299
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
300
283
|
return this.audioModule.uploadAudioFileToSession(...args);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient } from './base-client';
|
|
2
|
-
import { Agent, CreateAgentDto, UpdateAgentDto, AgentSettings, CreateAgentSettingsDto, UpdateAgentSettingsDto } from '../types';
|
|
2
|
+
import { Agent, AgentWithOrganizations, AgentOrganization, CreateAgentDto, UpdateAgentDto, AgentSettings, CreateAgentSettingsDto, UpdateAgentSettingsDto } from '../types';
|
|
3
3
|
import urls from '../urls';
|
|
4
4
|
|
|
5
5
|
export class AgentModule extends BaseClient {
|
|
@@ -7,44 +7,103 @@ export class AgentModule extends BaseClient {
|
|
|
7
7
|
// AGENT METHODS
|
|
8
8
|
// ======================
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Create a new agent.
|
|
12
|
+
*
|
|
13
|
+
* @param name - Display name of the agent.
|
|
14
|
+
* @param templateTextReplacement - Optional template text-replacement string for the agent.
|
|
15
|
+
* @returns The created agent.
|
|
16
|
+
*/
|
|
10
17
|
public async createAgent(name: string, templateTextReplacement?: string): Promise<Agent> {
|
|
11
18
|
const dto: CreateAgentDto = { name, templateTextReplacement };
|
|
12
19
|
return this.request<Agent>(urls.agents, 'POST', dto);
|
|
13
20
|
}
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
/**
|
|
23
|
+
* List all agents, each including its linked organizations.
|
|
24
|
+
*
|
|
25
|
+
* @returns An array of agents with their organizations relation populated.
|
|
26
|
+
*/
|
|
27
|
+
public async getAgents(): Promise<AgentWithOrganizations[]> {
|
|
28
|
+
return this.request<AgentWithOrganizations[]>(urls.agents, 'GET');
|
|
17
29
|
}
|
|
18
30
|
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Get a single agent by id, including its linked organizations.
|
|
33
|
+
*
|
|
34
|
+
* @param id - UUID of the agent.
|
|
35
|
+
* @returns The agent with its organizations relation populated.
|
|
36
|
+
*/
|
|
37
|
+
public async getAgent(id: string): Promise<AgentWithOrganizations> {
|
|
38
|
+
return this.request<AgentWithOrganizations>(`${urls.agents}/${id}`, 'GET');
|
|
21
39
|
}
|
|
22
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Update an agent.
|
|
43
|
+
*
|
|
44
|
+
* @param id - UUID of the agent to update.
|
|
45
|
+
* @param name - New display name of the agent.
|
|
46
|
+
* @param templateTextReplacement - Optional template text-replacement string for the agent.
|
|
47
|
+
* @returns The updated agent.
|
|
48
|
+
*/
|
|
23
49
|
public async updateAgent(id: string, name: string, templateTextReplacement?: string): Promise<Agent> {
|
|
24
50
|
const dto: UpdateAgentDto = { name, templateTextReplacement };
|
|
25
51
|
return this.request<Agent>(`${urls.agents}/${id}`, 'PATCH', dto);
|
|
26
52
|
}
|
|
27
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Delete an agent.
|
|
56
|
+
*
|
|
57
|
+
* @param id - UUID of the agent to delete.
|
|
58
|
+
* @returns A promise that resolves when the agent has been deleted.
|
|
59
|
+
*/
|
|
28
60
|
public async deleteAgent(id: string): Promise<void> {
|
|
29
61
|
await this.request(`${urls.agents}/${id}`, 'DELETE');
|
|
30
62
|
}
|
|
31
63
|
|
|
32
|
-
|
|
33
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Link an agent to an organization.
|
|
66
|
+
*
|
|
67
|
+
* @param agentId - UUID of the agent.
|
|
68
|
+
* @param organizationId - UUID of the organization to link.
|
|
69
|
+
* @returns The created agent-organization association.
|
|
70
|
+
*/
|
|
71
|
+
public async addAgentToOrganization(agentId: string, organizationId: string): Promise<AgentOrganization> {
|
|
72
|
+
return this.request<AgentOrganization>(`${urls.agents}/${agentId}/organizations/${organizationId}`, 'POST');
|
|
34
73
|
}
|
|
35
74
|
|
|
36
|
-
|
|
37
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Unlink an agent from an organization.
|
|
77
|
+
*
|
|
78
|
+
* @param agentId - UUID of the agent.
|
|
79
|
+
* @param organizationId - UUID of the organization to unlink.
|
|
80
|
+
* @returns The removed agent-organization association.
|
|
81
|
+
*/
|
|
82
|
+
public async removeAgentFromOrganization(agentId: string, organizationId: string): Promise<AgentOrganization> {
|
|
83
|
+
return this.request<AgentOrganization>(`${urls.agents}/${agentId}/organizations/${organizationId}`, 'DELETE');
|
|
38
84
|
}
|
|
39
85
|
|
|
40
86
|
// ======================
|
|
41
87
|
// AGENT SETTINGS METHODS
|
|
42
88
|
// ======================
|
|
43
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Create agent settings for an agent within an organization.
|
|
92
|
+
*
|
|
93
|
+
* @param settingsData - The agent-settings payload (agentId, organizationId and tuning params).
|
|
94
|
+
* @returns The created agent settings.
|
|
95
|
+
*/
|
|
44
96
|
public async createAgentSettings(settingsData: CreateAgentSettingsDto): Promise<AgentSettings> {
|
|
45
97
|
return this.request<AgentSettings>(urls.agentSettings, 'POST', settingsData);
|
|
46
98
|
}
|
|
47
99
|
|
|
100
|
+
/**
|
|
101
|
+
* List agent settings, optionally filtered by organization and/or agent.
|
|
102
|
+
*
|
|
103
|
+
* @param organizationId - Optional organization UUID to filter by.
|
|
104
|
+
* @param agentId - Optional agent UUID to filter by.
|
|
105
|
+
* @returns An array of matching agent settings.
|
|
106
|
+
*/
|
|
48
107
|
public async getAgentSettings(organizationId?: string, agentId?: string): Promise<AgentSettings[]> {
|
|
49
108
|
const params = new URLSearchParams();
|
|
50
109
|
if (organizationId) params.append('organizationId', organizationId);
|
|
@@ -56,18 +115,44 @@ export class AgentModule extends BaseClient {
|
|
|
56
115
|
return this.request<AgentSettings[]>(endpoint, 'GET');
|
|
57
116
|
}
|
|
58
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Get a single agent settings record by id.
|
|
120
|
+
*
|
|
121
|
+
* @param id - UUID of the agent settings record.
|
|
122
|
+
* @returns The agent settings record.
|
|
123
|
+
*/
|
|
59
124
|
public async getAgentSettingsById(id: string): Promise<AgentSettings> {
|
|
60
125
|
return this.request<AgentSettings>(`${urls.agentSettings}/${id}`, 'GET');
|
|
61
126
|
}
|
|
62
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Get the agent settings for a specific agent within a specific organization.
|
|
130
|
+
*
|
|
131
|
+
* @param agentId - UUID of the agent.
|
|
132
|
+
* @param organizationId - UUID of the organization.
|
|
133
|
+
* @returns The agent settings record for the agent/organization pair.
|
|
134
|
+
*/
|
|
63
135
|
public async getAgentSettingsByAgentAndOrganization(agentId: string, organizationId: string): Promise<AgentSettings> {
|
|
64
136
|
return this.request<AgentSettings>(`${urls.agentSettings}/agent/${agentId}/organization/${organizationId}`, 'GET');
|
|
65
137
|
}
|
|
66
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Update an agent settings record.
|
|
141
|
+
*
|
|
142
|
+
* @param id - UUID of the agent settings record to update.
|
|
143
|
+
* @param settingsData - The fields to update.
|
|
144
|
+
* @returns The updated agent settings record.
|
|
145
|
+
*/
|
|
67
146
|
public async updateAgentSettings(id: string, settingsData: UpdateAgentSettingsDto): Promise<AgentSettings> {
|
|
68
147
|
return this.request<AgentSettings>(`${urls.agentSettings}/${id}`, 'PATCH', settingsData);
|
|
69
148
|
}
|
|
70
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Delete an agent settings record.
|
|
152
|
+
*
|
|
153
|
+
* @param id - UUID of the agent settings record to delete.
|
|
154
|
+
* @returns A promise that resolves when the record has been deleted.
|
|
155
|
+
*/
|
|
71
156
|
public async deleteAgentSettings(id: string): Promise<void> {
|
|
72
157
|
await this.request(`${urls.agentSettings}/${id}`, 'DELETE');
|
|
73
158
|
}
|