whio-api-sdk 1.0.192-bet-staging → 1.0.193-bet-staging
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/sdk.d.ts +5 -0
- package/dist/src/sdk/sdk.js +16 -0
- package/package.json +1 -1
- package/src/sdk/sdk.ts +15 -0
package/dist/src/sdk/sdk.d.ts
CHANGED
|
@@ -194,6 +194,11 @@ export declare class ApiSDK {
|
|
|
194
194
|
organizationRoles: string[];
|
|
195
195
|
teamRoles: string[];
|
|
196
196
|
}>;
|
|
197
|
+
/**
|
|
198
|
+
* Get logs for a specific session ID
|
|
199
|
+
* Searches both log messages and meta data for the session ID
|
|
200
|
+
*/
|
|
201
|
+
getSessionLogs(sessionId: string, limit?: number, offset?: number): Promise<LogsResponse>;
|
|
197
202
|
/**
|
|
198
203
|
* Get sessions that do not have medical transcriptions and primary transcription summaries
|
|
199
204
|
* for the current user's organization
|
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -1154,6 +1154,22 @@ export class ApiSDK {
|
|
|
1154
1154
|
return this.request(`${urls.logs}/available-roles`, 'GET');
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
|
+
/**
|
|
1158
|
+
* Get logs for a specific session ID
|
|
1159
|
+
* Searches both log messages and meta data for the session ID
|
|
1160
|
+
*/
|
|
1161
|
+
getSessionLogs(sessionId, limit, offset) {
|
|
1162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1163
|
+
const params = new URLSearchParams();
|
|
1164
|
+
if (limit !== undefined)
|
|
1165
|
+
params.append('limit', limit.toString());
|
|
1166
|
+
if (offset !== undefined)
|
|
1167
|
+
params.append('offset', offset.toString());
|
|
1168
|
+
const queryString = params.toString();
|
|
1169
|
+
const url = queryString ? `${urls.logs}/session/${sessionId}?${queryString}` : `${urls.logs}/session/${sessionId}`;
|
|
1170
|
+
return this.request(url, 'GET');
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1157
1173
|
// ===== DEBUG METHODS =====
|
|
1158
1174
|
/**
|
|
1159
1175
|
* Get sessions that do not have medical transcriptions and primary transcription summaries
|
package/package.json
CHANGED
package/src/sdk/sdk.ts
CHANGED
|
@@ -1222,6 +1222,21 @@ export class ApiSDK {
|
|
|
1222
1222
|
}>(`${urls.logs}/available-roles`, 'GET');
|
|
1223
1223
|
}
|
|
1224
1224
|
|
|
1225
|
+
/**
|
|
1226
|
+
* Get logs for a specific session ID
|
|
1227
|
+
* Searches both log messages and meta data for the session ID
|
|
1228
|
+
*/
|
|
1229
|
+
public async getSessionLogs(sessionId: string, limit?: number, offset?: number): Promise<LogsResponse> {
|
|
1230
|
+
const params = new URLSearchParams();
|
|
1231
|
+
if (limit !== undefined) params.append('limit', limit.toString());
|
|
1232
|
+
if (offset !== undefined) params.append('offset', offset.toString());
|
|
1233
|
+
|
|
1234
|
+
const queryString = params.toString();
|
|
1235
|
+
const url = queryString ? `${urls.logs}/session/${sessionId}?${queryString}` : `${urls.logs}/session/${sessionId}`;
|
|
1236
|
+
|
|
1237
|
+
return this.request<LogsResponse>(url, 'GET');
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1225
1240
|
// ===== DEBUG METHODS =====
|
|
1226
1241
|
|
|
1227
1242
|
/**
|