whio-api-sdk 1.0.169 → 1.0.170
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 +1 -0
- package/dist/src/sdk/sdk.js +5 -0
- package/dist/src/sdk/types.d.ts +22 -0
- package/dist/src/sdk/urls.d.ts +1 -0
- package/dist/src/sdk/urls.js +1 -0
- package/package.json +1 -1
- package/src/sdk/sdk.ts +5 -0
- package/src/sdk/types.ts +24 -0
- package/src/sdk/urls.ts +1 -0
package/dist/src/sdk/sdk.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare class ApiSDK {
|
|
|
89
89
|
updateSession(id: string, sessionData: UpdateSessionDto): Promise<Session>;
|
|
90
90
|
deleteSession(id: string): Promise<void>;
|
|
91
91
|
setPrimaryTranscriptionSummary(sessionId: string, summaryId: string): Promise<Session>;
|
|
92
|
+
getPapareoTranscriptionStatus(sessionId: string): Promise<Session>;
|
|
92
93
|
createAgent(name: string): Promise<Agent>;
|
|
93
94
|
getAgents(): Promise<Agent[]>;
|
|
94
95
|
getAgent(id: string): Promise<Agent>;
|
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -678,6 +678,11 @@ export class ApiSDK {
|
|
|
678
678
|
return this.request(`${urls.sessions}/${sessionId}/primary-summary/${summaryId}`, 'PATCH');
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
|
+
getPapareoTranscriptionStatus(sessionId) {
|
|
682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
683
|
+
return this.request(`${urls.getPapareoTranscriptionStatus}/${sessionId}`, 'GET');
|
|
684
|
+
});
|
|
685
|
+
}
|
|
681
686
|
// ======================
|
|
682
687
|
// AGENT METHODS
|
|
683
688
|
// ======================
|
package/dist/src/sdk/types.d.ts
CHANGED
|
@@ -343,6 +343,12 @@ export interface AudioFile {
|
|
|
343
343
|
uploadId?: string;
|
|
344
344
|
transcriptionUrl?: string;
|
|
345
345
|
status: AudioFileStatus;
|
|
346
|
+
taskId?: string;
|
|
347
|
+
uploadStatus?: string;
|
|
348
|
+
statusLink?: string;
|
|
349
|
+
cancelLink?: string;
|
|
350
|
+
downloadLink?: string;
|
|
351
|
+
progressPercent?: number;
|
|
346
352
|
createdAt: string;
|
|
347
353
|
updatedAt: string;
|
|
348
354
|
sessionId: string;
|
|
@@ -362,4 +368,20 @@ export interface CreateAudioFileDto {
|
|
|
362
368
|
export interface UpdateAudioFileDto {
|
|
363
369
|
transcriptionUrl?: string;
|
|
364
370
|
status?: AudioFileStatus;
|
|
371
|
+
taskId?: string;
|
|
372
|
+
uploadStatus?: string;
|
|
373
|
+
statusLink?: string;
|
|
374
|
+
cancelLink?: string;
|
|
375
|
+
downloadLink?: string;
|
|
376
|
+
progressPercent?: number;
|
|
377
|
+
}
|
|
378
|
+
export interface UploadedFileData {
|
|
379
|
+
task_id: string;
|
|
380
|
+
status: string;
|
|
381
|
+
links: {
|
|
382
|
+
status: string;
|
|
383
|
+
cancel: string;
|
|
384
|
+
download: string;
|
|
385
|
+
};
|
|
386
|
+
progress_percent: number;
|
|
365
387
|
}
|
package/dist/src/sdk/urls.d.ts
CHANGED
package/dist/src/sdk/urls.js
CHANGED
package/package.json
CHANGED
package/src/sdk/sdk.ts
CHANGED
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
AudioFileStatus,
|
|
45
45
|
CreateAudioFileDto,
|
|
46
46
|
UpdateAudioFileDto,
|
|
47
|
+
UploadedFileData,
|
|
47
48
|
} from './types';
|
|
48
49
|
import urls from './urls';
|
|
49
50
|
import { jwtDecode } from 'jwt-decode';
|
|
@@ -754,6 +755,10 @@ export class ApiSDK {
|
|
|
754
755
|
return this.request<Session>(`${urls.sessions}/${sessionId}/primary-summary/${summaryId}`, 'PATCH');
|
|
755
756
|
}
|
|
756
757
|
|
|
758
|
+
public async getPapareoTranscriptionStatus(sessionId: string): Promise<Session> {
|
|
759
|
+
return this.request<Session>(`${urls.getPapareoTranscriptionStatus}/${sessionId}`, 'GET');
|
|
760
|
+
}
|
|
761
|
+
|
|
757
762
|
// ======================
|
|
758
763
|
// AGENT METHODS
|
|
759
764
|
// ======================
|
package/src/sdk/types.ts
CHANGED
|
@@ -434,6 +434,12 @@ export interface AudioFile {
|
|
|
434
434
|
uploadId?: string;
|
|
435
435
|
transcriptionUrl?: string;
|
|
436
436
|
status: AudioFileStatus;
|
|
437
|
+
taskId?: string;
|
|
438
|
+
uploadStatus?: string;
|
|
439
|
+
statusLink?: string;
|
|
440
|
+
cancelLink?: string;
|
|
441
|
+
downloadLink?: string;
|
|
442
|
+
progressPercent?: number;
|
|
437
443
|
createdAt: string;
|
|
438
444
|
updatedAt: string;
|
|
439
445
|
sessionId: string;
|
|
@@ -459,4 +465,22 @@ export interface CreateAudioFileDto {
|
|
|
459
465
|
export interface UpdateAudioFileDto {
|
|
460
466
|
transcriptionUrl?: string;
|
|
461
467
|
status?: AudioFileStatus;
|
|
468
|
+
taskId?: string;
|
|
469
|
+
uploadStatus?: string;
|
|
470
|
+
statusLink?: string;
|
|
471
|
+
cancelLink?: string;
|
|
472
|
+
downloadLink?: string;
|
|
473
|
+
progressPercent?: number;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// UploadedFileData interface for the upload response
|
|
477
|
+
export interface UploadedFileData {
|
|
478
|
+
task_id: string;
|
|
479
|
+
status: string;
|
|
480
|
+
links: {
|
|
481
|
+
status: string;
|
|
482
|
+
cancel: string;
|
|
483
|
+
download: string;
|
|
484
|
+
};
|
|
485
|
+
progress_percent: number;
|
|
462
486
|
}
|