whio-api-sdk 1.0.7 → 1.0.8
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 +2 -2
- package/dist/src/sdk/sdk.js +2 -6
- package/package.json +1 -1
- package/src/sdk/sdk.ts +2 -6
package/dist/src/sdk/sdk.d.ts
CHANGED
|
@@ -36,6 +36,6 @@ export declare class ApiSDK {
|
|
|
36
36
|
generateTranscriptionSummary(transcript: string, templateId: string): Promise<TranscriptionSummary>;
|
|
37
37
|
generateTranscriptionSummaryFromUserTemplate(transcript: string, userTemplateId: string): Promise<TranscriptionSummary>;
|
|
38
38
|
updateTranscriptionSummary(id: string, content: string): Promise<TranscriptionSummary>;
|
|
39
|
-
uploadLargeAudioFile(
|
|
40
|
-
uploadAudioFile(
|
|
39
|
+
uploadLargeAudioFile(formData: FormData): Promise<string>;
|
|
40
|
+
uploadAudioFile(formData: FormData): Promise<string>;
|
|
41
41
|
}
|
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -287,10 +287,8 @@ export class ApiSDK {
|
|
|
287
287
|
return this.request(`${urls.transcriptionSummary}/${id}`, 'PATCH', updateSummaryDto);
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
uploadLargeAudioFile(
|
|
290
|
+
uploadLargeAudioFile(formData) {
|
|
291
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
const formData = new FormData();
|
|
293
|
-
formData.append('file', file); // key must match the one in FileInterceptor('file')
|
|
294
292
|
const uploadId = yield this.request(urls.uploadAudioLarge, 'POST', formData, { 'Content-Type': 'multipart/form-data' });
|
|
295
293
|
const uploadIds = (yield this.storage.getItem('uploadIds')) || '[]';
|
|
296
294
|
const uploadIdsArray = JSON.parse(uploadIds);
|
|
@@ -298,10 +296,8 @@ export class ApiSDK {
|
|
|
298
296
|
return uploadId;
|
|
299
297
|
});
|
|
300
298
|
}
|
|
301
|
-
uploadAudioFile(
|
|
299
|
+
uploadAudioFile(formData) {
|
|
302
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
-
const formData = new FormData();
|
|
304
|
-
formData.append('file', file); // key must match the one in FileInterceptor('file')
|
|
305
301
|
const uploadId = yield this.request(urls.uploadAudioLarge, 'POST', formData, { 'Content-Type': 'multipart/form-data' });
|
|
306
302
|
const uploadIds = (yield this.storage.getItem('uploadIds')) || '[]';
|
|
307
303
|
const uploadIdsArray = JSON.parse(uploadIds);
|
package/package.json
CHANGED
package/src/sdk/sdk.ts
CHANGED
|
@@ -347,9 +347,7 @@ export class ApiSDK {
|
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
public async uploadLargeAudioFile(
|
|
351
|
-
const formData = new FormData();
|
|
352
|
-
formData.append('file', file); // key must match the one in FileInterceptor('file')
|
|
350
|
+
public async uploadLargeAudioFile(formData: FormData): Promise<string> {
|
|
353
351
|
const uploadId: string = await this.request(
|
|
354
352
|
urls.uploadAudioLarge,
|
|
355
353
|
'POST',
|
|
@@ -362,9 +360,7 @@ export class ApiSDK {
|
|
|
362
360
|
return uploadId;
|
|
363
361
|
}
|
|
364
362
|
|
|
365
|
-
public async uploadAudioFile(
|
|
366
|
-
const formData = new FormData();
|
|
367
|
-
formData.append('file', file); // key must match the one in FileInterceptor('file')
|
|
363
|
+
public async uploadAudioFile(formData: FormData): Promise<string> {
|
|
368
364
|
const uploadId: string = await this.request(
|
|
369
365
|
urls.uploadAudioLarge,
|
|
370
366
|
'POST',
|