@eka-care/ekascribe-ts-sdk 2.0.29 → 2.0.31
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 +8 -4
- package/dist/index.mjs +4138 -4120
- package/dist/worker.bundle.js +44 -0
- package/package.json +11 -3
package/dist/index.d.ts
CHANGED
|
@@ -21,10 +21,11 @@ declare class EkaScribe {
|
|
|
21
21
|
private audioBufferInstance;
|
|
22
22
|
private compatibilityManager;
|
|
23
23
|
private constructor();
|
|
24
|
-
static getInstance({ access_token, env, clientId, }: {
|
|
24
|
+
static getInstance({ access_token, env, clientId, clientEndpoint, }: {
|
|
25
25
|
access_token?: string;
|
|
26
26
|
env?: 'PROD' | 'DEV';
|
|
27
27
|
clientId?: string;
|
|
28
|
+
clientEndpoint?: string;
|
|
28
29
|
}): EkaScribe;
|
|
29
30
|
resetInstance(): void;
|
|
30
31
|
getEkascribeConfig(): Promise<TGetConfigV2Response>;
|
|
@@ -97,10 +98,10 @@ declare class EkaScribe {
|
|
|
97
98
|
/**
|
|
98
99
|
* Run system compatibility test
|
|
99
100
|
* @param callback - Callback function to receive test results as they complete
|
|
100
|
-
* @param
|
|
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
|
|
101
102
|
* @returns Promise with test summary
|
|
102
103
|
*/
|
|
103
|
-
runSystemCompatibilityTest(callback: TCompatibilityCallback,
|
|
104
|
+
runSystemCompatibilityTest(callback: TCompatibilityCallback, clientEndpoint?: string): Promise<TCompatibilityTestSummary>;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
declare enum ERROR_CODE {
|
|
@@ -125,10 +126,11 @@ declare enum ERROR_CODE {
|
|
|
125
126
|
|
|
126
127
|
declare type Gender = 'M' | 'F' | 'O';
|
|
127
128
|
|
|
128
|
-
export declare const getEkaScribeInstance: ({ access_token, env, clientId, }: {
|
|
129
|
+
export declare const getEkaScribeInstance: ({ access_token, env, clientId, clientEndpoint, }: {
|
|
129
130
|
access_token?: string;
|
|
130
131
|
env?: "PROD" | "DEV";
|
|
131
132
|
clientId?: string;
|
|
133
|
+
clientEndpoint?: string;
|
|
132
134
|
}) => EkaScribe;
|
|
133
135
|
|
|
134
136
|
declare type TAudioChunksInfo = {
|
|
@@ -169,6 +171,7 @@ declare type TCompatibilityTestSummary = {
|
|
|
169
171
|
totalTests: number;
|
|
170
172
|
passedTests: number;
|
|
171
173
|
failedTests: number;
|
|
174
|
+
warningTests: number;
|
|
172
175
|
};
|
|
173
176
|
|
|
174
177
|
declare type TConfigSettings = {
|
|
@@ -371,6 +374,7 @@ declare type TPatchVoiceApiV2ConfigRequest = {
|
|
|
371
374
|
consult_language?: string[];
|
|
372
375
|
contact_number?: string;
|
|
373
376
|
onboarding_step?: string;
|
|
377
|
+
system_compatibility_info?: any;
|
|
374
378
|
};
|
|
375
379
|
query_params?: string;
|
|
376
380
|
};
|