@eka-care/ekascribe-ts-sdk 2.0.31 → 2.0.33

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 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 {
@@ -374,7 +368,7 @@ declare type TPatchVoiceApiV2ConfigRequest = {
374
368
  consult_language?: string[];
375
369
  contact_number?: string;
376
370
  onboarding_step?: string;
377
- system_compatibility_info?: any;
371
+ sys_info?: any;
378
372
  };
379
373
  query_params?: string;
380
374
  };
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
- console.log(a, "setCompatiblityTestSharedWorker"), this.testSharedWorker = a, console.log(this.testSharedWorker, "test shared worker - setCompatiblityTestSharedWorker");
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 console.log(this.testSharedWorker, "test shared worker"), this.testSharedWorker ? await this.testWorkerCommunication(this.testSharedWorker) : this.createTestResult(
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
- const n = new URL(
55068
- "./worker.bundle.js",
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "2.0.31",
3
+ "version": "2.0.33",
4
4
  "description": "EkaScribe TypeScript SDK - Modern ES2020 build",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",