@eka-care/ekascribe-ts-sdk 2.0.31 → 2.0.32
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/index.d.ts +1 -7
- package/dist/index.mjs +6 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -95,13 +95,7 @@ declare class EkaScribe {
|
|
|
95
95
|
uploadAudioWithPresignedUrl(request: TPostV1UploadAudioFilesRequest): Promise<TFullAudioUploadResponse>;
|
|
96
96
|
updateResultSummary(request: TPatchVoiceApiV3StatusRequest): Promise<TPatchVoiceApiV3StatusResponse>;
|
|
97
97
|
getConfigMyTemplates(): Promise<TGetConfigV2Response>;
|
|
98
|
-
|
|
99
|
-
* Run system compatibility test
|
|
100
|
-
* @param callback - Callback function to receive test results as they complete
|
|
101
|
-
* @param clientEndpoint - Optional client endpoint/base URL where SDK is hosted. Worker URL will be constructed as ../shared-worker/s3-file-upload.js relative to this endpoint
|
|
102
|
-
* @returns Promise with test summary
|
|
103
|
-
*/
|
|
104
|
-
runSystemCompatibilityTest(callback: TCompatibilityCallback, clientEndpoint?: string): Promise<TCompatibilityTestSummary>;
|
|
98
|
+
runSystemCompatibilityTest(callback: TCompatibilityCallback, clientEndpoint?: string, sharedWorker?: SharedWorker): Promise<TCompatibilityTestSummary>;
|
|
105
99
|
}
|
|
106
100
|
|
|
107
101
|
declare enum ERROR_CODE {
|
package/dist/index.mjs
CHANGED
|
@@ -54505,7 +54505,7 @@ class SystemCompatibilityManager {
|
|
|
54505
54505
|
* Test 4: Check Shared Worker Support
|
|
54506
54506
|
*/
|
|
54507
54507
|
setCompatiblityTestSharedWorker(a) {
|
|
54508
|
-
|
|
54508
|
+
this.testSharedWorker = a;
|
|
54509
54509
|
}
|
|
54510
54510
|
async checkSharedWorkerSupport() {
|
|
54511
54511
|
const a = COMPATIBILITY_TEST_TYPE.SHARED_WORKER;
|
|
@@ -54518,7 +54518,7 @@ class SystemCompatibilityManager {
|
|
|
54518
54518
|
{ supported: !1, workerCreated: !1 }
|
|
54519
54519
|
);
|
|
54520
54520
|
try {
|
|
54521
|
-
return
|
|
54521
|
+
return this.testSharedWorker ? await this.testWorkerCommunication(this.testSharedWorker) : this.createTestResult(
|
|
54522
54522
|
a,
|
|
54523
54523
|
COMPATIBILITY_TEST_STATUS.WARNING,
|
|
54524
54524
|
"SharedWorker not created",
|
|
@@ -55055,23 +55055,11 @@ const Ur = class Ur {
|
|
|
55055
55055
|
async getConfigMyTemplates() {
|
|
55056
55056
|
return await getConfigV2MyTemplates();
|
|
55057
55057
|
}
|
|
55058
|
-
|
|
55059
|
-
* Run system compatibility test
|
|
55060
|
-
* @param callback - Callback function to receive test results as they complete
|
|
55061
|
-
* @param clientEndpoint - Optional client endpoint/base URL where SDK is hosted. Worker URL will be constructed as ../shared-worker/s3-file-upload.js relative to this endpoint
|
|
55062
|
-
* @returns Promise with test summary
|
|
55063
|
-
*/
|
|
55064
|
-
async runSystemCompatibilityTest(a, s) {
|
|
55058
|
+
async runSystemCompatibilityTest(a, s, n) {
|
|
55065
55059
|
try {
|
|
55066
|
-
this.compatibilityManager = new SystemCompatibilityManager(s);
|
|
55067
|
-
|
|
55068
|
-
|
|
55069
|
-
// Path relative to where this index.mjs file sits in dist
|
|
55070
|
-
s
|
|
55071
|
-
), r = new SharedWorker(n.href, { name: "EkaS3Worker" });
|
|
55072
|
-
return console.log(r, "EkaS3Worker"), r.port.start(), this.compatibilityManager.setCompatiblityTestSharedWorker(r), await this.compatibilityManager.runCompatibilityTest(a);
|
|
55073
|
-
} catch (n) {
|
|
55074
|
-
throw console.error("Error running compatibility test:", n), n;
|
|
55060
|
+
return this.compatibilityManager = new SystemCompatibilityManager(s), n && this.compatibilityManager.setCompatiblityTestSharedWorker(n), await this.compatibilityManager.runCompatibilityTest(a);
|
|
55061
|
+
} catch (r) {
|
|
55062
|
+
throw console.error("Error running compatibility test:", r), r;
|
|
55075
55063
|
}
|
|
55076
55064
|
}
|
|
55077
55065
|
};
|