whio-api-sdk 1.1.23 → 1.1.24
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/.claude/settings.local.json +6 -4
- package/dist/src/sdk/modules/transcription-summary.module.d.ts +2 -1
- package/dist/src/sdk/modules/transcription-summary.module.js +5 -0
- package/dist/src/sdk/types/template.types.d.ts +2 -1
- 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/modules/transcription-summary.module.ts +5 -0
- package/src/sdk/types/template.types.ts +2 -1
- package/src/sdk/urls.ts +1 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseClient } from './base-client';
|
|
2
|
-
import { TranscriptionSummary } from '../types';
|
|
2
|
+
import { TranscriptionSummary, CreateTranscriptionSummaryDto } from '../types';
|
|
3
3
|
export declare class TranscriptionSummaryModule extends BaseClient {
|
|
4
4
|
generateTranscriptionSummary(templateId: string, sessionId: string): Promise<TranscriptionSummary>;
|
|
5
|
+
createTranscriptionSummary(dto: Omit<CreateTranscriptionSummaryDto, 'userId'>): Promise<string>;
|
|
5
6
|
updateTranscriptionSummary(id: string, content: string): Promise<TranscriptionSummary>;
|
|
6
7
|
getTranscriptionSummaries(): Promise<TranscriptionSummary[]>;
|
|
7
8
|
getTranscriptionSummary(id: string): Promise<TranscriptionSummary>;
|
|
@@ -25,6 +25,11 @@ export class TranscriptionSummaryModule extends BaseClient {
|
|
|
25
25
|
return transcriptionSummary;
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
+
createTranscriptionSummary(dto) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return this.request(urls.transcriptionSummaryCreate, 'POST', dto);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
28
33
|
updateTranscriptionSummary(id, content) {
|
|
29
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
35
|
const updateSummaryDto = {
|
|
@@ -70,9 +70,10 @@ export interface GenerateTranscriptionSummaryDto {
|
|
|
70
70
|
sessionId: string;
|
|
71
71
|
}
|
|
72
72
|
export interface CreateTranscriptionSummaryDto {
|
|
73
|
-
userId
|
|
73
|
+
userId?: string;
|
|
74
74
|
templateId: string;
|
|
75
75
|
content: string;
|
|
76
|
+
sessionId: string;
|
|
76
77
|
anonymisedTranscript?: string;
|
|
77
78
|
metadata?: Record<string, any>;
|
|
78
79
|
}
|
package/dist/src/sdk/urls.d.ts
CHANGED
package/dist/src/sdk/urls.js
CHANGED
|
@@ -22,6 +22,7 @@ const urls = {
|
|
|
22
22
|
templateCategories: '/template-categories',
|
|
23
23
|
// Transcription Summaries
|
|
24
24
|
transcriptionSummaries: '/transcription-summaries',
|
|
25
|
+
transcriptionSummaryCreate: '/transcription-summaries/create',
|
|
25
26
|
transcriptionSummary: '/transcription-summaries/generate',
|
|
26
27
|
uploadAudioLarge: '/transcription-summaries/upload-audio-large',
|
|
27
28
|
uploadAudio: '/transcription-summaries/upload-audio',
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { BaseClient } from './base-client';
|
|
|
2
2
|
import {
|
|
3
3
|
TranscriptionSummary,
|
|
4
4
|
GenerateTranscriptionSummaryDto,
|
|
5
|
+
CreateTranscriptionSummaryDto,
|
|
5
6
|
UpdateTranscriptionSummaryDto,
|
|
6
7
|
CloneTranscriptionSummaryDto,
|
|
7
8
|
} from '../types';
|
|
@@ -27,6 +28,10 @@ export class TranscriptionSummaryModule extends BaseClient {
|
|
|
27
28
|
return transcriptionSummary;
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
public async createTranscriptionSummary(dto: Omit<CreateTranscriptionSummaryDto, 'userId'>): Promise<string> {
|
|
32
|
+
return this.request<string>(urls.transcriptionSummaryCreate, 'POST', dto);
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
public async updateTranscriptionSummary(id: string, content: string): Promise<TranscriptionSummary> {
|
|
31
36
|
const updateSummaryDto: UpdateTranscriptionSummaryDto = {
|
|
32
37
|
content,
|
|
@@ -84,9 +84,10 @@ export interface GenerateTranscriptionSummaryDto {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export interface CreateTranscriptionSummaryDto {
|
|
87
|
-
userId
|
|
87
|
+
userId?: string;
|
|
88
88
|
templateId: string;
|
|
89
89
|
content: string;
|
|
90
|
+
sessionId: string;
|
|
90
91
|
anonymisedTranscript?: string;
|
|
91
92
|
metadata?: Record<string, any>;
|
|
92
93
|
}
|
package/src/sdk/urls.ts
CHANGED
|
@@ -27,6 +27,7 @@ const urls = {
|
|
|
27
27
|
|
|
28
28
|
// Transcription Summaries
|
|
29
29
|
transcriptionSummaries: '/transcription-summaries',
|
|
30
|
+
transcriptionSummaryCreate: '/transcription-summaries/create',
|
|
30
31
|
transcriptionSummary: '/transcription-summaries/generate',
|
|
31
32
|
uploadAudioLarge: '/transcription-summaries/upload-audio-large',
|
|
32
33
|
uploadAudio: '/transcription-summaries/upload-audio',
|